agentleFS
pproencapproenca/unifi-mcp/.agents/skills/pr-draft-summary/SKILL.md

pr-draft-summary

Skill2 starsChanged 7 months agoMITView on GitHub

Generate a PR-ready summary block with branch suggestion, title, and description. Use in the final handoff after moderate-or-larger code changes; skip for trivial or conversation-only tasks.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default final handoff step for substantive code work.

    line 15
  2. Distinctive:

    Run the commands above without asking the user.

    line 30
  3. Distinctive:

    If no changes detected, say so and skip the block.

    line 31

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.