ai-spector-generate
All document generation: SRS, basic design, detail design, HTML prototype; incremental feature/section changes (resolve-task); and template pack import. Use for "generate SRS/basic design/detail design", "write chapter N", "add feature", "update section", "I want to add…", "HTML prototype", Capability-gated for Writer cloud UI only — local adapter (`.ai-spector/engine.json`) uses MCP/CLI work sessions even when `capabilities.generate` is false.
- License 许可
- MIT
- 最近更新
- 2026-07-08
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- ai-spector-generate
- description
- All document generation: SRS, basic design, detail design, HTML prototype; incremental feature/section changes (resolve-task); and template pack import. Use for "generate SRS/basic design/detail design", "write chapter N", "add feature", "update section", "I want to add…", "HTML prototype", Capability-gated for Writer cloud UI only — local adapter (`.ai-spector/engine.json`) uses MCP/CLI work sessions even when `capabilities.generate` is false.
02 资源文件 1
- 参考文档references/runbook.md12.3 KB
03 SKILL.md 正文
AI Spector — Generate
Core: ../ai-spector/skill.md · Workflow: ../../WORKFLOW.md
Step 0 — Incremental vs full generate
| User intent | Route to |
|---|---|
| Add / update / change one feature, section, API, screen; "I want to…" | Resolve-Task section |
| Set up / import a template pack | Template-Import section |
| Backfill SRS from basic/detail design; derive upstream | SRS section with sourceMode: derive-downstream |
| Generate SRS / basic design / detail design / prototype from graph | Continue below |
Step 1 — Check active packs
Read docops.config.json. capabilities.generate: false hides Writer cloud generate UI only — proceed via MCP/CLI when local adapter is set up. Check packs.srs and packs.basicDesign.
| Pack field | Value | Action |
|---|---|---|
packs.srs |
"builtin" |
Use SRS runbook |
packs.srs |
custom pack name | Use ai-spector-generate-<packname> skill (run npx ai-spector template use <packname> if missing) |
packs.basicDesign |
"builtin" |
Use basic-design runbook |
packs.basicDesign |
custom pack name | Use ai-spector-generate-<packname> skill |
Detail design is builtin only today. Prototype routes directly to the prototype runbook.
Route by layer (builtin only)
| Layer | Runbook section |
|---|---|
| SRS (requirements, use cases) | references/runbook.md — SRS |
| Basic design (screens, APIs, DB) | references/runbook.md — Basic-Design |
| Detail design (feature-level) | references/runbook.md — Detail-Design |
| HTML prototype / mockups | references/runbook.md — Prototype |
| Incremental change | references/runbook.md — Resolve-Task |
| Template pack import | references/runbook.md — Template-Import |
Checklist
- [ ] Matched runbook section read completely
- [ ] Work session bootstrapped (work_create / work_list with bootstrap)
- [ ] Gated: workspace check → clarify → briefing → plan → work_approve_plan → waves
- [ ] MCP first → CLI fallback — see ai-spector/skill.md#mcp-invocation-rule
- [ ] On failure: pause → report → fix per ai-spector/references/cli-failures.md
- [ ] No .docops/guide/ links
Shared references
- ../ai-spector/references/generate-workflow.md — gated flow, translation prompt, guardrails
- ../ai-spector/references/generate-graph.md — graph query, DAG hints
- ../ai-spector/references/plan-and-briefing.md
- ../ai-spector/references/extract-specs.md — stage 6 spec queue
04 同仓库更多 Skills
ai-spector
暂无简介
ai-spector
Core AI Spector skill: setup, upgrade, adopt, check, docops CLI, work sessions (resume/route/pause), course link, and onboarding help. Use when the user says help, I'm stuck, where am I, or what's next about project setup; project init/setup, upgrade, adopting existing docs, workspace check, Writer contract bootstrap (docops init/migrate), resuming or managing active work sessions, or learning via the course. Do not use when the user clearly wants generation, graph ops, or contract review/comments — use the matching skill instead.
ai-spector-graph
Traceability graph operations: analyze data-source, index refresh, graph validate, impact, visualize, semantic search (CocoIndex), natural language graph lookup, doc summaries, and layer sync audit (design drift since baseline). Use when the user asks to analyze sources, refresh or validate the graph, see impact, visualize traceability, find docs by concept, or check doc drift since baseline. Do not use for writing SRS, basic design, HTML prototype, or formal document sign-off.
ai-spector-generate
All document generation: SRS, basic design, detail design, HTML prototype; incremental feature/section changes (resolve-task); and template pack import. Use for "generate SRS/basic design/detail design", "write chapter N", "add feature", "update section", "I want to add…", "HTML prototype", Capability-gated for Writer cloud UI only — local adapter (`.ai-spector/engine.json`) uses MCP/CLI work sessions even when `capabilities.generate` is false.
ai-spector-contract
Writer contract operations: document sign-off (review_approve), comment resolution (doc threads C-NNN and prototype batches B-NNN), translation sync, and language status. Use for review queue, approve doc by logical path (srs/01-overview), pending client review, resolve C-NNN threads, B-NNN prototype batches, resolve translations, or check language status. NOT for graph, generate, or setup — use the matching skill instead.
ai-spector
Core AI Spector skill: setup, upgrade, adopt, check, docops CLI, work sessions (resume/route/pause), course link, and onboarding help. Use when the user says help, I'm stuck, where am I, or what's next about project setup; project init/setup, upgrade, adopting existing docs, workspace check, Writer contract bootstrap (docops init/migrate), resuming or managing active work sessions, or learning via the course. Do not use when the user clearly wants generation, graph ops, or contract review/comments — use the matching skill instead.