ワンクリックで
technical-spec
Generate TECHNICAL_SPEC.md through guided Q&A. Use after /product-spec to define the technical architecture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Generate TECHNICAL_SPEC.md through guided Q&A. Use after /product-spec to define the technical architecture.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Generate EXECUTION_PLAN.md and scoped AGENTS.md files for a feature. Use after /feature-technical-spec to create the task breakdown.
Generate the greenfield execution plan plus root and scoped AGENTS.md files. Use after /technical-spec to create the phased task breakdown.
Guide discovery and discussion to determine how an AI coding agent can autonomously run and verify a specific user flow end to end. Use when the user asks what would be needed to test a flow, prove an app works, create an E2E/self-test harness, make agent verification repeatable, or evaluate whether an existing test setup lets the agent verify behavior. This skill is for shaping the verification approach before implementation: read the repo's product docs and existing verification contracts, identify the real user flow and channel under test, uncover missing controllable state or external dependencies, ask focused questions, and produce a concrete agent-runnable verification plan only after the flow is understood.
Exploratory conversation before /product-spec. Asks one question at a time, runs background research for open-source/off-the-shelf alternatives, and writes DISCOVERY_NOTES.md. Use when the user has an idea but hasn't scoped it yet.
Define feature requirements (problem, users, scope, acceptance criteria) through guided Q&A and write FEATURE_SPEC.md. Use when starting a new feature.
Define technical approach (architecture, integration points, data model) for a feature through guided Q&A and write FEATURE_TECHNICAL_SPEC.md. Use after /feature-spec.
SOC 職業分類に基づく
| name | technical-spec |
| description | Generate TECHNICAL_SPEC.md through guided Q&A. Use after /product-spec to define the technical architecture. |
| argument-hint | [--lean] |
| allowed-tools | Read, Write, Edit, AskUserQuestion, Grep, Glob, Bash, Agent |
Generate a technical specification document for the current project.
Copy this checklist and track progress:
Technical Spec Progress:
- [ ] Step 1: Directory guard
- [ ] Step 2: Project root confirmation
- [ ] Step 3: Plan status guard
- [ ] Step 4: Check prerequisites (plans/greenfield/PRODUCT_SPEC.md)
- [ ] Step 5: Check for existing plans/greenfield/TECHNICAL_SPEC.md
- [ ] Step 6: Conduct guided Q&A with user
- [ ] Step 7: Cross-verify against PRODUCT_SPEC.md
- [ ] Step 8: Update plans/PLAN_STATUS.md
- [ ] Step 9: Handle deferred decisions
- [ ] Step 10: Review and refine with user
- [ ] Step 11: Suggest next step (/generate-plan)
--lean)When --lean is passed:
run_in_background: true). Continue the Q&A without waiting. When results arrive, only interrupt the flow if a finding would materially change a recommendation (e.g., a critical production issue with a chosen technology, a clearly superior alternative, a deprecation or breaking change). Skip routine benchmark comparisons and ecosystem summaries./verify-spec, /codex-consult, or /criteria-audit. Report each as LEAN_SKIP in the output..toolkit-marker exists in the current working directory → STOP:
"You're in the toolkit repo. Run this from your project directory instead:
cd ~/Projects/your-project && /technical-spec"Before generating any files, confirm the output location with the user:
Will write TECHNICAL_SPEC.md to: {absolute path of cwd}/plans/greenfield/
Continue? (Yes / Change directory)
If the user says "Change directory", ask for the correct path and instruct them to cd there first.
Read ~/.claude/skills/shared/PLAN_STATUS.md before writing files.
plans/ exists.plans/PLAN_STATUS.md if it exists.Current plan with Current status: active,
ask whether the greenfield plan supersedes it, should remain non-current, or
should abort.plans/PLAN_STATUS.md is missing, create it after writing the technical spec.plans/archive/YYYYMMDD-HHMMSS-greenfield/ before
overwriting downstream files.plans/greenfield/PRODUCT_SPEC.md first.PRODUCT_SPEC.md in the current directory.plans/greenfield/PRODUCT_SPEC.md before continuing so the project adopts the canonical layout./product-spec first."Before asking any questions, ensure plans/greenfield/ exists, then check whether
plans/greenfield/TECHNICAL_SPEC.md already exists.
plans/archive/YYYYMMDD-HHMMSS-greenfield/, mark the archived snapshot as superseded when practical, then write the new document to plans/greenfield/TECHNICAL_SPEC.mdplans/greenfield/TECHNICAL_SPEC.md with the new documentRead .claude/skills/technical-spec/PROMPT.md and follow its instructions exactly:
plans/greenfield/PRODUCT_SPEC.md as inputWrite the completed specification to plans/greenfield/TECHNICAL_SPEC.md.
Update plans/PLAN_STATUS.md so:
Current plan is plans/greenfield/Current type is greenfieldCurrent stage is technical-specCurrent status is active--lean)These gates MUST execute before you produce the "Next Step" output. The output template requires results from each gate. Reporting SKIPPED without --lean is a skill violation — go back and run the gate.
After writing plans/greenfield/TECHNICAL_SPEC.md, run the spec-verification workflow:
.claude/skills/spec-verification/SKILL.md for the verification processPRODUCT_SPEC.md appear in TECHNICAL_SPEC.mdIMPORTANT: Do not proceed to Gate 2 until verification passes or user explicitly chooses to proceed with noted issues.
IMPORTANT: Capture deferred requirements interactively during the Q&A process, not after.
During the Q&A, watch for signals that the user is deferring a technical decision:
When you detect a deferral signal, immediately use AskUserQuestion:
Question: "Would you like to save this to your deferred requirements?"
Header: "Defer?"
Options:
- "Yes, capture it" — I'll ask a few quick questions to document it
- "No, skip" — Don't record this
If user selects "Yes, capture it":
Ask these clarifying questions:
What's being deferred? "In one sentence, what's the technical decision or feature?" (Pre-fill with your understanding from context)
Why defer it? Options: "Premature optimization" / "Over-engineering for MVP" / "Needs more research" / "V2 feature" / "Other"
Notes for later? "Any technical context that will help when revisiting this?" (Optional — user can skip)
After collecting answers, append to DEFERRED.md right away.
If this is the first technical spec entry, add a new section:
## From plans/greenfield/TECHNICAL_SPEC.md ({date})
| Requirement | Reason | Notes |
|-------------|--------|-------|
| {user's answer} | {selected reason} | {notes or "—"} |
If section exists, append row:
| {user's answer} | {selected reason} | {notes or "—"} |
After capturing (or skipping), continue the spec Q&A where you left off.
After verification passes, run cross-model review if Codex CLI is available:
codex --version/codex-consult with upstream contextConsultation invocation:
/codex-consult --upstream plans/greenfield/PRODUCT_SPEC.md --research "{detected technologies}" plans/greenfield/TECHNICAL_SPEC.md
If Codex finds issues:
If Codex CLI is not installed or not authenticated: Report UNAVAILABLE (not SKIPPED — the distinction matters).
| Situation | Action |
|---|---|
PRODUCT_SPEC.md not found in plans/greenfield/ or project root | Stop and report "Run /product-spec first" |
PROMPT.md not found at .claude/skills/technical-spec/PROMPT.md | Stop and report "Skill asset missing — reinstall toolkit or run /setup" |
| DEFERRED.md write fails (permissions or disk) | Output deferred items to terminal, warn user, continue with spec generation |
| Codex CLI invocation fails or times out | Log the error, skip cross-model review, proceed to Next Step |
Pre-condition: All gates above have completed, or --lean was explicitly passed. If you have not run them, STOP and run them now. Reporting SKIPPED without --lean is a skill violation.
When complete, inform the user:
TECHNICAL_SPEC.md created and verified at ./plans/greenfield/TECHNICAL_SPEC.md
Verification: PASSED | PASSED WITH NOTES | NEEDS REVIEW | LEAN_SKIP
Cross-Model Review: PASSED | PASSED WITH NOTES | UNAVAILABLE | LEAN_SKIP
Deferred Requirements: {count} items captured to DEFERRED.md
Next: Run /generate-plan