By TANAGELEEE
五方异构 SOP 的 Claude Code Plugin:Planner / Tech Lead / SA / QA / Evaluator 五角色,状态机驱动的自循环开发流水线,spec 通过评审后唯一一次人工 checkpoint。
Approve the spec at the single human checkpoint, transitioning state from SPEC_PENDING_HUMAN to SPEC_APPROVED.
Brainstorming 入口。用 Socratic 对话把 PM 一句话诉求展开成结构化 requirements.md,作为 Planner 的输入。在 /cc-nexs:init 之后、/cc-nexs:run 之前调用。
按本次需求实际改动了哪些文件,自动选 build / test 命令。
完成的需求跑这条命令把教训沉淀到仓库级 `docs/solutions/`。下次同类需求 RECON 阶段会自动 grep 命中、接入 repo-context.md。
参数:
Compound 身份。读完成后的 doc/<id>/* 把"非显然教训"沉淀到 docs/solutions/<topic>.md,下次同类需求 Repo Scout 自动接入。**禁强行凑数、禁写 spec/code/progress、强信号不命中必须跳过**。
Evaluator(验收人)身份。通过 codex CLI 调用。按 spec.md 的验收契约 AC 表逐条打分。**禁读 src/、禁读 sa-*.md、禁与 QA 同 session、禁继续分派任务**。
fast 模式的 Fullstack 身份。一手包办 spec 起草 + 代码实现 + 文档同步。仅在 fast 模式启用,full 模式禁止用。
Planner 身份。把业务需求展开为 spec.md(含验收契约 AC 表 + Sprint 切片)。**禁读 src/、禁写代码、禁与 Tech Lead 同 session**。
QA 黑盒测试身份。通过 codex CLI 调用。三种模式:起草用例 / 执行测试 / 回归。**禁读 src/、禁读 sa-code-review.md、禁改代码**。
cc-nexs 五方身份隔离速查。当 Claude 在执行任何 SOP 阶段任务前激活,提醒当前身份的禁令清单和越界自检规则。触发词:planner、tech lead、sa、qa、evaluator、身份隔离、role isolation、五方异构、cross-tool、跨 session。
cc-nexs 入口被动触发 skill。当用户说"做新需求"、"开发功能"、"start a feature"、"开个分支做"、"build new requirement"、"按 SOP 跑"、"五方流程"、"plan + implement + test"、"全流程开发"、"feature 开发"、"端到端做这个需求" 时自动激活,引导用户进入 cc-nexs 编排流水线。
cc-nexs 创建新需求或恢复需求工作时确保自己处在隔离 git worktree 内,让多个需求可以并行开发互不干扰。流程:检测已有隔离 → git worktree 兜底创建 → 验证 .gitignore → 切目录与分支。触发词:worktree、并行需求、隔离工作目录、init 前准备、多需求并行、独立工作树。
cc-nexs 文档聚合规则速查。避免文件泛滥(每轮一个 md 文件的反模式)。触发词:sa-review、sa-code-review、test-report、acceptance、append、文件命名、追加、文档泛滥。
cc-nexs 需求落地的 Socratic 对话 skill。把 PM 一句话诉求展开成结构化 requirements.md,作为 Planner 产出 spec.md 的输入。**在写任何 spec / 代码 / dev-plan 之前必须先走这一步**。触发词:脑暴、brainstorm、需求展开、需求还很模糊、想做个 X、随便聊聊先、捋清楚需求、把这个想法落地、refine、shape up、design dialogue。
Executes bash commands
Hook triggers when Bash tool is used
Modifies files
Hook triggers on file write and edit operations
Uses power tools
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.
Uses Bash, Write, or Edit tools
Uses Bash, Write, or Edit tools
多角色 + 状态机驱动的 Claude Code Plugin 框架。源码用 monorepo 维护,发布产物是扁平自包含 plugin。
把开发流程 SOP 拆成两层:
packages/core/ —— 通用框架。状态机引擎、角色注册、reviewer 工具适配、跨平台 hooks、i18n、共享 commands。packages/preset-*/ —— 项目预设。声明启用哪些角色、用什么工具、做什么栈检查、加载什么模板。源码维护方便(monorepo),分发产物扁平(每个 preset 物化进 dist/,自包含可装),通过 pnpm build 把 core 内容物化进每个 preset 的 dist 目录。
| Preset | 适用场景 | 角色 | 工具 | 语言 |
|---|---|---|---|---|
preset-nexs | Java/Maven/Spring 项目 | 5 方异构(Planner / Tech Lead / SA / QA / Evaluator),支持 full / fast 两种模式(fast 合并为 3 角色 Fullstack / Reviewer / Verifier,子代理调用量减半) | Claude × 2 + Codex × 3 | 中文 |
preset-minimal | 通用 / 个人项目 / 跨语言起步 | 3 角色(Planner / Developer / Reviewer) | Claude 单工具 + 子代理隔离 | 英文 |
新增预设按 docs/extending-presets.md 操作。fast 模式选择见 preset-nexs 的 docs/role-map.md。
cc-nexs/
├── packages/ 源码(monorepo)
│ ├── core/ 通用框架
│ │ ├── commands/ 共享 orchestrator commands(run/approve-spec/status/init)
│ │ ├── lib/ Node.js 框架代码
│ │ ├── hooks/ 跨平台 .mjs hooks
│ │ ├── schemas/ preset.yml / progress.md JSON Schema
│ │ └── i18n/{zh-CN,en-US}.json
│ │
│ ├── preset-nexs/ 五方异构预设(中文)
│ │ ├── .claude-plugin/plugin.json
│ │ ├── preset.yml
│ │ ├── agents/ × 5 五方角色身份
│ │ ├── commands/ × 6 preset 自有阶段命令(planner/sa/dev/qa/evaluator/hotfix)
│ │ ├── skills/ × 4
│ │ ├── templates/ 11 份中文模板
│ │ └── hooks/hooks.json hook 注册(实现脚本来自 core)
│ │
│ └── preset-minimal/ 3 角色通用预设(英文)
│ ├── .claude-plugin/plugin.json
│ ├── preset.yml
│ ├── agents/ × 3
│ ├── commands/ × 3
│ ├── templates/
│ ├── i18n/en-US/strings.json
│ └── hooks/hooks.json
│
├── scripts/
│ └── build.mjs build 脚本:core 物化进每个 preset
│
├── dist/ build 产物(**commit 进 git** 让 GitHub 能直接装 plugin)
│ ├── .claude-plugin/marketplace.json
│ ├── preset-nexs/ 扁平自包含 plugin
│ │ ├── .claude-plugin/plugin.json
│ │ ├── commands/ × 10 preset 6 + core 4 物化合并
│ │ ├── agents/ × 5
│ │ ├── skills/ × 4
│ │ ├── templates/
│ │ ├── hooks/ *.mjs(来自 core)+ hooks.json(来自 preset)
│ │ ├── lib/ core/lib 物化
│ │ ├── schemas/ core/schemas 物化
│ │ └── i18n/ core + preset 合并
│ └── preset-minimal/ 同上结构
│
├── examples/
│ └── using-preset-nexs/ 演示项目
│
├── docs/
│ ├── architecture.md core × preset 关系
│ └── extending-presets.md 写新预设指南
│
├── pnpm-workspace.yaml
└── package.json
pnpm build # 构建全部 preset
pnpm build:nexs # 仅构建 preset-nexs
pnpm build:minimal # 仅构建 preset-minimal
pnpm clean # 删 dist
build 做什么:
commands / agents / skills / templates / preset.yml / i18n 拷进 dist/<preset>/core/commands core/hooks 物化进 dist/<preset>/,preset 同名文件优先(不被覆盖)core/lib core/schemas core/i18n 拷进 dist/<preset>/core/lib/X → lib/X、_core/X → X、../core/X → Xdist/.claude-plugin/marketplace.json 自动生成,列出所有 preset 作为 plugindist 是真正的 Claude Code Plugin marketplace,发布时只发 dist/。
cd /path/to/cc-nexs
pnpm install:local # 等价于:build + 拷到 ~/.claude/plugins/cache/
# 切换到 minimal preset
pnpm install:local:minimal
install:local 做的事:
build 产出 dist/preset-<name>/~/.claude/plugins/cache/cc-nexs/cc-nexs/<version>/(不软链——Claude Code 启动期会清理非标准 cache)~/.claude/plugins/installed_plugins.json 元数据~/.claude/settings.json 已启用 plugin完成后重启 Claude Code 即可生效。后续改源码再跑一次 pnpm install:local 即可。
/plugin marketplace add TANAGELEEE/cc-nexs
/plugin install cc-nexs@cc-nexs # 五方异构(preset-nexs)
/plugin install cc-nexs-minimal@cc-nexs # 3 角色(preset-minimal)
/plugin marketplace add TANAGELEEE/cc-nexs 会拉本仓库根目录的 .claude-plugin/marketplace.json;它的 plugins[].source 指向 ./dist/preset-*——所以仓库必须包含 commit 进去的 dist/ 目录(每次本地改源码后跑一次 npm run build 把 dist/ 刷新,再 commit + push 即可)。
/cc-nexs:init "需求描述" # 一句话起新需求,自动续号 + slug + 默认建独立 worktree
/cc-nexs:run [编号] # 自动状态机,跑到唯一人工 gate 停下(必须在对应 worktree 内运行)
/cc-nexs:approve-spec [编号] # 人工放行 spec
/cc-nexs:status [编号] # 只读看状态
/cc-nexs:build [--phase=...] # 按 git diff 自动选 build/test 命令并跑
/cc-nexs:hotfix "现象描述" # 旁路 bug 修复(按现象自动判档 P0/P1/P2/P3)
混合栈仓库(如 backend Java + 前端 Next.js)经常一个仓库多套构建命令。/cc-nexs:build 会读 cc-nexs.config.yml 的 paths_override.modules,用 git diff 决定本次需求改了哪些 module,只跑命中的 module 的命令:
cc-nexs minimal preset: 3 roles (Planner / Developer / Reviewer), Claude-only with subagent isolation, English by default, no language stack assumption.
npx claudepluginhub tanageleee/cc-nexs --plugin cc-nexsHarness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses
Superpowers Plus core skills library for Claude Code: planning, execution routing, TDD, debugging, and collaboration workflows
Tools to maintain and improve CLAUDE.md files - audit quality, capture session learnings, and keep project memory current.
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Persistent file-based planning for AI coding agents. Crash-proof markdown plans (task_plan.md, findings.md, progress.md) that survive context loss and /clear, with an opt-in completion gate and multi-agent shared state. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard. Includes Arabic, German, Spanish, and Chinese (Simplified and Traditional).
v9.44.1 — Patch release for Gemini environment/version detection and qwen auth gating. Run /octo:setup.