agentleFS
wildanfadhwildanfadh/agent-plan-mode-skill/SKILL.md

agent-plan-mode

Skill1 starsChanged 6 months agoMITView on GitHub

Use this skill whenever the user asks for plan mode, planning mode, planning-first workflow, read-only analysis before implementation, or wants an agent/tool that lacks native plan mode to avoid making changes until a plan is approved. This skill is especially important when the user says phrases like "mode plan", "buat rencana dulu", "jangan edit dulu", "analisis dulu", "read-only dulu", "no changes yet", or asks to use an agent while preventing edits. It makes the agent inspect context safely, produce a clear execution plan, and wait for explicit user approval before modifying files, running write operations, committing, pushing, or changing system state.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. ZeroTokenClaw/agents-skills★ 1same 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

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. About 0 are common, 22 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈22

    Distinctive · estimate

    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:

    Use this skill to emulate plan mode for agents and tools that do not have a native planning-only state.

    line 8
  2. Distinctive:

    Treat the first phase as read-only.

    line 12
  3. Distinctive:

    Use this workflow when the user asks to:

    line 18
  4. Distinctive:

    use plan mode or planning mode

    line 20
  5. Distinctive:

    keep work read-only until approval

    line 23
  6. Distinctive:

    use an agent/tool that does not support native plan mode

    line 25
  7. Distinctive:

    Read files and directories.

    line 46
  8. Distinctive:

    Search file names and content.

    line 47
  9. Distinctive:

    Read logs, diagnostics, documentation, schemas, and local metadata.

    line 49
  10. Very specific:

    Run safe commands that only report information, such as git status, git diff, git log, php -l, npm test -- --help, composer show, or …

    line 50
  11. Distinctive:

    Use web or documentation lookup tools for research.

    line 52
  12. Distinctive:

    Prefer the smallest amount of inspection needed to make a good plan.

    line 54
  13. Distinctive:

    Do not change state while planning.

    line 58
  14. Distinctive:

    If a command might write files as a side effect, treat it as forbidden unless it has a reliable dry-run mode and you use that dry-run mode.

    line 70
  15. Distinctive:

    Call out any blocker or decision that materially changes the plan.

    line 79
  16. Distinctive:

    Ask for explicit approval before implementation.

    line 81
  17. Distinctive:

    If the user already supplied enough context, do not over-research.

    line 83
  18. Distinctive:

    Use this structure unless the user asks for a different format:

    line 87
  19. Distinctive:

    Use the user's language when possible.

    line 114
  20. Distinctive:

    Only leave planning mode after the user clearly approves implementation.

    line 118
  21. Distinctive:

    Follow the approved scope.

    line 136
  22. Distinctive:

    If new information invalidates the approved plan, pause and present the updated plan before continuing.

    line 138
  23. Distinctive:

    When delegating to another agent or tool that lacks plan mode, include explicit instructions in the delegated prompt:

    line 142

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Agent Plan Mode

Use this skill to emulate plan mode for agents and tools that do not have a native planning-only state. The goal is to let the assistant gather context and propose a safe plan without accidentally changing files, databases, services, repositories, or external systems.

Core Behavior

Treat the first phase as read-only. During this phase, your job is to understand the request, inspect the relevant context, identify risks, and produce a practical plan. Do not implement until the user explicitly approves execution.

This matters because users often ask for planning when they want control over scope, risk, cost, or approach. A premature edit breaks that trust even if the edit is technically correct.

When This Skill Is Active

Use this workflow when the user asks to:

  • use plan mode or planning mode
  • make a plan before implementation
  • analyze first and not edit yet
  • keep work read-only until approval
  • inspect an issue before changing code
  • use an agent/tool that does not support native plan mode
  • compare approaches before deciding
  • produce an implementation plan, migration plan, debugging plan, or rollout plan

Common trigger phrases include:

  • "mode plan"
  • "plan mode"
  • "buat rencana dulu"
  • "analisis dulu"
  • "jangan edit dulu"
  • "read-only dulu"
  • "no changes yet"
  • "don't implement yet"
  • "give me a plan first"
  • "pakai agent tapi jangan langsung ubah file"

Allowed During Planning

