agentleFS
Hariprashad-RavikumarHariprashad-Ravikumar/claude-plan-with-me-skill/SKILL.md

plan-with-me

Skill1 starsChanged 3 months agoMITView on GitHub

Turns plan mode into a structured, repo-grounded design conversation instead of a quick sketch. Use this skill whenever the user invokes /plan-with-me, or before starting any non-trivial feature, refactor, integration, or system-design task in a codebase — especially when the user says things like "plan this out", "design this properly", "think through the architecture first", "let's figure out the approach before coding", or wants a second opinion on how to build something. ALWAYS research the current (or a named target) repository thoroughly first, then ALWAYS ask several high-leverage clarifying questions at a system-design and senior-software-engineer level — each with multiple concrete, well-reasoned options and tradeoffs to pick from, never a bare yes/no — before writing a single line of the plan. Only drafts the implementation plan after the user answers, and always requests explicit approval before any implementation begins. Prefer this over jumping straight into an implementation plan whenever real architectural or design decisions are still open.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. ravid7000/skills★ 1same name
    2. SleepyStew/mstack★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    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:

    If a repo is already open (a git repository is the current working directory, or a folder is connected/attached), that's the default target …

    line 30
  2. Distinctive:

    If the user's prompt names a different repo, path, or project than what's currently open — a URL, a folder name, "in the backend repo," …

    line 31
  3. Distinctive:

    If there is no existing repo (a greenfield project), say so explicitly and skip to the research step's greenfield variant below rather than …

    line 32
  4. Distinctive:

    Use Glob/Grep to find the parts of the codebase relevant to the task, and Read the ones that matter — don't rely on file names alone.

    line 40
  5. Distinctive:

    Look at how analogous features are already implemented (an existing endpoint, an existing service, an existing data model) — that's usually …

    line 41
  6. Distinctive:

    Check for existing architectural decisions that constrain the design: the framework, the database, existing auth, existing message queues …

    line 42
  7. Distinctive:

    If the codebase is large, use a research subagent (Explore or general-purpose, if you have access to the Agent tool) to cover more ground …

    line 43
  8. Distinctive:

    Don't treat this as a box-ticking step.

    line 46
  9. Distinctive:

    Asking questions that don't need the codebase: If a question would be exactly the same regardless of what you found in research, you …

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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 With Me

Why this exists

Left to its own devices, plan mode tends to do one of two things: it either writes a plan straight away and lets architectural decisions get made implicitly by whichever approach occurred to it first, or it asks one or two shallow clarifying questions that aren't really grounded in the codebase ("should I add tests?"). Neither gives the user a real say in the decisions that are expensive to reverse later — the data model, the API shape, how failures are handled, what gets tested.

This skill exists to slow that moment down, deliberately, in a way a senior engineer would if a junior engineer said "I'm going to go build X." Before any plan gets written, it does the reading a good engineer does, and asks the questions a good engineer asks — as concrete, opinionated options, not open-ended prompts that push the design work back onto the user.

The five phases

Work through these in order and do not skip ahead. The whole point is that steps 3 and 4 happen before step 5 — asking questions after the plan is drafted defeats the purpose, because by then the plan has already baked in assumptions.

  1. Resolve scope
  2. Research
  3. Ask clarifying questions
  4. Wait for answers
  5. Draft the plan and request approval

Track these as a short task list if you have that capability available — it gives the user visibility into where in the process you are, which matters here because the process has a deliberate pause in the middle.

1. Resolve scope

Figure out which repository and which prompt you're actually planning against before doing anything else:

  • If a repo is already open (a git repository is the current working directory, or a folder is connected/attached), that's the default target — confirm this only if it's genuinely ambiguous.
  • If the user's prompt names a different repo, path, or project than what's currently open — a URL, a folder name, "in the backend repo," "the one on my desktop" — resolve that first. Don't silently research the wrong codebase.
  • If there is no existing repo (a greenfield project), say so explicitly and skip to the research step's greenfield variant below rather than pretending there's a codebase to read.

2. Research

This is what separates a grounded question from a generic one. Before you can ask a good system-design question, you need to know what already exists: the tech stack, the layers and modules involved, how similar things are already built in this codebase, what conventions are in play, what the test setup looks like, and what's already been decided by earlier code that a new design has to fit around.

Spend real effort here:

  • Use Glob/Grep to find the parts of the codebase relevant to the task, and Read the ones that matter — don't rely on file names alone.
  • Look at how analogous features are already implemented (an existing endpoint, an existing service, an existing data model) — that's usually the strongest signal for what "the best option" even means in this specific codebase, more than any general best practice.
  • Check for existing architectural decisions that constrain the design: the framework, the database, existing auth, existing message queues or job runners, existing conventions for error handling and testing.
  • If the codebase is large, use a research subagent (Explore or general-purpose, if you have access to the Agent tool) to cover more ground without filling your own context with file contents you won't need again.
  • Greenfield case: if there's no existing repo, or the task is unrelated to anything already there, say so and instead ground your questions in the constraints the user has given you (language/stack preferences mentioned, deployment target, scale expectations) plus general best practice for this kind of system.

Don't treat this as a box-ticking step. The quality of every question in phase 3 depends on what you actually learn here. A clarifying question that could have been asked without opening a single file is usually a sign you haven't researched enough yet.

3. Ask clarifying questions

Now think about the task the way a senior engineer reviewing a design doc would: where are the decisions that are genuinely still open, expensive to reverse, and not already dictated by the codebase or the user's prompt? Those are the questions worth asking. Skip anything the research already answered, and skip anything the user already specified.

