tp-pr-iterate

tp-pr-iterate is a skill for Claude Code from CurtisThe/three-pillars-plugin. It costs 85 tokens per session (10,804 once invoked), scanned A, original, Apache-2.0.

An automated loop that watches an open pull request for review comments, fixes eligible issues, and checks whether all actionable threads are resolved.

In plain words
What is it for?
It is for polling review sources, classifying feedback, dispatching fixes, replying to threads, and stopping when the review is verified stable.
Why use it?
It keeps review rounds moving and avoids declaring a pull request ready while comments or required fixes remain.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents.

Part of the three-pillars plugin — 39 skills, 58 agents shipped together

Good fit It is for polling review sources, classifying feedback, dispatching fixes, replying to threads, and stopping when the review is verified stable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curtisthe/three-pillars-plugin/tp-pr-iterate
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 CurtisThe/three-pillars-plugin --skill tp-pr-iterate
Clone the repo
git clone --depth 1 https://github.com/CurtisThe/three-pillars-plugin

Made for: Claude Code.

Or install three-pillars, the plugin that ships this one along with the rest of its 39 skills, 58 agents.

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 tp-pr-iterate

README.md
[![agentmods](https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-pr-iterate/github.svg)](https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-pr-iterate)
Your own site
<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/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 tp-pr-iterate

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,804 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00085 $0.10804
Opus 5.5 $0.00034 $0.04322
Sonnet 5.5 $0.00017 $0.02161
Haiku 4.5 $0.00009 $0.01080

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

Security

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 3d ago.

The scan reads SKILL.md. This mod also ships 51 executable files (eval/run_eval.py, scripts/angles.py, scripts/budget_clock.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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
skills/tp-pr-iterate/SKILL.md · 483 lines

How it starts

The opening of the file, as written. The whole thing — 483 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, and calls tp-pr-fix.run_round for the structural subset. Terminates on:

  • Two-stable (the one success terminal) — in a single round both review sources are quiet (/code-review returns [] AND no new structural Copilot verdicts) AND every actionable thread has been replied-and-resolved, verified against GitHub: a fresh list_review_threads(pr_url) shows zero unresolved Copilot / code-review threads. Only then is the PR human-ready. A classifier-flip (no structural verdicts 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_step does NOT run the ground-truth zero-unresolved re-fetch (only two-stable does), so the terminal carries the [idle-timeout] transition note and leaves termination_reason unset — consumers must treat only termination_reason="two-stable" as reviewed-stable.
  • Mid-loop human push (yield to human) — a non-[tp-pr-fix iter- commit appeared on the branch since last_loop_sha.
  • Round budget (round_budget.tick, every round, limits from pdw.guards.*) — budget-exhausted (blocking findings at round_cap, default 3; 2 under review-weight just-do-it; diff growth past 1.5× the round-1 baseline; test/code ratio; budget-error), cap-exhausted (wall clock, default 4h) or convergence-failure (three consecutive blocking review rounds).
  • All-conflicting deferral — every comment in a round had an overlapping line_range with another, so the loop couldn't proceed.

Read the full file on GitHub · 483 lines

Files

What ships with it

60 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.

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. 3d ago Changed · +6 lines 40cb982198bf
  2. 23d ago Changed · -23 lines a4aad41df2d2
  3. 1mo ago First seen · 500 lines · 85 tokens per session scan A 46edfe54c8fb

Subscribe to this mod's changes

tp-pr-iterate is a skill published in the GitHub repository CurtisThe/three-pillars-plugin (4 stars, last pushed 4d ago), licensed Apache-2.0. It adds 85 tokens to every session and 10,804 once invoked, about $0.0003 per session on Opus 5.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.