AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
 
← Back to list

Skills Repo PR Handler

A maintainer-grade skill that takes a pull request in the Scenario skills repo through eight steps: branch switch, fork quarantine, discovery and script/dependency audits, review-thread handling, skill validation, and a final status report.

Dev & CodingAdvanced★ 4,019⑂ 360AI score 7/10Last updated: Nov 24, 2026

What it does

Invoke it as skills-pr-handle <PR number> and it drives one PR end to end:

  • Step 1 – Switch to the PR: checks isCrossRepository via gh pr view first. External forks are quarantined: fetched into a ref, read-only diffs, no code execution, no repo tooling, no pushes; live runs only in a locked-down container (--network none, --read-only, --cap-drop ALL).
  • Step 2 – Update from base: probes conflicts with git merge-tree without touching the worktree; merges (never rebases) only when required.
  • Step 3 – Discovery audit: judges only added/changed lines for search doing recommend's job or model ids asserted as constants; pre-existing issues are noted, not smuggled in.
  • Step 4 – Script audit: new scripts need tests under tests/<name>/; runtime deps need hashed locks, exact npm versions with npm ci --ignore-scripts, SHA-256-verified downloads, and no unversioned pip install/npx/uvx hints.
  • Steps 5–6 – Review comments: fetches every unresolved thread, classifies it (fix, already-fixed, question, disagree, decide, follow-up), fixes with the smallest safe change, and replies in thread. On forks, fixes ship as a REQUEST_CHANGES review with suggestion blocks.
  • Steps 7–8: runs /skills:validate per qualifying skill, then prints a compact status report.

Who it's for

  • Maintainers of the scenario-labs/skills repository
  • Open-source maintainers who want a reference model for safely triaging untrusted fork PRs
  • Teams building a supply-chain review checklist around dependency pinning

Note: the frontmatter sets internal: true and disable-model-invocation: true, and the steps rely on AGENTS.md, docs/expert-tools.md, docs/application-test.md and the pr-handle-comments skill inside this repo.

Examples

  1. skills-pr-handle 412 — same-repo PR: checkout, merge base, run pnpm test, resolve review feedback.
  2. skills-pr-handle 517 --resolve — also closes the threads it addressed.
  3. skills-pr-handle 523 --plan-only — fork PR handled in quarantine, with validation run in zero-cost planning mode.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/scenario-labs/skills/HEAD/.agents/skills/skills-pr-handle/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download ZIP
Install in Claude Code

Let Claude do it — paste this into Claude Code

Install the skill I found on AI Skill Mart.
Copy the .agents/skills/skills-pr-handle folder from the GitHub repo scenario-labs/skills into my ~/.claude/skills/skills-pr-handle/.
When it's done, tell me in one line what this skill can do.

Install with a command instead

git clone https://github.com/scenario-labs/skills.git && mkdir -p ~/.claude/skills && cp -r skills/.agents/skills/skills-pr-handle ~/.claude/skills/

⚠ This is a third-party skill. Check the source repository before installing.

  1. Open a terminal and clone the repo: git clone https://github.com/scenario-labs/skills.git
  2. Create the user skills folder: mkdir -p ~/.claude/skills
  3. Copy the skill: cp -r skills/.agents/skills/skills-pr-handle ~/.claude/skills/
  4. It calls into pr-handle-comments and skills-validate, so copy those too — or simply run Claude Code from inside the cloned repo.
  5. Install and authenticate GitHub CLI: gh auth login (required for PR and review APIs).
  6. Make sure Node.js and pnpm are available (pnpm test, scripts/lib/skills.mjs).
  7. Restart Claude Code and invoke it explicitly: skills-pr-handle <PR number> — automatic model invocation is disabled.