rescue

rescue is a command for Claude Code from skyfox675/agents-skills. It costs 49 tokens per session (1,164 once invoked), scanned A, original, MIT.

A command for investigating and unblocking a pull request (PR) or deployment environment. It diagnoses failing continuous integration and delivery checks, review threads, and merge conflicts before taking corrective action.

In plain words
What is it for?
Use it with a PR number to troubleshoot that PR, or with an environment such as staging or production to investigate the environment.
Why use it?
It helps identify why a PR or environment is stuck instead of treating every warning as a real blocker.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it with a PR number to troubleshoot that PR, or with an environment such as staging or production to investigate the environment.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/skyfox675/agents-skills/rescue
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.

Clone the repo
git clone --depth 1 https://github.com/skyfox675/agents-skills

Made for: Claude Code.

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 rescue

README.md
[![agentmods](https://agentmods.dev/badge/commands/skyfox675/agents-skills/rescue.svg)](https://agentmods.dev/commands/skyfox675/agents-skills/rescue)
Your own site
<a href="https://agentmods.dev/commands/skyfox675/agents-skills/rescue"><img src="https://agentmods.dev/badge/commands/skyfox675/agents-skills/rescue.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,164 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.00049 $0.01164
Opus 5 $0.00024 $0.00582
Sonnet 5 $0.00010 $0.00233
Haiku 4.5 $0.00005 $0.00116

Measured 7d ago against content hash 518c4e71fa65, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

rescue 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 7d 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/commands/rescue.md · 42 lines

How it starts

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

/rescue — unstick a PR or an environment

Operate in caveman mode (load the caveman skill) to conserve tokens. Keep gh commands, GraphQL, check/job names, and PR numbers byte-exact; compress only the narration. Any issue you file goes through the humanizer skill (see the issue-filing skill).

Arguments: $ARGUMENTS

Parse the single argument: a number (with or without #) is a PR rescue; anything else (dev, staging, prod, an ephemeral env name) is an environment rescue. No argument: survey owned open PRs and the integration branch for the most blocked thing and propose the target — don't guess silently.

The protocols live in the driving-prs-to-merge skill (PR lifecycle, CI triage ladder, thread etiquette, conflict recovery) and its CI-ownership rules — consult it before acting. Diagnosis precedes mutation: most "stuck" PRs are false signals that cost nothing to clear, and a wrong rescue burns CI runs and review attention.

PR rescue (/rescue <pr#>)

  1. Snapshot the PR: gh pr view <N> --json state,mergeStateStatus,autoMergeRequest,labels,headRefName + gh pr checks <N> + unresolved review threads via the GraphQL query in driving-prs-to-merge (--json reviewThreads can return empty — use raw GraphQL). If the PR is already merged or closed, stop and say so — fixes pushed to merged branches are orphaned (re-land via fresh branch if work is needed).

  2. Rule out false signals first, per the skill's catalog: stale cancelled-run shadow (a newer SUCCESS run for the same SHA), queued-not-broken (CLEAN + autoMerge=false → re-run gh pr merge <N> --auto; "already queued" is confirmation), silently-dropped auto-merge (re-arm, it's idempotent), green-but-stuck (almost always unresolved bot threads, not the queue).

  3. Failing checks: read the failing job's raw log via the API — summary and gate jobs only show the cascade, not the cause. Classify: transient/flake (does the same check pass on sibling PRs and the integration branch?) → one rerun before touching code; real failure → fix in the PR's existing worktree/branch, following the pre-push hygiene from dispatching-subagents (rebase first, reinstall deps, regenerate derived artifacts).

Read the full file on GitHub · 42 lines

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. 7d ago First seen · 42 lines · 49 tokens per session scan A 518c4e71fa65

Subscribe to this mod's changes

rescue is a command published in the GitHub repository skyfox675/agents-skills (10 stars, last pushed 7d ago), licensed MIT. It adds 49 tokens to every session and 1,164 once invoked, about $0.0002 per session on Opus 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-08-31.