ワンクリックで
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when completing tasks, implementing major features, or before merging to verify work meets requirements
Use when the user invokes /spec, says "create a spec", "write a spec", "let's build X", "I want to add a feature", or when starting any feature work — both exploratory and well-defined tasks
Use when executing implementation plans with independent tasks in the current session
Use when the user invokes /compound, says "capture learnings", "what did we learn", or when suggesting post-cycle knowledge capture after completing a development branch
SOC 職業分類に基づく
| name | writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. YAGNI. TDD. Frequent commits.
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Record stage entry:
Append to .claude/workflow-state.jsonl: {"stage":"plan","action":"entered","timestamp":"<ISO8601>"}
Enterprise context: Invoke fulcrum:enterprise-context for the plan phase (testing + git-workflow standards).
Context: This should be run in a dedicated worktree (created by /spec or using-git-worktrees skill).
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
Each step is one action (2-5 minutes):
Before writing any tasks, verify the required standards are documented and available. Do not proceed if either is missing.
CLAUDE.mdRead the project's CLAUDE.md. It must document:
If CLAUDE.md doesn't exist or doesn't document test patterns:
⚠ Cannot write plan:
CLAUDE.mdis missing test patterns (test command, file location, test structure). Add them toCLAUDE.mdbefore proceeding.
Stop. Do not continue.
fulcrum:enterprise-context must have been loaded for the plan phase (includes git-workflow.yaml). It provides commit_format.
If enterprise context was not loaded or commit_format is absent:
⚠ Cannot write plan: git-workflow standards are not available. Ensure
fulcrum:enterprise-contextran successfully for the plan phase.
Stop. Do not continue.
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use fulcrum:executing-plans to implement this plan task-by-task.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/new-file`
- Modify: `exact/path/to/existing-file:123-145`
- Test: `exact/path/to/test-file` ← location per CLAUDE.md
**Step 1: Write the failing test**
In `exact/path/to/test-file`, add:
[Complete test code following the test structure documented in CLAUDE.md]
**Step 2: Run test to verify it fails**
Run: `[test command from CLAUDE.md, scoped to this file/test]`
Expected: FAIL — "[specific error that confirms the test is wired correctly, not a syntax error]"
**Step 3: Write minimal implementation**
In `exact/path/to/new-file`, add:
[Complete implementation following the coding standards in CLAUDE.md and enterprise-context.
Only what makes this test pass — no speculative code.]
**Step 4: Run test to verify it passes**
Run: `[same command as Step 2]`
Expected: PASS
**Step 5: Commit**
```bash
git add exact/path/to/test-file exact/path/to/new-file
git commit -m "[commit message using commit_format from git-workflow.yaml]"
## Remember
- Exact file paths always — no generic placeholders
- Complete code in every step — not "add validation here" but the actual code
- Test command and structure come from `CLAUDE.md` — never infer from existing code
- Coding standards come from `CLAUDE.md` and enterprise-context — never infer from existing code
- Commit format comes from enterprise git-workflow — never invent one
- DRY, YAGNI, TDD, frequent commits
## Execution Handoff
After saving the plan, offer execution choice:
**Record stage completion:**
Append to `.claude/workflow-state.jsonl`: `{"stage":"plan","action":"completed","timestamp":"<ISO8601>"}`
**"Plan complete and saved to `docs/plans/<filename>.md`. Two execution options:**
**1. Subagent-Driven (this session)** - I dispatch fresh subagent per task, review between tasks, fast iteration
**2. Parallel Session (separate)** - Open new session with executing-plans, batch execution with checkpoints
**Which approach?"**
**If Subagent-Driven chosen:**
- **REQUIRED SUB-SKILL:** Use fulcrum:subagent-driven-development
- Stay in this session
- Fresh subagent per task + code review
**If Parallel Session chosen:**
- Guide them to open new session in worktree
- **REQUIRED SUB-SKILL:** New session uses fulcrum:executing-plans