pi-agents-config: Skill for Claude Code

.pi/agent/skills/iterate-pr/SKILL.md

iterate-pr is a skill for Claude Code, Codex from niclejeune/pi-agents-config. It costs 47 tokens per session (1,701 once invoked), scanned A, a copy of iterate-pr, MIT.

A workflow for repeatedly checking a pull request, fixing failed checks and review comments, and continuing until the project’s automated checks pass.

In plain words
What is it for?
Use it to address pull-request test or lint failures, respond to review feedback, categorize comments by urgency, and iterate toward a merge-ready change.
Why use it?
It removes the manual back-and-forth of inspecting CI failures, sorting review feedback, making fixes, and checking the results again.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is niclejeune/pi-agents-config's own configuration. It tells Claude Code and Codex how to work on pi-agents-config itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-agents-config configures →

Reuse

Borrowing it

Nothing to install: this file belongs to niclejeune/pi-agents-config. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/niclejeune/pi-agents-config/main/.pi/agent/skills/iterate-pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/niclejeune/pi-agents-config

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/niclejeune/pi-agents-config/iterate-pr/github.svg)](https://agentmods.dev/skills/niclejeune/pi-agents-config/iterate-pr)
Your own site
<a href="https://agentmods.dev/skills/niclejeune/pi-agents-config/iterate-pr"><img src="https://agentmods.dev/badge/skills/niclejeune/pi-agents-config/iterate-pr/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 iterate-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/niclejeune/pi-agents-config/iterate-pr"><img src="https://agentmods.dev/badge/skills/niclejeune/pi-agents-config/iterate-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,701 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 83% copy Near-identical to another mod 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.00047 $0.01701
Opus 5 $0.00023 $0.00851
Sonnet 5 $0.00009 $0.00340
Haiku 4.5 $0.00005 $0.00170

Measured 10d ago against content hash 760d98978de4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

iterate-pr 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 10d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/fetch_pr_checks.py, scripts/fetch_pr_feedback.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.

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.

Origin

This is a copy

83% identical to iterate-pr — 69 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.

.pi/agent/skills/iterate-pr/SKILL.md · 181 lines

How it starts

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

Iterate on PR Until CI Passes

Continuously iterate on the current branch until all CI checks pass and review feedback is addressed.

Requires: GitHub CLI (gh) authenticated, Python 3.9+, uv (for inline script deps).

Scripts are in the scripts/ directory relative to this skill file. Resolve paths against the skill directory.

Bundled Scripts

scripts/fetch_pr_checks.py

Fetches CI check status and extracts failure snippets from logs.

uv run scripts/fetch_pr_checks.py [--pr NUMBER]

Returns JSON:

{
  "pr": {"number": 123, "branch": "feat/foo"},
  "summary": {"total": 5, "passed": 3, "failed": 2, "pending": 0},
  "checks": [
    {"name": "tests", "status": "fail", "log_snippet": "...", "run_id": 123},
    {"name": "lint", "status": "pass"}
  ]
}

scripts/fetch_pr_feedback.py

Fetches and categorizes PR review feedback by priority.

uv run scripts/fetch_pr_feedback.py [--pr NUMBER]

Returns JSON with feedback categorized as:

  • high — Must address before merge (blocker, changes requested)
  • medium — Should address (standard feedback)
  • low — Optional (nit, style, suggestion)
  • bot — Informational automated comments (Codecov, Dependabot, etc.)
  • resolved — Already resolved threads

Review bot feedback (from CodeQL, Copilot, etc.) appears in high/medium/low with review_bot: true — it is NOT placed in the bot bucket.

Each feedback item may include:

  • thread_id — GraphQL node ID for inline review comments (used for replies)

Workflow

1. Identify PR

gh pr view --json number,url,headRefName

Stop if no PR exists for the current branch.

2. Gather Review Feedback

Run scripts/fetch_pr_feedback.py to get categorized feedback already posted on the PR.

3. Handle Feedback by Priority

Auto-fix (no prompt):

  • high — must address (blockers, security, changes requested)
  • medium — should address (standard feedback)

When fixing feedback:

  • Understand the root cause, not just the surface symptom
  • Check for similar issues in nearby code or related files
  • Fix all instances, not just the one mentioned

Read the full file on GitHub · 181 lines

Files

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.

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. 10d ago First seen · 181 lines · 47 tokens per session scan A 760d98978de4

Subscribe to this mod's changes

iterate-pr is a skill published in the GitHub repository niclejeune/pi-agents-config (1 stars, last pushed 4mo ago), licensed MIT. It adds 47 tokens to every session and 1,701 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 83% identical to iterate-pr, differing in 69 lines, and is treated as a copy.