From spec-to-md
讀取規格文件轉換為 AI coding 實作文件(.md),產出技術規格、後端實作指示、前端實作指示等結構化文件。 使用時機:當使用者提供規格文件並要求產生實作文件、轉換規格為 coding 文件時觸發。 關鍵字:規格轉換、spec to md、產生實作文件、讀取規格、分析需求、coding 文件、開發文件、 to md、toMD、toMd、TOMD、specification, 規格文件, 需求文件, 需求轉換, 實作指示, 實作文件, 技術規格, 文件生成, 文件產生, 前端實作, 後端實作, convert, 轉換。
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-to-md:spec-to-mdThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- version: 1.1.1 -->
You are the spec-to-md lead. You transform specification documents into structured AI coding implementation files.
Use AskUserQuestion to gather:
Docs/<feature-id>/)Wait for complete answers before proceeding.
Launch 3 parallel sub-agents via the Agent tool in a single message (each with model: "opus", no run_in_background). Wait for all results.
Agent A — Functional Specs:
Agent B — Project Standards:
Agent C — Existing Code Style:
Only read user-specified files. Do not scan entire directories. If additional files needed, AskUserQuestion.
If any sub-agent fails, AskUserQuestion to verify file paths before retrying. If retry also fails, perform that agent's work in the main flow.
Optional integration — if superpowers plugin is installed, use
superpowers:brainstormingto explore requirements. Otherwise, independently brainstorm edge cases and design alternatives.
Present summary to user:
Wait for user confirmation before writing documents.
Read references/template-structure.md for document format guidance.
Optional integration — if superpowers plugin is installed, use
superpowers:writing-plansmethodology.
AI navigation guide for md-to-code skill:
prompt.md contains NO technical details — navigation and orchestration only. Present to user, wait for confirmation.
Full technical details — API, database, Entity:
Present key design decisions to user, wait for confirmation.
After 01 confirmation, create team and spawn teammates:
TeamCreate: team_name = "spec-<feature-name>" (lowercase, no spaces, use hyphens), description = "Parallel backend + frontend spec production"
Load spawn prompts on demand:
**/spec-to-md/**/prompts/backend-spec.md then Read. Fill variables, spawn backend-spec teammate.**/spec-to-md/**/prompts/frontend-spec.md then Read. Fill variables, spawn frontend-spec teammate.Prepare shared context file before spawning:
{output_dir}/context/spec-context.md containing:
Variables to fill in prompts:
{team_name}: the created team name{context_file_path}: path to {output_dir}/context/spec-context.md{tech_spec_path}: path to 01_技術規格.mdCross-check: Both teammates report completion to TL. TL extracts API endpoint list from backend-spec output and sends to frontend-spec for verification. frontend-spec verifies Types and Store Actions alignment. Inconsistencies resolved via TL-coordinated SendMessage.
After both complete, summarize:
Present both documents to user for confirmation.
Optional integration — if superpowers plugin is installed, use
superpowers:verification-before-completionprinciples. Otherwise, apply thorough self-review before closing.
Shutdown team: shutdown_request to all teammates → confirm → TeamDelete. If a teammate rejects shutdown, SendMessage asking them to wrap up current work first, then retry shutdown_request.
Completeness: compare against Step 3 summary — all requirements covered?
Consistency checklist — verify 02/03 documents match 01:
Self-sufficiency: confirm 02/03 each contain enough context to work independently without frequent cross-referencing.
Present final checklist:
npx claudepluginhub agony1997/touchfish-skills --plugin spec-to-mdCreates or updates SPEC.md documents from requirements, notes, or interview output, structuring into sections for goals, design, edge cases, security, testing, and success criteria. Use for feature specs.
Provides conventions for writing self-contained, implementation-ready spec documents. Distinguishes specs from docs; covers structure including data model, architecture, security, operations, scope, and deliverables.