swarm: Skill for Claude Code

.claude/skills/pr/SKILL.md

pr is a skill for Claude Code from ra3orblade/swarm. It costs 45 tokens per session (361 once invoked), scanned A, original, Apache-2.0.

A pull-request workflow for getting finished code from the current worktree into a reviewable branch. A worktree is a local checkout of a Git branch, and a pull request lets others review changes before merging them.

In plain words
What is it for?
Use it to verify the work, create a feature branch when needed, make a focused commit, push it, and open a pull request without merging it.
Why use it?
It provides a repeatable final check for tests, branch setup, commit scope, pushing, and writing the request from the actual diff.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ra3orblade/swarm's own configuration. It tells Claude Code how to work on swarm 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 swarm configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ra3orblade/swarm. 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/ra3orblade/swarm/main/.claude/skills/pr/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ra3orblade/swarm

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 pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ra3orblade/swarm/pr"><img src="https://agentmods.dev/badge/skills/ra3orblade/swarm/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 361 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.00045 $0.00361
Opus 5.5 $0.00018 $0.00144
Sonnet 5.5 $0.00009 $0.00072
Haiku 4.5 $0.00005 $0.00036

Measured 2mo ago against content hash 6aa82b43ccbf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 2mo 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/pr/SKILL.md · 26 lines

What it actually says

PR

Get finished, verified work onto a branch and into a PR. This is the last mile — if the work is a plan task, run /chores first (it calls this).

Steps

  1. Confirm green (quick if /chores just ran): bun run typecheck && bun run test.
  2. Branch — if on main/detached, create feat/<short-slug> first. Feature work never commits to main directly.
  3. Commit scoped — git add <explicit paths> (never -A in a shared checkout), one focused commit. Message: what changed + how verified; end with:
    Co-Authored-By: Claude <[email protected]>
    
  4. Push — git push -u origin <branch> (add --force-with-lease only after a rebase).
  5. Open the PR from the real diff:
    gh pr create --title "<concise>" --body "<what/why + verification + test count>"
    
    Body: a sentence on what it does, the key implementation notes, and the verification line (typecheck · lint · test (N pass) · smoke · docs). Keep one PR to a coherent batch of related tasks.
  6. Print the PR URL.

Do not merge. Rate discipline: few, substantial PRs; push rarely and deliberately.

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. 2mo ago First seen · 26 lines · 45 tokens per session scan A 6aa82b43ccbf

Subscribe to this mod's changes

pr is a skill published in the GitHub repository ra3orblade/swarm (14 stars, last pushed 3d ago), licensed Apache-2.0. It adds 45 tokens to every session and 361 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

autofix-pr

Watch a pull request and fix it from a worktree of its own - CI failures, review feedback from trusted authors and merge conflicts are fixed, pushed to the PR branch and answered on the PR under the user's git and gh identity. Usage - /autofix-pr [ | ] [--once] [--every ] [--no-reply] [--yes] [instructions]…

QwenLM/qwen-code · 123 tokens

repo-hygiene

Use when the scheduled repo-hygiene workflow runs from GitHub Actions (or an operator dry-run) to scan the repository for small, certain docs/test/code hygiene issues and fix them as one batched branch.

QwenLM/qwen-code · 48 tokens

create-issue

Draft and submit a GitHub issue from a user idea or bug description, with bilingual body and correct labels.

QwenLM/qwen-code · 26 tokens

docs-update-from-diff

Review local code changes with git diff and update the official docs under docs/ to match. Use when the user asks to document current uncommitted work, sync docs with local changes, update docs after a feature or refactor, or when phrases like "git diff", "local changes", "update docs", or "official docs" appear.

QwenLM/qwen-code · 75 tokens

prepare-pr

Prepare GitHub pull request title and body files from the current branch diff, especially for non-interactive CI/autofix flows that must follow the repository PR template without pushing or creating the PR.

QwenLM/qwen-code · 42 tokens

triage

Gatekeep and review GitHub issues and pull requests for Qwen Code maintainers. Use for GitHub Action issue triage, PR admission checks, product-direction review, KISS-focused PR review, and staged bilingual GitHub comments.

QwenLM/qwen-code · 50 tokens