From md-to-code
根據結構化的 AI coding 實作文件(.md)逐步實作程式碼。讀取 prompt.md 大綱, 依序參考技術規格、後端實作指示、前端實作指示,逐步確認後實作後端與前端程式碼。 使用時機:當使用者要求根據已產出的實作文件開始寫程式、實作功能、按照文件 coding、 依文件實作、開始開發時觸發。關鍵字:md to code、根據文件實作、開始寫程式、 按文件 coding、依文件開發、實作程式碼、開始實作、to code、toCode、implement, implementation, 寫程式, coding, 依規格實作, 按規格開發, 從文件產生程式碼, generate code, code generation, 開始開發。
How this skill is triggered — by the user, by Claude, or both
Slash command
/md-to-code:md-to-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- version: 1.2.0 -->
You are the implementation lead. You orchestrate parallel backend + frontend development from structured spec docs.
Step 1 → 1.5 → 2 → 3 → 3.5 → 4 → 5
Read Gate Plan Impl Gate Verify Close
(subs) (SP) (team) (SP) (report)
subs = parallel sub-agents | SP = superpowers | team = Agent Teams
Gates = mandatory human checkpoints (AskUserQuestion)
Locate prompt.md: use user-provided path first. If not provided, Glob **/prompt.md in likely directories (Docs/, docs/, specs/). If multiple results, AskUserQuestion to clarify. Read it to get doc paths and project standards paths.
Launch 3 parallel sub-agents via the Agent tool (model: opus, except Agent B which may use sonnet) in a single message. Do NOT set run_in_background — wait for all results.
Agent A — Tech Spec:
01_技術規格.mdAgent B — Project Standards + Context Exploration:
CLAUDE.mdAgent C — Implementation Docs:
02_後端實作.md and 03_前端實作.mdAfter all agents return, consolidate results. Conflict resolution if Agent B and Agent C overlap:
Mandatory pause. Use AskUserQuestion to present:
Question: "Is the above correct? Any missing components?" Options: Correct, proceed | Need additions | Need direction change
Optional integration — if superpowers plugin is installed, use
superpowers:writing-plansmethodology. Otherwise, produce a structured plan independently.
Produce step checklist:
Implementation Plan: <feature name>
Backend (per 02_後端實作.md):
[] 1. <step> — <description>
[] 2. ...
Frontend (per 03_前端實作.md):
[] 1. <step> — <description>
[] 2. ...
Submit to user for confirmation. User may adjust order or scope.
Optional integration — if superpowers plugin is installed, teammates may use
superpowers:test-driven-development(TDD) andsuperpowers:systematic-debuggingduring implementation.
Scope detection: Check prompt.md navigation section for available docs:
TeamCreate "impl-<feature-name>" (lowercase, no spaces, use hyphens). Convert Step 2 plan into TaskCreate entries. Tag backend vs frontend.
Before spawning each teammate:
**/md-to-code/**/prompts/backend-dev.md or **/md-to-code/**/prompts/frontend-dev.md{variables} with consolidated context from Step 1 using this mapping:
{team_name} → TeamCreate team name from 3a{tech_spec_content} → Agent A summary (API endpoints, DB structure, business rules). For large specs, use summary + file path.{backend_impl_content} / {frontend_impl_content} → Agent C output (step list, file inventory). For large docs, use summary + file path.{project_standards_summary} → Agent B output (naming, architecture, code style){reusable_components_list} → Agent B output (reusable component paths and descriptions)team_name and name parameters)backend-dev — Agent tool with name: "backend-dev":
frontend-dev — Agent tool with name: "frontend-dev":
Mandatory pause. Use AskUserQuestion to present:
Question: "Do the results meet expectations?" Options: Yes, proceed to verification | Backend needs changes | Frontend needs changes | Both need changes
If adjustments needed: SendMessage to the relevant teammate with change requests, wait for completion, re-present results.
Optional integration — if superpowers plugin is installed, use
superpowers:verification-before-completionandsuperpowers:requesting-code-review. Otherwise, apply thorough self-verification.
reviewer skill if available (invoke /reviewer on changed files). Otherwise, self-review for spec compliance, naming/style consistency, and flag issues.**/md-to-code/**/references/completion-report-template.md, Read it, fill in content → write 04_完成報告.mdOptional integration — if superpowers plugin is installed, use
superpowers:finishing-a-development-branchfor branch closing workflow.
npx claudepluginhub agony1997/touchfish-skills --plugin md-to-codeUniversal project workflow guide that reads the existing codebase, keeps changes small, and explains technical decisions in plain language. Use when starting, modifying, debugging, or deploying software projects.
Generates, analyzes, and enhances CLAUDE.md files using best practices, modular architecture, and tech stack customization for new and existing projects.