Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

spec-generator

БесплатноБез исполняемых скриптовНе проверен

Specification generator - 7 phase document chain producing product brief, PRD, architecture, epics, and issues. Agent-delegated heavy phases (2-5, 6.5) with…

catlog22от catlog22★ 2 110 звёзд на GitHub

Об этом скилле

Spec Generator

Structured specification document generator producing a complete specification package (Product Brief, PRD, Architecture, Epics, Issues) through 7 sequential phases with multi-CLI analysis, Codex review gates, and interactive refinement. Heavy document phases are delegated to doc-generator agents to minimize main context usage. Document generation only - execution handoff via issue export to team-planex or existing workflows.

Architecture Overview

Phase 0:   Specification Study (Read specs/ + templates/ - mandatory prerequisite)      [Inline]
           |
Phase 1:   Discovery               -> spec-config.json + discovery-context.json         [Inline]
           |                           (includes spec_type selection)
Phase 1.5: Req Expansion           -> refined-requirements.json                         [Inline]
           |                           (interactive discussion + CLI gap analysis)
Phase 2:   Product Brief            -> product-brief.md + glossary.json                 [Agent]
           |                           (3-CLI parallel + synthesis)
Phase 3:   Requirements (PRD)      -> requirements/  (_index.md + REQ-*.md + NFR-*.md)  [Agent]
           |                           (Gemini + Codex review)
Phase 4:   Architecture            -> architecture/  (_index.md + ADR-*.md)             [Agent]
           |                           (Gemini + Codex review)
Phase 5:   Epics & Stories         -> epics/  (_index.md + EPIC-*.md)                   [Agent]
           |                           (Gemini + Codex review)
Phase 6:   Readiness Check         -> readiness-report.md + spec-summary.md             [Inline]
           |                           (Gemini + Codex dual validation + per-req verification)
           +-- Pass (>=80%): Handoff or Phase 7
           +-- Review (60-79%): Handoff with caveats or Phase 7
           +-- Fail (<60%): Phase 6.5 Auto-Fix (max 2 iterations)
                 |
Phase 6.5: Auto-Fix               -> Updated Phase 2-5 documents                       [Agent]
                 |
                 +-- Re-run Phase 6 validation
                       |
Phase 7:   Issue Export            -> issue-export-report.md                            [Inline]
                                      (Epic->Issue mapping, ccw issue create, wave assignment)

Key Design Principles

  1. Document Chain: Each phase builds on previous outputs, creating a traceable specification chain from idea to executable issues
  2. Agent-Delegated: Heavy document phases (2-5, 6.5) run in doc-generator agents via spawn_agent, keeping main context lean (summaries only)
  3. Multi-Perspective Analysis: CLI tools (Gemini/Codex/Claude) provide product, technical, and user perspectives in parallel
  4. Codex Review Gates: Phases 3, 5, 6 include Codex CLI review for quality validation before output
  5. Interactive by Default: Each phase offers user confirmation points; -y flag enables full auto mode
  6. Resumable Sessions: spec-config.json tracks completed phases; -c flag resumes from last checkpoint
  7. Template-Driven: All documents generated from standardized templates with YAML frontmatter
  8. Pure Documentation: No code generation or execution - clean handoff via issue export to execution workflows
  9. Spec Type Specialization: Templates adapt to spec type (service/api/library/platform) via profiles for domain-specific depth
  10. Iterative Quality: Phase 6.5 auto-fix loop repairs issues found in readiness check (max 2 iterations)
  11. Terminology Consistency: glossary.json generated in Phase 2, injected into all subsequent phases

Agent Registry

Agent task_name Role File Responsibility Pattern fork_turns
doc-generator (Phase 2) doc-gen-p2 ~/.codex/agents/doc-generator.toml Product brief + glossary generation 2.1 Standard "none"
doc-generator (Phase 3) doc-gen-p3 ~/.codex/agents/doc-generator.toml Requirements / PRD generation 2.1 Standard "none"
doc-generator (Phase 4) doc-gen-p4 ~/.codex/agents/doc-generator.toml Architecture + ADR generation 2.1 Standard "none"
doc-generator (Phase 5) doc-gen-p5 ~/.codex/agents/doc-generator.toml Epics & Stories generation 2.1 Standard "none"
doc-generator (Phase 6.5) doc-gen-fix ~/.codex/agents/doc-generator.toml Auto-fix readiness issues 2.1 Standard "none"
cli-explore-agent (Phase 1) spec-explorer ~/.codex/agents/cli-explore-agent.toml Codebase exploration 2.1 Standard "none"

COMPACT PROTECTION: Agent files are execution documents. When context compression occurs and agent instructions are reduced to summaries, you MUST immediately Read the corresponding agent file to reload before continuing execution.


Fork Context Strategy

| Agent | task_name | fork_turns | fork_from | Rationa

Полный SKILL.md на GitHub

Установить spec-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

README.mdphases/01-5-requirement-clarification.mdphases/01-discovery.mdphases/02-product-brief.mdphases/03-requirements.mdphases/04-architecture.mdphases/05-epics-stories.mdphases/06-5-auto-fix.mdphases/06-readiness-check.mdphases/07-issue-export.mdspecs/document-standards.mdspecs/glossary-template.jsonspecs/quality-gates.mdtemplates/architecture-doc.mdtemplates/epics-template.mdtemplates/product-brief.mdtemplates/profiles/api-profile.mdtemplates/profiles/library-profile.mdtemplates/profiles/service-profile.mdtemplates/requirements-prd.md

FAQ

Что делает скилл spec-generator?

Specification generator - 7 phase document chain producing product brief, PRD, architecture, epics, and issues. Agent-delegated heavy phases (2-5, 6.5) with Codex review gates. Triggers on "generate spec", "create specification", "spec generator", "workflow:spec".

Как установить скилл spec-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл spec-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить spec-generator с