How many questions: scale this to the task. A small, well-scoped change might only have two or three real forks in the road. A new subsystem or a cross-cutting refactor might have six or more. Don't pad the list to hit a number, and don't collapse a genuinely multi-decision task into one question — both make the exercise pointless. If you find yourself really struggling to come up with even one substantive question because the task is that narrow, it's fine to ask fewer — but default to assuming a task brought to this skill has real decisions in it, since that's when someone reaches for a planning tool in the first place.

What makes a question good here, as opposed to a generic clarifying question:

  • It's about a decision with real consequences — a different answer would meaningfully change the plan, the files touched, or how hard the thing is to change later.
  • It's phrased as a concrete fork, not "what do you want here?" Every question comes with multiple options, and those options are the actual best candidates a system architect and a software engineer would shortlist for this specific situation — not a generic textbook list. Ground them in what you found in research (e.g. "this codebase already uses X for Y elsewhere" is a legitimate option and often the right default).
  • Each option is described well enough that someone who isn't already sure of the tradeoffs can pick intelligently — a short phrase on what it costs or what it's good for, not just a label.
  • Where one option is clearly the best fit given what you learned in research (matches existing patterns, simplest thing that satisfies the actual requirement, etc.), mark it as the recommended one and say briefly why — but still give real alternatives, because the user may know constraints you don't.

See references/question-playbook.md for the categories worth checking against (architecture & structure, data model & storage, API/interface design, error handling & failure modes, testing & rollout, performance & scalability, security & auth, naming & compatibility) and example option sets for each, so the choices you offer read like they came from someone who's shipped this kind of thing before. Treat it as a checklist to consult, not a script — most tasks will only touch two or three of those categories, and a good question about this specific codebase beats a generic one from the playbook every time.

How to ask:

  • If you have the AskUserQuestion tool, use it — it renders as clickable multiple-choice, which is the whole point (fast to answer, options are visible side by side). Batch the questions from one round into as few calls as that tool allows rather than spacing them out one at a time. Give each option a short description with the tradeoff, and put "(Recommended)" on the option you'd pick if you had to.
  • If you don't have that tool (for example, running in an environment where clarifying questions have to happen in plain chat), ask as a clearly formatted list in your response: number the questions, letter the options under each, and give each option the same one-line tradeoff you'd have put in a description. Ask them all together in one message rather than trickling them out.
  • Either way, questions are multiple choice with real options — not "what should I do about error handling?" Someone should be able to answer by picking a letter or a label, with a free-text option there for whenever none of the offered choices fit.

4. Wait for answers

Do not draft any part of the plan until the user has responded. If you're using AskUserQuestion, this happens naturally — it blocks for a response. If you asked in plain chat, end your turn there and wait; don't keep going and write a plan based on guesses in the same response as the questions.

If the user answers only some questions, explicitly says "you decide," or gives a partial answer, that's fine — proceed using your best judgment on the rest, but say plainly in the plan which decisions you made unilaterally and why, so it's easy for them to object to just those.

5. Draft the plan and request approval

Now write the plan, incorporating the user's decisions explicitly rather than re-litigating them. A plan produced by this skill should read differently from a plan produced without it — it should be traceable back to specific answers, not just a list of steps.

Structure the plan as:

# Plan: <short task title>

## Context
What the task is, and the relevant parts of the repo (or greenfield constraints) this plan is grounded in.

## Key decisions
One line per question asked, its answer, and why it drives the approach — this is where the clarifying-questions phase pays off and should be visibly connected to what follows.

## Implementation steps
Concrete, ordered steps referencing real files/modules where you know them. Specific enough that "approve" means something.

## Testing & verification
How you'll know each part works, matching the rollout/testing decision from phase 3.

## Open risks / assumptions
Anything you decided unilaterally (see phase 4), and anything still uncertain even after research.

Requesting approval:

  • If you have EnterPlanMode/ExitPlanMode available and aren't already in plan mode, enter it before you start phase 2 (research), so the whole research-and-question process is naturally read-only until the user signs off — this also means you shouldn't create or edit implementation files during phases 1-4. When plan mode gives you a plan file to write to (check the system message you get after entering plan mode), write the finished plan there, then call ExitPlanMode — that tool reads the plan from the file itself rather than taking the text as a parameter, so don't skip writing the file first. Its built-in approval flow is exactly this skill's approval step; don't also separately ask "does this look right?" in your own text.
  • If those tools aren't available (for instance, the surrounding environment already has its own native plan mode engaged, or neither tool exists here), present the plan directly in your response and explicitly ask the user to approve it before you touch any files — something like "let me know if this looks right, or what you'd change, before I start implementing." Don't begin implementation in the same turn you present the plan.
  • Either way, implementation does not start until you have an actual approval signal, not just silence or a topic change.

Common ways this goes wrong

  • Asking questions that don't need the codebase. If a question would be exactly the same regardless of what you found in research, you probably didn't research enough, or it's not actually a question specific to this task.
  • Generic options. "Option A: do it well, Option B: do it poorly" isn't a real choice. Every option should be something a competent engineer would genuinely consider shipping.
  • Treating a trivial, fully-specified request the same as an open-ended one. If the user's prompt already pins down every real decision (exact library named, exact behavior specified, single obvious place to put the code), don't manufacture questions for their own sake — but this is the exception; most tasks that land here have real decisions left open, so default to looking for them.
  • Drafting the plan before the answers come back, or filling in guesses and calling it done — the pause between phase 3 and phase 5 is the entire value of this skill.
  • Skipping the approval step because the plan "seems obviously right" — the user asked for this workflow specifically so they get a checkpoint before any code changes.

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.