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 agentmods add skills/curtisthe/three-pillars-plugin/tp-pr-iteratenpx skills add CurtisThe/three-pillars-plugin --skill tp-pr-iterategit clone --depth 1 https://github.com/CurtisThe/three-pillars-pluginWrote 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/curtisthe/three-pillars-plugin/tp-pr-iterate)<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-pr-iterate"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-pr-iterate.svg" alt="Measured on agentmods" 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.00085 | $0.08159 |
| Opus 5 | $0.00043 | $0.04079 |
| Sonnet 5 | $0.00017 | $0.01632 |
| Haiku 4.5 | $0.00009 | $0.00816 |
Grade A, and why
tp-pr-iterate scanned grade A with 1 finding 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 5d 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- **No `subprocess.run(["claude", ...])` in helpers.** Same rule, same How it starts
The opening of the file, as written. The whole thing — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tp-pr-iterate — PR-Iteration Loop Driver
A long-running loop over a single open PR. Each iteration polls for new
review comments, classifies them, defers conflicts to a human, calls
tp-pr-fix.run_round for the structural subset, and re-enters the wait.
Terminates on:
- Two-stable (the one success terminal) — in a single round both
review sources are quiet (
/code-reviewreturns[]AND no newstructuralCopilot verdicts) AND every actionable thread has been replied-and-resolved, verified against GitHub: a freshlist_review_threads(pr_url)shows zero unresolved Copilot / code-review threads. Only then is the PR human-ready. A classifier-flip (nostructuralverdicts this round) is a necessary precondition, never sufficient on its own — flipping on a stale snapshot while threads sit unresolved is the exact failure that makes a PR look "stable" when it isn't. - Idle timeout (yield to human) — no new comments for 30 minutes AND the
prior round was not
structural-present. This is a time-based yield, not a verified-stable claim:_poll_stepdoes NOT run the ground-truth zero-unresolved re-fetch (only two-stable does), so the terminal carries the[idle-timeout]transition note and leavestermination_reasonunset — consumers must treat onlytermination_reason="two-stable"as reviewed-stable. - Mid-loop human push (yield to human) — a non-
[tp-pr-fix iter-commit appeared on the branch sincelast_loop_sha. - Caps — iteration count exceeded (
max_iterations, default 8) or wall-clock budget exhausted (max_wall_clock, default 4h). - Convergence failure — cumulative diff has grown past 3× the
loop-open baseline, OR three consecutive rounds returned
structural-present. - All-conflicting deferral — every comment in a round had an
overlapping
line_rangewith another, so the loop couldn't proceed.
Arguments
{design}— kebab-case design name, validated perskills/_shared/validate-name.md. Resolves the worktree on branchtp/{design}and the design directory.--max-iterations N— round cap (default 8). Triggerscap-exhausted.--max-wall-clock <duration>— total budget (default 4h). Triggerscap-exhausted.--dry-run— fetch + classify + log what the loop would do, but do NOT invoketp-pr-fix.run_round. Use this to verify classifier output on a real PR before letting the loop write commits.--dispose-only— callsthread_dispose.dispose_threadsonce and exits; no iteration, no fix dispatch, no backoff/poll loop. Use this to reply-and-resolve all open review threads out-of-band (e.g. after a manual head-SHA bump or when threads arrive outside a loop run). This is a flag, NOT a new skill. See the--dispose-only modesection below.
What ships with it
36 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.
- eval/comments.jsonl 52 KB
- eval/run_eval.py 7.5 KB runs code
- proof-of-review.md 11 KB
- schemas/classified-comment.v1.json 681 B
- schemas/iterate-state.v1.json 2.9 KB
- schemas/normalized-finding.v1.json 1.1 KB
- scripts/classifier_judge.py 8.0 KB runs code
- scripts/converge_cli.py 3.0 KB runs code
- scripts/converge.py 16 KB runs code
- scripts/loop_driver.py 55 KB runs code
- scripts/review_merge.py 22 KB runs code
- scripts/review_proof.py 18 KB runs code
- scripts/run_round.py 16 KB runs code
- scripts/test_classifier_judge.py 3.7 KB runs code
- scripts/test_converge_docs_coherence.py 1.9 KB runs code
- scripts/test_converge_order.py 12 KB runs code
- scripts/test_converge_payload.py 5.6 KB runs code
- scripts/test_converge_verdict.py 7.0 KB runs code
- scripts/test_convergence_contract_docs.py 3.3 KB runs code
- scripts/test_convergence_gate_hermetic.py 8.4 KB runs code
- scripts/test_dispose_only.py 5.4 KB runs code
- scripts/test_eval_set.py 1.9 KB runs code
- scripts/test_loop_driver_proof_thread.py 8.8 KB runs code
- scripts/test_loop_driver_retry_counter.py 3.8 KB runs code
- scripts/test_loop_driver.py 145 KB runs code
- scripts/test_pr_iterate_skill_md.py 21 KB runs code
- scripts/test_review_merge.py 27 KB runs code
- scripts/test_review_proof_detectors.py 17 KB runs code
- scripts/test_review_proof_digest.py 7.7 KB runs code
- scripts/test_review_proof.py 12 KB runs code
- scripts/test_run_round_absent_proof_hint.py 3.5 KB runs code
- scripts/test_run_round_cli_convergence_proof.py 7.8 KB runs code
- scripts/test_run_round_cli_proof.py 15 KB runs code
- scripts/test_run_round_cli.py 16 KB runs code
- scripts/test_run_round_proof_parity.py 5.3 KB runs code
- scripts/test_schemas.py 8.0 KB runs code
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.
- 5d ago First seen · 500 lines · 85 tokens per session scan A 46edfe54c8fb
tp-pr-iterate is a skill published in the GitHub repository CurtisThe/three-pillars-plugin (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 85 tokens to every session and 8,159 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…