agentleFS
Hvftpie13Hvftpie13/Flashmind_Gemini-3.8-Flash_Smart-agent/skills/plan-first/SKILL.md

plan-first

Skill39 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, 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

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

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the files you will touch and one or two similar existing features.

    line 12
  2. Distinctive:

    If a choice changes the result and cannot be inferred from the code (e.g.

    line 16
  3. Distinctive:

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

    line 30
  4. Distinctive:

    If a check fails, fix it before continuing.

    line 31
  5. Distinctive:

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

    line 32
  6. Distinctive:

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

    line 35
  7. Very specific:

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

    line 39

“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)

  • mem_context, then mem_search with the feature/module name — reuse past decisions and known pitfalls.
  • Read the files you will touch and one or two similar existing features. Copy their patterns.
  • Identify: entry point, data flow, where tests live, how the project is run.

2. Clarify only what blocks you

If a choice changes the result and cannot be inferred from the code (e.g. which database, breaking an API), 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 say what changed.

5. Stay in scope

  • Do not refactor, rename, or "improve" code the task did not ask for.
  • Match the existing style, naming, and libraries. Do not add a dependency if the project already has one that does the job.

6. Finish

  • Run the 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, 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.