为软件项目一次性初始化、迁移或重新校准可长期复用的 SDD 工作流。仅在用户明确调用并要求为新项目或既有仓库建立开发规范时使用;支持由用户指定或由 Codex 评估 Simple、Medium、Complex 三档,然后通过需求访谈生成对应的 AGENTS.md、项目文档、Spec、Architecture、ADR、Plan、Roadmap、模板与校验规则。初始化后由仓库规则驱动日常功能、修复和重构,不要在普通开发任务或每个需求中重复调用。
Ships in develop-software. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
把本 Skill 作为一次性的项目 SDD 初始化器:
选择 Profile → 澄清项目需求 → 套用固定模板 → 写入项目事实 → 验证并交接
初始化完成后,后续 Agent 只读取仓库中的 AGENTS.md、项目文档、代码和测试。不要让普通开发再次依赖本 Skill。
执行本 Skill 时:
TBD 或 Open question;先读取并检查:
AGENTS.md、CLAUDE.md 和其他 repository instructions;git status、当前 diff、README、贡献指南和已有 SDD 文档;空目录也要先确认路径和 Git 状态。不要仅凭项目名称或预计代码行数选择 Profile。
只允许以下三个固定 Profile:
| Profile | 适用项目 | 固定治理骨架 |
|---|---|---|
| Simple | 小型个人项目、主题、脚本、短期原型 | AGENTS.md + 单一 living project spec |
| Medium | 长期维护的应用、库、服务或多模块个人项目 | Project Brief + current Architecture + 合并设计/计划的 Feature Spec + 按需 ADR |
| Complex | BearAgent 类基础设施、研究平台、高风险或多阶段系统 | Project Brief + Roadmap + current Architecture + 独立 Feature Spec / ADR / Plan + 稳定 ID、状态机和 validator |
按以下优先级决定:
Profile 必须在需求访谈和写文件前确认。不要把“项目 Profile”和日常变更的 S0/S1/S2 风险级别混为一谈。
Profile 确认后,以产品负责人和架构师的身份进行简短、多轮访谈。优先澄清:
每轮只问会改变范围、架构或验收的 1–3 个问题。主动质疑冲突、不可验证目标和过早复杂化;不要替用户编造 owner、deadline、性能指标或支持承诺。
访谈结束后先输出并确认:
SDD Profile:
项目问题:
Goals:
Non-goals:
首个可交付结果:
关键约束与风险:
仍未决定:
将创建或迁移的文件:
只有内容被用户明确确认后,才把需求或决定标为 accepted。未确认内容保持 draft。
新项目使用脚本复制所选 Profile:
python3 <skill-dir>/scripts/init_profile.py <simple|medium|complex> <project-root> \
--project-name "<project-name>" \
--owner "<owner>"
脚本遇到同名文件会在写入前失败,不会覆盖。先用 --dry-run 可以查看文件清单。
复制后必须把模板改写为该项目的真实内容:
TBD,不伪造命令;F-NNNN Feature;AGENTS.md;各 Profile 的精确文件清单和日常行为见 profiles.md。复杂 Artifact 的状态、ID 与关系规则见 complex-governance.md。
不要对非空仓库直接运行复制脚本并强行覆盖。完整读取 migration.md,然后:
AGENTS.md;升级或降级 Profile 属于重新校准,必须显式调用本 Skill。普通 Feature 不得偷偷改变项目 Profile。
生成的 AGENTS.md 必须让一个不了解本次对话的 Agent 自动执行以下路由:
自然语言需求
→ 读取仓库事实
→ 判断 S0 / S1 / S2 变更级别
→ 使用当前 Profile 规定的 Artifact
→ 必要的用户确认
→ 实现一个可验证切片
→ 测试与问题导向 review
→ 同步 current facts 与状态
三档共同遵守:
Profile 决定 Artifact 形态,变更级别决定本次需要哪些 Gate。Complex 项目中的 typo 仍是 S0;Simple 项目出现高风险变化时应暂停并建议重新运行本 Skill 升档。
初始化结束前至少检查:
AGENTS.md 能独立说明读取顺序、日常路由、授权边界和 Definition of Done;validate_artifacts.py 到项目自己的 scripts/validate_sdd.py,运行其单元测试和项目扫描;develop-software。Skill 自身修改后运行:
python3 scripts/test_init_profile.py
python3 scripts/test_validate_artifacts.py
向用户报告:
不要在交付中要求用户记住一组提示词。初始化后的仓库规则才是长期接口。
| 场景 | 必读资源 |
|---|---|
| 由 Codex 选择 Profile,或解释三档差异 | references/profiles.md |
| 说明模板来源或重新评估模板设计 | references/sdd-basis.md |
| 既有项目迁移、升档或降档 | references/migration.md |
| Complex 的 ID、状态机、关系和 validator | references/complex-governance.md |
只读取当前任务需要的 Reference;但一旦选择某个 Reference,必须完整读取。
agents/openai.yaml (opens in a new tab)assets/profiles/complex/AGENTS.md (opens in a new tab)assets/profiles/complex/docs/adr/README.md (opens in a new tab)assets/profiles/complex/docs/architecture/overview.md (opens in a new tab)assets/profiles/complex/docs/index.md (opens in a new tab)assets/profiles/complex/docs/plans/README.md (opens in a new tab)assets/profiles/complex/docs/project/project-brief.md (opens in a new tab)assets/profiles/complex/docs/project/roadmap.md (opens in a new tab)assets/profiles/complex/docs/specs/README.md (opens in a new tab)assets/profiles/complex/docs/templates/adr.md (opens in a new tab)assets/profiles/complex/docs/templates/feature-spec.md (opens in a new tab)assets/profiles/complex/docs/templates/implementation-plan.md (opens in a new tab)assets/profiles/medium/AGENTS.md (opens in a new tab)assets/profiles/medium/docs/adr/README.md (opens in a new tab)assets/profiles/medium/docs/architecture/overview.md (opens in a new tab)assets/profiles/medium/docs/project/project-brief.md (opens in a new tab)assets/profiles/medium/docs/specs/README.md (opens in a new tab)assets/profiles/medium/docs/templates/adr.md (opens in a new tab)assets/profiles/medium/docs/templates/feature-spec.md (opens in a new tab)assets/profiles/simple/AGENTS.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/develop-software:develop-softwarefrom develop-software
npx claudepluginhub cherryyang05/myskills --plugin develop-software