agentleFS
Sagargupta16Sagargupta16/craftsmanship/skills/plan/SKILL.md

plan

Skill2 starsChanged 30 days agoMITView on GitHub

Use when implementing features spanning 3+ files, when requirements are unclear, or when structuring multi-step work. Covers when to plan vs just code, plan structure, interview-then-execute, and prototype-over-spec patterns.

184 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context-optimize, codex-system and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SireJeffSkill

    context-optimize

    Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 10 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 6 projects that use this

  • aboylabsSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 7 projects that use this

  • +3 more from gaebalai
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you need team alignment before coding

    line 34
  2. Distinctive:

    When requirements are unclear, have the agent interview you before coding.

    line 83
  3. Distinctive:

    Before executing a non-trivial plan, consider second-opinion review.

    line 123

“Common” is measured: kept by at least 6 in 10 of the 170 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Implementation Planning

Quick Reference

ApproachWhen to UseArtifact
Direct executionSmall change, <3 filesCode
Lightweight planMedium feature, 3-5 filesMental model + steps
Full written planLarge feature, 5+ filesPlan document
Interview-then-executeUnclear requirementsQ&A session, then plan
Prototype firstExploratory / uncertainWorking prototype

Decision Tree

How big is this change?
├── 1-2 files, well-defined → Just do it (no plan needed)
├── 3-5 files, clear scope → Lightweight plan in conversation
├── 5+ files or architectural → Full written plan
├── Requirements unclear → Interview first
└── Feasibility unknown → Prototype first

When to Plan Formally

  • Architectural changes (new auth system, database migration)
  • Multi-service changes (frontend + backend + database)
  • Changes where ordering matters (migrations before code)
  • When you need team alignment before coding
  • Unfamiliar codebases -- planning forces understanding first

What a Plan Should Contain

  1. Scope -- what's changing and what's not
  2. Steps -- numbered, ordered by dependency
  3. Files -- specific files to create or modify per step
  4. Verification -- how to test each step
  5. Risks -- what could go wrong, rollback strategy

Plan Template

## Plan: [Feature Name]

### Scope
- Adding: [new capabilities]
- Modifying: [existing files/behavior]
- Not touching: [explicitly out of scope]

### Steps

1. **[Step name]**
   - Create/modify: `path/to/file.ts`
   - Details: [what specifically to do]
   - Verify: [how to confirm this step works]

2. **[Step name]**
   - Depends on: Step 1
   - Create/modify: `path/to/file.ts`
   - Verify: [test command or check]

### Risks
- [Risk]: [Mitigation]

Executing Plans

1. Execute one step at a time
2. Verify after each step (run tests, check build)
3. Don't skip ahead -- dependencies matter
4. If a step fails, fix before proceeding
5. Update the plan if reality diverges from it

Interview-Then-Execute

When requirements are unclear, have the agent interview you before coding.

Pattern

1. "I need [vague feature]. Interview me to understand the requirements."
2. Agent asks 5-10 targeted clarifying questions
3. You answer, refining scope and constraints
4. Agent produces a plan based on answers
5. Review, adjust, then execute in a fresh session

Why Separate Sessions

  • Planning session fills context with requirements discussion
  • Execution session gets clean context with only the finalized plan
  • Produces better code than doing both in one session

Prototype Over Spec

For exploratory work where requirements are uncertain, build instead of specifying.

Pattern

Instead of: Write a 10-page PRD → review → implement → discover it's wrong
Do:         Build rough prototype → iterate 5-10 times → extract spec from what works

When to Prototype

  • New product ideas (you don't know what you want yet)
  • UI/UX exploration (seeing beats describing)
  • API design (try using it before specifying it)
  • Algorithm selection (benchmark, don't theorize)

When NOT to Prototype

  • Well-defined bug fixes (just fix it)
  • API contracts between teams (spec first)
  • Database migrations (plan carefully, prototyping is dangerous)
  • Security-critical code (spec and review first)

Plan Review

Before executing a non-trivial plan, consider second-opinion review.

Self-Review Checklist

  • Are steps in correct dependency order?
  • Does each step have clear verification?
  • Are there any missing steps?
  • Is scope creep controlled (not adding extras)?
  • Can each step be independently tested?

Second Opinion Pattern

1. Write the plan
2. Start a fresh session
3. "Review this plan as a staff engineer. What's missing, what could go wrong?"
4. Incorporate feedback
5. Execute in yet another session (clean context)

Anti-Patterns

Anti-PatternProblemDo Instead
Planning small changesOverhead exceeds benefitJust do it for <3 files
No plan for large changesMiss dependencies, ordering issuesPlan for 5+ files
Planning and executing in one sessionPlanning context pollutes executionSeparate sessions
Over-specifying plansPlans become rigid, resist realityHigh-level steps, details during execution
Ignoring plan during executionPlan was wasted effortFollow it or explicitly update it
No verification steps in planCan't tell if steps succeededEvery step needs a "verify" section

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.