Use when the user wants task-end project knowledge crystallization to be inferred from the current task, touched files, and existing recommendation matches.
Use when the user wants to persist a session or update project knowledge.
Use when the user wants to automatically apply reversible project knowledge governance actions.
Use when the user wants to rebuild graph artifacts from `.notra/`.
Use when the user wants to initialize `.notra/` for the current local project.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Notra 是一套面向 Codex 与 Claude Code 的项目知识沉淀工具。它把长期项目里的代码实践、推荐方案、会话结论和证据关系保存到项目自己的 .notra/ 目录中,让后续对话可以先查已有实践,再决定是否扫描项目代码。
它的目标不是替代代码仓库,也不是保存完整代码片段,而是让 AI 在多轮任务中逐步形成“这个项目通常怎么做”的可检索知识库。
长期项目里,AI 协作常见几个问题:
Notra 的做法是:
notra:notra-preflight 查已有实践和推荐方案。notra:notra-auto-crystallize 自动记录采纳和孵化知识。.notra/ 是项目级知识库,也是 Markdown 事实源。图谱、索引、Obsidian 视图都是从这些 Markdown 文件生成出来的。
主要节点类型:
project_profile:项目画像,记录技术栈、默认规则和偏好方案。practice:可复用实践,例如“HTTP 调用应统一封装”。option:实践下的候选方案,例如“统一 client”或“直接调用”。rule:约束性规则。context / constraint:适用场景和限制条件。session:一次任务的历史记录。知识生命周期:
incubating。source_evidence 只应该指向长期存在的项目源码相对路径,例如:
src/api/client.ts
src/runtime/scheduler.ts
这些路径不会作为长期证据:
.worktrees/.notra/.agents/.codex/node_modules/docs/task_plan.mdfindings.mdprogress.md原因是这些内容经常是临时计划、协作过程文件、生成物或后续可能被清理的文档。它们可以帮助当前对话理解上下文,但不能支撑长期推荐实践。
项目也不保存完整代码片段作为主证据。推荐的证据形态是:
git clone <repository-url>
cd <repository-directory>
安装后可以先运行测试确认环境可用:
npm test
不安装 Codex plugin 也可以直接通过 npm 脚本使用:
npm run notra:init -- <project-root>
npm run notra:preflight -- <project-root> "实现 HTTP 调用"
npm run notra:auto-crystallize -- <project-root> <auto-crystallize-input.json>
这种方式适合手动执行脚本,或者在其它自动化流程里调用。
如果希望在 Codex 对话中直接使用 notra:* 技能,执行:
npm run codex:install
该命令会:
~/plugins/notra 创建指向当前仓库 plugins/notra/ 的本地插件链接。~/.agents/plugins/marketplace.json 写入 notra marketplace 条目。INSTALLED_BY_DEFAULT,让 Codex 启动时自动发现技能包。安装后需要完全重启 Codex。重启后在技能列表中应该能看到:
notra:notra-init
notra:notra-preflight
notra:notra-status
notra:notra-graph
notra:notra-crystallize
notra:notra-auto-crystallize
notra:notra-lint
notra:notra-govern
notra:notra-serve
升级当前仓库后,可以重新执行:
npm run codex:install
卸载:
npm run codex:uninstall
在 Claude Code 对话中直接使用 notra 技能:
/plugin marketplace add <repository-root>
/plugin install notra@snailuu
例如:
/plugin marketplace add /path/to/notra
/plugin install notra@snailuu
该命令会:
snailuu marketplace。notra 插件。~/.claude/plugins/installed_plugins.json 注册 notra 插件。~/.claude/settings.json 的 enabledPlugins 中启用 notra 插件。安装后需要完全重启 Claude Code,让插件在启动时被加载。重启后在技能列表中应该能看到:
notra-init
notra-preflight
notra-status
notra-graph
notra-crystallize
notra-auto-crystallize
notra-lint
notra-govern
notra-serve
升级当前仓库后,重新执行:
/plugin update notra@snailuu
卸载:
/plugin uninstall notra@snailuu
安装工具后,还需要对目标项目执行初始化:
npm run notra:init -- <project-root>
或者在 Codex 中使用:
notra:notra-init
初始化后,目标项目根目录会出现 .notra/。只有存在这个目录的项目才会进入知识库流程;未初始化项目会返回 mode: no-knowledge 并跳过扫描和沉淀。
初始化后,可以直接用 npm 脚本操作:
npm test
npm run notra:init -- <project-root>
npm run notra:preflight -- <project-root> "实现 HTTP 调用"
npm run notra:auto-crystallize -- <project-root> <auto-crystallize-input.json>
npm run notra:lint -- <project-root>
npm run notra:govern -- <project-root>
npm run notra:serve -- <project-root> 8124
如果命令不传 <project-root>,脚本会使用当前工作目录。
仓库同时内置 Codex plugin 技能包与 Claude Code 技能包。
技能名如下:
notra:notra-init
notra:notra-preflight
notra:notra-status
notra:notra-graph
notra:notra-crystallize
notra:notra-auto-crystallize
notra:notra-lint
notra:notra-govern
notra:notra-serve
推荐安装方式:
npm run codex:install
它会把 plugins/notra/ 接入 Codex 的插件发现路径,并写入 marketplace 配置。安装后需要完全重启 Codex,技能列表中才会出现 notra:* 技能。
卸载:
npm run codex:uninstall
技能名如下:
notra-init
notra-preflight
notra-status
notra-graph
notra-crystallize
notra-auto-crystallize
notra-lint
notra-govern
notra-serve
推荐安装方式:
/plugin marketplace add <repository-root>
/plugin install notra@snailuu
安装后需要完全重启 Claude Code。
卸载:
/plugin uninstall notra@snailuu
npm run notra:init -- <project-root>
会在目标项目中创建 .notra/,包括:
project-profile.mdpractices/options/rules/incubating/sessions/state/graph/_views/.obsidian/open-graph.cmd如果项目没有初始化,notra:preflight 和 notra:auto-crystallize 会返回 mode: no-knowledge,不会扫描代码,也不会创建知识库。
npm run notra:preflight -- <project-root> "实现 HTTP 调用"
预检会优先查 .notra/:
npx claudepluginhub snailuu/notra --plugin notraMemory compression system for Claude Code - persist context across sessions
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.