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.
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
isCrossRepositoryviagh pr viewfirst. 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-treewithout touching the worktree; merges (never rebases) only when required. - Step 3 – Discovery audit: judges only added/changed lines for
searchdoingrecommend'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 withnpm ci --ignore-scripts, SHA-256-verified downloads, and no unversionedpip install/npx/uvxhints. - 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
suggestionblocks. - Steps 7–8: runs
/skills:validateper 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: trueanddisable-model-invocation: true, and the steps rely on AGENTS.md, docs/expert-tools.md, docs/application-test.md and thepr-handle-commentsskill inside this repo.
Examples
skills-pr-handle 412— same-repo PR: checkout, merge base, runpnpm test, resolve review feedback.skills-pr-handle 517 --resolve— also closes the threads it addressed.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)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the 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.
- Open a terminal and clone the repo:
git clone https://github.com/scenario-labs/skills.git - Create the user skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r skills/.agents/skills/skills-pr-handle ~/.claude/skills/ - It calls into
pr-handle-commentsandskills-validate, so copy those too — or simply run Claude Code from inside the cloned repo. - Install and authenticate GitHub CLI:
gh auth login(required for PR and review APIs). - Make sure Node.js and pnpm are available (
pnpm test,scripts/lib/skills.mjs). - Restart Claude Code and invoke it explicitly:
skills-pr-handle <PR number>— automatic model invocation is disabled.