
write-plan
Create detailed, execution-ready implementation plans for complex or high-risk changes without coding. Use for ExecPlan-style work, multi-hour changes, significant refactors, migrations, resumable phase checklists, and work that should be handed off to execute-plan with clear validation.
- Installs
- 524
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/buiducnhat/cobrew --skill write-plan- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads write-plan automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Write Plan
Overview
Produce a complete, self-contained implementation plan that can be executed by execute-plan with minimal ambiguity, even after /clear or by another agent.
This skill is for planning only:
- Do not implement code
- Do not modify production files (except plan artifacts)
Workflow
Step 1: Contextualize
Load only the project context relevant to the requested change:
- If
docs/SUMMARY.mdexists, read it first. - Load only task-relevant detail docs.
- Prioritize
Code Standarddocs for implementation conventions. - If docs conflict with code or user intent, use the available input/question tool before broad changes.
Then inspect only the code areas relevant to the requested change.
Capture:
- User-visible purpose and expected outcome
- Existing patterns to follow
- Constraints and dependencies
- Files, modules, commands, and docs that orient the executor
- Risks, assumptions, and unknowns
Step 2: Initialize Plan Artifacts
- Create:
docs/.plans/YYMMDD-HHmm-<plan-slug>/ - Create:
SUMMARY.md- one phase file per implementation phase with naming convention
phase-XX-<name>.md
- Add
research/only if needed.
Rules:
- Use timestamp commands from the shared General Principles for folder and document timestamps.
Step 3: Clarify Requirements
Ask clarifying questions to resolve any ambiguity in the request. Focus on:
- Scope and boundaries
- Success criteria
- Constraints and non-goals
- Priorities and trade-offs
Rules:
- If requirements are already clear or come from the brainstorm context, no need the confirmation step.
- Use input/question tool for gathering answers, context.
- State assumptions explicitly in
SUMMARY.md. If multiple interpretations of the request exist, list them and ask — never pick silently.
Step 4: Define Strategy and Phases
Design a phased strategy that is safe and verifiable.
Each phase should have:
- A clear objective
- The complexity and risk level appropriate to the phase with values:
S,M,L,XL - Ordered tasks
- Verification commands
- Observable acceptance criteria and exit criteria
Granularity rule:
- Tasks should be small, concrete each.
- Prefer phases that can be resumed safely. Document idempotency, recovery notes, or rollback constraints for risky work.
Step 5: Research (Only if Needed)
Research is optional and should be proportional to uncertainty.
Preferred order:
- Existing project docs and code
- Existing skills and local references
- External references (only if available in the current environment)
If external research capability is unavailable, proceed with local evidence and explicitly list assumptions and open questions.
Document findings in:
docs/.plans/YYMMDD-HHmm-<plan-slug>/research/<topic>.md
Step 6: Write Plan artifacts
-
SUMMARY.mdformat Follow the template insidereferences/summary-template.md -
phase-XX-<name>.mdformat Follow the template insidereferences/phase-template.md -
Use skill
visualizeto visualize the plan, otherwise, skip visualization if--non-visualizeis present.
Step 7: Review and Refine
Before presenting the plan, verify:
- Paths are exact and consistent
- Phase order is logical
- Tasks are actionable (no vague steps)
- Verification is defined for each phase
- Acceptance criteria are observable
- Risks/assumptions are explicit
- Plan is executable without hidden context from the current chat
Then present for user review.
If multiple viable approaches exist, present options and ask for one of: (use input/question tool for selection)
- Confirm: approve current plan for execution
- Validate: refine via additional clarifying questions
Step 8: Handoff
End with:
Plan `<relative_path_to_plan>/SUMMARY.md` is ready.
If visualization was created, also include:
Visualization `<relative_path_to_plan>/visualize.html` is ready.
Rules
- Never automatically implement or execute the code change in the same session. Optional plan visualization is allowed only after user selection and only for the plan artifacts.
- Prefer explicit file paths and concrete commands
- Align with project standards and existing architecture
- Keep plans self-contained, deterministic, and resumable. A fresh agent should be able to continue from the plan folder alone.
- Plan the minimum viable change: No speculative phases, no "just in case" abstractions, no flexibility that wasn't requested. If a plan can be 3 phases instead of 6, make it 3. Every task should trace directly to a stated requirement.
- Write artifacts in language same with the current session.
FAQ
What does the write-plan skill do?
Create detailed, execution-ready implementation plans for complex or high-risk changes without coding. Use for ExecPlan-style work, multi-hour changes, significant refactors, migrations, resumable phase checklists, and work that should be handed off to execute-plan with clear validation.
How do I install write-plan?
Run npx skills add https://github.com/buiducnhat/cobrew --skill write-plan in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/write-plan/ (personal) or .claude/skills/write-plan/ (project).
Which AI agents can use write-plan?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is write-plan safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains write-plan?
It is published by buiducnhat in buiducnhat/cobrew. It has 524 recorded installs.
More from buiducnhat/cobrew
brainstorm
buiducnhat/cobrew
Collaborative discovery and design framing for ambiguous or high-risk work. Use when requirements are unclear, multiple approaches are possible, or you need to turn an idea into a validated design brief before planning or coding.
execute-plan
buiducnhat/cobrew
Execute an approved implementation plan exactly and safely. Use for ExecPlan-style plan execution, resumable phase checklists, multi-hour implementation work, migrations, significant refactors, and plans that require verification checkpoints, status tracking, and final reporting.
docs
buiducnhat/cobrew
Create or refresh project documentation in docs/. Use when a project needs docs initialized or existing docs synced to the current codebase.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.