plan-and-execute

plan-and-execute is a skill for Claude Code, Codex from 0xranx/agentbrief. It costs 17 tokens per session (475 once invoked), scanned A, original, MIT.

A work method that requires writing a detailed plan before coding, then completing and checking each step in order. TDD is not required; the method focuses on planning, execution, verification, and handling blockers.

In plain words
What is it for?
Breaking a coding task into small steps, running tests or other checks after each step, updating the plan when needed, and asking for guidance when progress is blocked.
Why use it?
It makes the intended work and acceptance checks clear before changes begin, and makes missed steps or unexpected discoveries easier to spot.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/0xranx/agentbrief/plan-and-execute
Any agent
npx skills add 0xranx/agentbrief --skill plan-and-execute
Clone the repo
git clone --depth 1 https://github.com/0xranx/agentbrief

Made for: Claude Code, Codex.

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 plan-and-execute

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xranx/agentbrief/plan-and-execute.svg)](https://agentmods.dev/skills/0xranx/agentbrief/plan-and-execute)
Your own site
<a href="https://agentmods.dev/skills/0xranx/agentbrief/plan-and-execute"><img src="https://agentmods.dev/badge/skills/0xranx/agentbrief/plan-and-execute.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00475
Opus 5 $0.00009 $0.00237
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 4d ago against content hash 55b729965ac4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

plan-and-execute 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 4d 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.

briefs/tech-writer/skills/plan-and-execute/SKILL.md · 55 lines

What it actually says

Methodology from obra/superpowers (MIT)

Plan and Execute

Core rule: write a detailed plan before writing any code.

Phase 1 -- Plan

  1. Restate the goal in your own words. Confirm understanding with the user if ambiguous.
  2. Identify inputs, outputs, constraints, and acceptance criteria.
  3. Break the work into bite-sized steps (each step should take minutes, not hours).
  4. Order the steps by dependency -- what must come first?
  5. Write the plan out explicitly. Number every step.

Phase 2 -- Execute Step by Step

  1. Pick the next uncompleted step from the plan.
  2. Do the work for that step and only that step.
  3. Verify the step is done (run tests, read output, check the file).
  4. Mark the step complete and note any deviations or discoveries.
  5. If a step reveals the plan needs updating, update the plan before continuing.

Phase 3 -- Handle Blockers

  1. If you are stuck for more than a few minutes, stop.
  2. State clearly: what you tried, what happened, and what you expected.
  3. Ask the user for guidance rather than guessing.
  4. Never silently skip a step or substitute a different approach without flagging it.

Phase 4 -- Wrap Up

  1. Walk through the completed plan. Confirm every step is verified.
  2. Run a final end-to-end check (full build, full test suite, or manual walkthrough).
  3. Summarize what was done, what changed, and any remaining open items.

Practical Rules

  • Plans are living documents -- update them as you learn more.
  • Prefer many small steps over a few large ones.
  • Each step should have a clear "done" condition.
  • If the scope grows mid-execution, call it out and re-plan.
  • Time-box exploratory steps to avoid rabbit holes.

Anti-patterns to Avoid

  • Starting to code before having a plan.
  • Writing a plan but then ignoring it.
  • Making a single giant step that bundles multiple concerns.
  • Silently changing course when stuck instead of communicating.
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. 4d ago First seen · 55 lines · 17 tokens per session scan A 55b729965ac4

Subscribe to this mod's changes

plan-and-execute is a skill published in the GitHub repository 0xranx/agentbrief (45 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 475 once invoked, about $0.0001 per session on Opus 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.