02-plan

02-plan is a skill for Claude Code, Codex from tony/skills. It costs 27 tokens per session (1,821 once invoked), scanned A, original, MIT.

A planning step that turns measured pytest speedup ideas into an ordered list of proposed commits. Pytest is a Python tool for running tests.

In plain words
What is it for?
Use it after benchmarking to rank safe test-suite improvements, apply limits, and produce a commit-by-commit plan.
Why use it?
It prevents untested guesses from becoming code changes and makes the optimization work reviewable before editing the test suite.

Skill for Claude CodeCodex

Written for Claude Code and Codex: allowed-tools in frontmatter, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the pytest-optimizer plugin — 4 skills shipped together

Good fit Use it after benchmarking to rank safe test-suite improvements, apply limits, and produce a commit-by-commit plan.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tony/skills/02-plan
View source ↗ tony/skills
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.

Any agent
npx skills add tony/skills --skill 02-plan
Clone the repo
git clone --depth 1 https://github.com/tony/skills

Made for: Claude Code, Codex.

Or install pytest-optimizer, the plugin that ships this one along with the rest of its 4 skills.

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 02-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/tony/skills/02-plan/github.svg)](https://agentmods.dev/skills/tony/skills/02-plan)
Your own site
<a href="https://agentmods.dev/skills/tony/skills/02-plan"><img src="https://agentmods.dev/badge/skills/tony/skills/02-plan/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 02-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/tony/skills/02-plan"><img src="https://agentmods.dev/badge/skills/tony/skills/02-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,821 The whole file, excluding the scripts and references it only reads on demand.
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.00027 $0.01821
Opus 5.5 $0.00011 $0.00728
Sonnet 5.5 $0.00005 $0.00364
Haiku 4.5 $0.00003 $0.00182

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

Security

Grade A, and why

02-plan 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 7d 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.

plugins/pytest-optimizer/skills/02-plan/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

02-plan

Turn measured candidates into a reviewable commit plan. This phase writes only plan.json and state.json, and only after the user approves.

$ARGUMENTS may pass --max-commits=N to cap the plan, --min-score to raise the inclusion threshold, --force to recompute, and --memory-dir to override the memory location.

Arithmetic goes through ../../scripts/measure.py and the staleness check through ../../scripts/isolate.py (Python 3 standard library). Both paths resolve from this skill's own directory, not the project's working directory: resolve this file's directory, join each path, print the absolute paths once, and write those literal paths in each command below where <measure.py> and <isolate.py> appear.

When python3 is missing or older than 3.14, follow ../../references/python.md.

Step 1: Load and score

Resolve the memory directory by the lookup order in ../../references/memory-schema.md. If none exists or benchmarks.json is missing, stop with the halted-run shape in ../../references/output-contract.md and tell the user to run pytest-optimizer:01-benchmark first.

Read benchmarks.json, baseline.json and state.json. The evidence must still describe this checkout (a clean scan at this HEAD, and every validated entry carrying the scan's env_token, a patch_sha256 and this HEAD as its base_head):

$ python3 <isolate.py> stale \
    --memory-dir <memory-dir> \
    --phase plan

On exit 1, stop with the halted-run shape and send the user to the phase its rerun names (pytest-optimizer: followed by it).

Score every validated candidate with ../../references/scoring-rubric.md: judge safety, effort, confidence and reversibility against the rubric anchors, then pass them with the entry's measured saving. The script derives impact itself, zero unless the entry's clears_noise is true, and returns the total and a dropped reason (exit 1 when a dimension is outside 0 to 1):

$ python3 <measure.py> score \
    --delta <median_delta> \
    --baseline <baseline median> \
    --clears-noise \
    --safety <0..1> \
    --effort <0..1> \
    --confidence <0..1> \
    --reversibility <0..1>

Read the full file on GitHub · 173 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago Changed · +3 lines e3d9556b9db9
  2. 1mo ago Changed · +48 lines 798b814645de
  3. 1mo ago Changed · +58 lines 0fc6d1998a41
  4. 3mo ago First seen · 64 lines · 27 tokens per session scan A e2cd5df8b870

Subscribe to this mod's changes

02-plan is a skill published in the GitHub repository tony/skills (0 stars, last pushed 5d ago), licensed MIT. It adds 27 tokens to every session and 1,821 once invoked, about $0.0001 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-09-03.

Related

02-plan compared with skills from other repositories

02-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
02-plantony/skillsSkill05d agoMITA27Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code