agentleFS
fvkmizelfvkmizel/soulkeeper/skills/plan-first/SKILL.md

plan-first

Skill0 starsChanged 17 days agoMITView on GitHub

Use for any coding task with more than about three steps or touching more than one file — new features, refactors, migrations, multi-file changes, or vague requests like "build X" or "add Y to the app". Read the code, check memory, write a short plan, then execute step by step with checks.

11 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check memory: mem_context, then mem_search with the feature/module name to reuse past decisions and avoid known pitfalls.

    line 11
  2. Distinctive:

    Read existing project architecture, rules (AGENTS.md, GEMINI.md), and similar implementations in the repository.

    line 12
  3. Distinctive:

    If a choice changes the result and cannot be inferred from the code, ask one short question.

    line 16
  4. Distinctive:

    Do step N → run its check → only then move to step N+1.

    line 29
  5. Distinctive:

    If a check fails, fix it before continuing.

    line 30
  6. Distinctive:

    If you discover the plan is wrong, stop, update the plan, and explain what changed.

    line 31
  7. Distinctive:

    Do not refactor, rename, or "improve" code the task did not ask for.

    line 34
  8. Very specific:

    Run full verification (see the verify-before-done skill).

    line 38

“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

Long tasks fail when you start editing before you understand the code. Plan briefly, then execute.

1. Load context (before writing any code)

  • Check memory: mem_context, then mem_search with the feature/module name to reuse past decisions and avoid known pitfalls.
  • Read existing project architecture, rules (AGENTS.md, GEMINI.md), and similar implementations in the repository.
  • Identify: entry point, data flow, test locations, and build commands.

2. Clarify only what blocks you

If a choice changes the result and cannot be inferred from the code, ask one short question. Otherwise, pick the option most consistent with the codebase and state it.

3. Write the plan (keep it short)

Goal: <one sentence>
Steps:
1. <small, verifiable change> — check: <how you will know it worked>
2. ...
Risks: <what could break>

Each step should be small enough to verify on its own. Prefer 3–7 steps.

4. Execute one step at a time

  • Do step N → run its check → only then move to step N+1.
  • If a check fails, fix it before continuing. Do not pile new changes on a broken state.
  • If you discover the plan is wrong, stop, update the plan, and explain what changed.

5. Stay in scope

  • Do not refactor, rename, or "improve" code the task did not ask for.
  • Match existing style and libraries. Do not add dependencies if existing ones suffice.

6. Finish

  • Run full verification (see the verify-before-done skill).
  • Save architecture/design decisions with mem_save (What / Why / Where / Lesson).
  • Report: what was done, what was verified, and what is left.

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.