Cm planning

From tody-agent/codymaster · View interactive version

Cm planning is an AI agent skill from the GitHub repository tody-agent/codymaster. You MUST use this before any creative work or multi-step task. Explores intent, requirements, and design before implementation. Then documents the plan before coding.

How to use this skill

Skill file

Planning — Brainstorm + Write Plans

TL;DR

When to Use

Full Protocol

Phase A: Brainstorm

  1. Intent — Ask clarifying questions. Don't assume scope. Surface hidden requirements.
  2. Options — List 2-3 approaches with pros/cons. Recommend one with reasoning.
  3. Scope — Must-have vs nice-to-have; edges to handle vs explicitly skip.
  4. Design — Data flow, component boundaries, API contracts. UI work → cm-ui-preview.

Red flags (STOP): code before brainstorm; assuming intent; skipping scope; "it's simple."

Phase B: Write Plan (OpenSpec format)

Write to openspec/changes/<initiative-name>/:

design.md

# Design: [Goal]
## Context & Technical Approach
## Proposed Changes
### [Component/File]
## Verification

tasks.md

# Implementation Checklist
- [ ] 1.1 ...
- [ ] 1.2 ...
- [ ] Verification testing

Plan rules: small testable steps (15-30 min each), order by dependency, verification per step. No vague steps.

Step FINAL: Emit Handoff + Update Continuity

Write .cm/handoff/plan.json:

{
  "schema": "plan@1",
  "goal": "...",
  "decisions": ["..."],
  "first_tasks": ["1.1", "1.2", "1.3"],
  "openspec_path": "openspec/changes/<name>/"
}

Update .cm/CONTINUITY.md:

Token win: next session reads CONTINUITY (~200 tok) instead of full plan (2000+).

Integration

| After planning... | Use skill |

|---|---|

| Complex initiative | cm-brainstorm-idea (run BEFORE) |

| Need isolated workspace | cm-git-worktrees |

| Execute the plan | cm-execution |

| Tests first | cm-tdd |

| UI/frontend | cm-ui-preview |

Karpathy Discipline — Think Before Coding

Before writing the plan, surface what's uncertain instead of guessing:

Self-test: "Could a reviewer point to anything in this plan I'm guessing about?" If yes, mark it.

Anti-Patterns

The Bottom Line

Think before you build. Document before you code. Emit handoff so the next skill picks up cold.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.