repository-pr-recovery

repository-pr-recovery is a skill for Claude Code from rjmurillo/ai-agents. It costs 34 tokens per session (1,770 once invoked), scanned A, original, MIT.

A recovery workflow for blocked GitHub pull requests, missing required checks, and cancelled baseline runs. It first identifies the blocker and responsible cause before selecting the smallest allowed recovery action.

In plain words
What is it for?
Use it to diagnose and recover an ai-agents pull request, inspect review threads and linked causes, and choose an authorized next step.
Why use it?
A red check or stalled pull request can have different causes, such as a failed job, missing report, or configuration problem. Acting before reading the full discussion can fix the wrong thing.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the project-toolkit plugin — 125 skills, 25 commands, 33 agents, 5 hooks shipped together

Good fit Use it to diagnose and recover an ai-agents pull request, inspect review threads and linked causes, and choose an authorized next step.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rjmurillo/ai-agents
Claude Code
/plugin install project-toolkit

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 125 skills, 25 commands, 33 agents, 5 hooks.

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 repository-pr-recovery

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/repository-pr-recovery"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/repository-pr-recovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,770 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.00034 $0.01770
Opus 5.5 $0.00014 $0.00708
Sonnet 5.5 $0.00007 $0.00354
Haiku 4.5 $0.00003 $0.00177

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

Security

Grade A, and why

repository-pr-recovery 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 3d 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.

.claude/skills/repository-pr-recovery/SKILL.md · 156 lines

How it starts

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

Repository PR recovery

Requires the rjmurillo/ai-agents checkout and its contributor-only sibling skills.

Use this shortcut to select the smallest legitimate recovery action. Inputs: PR number, requested outcome, and authority to diagnose or change. Apply the common execution contract. Reuse github, reviewer-findings, and pr-comment-responder only when their branch applies.

Triggers

  • recover a blocked ai-agents PR
  • attribute an ai-agents red check
  • required check never reports

Process

Phase 1: Identify the blocker before choosing a fix

Select GitHub transport through github. Set PR_NUMBER from the supplied PR, never a remembered result. For an available script transport, bind its installed root once:

GITHUB_SCRIPTS="${COPILOT_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.claude}}/skills/github/scripts"
python3 "$GITHUB_SCRIPTS/pr/why_pr_blocked.py" --owner rjmurillo --repo ai-agents --pull-request "$PR_NUMBER" --output-format json

Read the complete selected discussion and inline threads before acting on findings. Use get_pr_context.py, get_pr_review_threads.py, and linked causal items. Stop broad discovery once the blocker and responsible surface are identified.

Keep missing, queued, pending, failing, and unresolved-thread states separate. The script allows recently absent checks a startup grace period. A successful probe means no diagnosed blocker; it does not certify every effective policy. See the producer.

For a failed check, copy its exact display name into CHECK_NAME. Set BASE_BRANCH from this PR's base branch.

python3 "$GITHUB_SCRIPTS/pr/triage_red_check.py" --owner rjmurillo --repo ai-agents --pull-request "$PR_NUMBER" --branch "$BASE_BRANCH" --check-name "$CHECK_NAME" --output-format json

Read Data.Verdict, evidence URL, run identity, and ambiguity fields together. Exit codes alone cannot distinguish the three non-evidence verdicts.

Read the full file on GitHub · 156 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. 3d ago First seen · 156 lines · 34 tokens per session scan A 0133bba05003

Subscribe to this mod's changes

repository-pr-recovery is a skill published in the GitHub repository rjmurillo/ai-agents (48 stars, last pushed today), licensed MIT. It adds 34 tokens to every session and 1,770 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-10-15.

Related

Other skills, from other repositories

github-pr-workflow

Prepare a GitHub pull request from a feature branch — branch hygiene, commit shape, title/body, verification notes, screenshots for UI work, and replies to review comments.

paperclipai/paperclip · 39 tokens

github-automation

GitHub workflow automation, PR management, issue tracking, and code review coordination. Integrates with GitHub Actions and repository management. Use when: PR creation, code review, issue management, release automation, workflow setup. Skip when: local-only changes, non-GitHub repositories.

ruvnet/ruflo · 61 tokens

babysit

Watch an open PR — fix failing CI, handle the straightforward review comments, and drive it to a mergeable state. Claude Code analog of Cursor's built-in /babysit. Use after opening a PR when the user wants the agent to shepherd it without re-prompting.

michael-denyer/pstack-claude · 61 tokens

make-pr-easy-to-review

Prepare PRs for review by cleaning noisy history, improving PR descriptions, and adding reviewer guidance without changing code behavior. Use for "make this easy to review", "tidy this PR", "clean up commits", or "annotate the diff".

michael-denyer/pstack-claude · 57 tokens

github-review-pr

Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents. Use this skill whenever the user wants to review a PR, asks for code review on a pull request, mentions "review PR", "check this PR", "look at pull request", or references a PR number or GitHub PR URL. Do NOT use for…

feiskyer/claude-code-settings · 90 tokens

review-this-branch

Run the nohuman review gate (fresh-session adversarial reviewer + tamper guard) over the current branch or a GitHub pull request, with no server, no database, and no onboarding, and relay the pass/fail checklist.

no-human-ai/no_human · 53 tokens