do-plan-before-doing

do-plan-before-doing is a cursor rule for Cursor from FeatureFactory-io/mimir. It costs 372 tokens per session, scanned A, original, Apache-2.0.

A development rule that requires reading a feature specification and inspecting the existing code before writing a step-by-step implementation plan. The plan is reviewed and updated as work progresses.

In plain words
What is it for?
Use it when planning changes across models, APIs, services, views, tests, templates, or styles in an existing codebase.
Why use it?
It reduces mistakes caused by relying on incomplete documentation, missing existing behavior, or assumed dependencies and APIs.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit Use it when planning changes across models, APIs, services, views, tests, templates, or styles in an existing codebase.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/featurefactory-io/mimir/do-plan-before-doing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/FeatureFactory-io/mimir

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for do-plan-before-doing

README.md
[![agentmods](https://agentmods.dev/badge/rules/featurefactory-io/mimir/do-plan-before-doing/github.svg)](https://agentmods.dev/rules/featurefactory-io/mimir/do-plan-before-doing)
Your own site
<a href="https://agentmods.dev/rules/featurefactory-io/mimir/do-plan-before-doing"><img src="https://agentmods.dev/badge/rules/featurefactory-io/mimir/do-plan-before-doing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for do-plan-before-doing

Your own site · 80×15
<a href="https://agentmods.dev/rules/featurefactory-io/mimir/do-plan-before-doing"><img src="https://agentmods.dev/badge/rules/featurefactory-io/mimir/do-plan-before-doing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 372 This file is loaded in full into every session.
When invoked 372 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00372 $0.00372
Opus 5.5 $0.00149 $0.00149
Sonnet 5.5 $0.00074 $0.00074
Haiku 4.5 $0.00037 $0.00037

Measured 18d ago against content hash 5ff27d29edf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

do-plan-before-doing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/playbooks/rules/do-plan-before-doing.mdc · 24 lines

What it actually says

Rule: Plan Before Doing

Use this rule before any activity that will mutate code, playbook state, project artifacts, tickets, infrastructure, or an external system.

Procedure

  1. Read the activity guidance, required inputs, linked artifacts/rules, and relevant architecture/specification material in full. Inspect implementation bodies and live state; do not infer completeness from names, signatures, or generated files.
  2. Validate prerequisites and identify unknowns, human gates, side effects, rollback/retry behavior, and the evidence required for Done.
  3. If the ADE provides an enforced Plan mode, enter it. Otherwise create or update the activity's explicit execution plan in the location named by its guidance.
  4. The plan must name ordered steps, dependencies, read/write footprints, safe parallel groups, convergence checks, tests/validation, and approval points.
  5. Show the plan and obtain required human approval before mutation. Approval of a parent plan covers only side effects explicitly listed there.
  6. Execute against the approved plan. Update status and evidence after material steps; when reality invalidates an assumption, pause affected work, revise the plan, and renew approval where scope or side effects change.
  7. Do not invent ADE capabilities. If enforced planning, subagents, or background tasks are unavailable, preserve the same plan/dependency/convergence semantics serially.

Bounded exceptions

  • Read-only inspection may precede the plan when needed to make it accurate.
  • A deterministic scheduled AIN run may execute from the already approved Charter and Huginn Assessment Contract without new approval per run; changing the contract, variables, thresholds, gating, ticket target, or schedule still requires planning and approval.
  • Trivial status reads and idempotent retries that use the same approved inputs and side-effect key do not require a new plan.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +9 lines · +372 tokens per session 5ff27d29edf9
  2. 1mo ago First seen · 15 lines · 0 tokens per session scan A be80961c1b04

Subscribe to this mod's changes

do-plan-before-doing is a cursor rule published in the GitHub repository FeatureFactory-io/mimir (16 stars, last pushed 17d ago), licensed Apache-2.0. It adds 372 tokens to every session, about $0.0015 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.