You may perform actions that only observe or analyze state:

  • Read files and directories.
  • Search file names and content.
  • Inspect repository structure and configuration.
  • Read logs, diagnostics, documentation, schemas, and local metadata.
  • Run safe commands that only report information, such as git status, git diff, git log, php -l, npm test -- --help, composer show, or framework-specific dry-run commands.
  • Query databases using read-only statements such as SELECT, DESCRIBE, SHOW CREATE TABLE, or metadata inspection, when database access is allowed by the project rules.
  • Use web or documentation lookup tools for research.

Prefer the smallest amount of inspection needed to make a good plan. Avoid broad scans if targeted reads are enough.

Forbidden During Planning

Do not change state while planning. Avoid these actions until the user approves execution:

  • Editing, creating, moving, renaming, or deleting files.
  • Using patch/edit/write tools.
  • Running formatters that rewrite files.
  • Installing, removing, or updating dependencies.
  • Running database writes such as CREATE, ALTER, INSERT, UPDATE, DELETE, DROP, migrations, seeders, or destructive maintenance commands.
  • Starting, stopping, recreating, or mutating containers, services, queues, daemons, cloud resources, or external integrations.
  • Changing environment variables, credentials, permissions, secrets, local config, git config, or system settings.
  • Staging, committing, amending, merging, rebasing, tagging, pushing, opening PRs, or changing branches.
  • Executing commands known to generate or modify files unless the user explicitly allowed that specific command.

If a command might write files as a side effect, treat it as forbidden unless it has a reliable dry-run mode and you use that dry-run mode.

Planning Workflow

Follow this sequence:

  1. Restate the goal in one sentence if the request is ambiguous.
  2. Inspect only the context needed to understand the task.
  3. Identify constraints from project instructions, user requirements, existing code patterns, and external systems.
  4. Call out any blocker or decision that materially changes the plan.
  5. Produce a concrete plan with files, commands, verification, risks, and rollback notes when relevant.
  6. Ask for explicit approval before implementation.

If the user already supplied enough context, do not over-research. A plan can be short when the task is small.

Output Format

Use this structure unless the user asks for a different format:

**Tujuan**
[One-sentence objective.]

**Konteks Yang Ditemukan**
- [Relevant facts discovered from read-only inspection.]

**Rencana Implementasi**
1. [Step.]
2. [Step.]
3. [Step.]

**File/Area Terdampak**
- `[path or area]`: [expected change or reason]

**Verifikasi**
- `[command or check]`: [what it proves]

**Risiko / Pertanyaan**
- [Risk, assumption, or question. Use "Tidak ada" if none.]

**Menunggu Persetujuan**
Saya belum akan mengubah file atau menjalankan operasi write sampai Anda menyetujui rencana ini.

Use the user's language when possible. For Indonesian projects or Indonesian prompts, write the plan in Bahasa Indonesia.

Approval Boundary

Only leave planning mode after the user clearly approves implementation. Examples of approval:

  • "lanjut"
  • "implementasikan"
  • "terapkan"
  • "execute"
  • "approved"
  • "go ahead"
  • "buat perubahannya"
  • "ok implement"

Questions, clarifications, or feedback on the plan are not approval. Revise the plan and keep read-only behavior until approval is clear.

After Approval

Once approved:

  • State briefly that you are switching from planning to implementation.
  • Follow the approved scope; do not expand beyond it without asking.
  • Respect project-specific rules, especially around database writes, secrets, destructive commands, tests, commits, and pushes.
  • If new information invalidates the approved plan, pause and present the updated plan before continuing.

Handling Tool-Specific Constraints

When delegating to another agent or tool that lacks plan mode, include explicit instructions in the delegated prompt:

You are operating in planning-only mode. Do not create, edit, delete, move, or modify files. Do not run write operations, dependency installs, migrations, commits, pushes, or destructive commands. You may only inspect and analyze. Return a concise implementation plan, affected files, verification steps, risks, and questions. Wait for explicit approval before implementation.

This reduces accidental writes by making the safety boundary visible to the downstream tool.

Examples

Example 1 User: "Pakai agent buat cek bug login ini, tapi mode plan dulu. Jangan edit file."

Response behavior: inspect auth-related files and logs read-only, then return a debugging and implementation plan. Do not patch code.

Example 2 User: "Tool ini tidak punya plan mode. Tolong buat rencana migrasi database tanpa eksekusi."

Response behavior: inspect schema and migration files, then propose migration steps and verification. Do not run write SQL or migrations.

Example 3 User: "Analisis dulu komponen checkout ini, nanti saya approve kalau sudah cocok."

Response behavior: read checkout code, identify likely changes, list affected files and tests, then wait for approval.

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.