By TANAGELEEE
cc-nexs minimal preset: 3 roles (Planner / Developer / Reviewer), Claude-only with subagent isolation, English by default, no language stack assumption.
Approve the spec at the single human checkpoint, transitioning state from SPEC_PENDING_HUMAN to SPEC_APPROVED.
Invokes `agents/developer.md` via Task tool with subagent_type=general-purpose.
Initialize a new feature directory by copying preset templates and creating progress.md.
Invokes `agents/planner.md` via Task tool with subagent_type=general-purpose.
Invoke Reviewer subagent for spec / code / acceptance review.
Generic Developer role. Implement code per spec.md, fix bugs reported in bugs/. Forbidden to modify spec.md or change acceptance criteria.
Generic Planner role. Expand business intent into spec.md (acceptance criteria + optional sprint slices). Forbidden to read src/ or write code.
Generic Reviewer role. Reviews spec / code / tests / acceptance. Black-box for source code logic only when reviewing acceptance.
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 的命令:
npx claudepluginhub tanageleee/cc-nexs --plugin cc-nexs-minimal五方异构 SOP 的 Claude Code Plugin:Planner / Tech Lead / SA / QA / Evaluator 五角色,状态机驱动的自循环开发流水线,spec 通过评审后唯一一次人工 checkpoint。
Comprehensive feature development workflow with specialized agents for codebase exploration, architecture design, and quality review
Harness-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
Feature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Complete developer toolkit for Claude Code
Comprehensive C4 architecture documentation workflow with bottom-up code analysis, component synthesis, container mapping, and context diagram generation