pr-draft-summary

pr-draft-summary is a skill for Claude Code, Codex from pproenca/unifi-mcp. It costs 42 tokens per session (529 once invoked), scanned A, original, MIT.

A procedure for producing a short, ready-to-paste pull request summary after substantial code changes. A pull request is a proposed change for review before it is merged into a shared codebase.

In plain words
What is it for?
Use it after changes to runtime code, tests, behavior-affecting documentation, or build configuration. It gathers the branch, changed files, commits, release tag, and comparison base before drafting the summary.
Why use it?
It ensures the final handoff records what changed, suggests a branch and title, describes the work, and notes compatibility risks. It also tells the agent when this summary is unnecessary for trivial tasks.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/pproenca/unifi-mcp/pr-draft-summary
Any agent
npx skills add pproenca/unifi-mcp --skill pr-draft-summary
Clone the repo
git clone --depth 1 https://github.com/pproenca/unifi-mcp

Made for: Claude Code, Codex.

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-draft-summary

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/unifi-mcp/pr-draft-summary.svg)](https://agentmods.dev/skills/pproenca/unifi-mcp/pr-draft-summary)
Your own site
<a href="https://agentmods.dev/skills/pproenca/unifi-mcp/pr-draft-summary"><img src="https://agentmods.dev/badge/skills/pproenca/unifi-mcp/pr-draft-summary.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 529 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00042 $0.00529
Opus 5 $0.00021 $0.00264
Sonnet 5 $0.00008 $0.00106
Haiku 4.5 $0.00004 $0.00053

Measured 5d ago against content hash 21eff4849e96, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

pr-draft-summary 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 5d 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.

.agents/skills/pr-draft-summary/SKILL.md · 55 lines

What it actually says

PR Draft Summary

Purpose

Produce the PR-ready summary after substantive code work: a concise summary plus a PR title and draft description. The block should be ready to paste into a PR.

When to Trigger

  • The task is finished and it touched runtime code (src/), tests, docs with behavior impact, or build configuration.
  • Default final handoff step for substantive code work.
  • Skip for trivial or conversation-only tasks, or when the user says not to.

Inputs to Collect Automatically

  • Current branch: git rev-parse --abbrev-ref HEAD
  • Working tree: git status -sb
  • Untracked files: git ls-files --others --exclude-standard
  • Changed files: git diff --name-only and git diff --name-only --cached
  • Latest release tag: git tag -l 'v*' --sort=-v:refname | head -n1
  • Base reference: git rev-parse --abbrev-ref --symbolic-full-name @{upstream} 2>/dev/null || echo origin/main
  • Commits ahead: git log --oneline --no-merges ${BASE_COMMIT}..HEAD

Workflow

  1. Run the commands above without asking the user.
  2. If no changes detected, say so and skip the block.
  3. Classify as feature, fix, refactor, or docs and flag backward-compatibility risk against the latest release tag.
  4. Summarize changes in 1-3 sentences using key paths and diff stats.
  5. Choose the lead verb: feature → adds, fix → fixes, refactor → improves, docs → updates.
  6. Suggest a branch name if on main: feat/<slug>, fix/<slug>, or docs/<slug>.
  7. Draft using the template below.

Output Format

# Pull Request Draft

## Branch name suggestion

git checkout -b <kebab-case, e.g., feat/add-firewall-tools>

## Title

<single-line imperative title, e.g., "feat: add firewall management tools">

## Description

<Start with "This pull request adds/fixes/improves ...", explain the change, any behavior changes or considerations. No need to list tests.>
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. 5d ago First seen · 55 lines · 42 tokens per session scan A 21eff4849e96

Subscribe to this mod's changes

pr-draft-summary is a skill published in the GitHub repository pproenca/unifi-mcp (2 stars, last pushed 5mo ago), licensed MIT. It adds 42 tokens to every session and 529 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.

Related

Other skills, from other repositories

unifi-cli

Use when asked about UniFi network gear or the local network — access points, gateway, switches, WiFi, or which clients/devices are connected. Queries the local UniFi gateway via the unifi CLI.

baileywickham/unifi-cli · 49 tokens

design-mcp-server

Design the tool surface, resources, and service layer for a new MCP server. Use when starting a new server, planning a major feature expansion, or when the user describes a domain/API they want to expose via MCP. Produces a design doc at docs/design.md that drives implementation.

cyanheads/toolkit-mcp-server · 62 tokens

add-tool

Scaffold a new MCP tool definition. Use when the user asks to add a tool, create a new tool, or implement a new capability for the server.

cyanheads/toolkit-mcp-server · 35 tokens

api-context

Canonical reference for the unified Context object passed to every tool and resource handler in @cyanheads/mcp-ts-core. Covers the full interface, its RequestContext base, all sub-APIs (ctx.log, ctx.state, ctx.requestInput, ctx.inputs, ctx.enrich, ctx.content), and when to use each.

cyanheads/toolkit-mcp-server · 79 tokens

api-linter

MCP definition linter rules reference. Use when bun run lint:mcp or bun run devcheck reports a lint error or warning (format-parity, schema-is-object, name-format, server-json-, etc.) and you need to understand the rule, its severity, and how to fix it. Every rule ID the linter emits has an entry in this doc.

cyanheads/toolkit-mcp-server · 86 tokens

api-canvas

DataCanvas primitive reference — a Tier 3 SQL/analytical workspace for tabular MCP servers, backed by DuckDB. Use when registering tables from upstream APIs, running ad-hoc SQL across them, and exporting results. Covers the acquire → register → query → export flow, per-table TTL, the token-sharing pattern for…

cyanheads/toolkit-mcp-server · 85 tokens