SKILL.md
Plans and Specs
<objective> Plans are actionable work breakdowns stored as markdown with frontmatter. Specs are reusable requirements/documents. Plans link to specs via appendSpec. readPlan expands linked specs inline. </objective>
<rules> After createPlan: MUST call appendSpec for each REPO scope spec (sequential), then ask about FEATURE specs. Before major work: MUST use readPlan to get plan + all linked specs. appendSpec: MUST be sequential calls, never batch/parallel. Specs MUST exist before appendSpec. markPlanDone: MUST ensure plan fully completed first. </rules>
<procedure>
Planning Workflow
- Check if plan already exists - if exact match, execute instead of creating
- createPlan with name, idea, description (3-5 words), steps (min 5)
- For each REPO spec returned: appendSpec(planName, specName) - sequential
- Ask user: "Want a FEATURE spec for this plan?"
- If yes: createSpec, then appendSpec
- Before work: readPlan to get full context
Spec Creation
createSpec with name, scope (repo/feature), reusable content.
Completion
markPlanDone only after all work verified complete.
</procedure>
<errors>
Invalid name: Use [A-Za-z0-9-], max 3 words. Description error: 3-5 words, not overlapping name. Steps error: Need min 5 specific steps. Already exists: Use different name. Spec not found: Create spec first. Concurrent updates: appendSpec must be sequential.
</errors>