opencodehub: Skill for Claude Code

.claude/skills/codehub-pr-description/SKILL.md

codehub-pr-description is a skill for Claude Code from theagenticguy/opencodehub. It costs 126 tokens per session (1,345 once invoked), scanned A, original, Apache-2.0.

A skill that writes a pull request description from the changes between two Git revisions. A pull request is a proposed code change submitted for review before it is merged.

In plain words
What is it for?
Use it to summarize a non-empty branch or diff, explain its risks, suggest reviewers, and save a Markdown pull request body.
Why use it?
It gathers the changed areas, merge recommendation, likely reviewers, and newly added or resolved findings so the review summary is based on repository data.

Skill for Claude Code

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

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

Reuse

Borrowing it

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

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 codehub-pr-description

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/theagenticguy/opencodehub/codehub-pr-description"><img src="https://agentmods.dev/badge/skills/theagenticguy/opencodehub/codehub-pr-description.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,345 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.00126 $0.01345
Opus 5.5 $0.00050 $0.00538
Sonnet 5.5 $0.00025 $0.00269
Haiku 4.5 $0.00013 $0.00135

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

Security

Grade A, and why

codehub-pr-description 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/codehub-pr-description/SKILL.md · 123 lines

How it starts

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

codehub-pr-description

Generates a Markdown PR body from graph primitives. Linear (no subagents). Sonnet. Refuses on a clean tree.

Preconditions

  1. Resolve --base (default main) and --head (default HEAD) via git rev-parse.
  2. git diff --name-only <base>..<head> must return ≥ 1 path. If empty, emit No diff detected — resolve base/head or stage changes. and stop. (Spec 001 AC-5-4.)

Arguments

  • --base <rev> — base revision. Default: main.
  • --head <rev> — head revision. Default: HEAD.
  • --out <path> — output path. Default: .codehub/pr/PR-<branch>.md.

Process

  1. Run the preconditions. On clean tree, refuse and stop.
  2. mcp__codehub__detect_changes({base, head}) — map the diff to affected symbols + processes.
  3. mcp__codehub__verdict({base, head}) — 5-tier merge recommendation with reasons.
  4. mcp__codehub__owners({paths: <changed-files>}) — required reviewers per path.
  5. mcp__codehub__list_findings_delta({base, head}) — new/resolved scanner findings in the diff range.
  6. For any symbol flagged as tier ≥ 3 by verdict: mcp__codehub__impact({symbol, direction: "downstream", depth: 2}) — spell out who breaks.
  7. For public API changes: mcp__codehub__api_impact({route}) when the diff touches a handler.
  8. Assemble the Markdown body using the template below.
  9. Write to <out>.

Output template

# <branch-name or commit subject>

## Summary

2–3 sentences describing what this PR changes and why. Grounded in the
commit messages + the highest-impact change detected.

## Verdict

**Tier <N> — <label>** per `mcp__codehub__verdict`.

Reasons:
- ... (from verdict.reasons[])

## Affected surface

| Category | Count | Details |
|---|---|---|
| Files changed | N | `git diff --stat` summary |
| Symbols added | N | from `detect_changes` |
| Symbols removed | N | from `detect_changes` |
| Processes touched | N | from `detect_changes.processes[]` |

### Top touched files

| File | Change | Top owner |
|---|---|---|
| `packages/foo/src/bar.ts` | +40 / -12 | alice@ |
| ... | ... | ... |

## Blast radius

(Only when verdict tier ≥ 3.)

- Downstream consumers of `<symbol>`: <count>. See `impact` output.
- Affected routes: (if `api_impact` returned non-empty)

## Findings delta

| Change | Severity | File |
|---|---|---|
| new | error | `packages/foo/src/bar.ts:42` |
| resolved | warn | `packages/other.ts:88` |

(Or: "No new findings. 2 findings resolved." as a terse summary.)

## Required reviewers

- `packages/foo/` — alice@, bob@
- `packages/other/` — charlie@

## Test plan

- [ ] ...
- [ ] ...

(Extract TODO-shaped lines from `git log <base>..<head>` or leave a blank checklist for the author to fill in.)

Read the full file on GitHub · 123 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. 2mo ago First seen · 123 lines · 126 tokens per session scan A e441a63add08

Subscribe to this mod's changes

codehub-pr-description is a skill published in the GitHub repository theagenticguy/opencodehub (3 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 126 tokens to every session and 1,345 once invoked, about $0.0005 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.