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.
npx skills add serbanghita/plan-critique-skills --skill executegit clone --depth 1 https://github.com/serbanghita/plan-critique-skillsWrote 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.
[](https://agentmods.dev/skills/serbanghita/plan-critique-skills/execute)<a href="https://agentmods.dev/skills/serbanghita/plan-critique-skills/execute"><img src="https://agentmods.dev/badge/skills/serbanghita/plan-critique-skills/execute/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.
<a href="https://agentmods.dev/skills/serbanghita/plan-critique-skills/execute"><img src="https://agentmods.dev/badge/skills/serbanghita/plan-critique-skills/execute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00010 | $0.03177 |
| Opus 5 | $0.00005 | $0.01588 |
| Sonnet 5 | $0.00002 | $0.00635 |
| Haiku 4.5 | $0.00001 | $0.00318 |
Grade A, and why
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 2d 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.
This is a copy
97% identical to plan-execute — 30 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are executing the user's plan that has been iteratively refined.
Fixed rules:
Read the working agreement at working-agreement.md before step 1 and follow it for
the whole run. If that path does not resolve, look for working-agreement.md in the project root, then in
.claude/. If it cannot be found anywhere, tell the user it is missing and apply the rules listed below.
These rules bind this phase and override any step below that conflicts with them:
- Never report a step as done, fixed or working until you have run the tests and shown the output. A step whose tests were not run is reported as unverified, never as COMPLETED.
- Where the project has test infrastructure, write the test for a step first, confirm it fails, then implement until it passes. Never modify an existing test to make it pass. Where there is no test infrastructure, say so at step 12 and continue without inventing one.
- Prove claims with evidence: command output, a
file:linereference, or a diff. Never assert a plausible but unverified result. - Re-read the working agreement,
CLAUDE.md, and the relevant plan sections before touching a new area of the codebase, especially in a long run. - Output complete file contents. Never truncate code with "... rest of code ..." placeholders.
- Never add yourself as a co-author and never append a
Co-Authored-ByorGenerated-withtrailer to a commit. Commit only when the user answers yes to the per-step commit prompt. Answeringyes-to-allauthorises the remaining steps of this run only, and nothing beyond it. - Be brief. No filler, no preamble. No emojis, no em dashes in code, comments, docs or commit messages.
To do this, follow these steps precisely:
- Read
.claude/plan-critique-config.jsonand getplansFolderpath from settings. If the file doesn't exist orplansFolderis not set or is an empty string: Respond with "No plans folder configured. Run/plan:createfirst to set up." - Get the Claude Code process ID by running:
echo $PPID. Store this assessionPID. - Clean up stale sessions: Scan
[plansFolder]/.sessions/for files. For each file named with a PID, check if that process is still running viakill -0 [PID] 2>/dev/null. If the command fails (process not running), delete that session file. This is non-blocking cleanup. - Read the current session's plan from
[plansFolder]/.sessions/[sessionPID]if it exists. Store assessionPlan. - Scan
[plansFolder]/for subdirectories (each subdirectory is a plan). Excludearchived/and.sessions/folders and any files, only list plan directories. If no plan folders exist: Respond with "No plans found. Create one with/plan:create". - Select the plan to execute:
- If
sessionPlanexists and matches a plan folder, auto-select it. Inform the user: "Using current session plan: [sessionPlan]" - Else if only one plan exists, auto-select it and inform user.
- Otherwise, ask the user to select a plan from the list.
Example:
Available plans: 1. add-user-authentication 2. refactor-database-layer 3. implement-caching Which plan would you like to execute? [1-3]
- If
- Update the session file
[plansFolder]/.sessions/[sessionPID]with the selected plan slug (create if needed). - Check prerequisites:
- If
[plansFolder]/[selected-plan]/plan.mddoes not exist: Respond with "No plan.md found." - If
plan.mdis empty: Respond with "Plan file is empty. Run /plan:critique first."
- If
- Read
CLAUDE.mdfrom the project root if it exists. Hold its standards as context and ensure compliance during each execution step. If it does not exist, note this but do not block execution. - Read
[plansFolder]/[selected-plan]/critique.mdif it exists. Note the iteration number and summary. Inform the user: "Plan was critiqued (iteration N). Last critique summary: [brief]." Use the critique as supplementary context during execution: implementation hints, alternative approaches, and risk warnings from the critique are relevant when executing related steps. Do not treat the critique as authoritative since the user chose what to incorporate into plan.md. If critique.md does not exist, warn: "This plan has not been critiqued. Run/plan:critiquefirst, or confirm you want to proceed without review." Wait for user confirmation before continuing. - Check git status by running
git status.- If git repo and clean: inform user "Git available. Per-step commits will be offered after each step."
- If git repo and dirty: warn "Uncommitted changes detected. Recommend committing or stashing before execution to enable clean per-step rollback." Wait for user acknowledgement.
- If not a git repo: inform "Not a git repository. Per-step commits are not available." Store whether git is available for later use.
- Detect test infrastructure. Look for a test runner and existing tests: a
testscript inpackage.json,pytest.iniortox.ini,phpunit.xml, ago.modalongside_test.gofiles,Cargo.toml, atests/,test/or__tests__/directory, or aMakefiletarget namedtest.- If found, record the command that runs the suite and inform the user:
"Test suite detected:
[command]. Tests-first is binding for every step of this run." - If not found, inform the user: "No test infrastructure detected. Steps will be verified by diagnostics and diffs only, and results will be reported as unverified." Do not create a test harness the project does not already have. Store the test command and whether tests are available for later use.
- If found, record the command that runs the suite and inform the user:
"Test suite detected:
- Check for existing execution state. If
[plansFolder]/[selected-plan]/execution-state.jsonexists, read it and prompt: "Previous execution found at step [X] of [total]. Resume or restart?" Wait for user response before proceeding.- On resume: if git is available, check that the last committed step matches the state file
by reviewing recent commits with the
plan-execute:prefix. If they do not match, warn the user that the codebase may have diverged from the recorded state. Skip already-completed steps. - On restart: overwrite execution-log.md with a new header. Note the restart in the log: "Restarted execution (previous attempt reached step [X])."
- On resume: if git is available, check that the last committed step matches the state file
by reviewing recent commits with the
- Review supporting files in the
[plansFolder]/[selected-plan]/folder. Classify each file by type and inferred purpose. Present to the user alongside the step list: "Supporting files found: schema.sql (SQL migration), mockup.png (UI reference)." Let the user confirm or clarify how each file should be used during execution. - Parse the plan into discrete, executable steps using this ordering strategy:
- Independent tasks first: changes with no dependencies on other changes
- Small to large: within independent tasks, order from smallest to largest scope
- Dependent tasks after: once all independent tasks are ordered, add tasks that depend on them
- Same-level tiebreaker: for tasks at the same dependency level, order by logical grouping
What ships with it
2 files 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.
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.
- 2d ago Changed f9eb17eab2f0
- 10d ago First seen · 201 lines · 10 tokens per session scan A 2fdbe21f3272
execute is a skill published in the GitHub repository serbanghita/plan-critique-skills (13 stars, last pushed 3d ago), licensed MIT. It adds 10 tokens to every session and 3,177 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to plan-execute, differing in 30 lines, and is treated as a copy.
Other skills, from other repositories
review-responder
Use when receiving feedback on code you implemented, responding to reviewer comments, deciding which review suggestions to implement, or pushing back on incorrect review feedback.
pr-sweep
Use when you want to sweep all open pull requests across all repos, triage their status, run code reviews on unreviewed PRs, merge what's ready, fix quick blockers, and produce a full status report. Trigger when the user says "check my PRs", "close out open PRs", "what's the status of my PRs", "sweep my PRs", "PR…
rubber-ducky
Use when you've planned a non-trivial change and are about to implement it, finished a complex or multi-file piece of work, just wrote tests, or are stuck on repeated failures — and any time the user says "rubber duck this", "rubber ducky", "get a second opinion", "sanity-check my plan", "poke holes in this", "what am…
open-pr
Use when wrapping up a development task and getting a PR ready — runs local tests, creates a PR (if one doesn't exist) with a structured description template, conducts a code review via the review skill, and checks CI status with quick fixes. Trigger when the user says they're done with a feature, want to open a PR…
review
Use when user invokes /review to review code changes. Also triggers on "review my code", "check this PR", "look at my changes". Accepts a PR number (e.g. /review 123), a path filter (e.g. /review src/auth/), or no argument (reviews current branch vs base). Produces structured per-file review with severity labels…
code-reviewer
Use when reviewing pull requests, analyzing code quality, identifying issues, or generating review checklists. Covers TypeScript, JavaScript, Python, Go, Swift, and Kotlin.