skills/writing-plans/SKILL.md
Use when turning a spec or idea into a concrete, executable implementation plan. Triggers: "write a plan", "plan this out", "create implementation plan", "how should we implement".
npx skillsauth add Wilder1222/superomni writing-plansInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Status protocol — end every session with one of: DONE (evidence provided) · DONE_WITH_CONCERNS (list each) · BLOCKED (state what blocks you) · NEEDS_CONTEXT (state what you need).
Auto-advance — pipeline: THINK → PLAN → REVIEW → BUILD → VERIFY → RELEASE. Only human gate is spec approval at THINK. On DONE at other stages, print [STAGE] DONE -> advancing to [NEXT-STAGE] and invoke the next skill. On any non-DONE status at any stage, STOP.
Output directory — all artifacts go in docs/superomni/<kind>/<kind>-[branch]-[session]-[date].md. See CLAUDE.md for the full directory map.
TACIT-DENSE — before high-tacit decisions, classify D1 (domain expertise) · D2 (user-facing UX) · D3 (team culture) · D4 (novel pattern). On hit, output TACIT-DENSE [D#]: [question] — My default: [recommendation]. See reference for actions.
Anti-sycophancy — take a position on every significant question. Name flaws directly. No filler ("that's interesting", "you might consider", "that could work").
Telemetry (local only) — at session end, log bin/analytics-log. Nothing leaves the machine.
See preamble-ref.md for detailed protocols.
Goal: Transform a spec or goal into a step-by-step, executable plan that an AI agent can follow.
A plan is only good if it can be executed without further clarification. Each step must specify: What to do, Where to do it, How to verify it.
Before writing, confirm:
Run: ls -la docs/superomni/ && ls docs/superomni/specs/spec-*.md 2>/dev/null | sort | tail -1
Apply the Completeness is Cheap principle. Before writing the plan, list:
What must be built (YAGNI filtered):
What is explicitly out of scope:
For UI work, also include:
planner-reviewer Agent (Planning Mode)Dispatch the planner-reviewer agent in planning mode with the following inputs:
docs/superomni/specs/spec-*.mdThe agent applies the 4-phase process (Understand → Decompose → Risk Assessment → Write Plan), outputs a PLAN COMPLETE block, and writes the plan file to docs/superomni/plans/plan-[branch]-[session]-[date].md. (Plan authoring was consolidated from the retired planner agent into planner-reviewer planning mode.)
mkdir -p docs/superomni/plans
_BRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-' || echo "unknown")
_SESSION="<auto-generate-kebab-case-from-context>" # e.g., auth-refactor, vibe-skill
_DATE=$(date +%Y%m%d)
_PLAN_FILE="docs/superomni/plans/plan-${_BRANCH}-${_SESSION}-${_DATE}.md"
After the agent returns its PLAN COMPLETE output, confirm:
docs/superomni/plans/If the agent reports BLOCKED or DONE_WITH_CONCERNS, surface the concern to the user before proceeding to Phase 4.
The plan must follow this structure:
# Implementation Plan: [Feature Name]
## Overview
[2-3 sentences: what we're building and why]
## Prerequisites
- [ ] [Thing that must exist/be done first]
## Steps
### Step 1: [Name]
**What:** [Precise description]
**Files:** [Exact files to create/modify]
**How:**
1. [Sub-step]
2. [Sub-step]
**Verification:** [How to confirm this step is done]
**Estimated effort:** [S=<30min, M=<2h, L=<1day]
### Step 2: [Name]
...
## Testing Strategy
- **Unit tests:** [What to test at unit level]
- **Integration tests:** [What to test at integration level]
- **Manual verification:** [What to manually check]
## Rollback Plan
[How to undo this if something goes wrong]
## Dependencies
[External services, APIs, or features this depends on]
## Design Direction (if UI work)
**Aesthetic:** [minimalist | maximalist | retro-futuristic | organic | other]
**Key visual elements:** [distinctive fonts, color palette, spatial rhythm]
**Reference files to load:** [subset of: typography, color, spatial, motion, interaction, responsive, ux-writing]
## Success Criteria
- [ ] [Measurable criterion 1]
- [ ] [Measurable criterion 2]
If any plan step contains a destructive operation, the immediately-prior step MUST invoke the careful skill with explicit blast-radius enumeration.
CI-enforced since v0.6.7 via
npm run check:plan-content(seelib/check-plan-content.js). Plans that violate this gate fail CI before reaching execution. The linter scans each plan's**How:**subsections, ignoring fenced code blocks, and verifies the immediately-preceding step (in document order) contains the keywordcareful.
Destructive patterns that trigger the gate:
git rm, git filter-branch, git reset --hard on remote-tracked branches, force-push to protected branchesrm -rf, mass mv (renaming N>3 files at once), directory deletegh repo delete, gh release delete, gh pr close --delete-branchDROP TABLE, DELETE FROM, TRUNCATEnpm publish / gh release create to a registry the user did not explicitly authorizeRequired structure when a destructive step exists:
### Step N: careful pre-destructive assessment
**What:** Enumerate every file/branch/resource the next step modifies or removes; identify rollback path; confirm no in-progress work would be lost.
**Files:** <list every target verbatim>
**How:** Invoke `careful` skill with the explicit blast-radius list.
**Verification:** User has approved the scope OR `careful` returns DONE with no concerns.
### Step N+1: <the destructive operation>
...
Worked example (v0.6.0 Step 14.5): v0.6.0's git rm agents/{ceo-advisor,...}.md step was caught reactively — a careful invocation discovered 78 references across 13 skills (incl. vibe's core routing table). Step 14.5 was inserted to remap all references BEFORE the deletes. With this gate, that careful step is upfront, not amended mid-execution.
Review the plan against each principle:
Run this inline check before reporting DONE (no sub-agent needed):
Spec coverage — does every Acceptance Criterion from the spec map to at least one step? → Unmapped criteria → add steps or note as out-of-scope
Placeholder scan — any TBD, "similar to Step N", undefined file references, vague descriptions? → Replace with specifics before proceeding
Executability spot-check — pick the 3 most complex steps. Can they be executed without further clarification? → "Implement authentication" (bad) vs "Add JWT middleware to src/middleware/auth.js" (good)
Type consistency — are effort estimates (S/M/L) consistent? No single step that's L when it should be split into 2×M?
If all 4 checks pass → report DONE and path to plan file. If any fail → fix in plan and re-check.
Report status: DONE — plan written and reviewed. Path: [plan file path]
development
Systematic, behavior-preserving code refactoring with safety gates. Dispatches refactoring-agent. Triggers: "refactor", "clean up code", "reduce tech debt", "extract method", "rename". NOT for reactive PR feedback — use code-review for that.
development
Meta-skill: create, install, list, and manage skills and agents within the superomni framework. Merges writing-skills + agent-management into one unified workflow. Triggers: "create skill", "write a skill", "install skill", "list skills", "create agent", "write an agent", "install agent", "list agents", "new skill", "new agent", "add skill", "add agent", "manage framework".
testing
Dependency security, license, and freshness audit. Dispatches dependency-auditor agent to scan all package managers. Triggers: "dependency audit", "check dependencies", "npm audit", "security scan", "check for vulnerabilities", "outdated packages", "license check".
development
Meta-skill: use when creating a new skill for the superomni framework. Guides through the process of designing and writing a well-structured skill. Triggers: "create a new skill", "write a skill for", "add a skill that".