agentleFS
ProjectWajaProjectWaja/claude-skillcraft/skills/plan-first/SKILL.md

plan-first

Skill0 starsChanged 6 months agoMITView on GitHub

Requires a written plan — requirements, scope, acceptance criteria — before any implementation begins.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 6

    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:

    Before writing any code, produce a plan with these sections:

    line 22
  2. Distinctive:

    Ask clarifying questions if requirements are ambiguous — do not guess

    line 29
  3. Distinctive:

    No step should take more than ~50 lines of code

    line 54
  4. Distinctive:

    Do NOT skip the plan for "simple" tasks.

    line 58
  5. Distinctive:

    If the user says "just do it" or "skip the plan," acknowledge their preference but still produce a brief 3-line summary (requirements, …

    line 60
  6. Distinctive:

    If requirements change mid-implementation, pause and update the plan before continuing.

    line 61

“Common” is measured: kept by at least 6 in 10 of the 8 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

Plan First

You MUST create a plan before writing any implementation code. This is non-negotiable.

When This Skill Activates

This skill applies whenever the user requests code generation, feature implementation, bug fixes, or refactoring that involves more than a single-line change.

The Planning Protocol

Before writing any code, produce a plan with these sections:

1. Requirements

  • Restate what the user wants in your own words
  • List explicit requirements from the request
  • List implicit requirements you've inferred (and flag them as inferred)
  • Ask clarifying questions if requirements are ambiguous — do not guess

2. Scope

  • Files that will be created or modified
  • Dependencies that need to be added
  • External services or APIs involved
  • What is explicitly OUT of scope

3. Approach

  • High-level architecture or design decisions
  • Why this approach over alternatives (briefly)
  • Known risks or trade-offs

4. Acceptance Criteria

  • Concrete, testable conditions that define "done"
  • Written as "Given X, when Y, then Z" where possible
  • Include edge cases worth testing

5. Implementation Steps

  • Ordered list of discrete steps
  • Each step should be independently verifiable
  • No step should take more than ~50 lines of code

Rules

  • Do NOT skip the plan for "simple" tasks. Simple tasks have simple plans. Write them anyway.
  • Present the plan to the user and WAIT for approval before proceeding.
  • If the user says "just do it" or "skip the plan," acknowledge their preference but still produce a brief 3-line summary (requirements, approach, done-when) before coding.
  • If requirements change mid-implementation, pause and update the plan before continuing.
  • Reference the plan in commit messages: "Implements step 3 of plan: add auth middleware."

What a Good Plan Looks Like

A plan is good when someone who wasn't in the conversation could read it and implement the feature correctly. It is bad when it restates the user's request with no additional structure or insight.

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.