agentleFS
vstorm-covstorm-co/agenticos/.claude/skills/pr-description/SKILL.md

pr-description

Skill54 starsChanged 3 months agoApache-2.0View on GitHub

Create or update PR. Use this skill every time user asks to create or update a PR to ensure clear, consistent descriptions between PRs.

  • Commits and pushes

44 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use conventional-commits, i-have-adhd and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • metalagmanSkill

    conventional-commits

    Use this skill to write, validate, or generate commit messages that follow the Conventional Commits specification.

    Also in 4 projects that use this

  • PydanticSkill

    i-have-adhd

    Shape every response for an ADHD reader who reviews the work but does not do the coding — the agent does. Use whenever responding to ANY message — coding, debugging, planning, casual. Lead with the result or the decision. Surface anything needing the user's input as a structured question, never buried in prose they'll skim past. No preamble, no recap, no closers. State errors matter-of-factly. Make finished work visible. Trigger even on casual messages and even when brevity wasn't requested.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 5 projects that use this

  • pproencaSkill

    refactoring

    Code refactoring best practices based on Martin Fowler's catalog and Clean Code principles. This skill should be used when refactoring existing code, improving code structure, reducing complexity, eliminating code smells, or reviewing code for maintainability. Triggers on tasks involving extract method, rename, decompose conditional, reduce coupling, or improve readability.

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    docs

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create or update PR description based on git diff.

    line 8
  2. Very specific:

    If the user names a different base (e.g.

    line 17
  3. Distinctive:

    Use present tense ("Add", "Update", "Remove")

    line 77
  4. Very specific:

    Attach diagrams for an architectural change: When a change adds or reshapes a flow across components — a new tool or service path, a new …

    line 80

“Common” is measured: kept by at least 6 in 10 of the 41 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

Skill: PR Description

Create or update PR description based on git diff.

Inputs

  • PR number — required when updating an existing PR; provided by the user (referred to as <pr-number> below)
  • Base branch — detect dynamically; do not assume main:
    BASE=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name)
    If the user names a different base (e.g. develop), use that instead.

Steps

  1. Gather context:
    • Refresh the base first: git fetch origin "$BASE". gh repo view hands back a branch name; it does not update the local remote-tracking ref, and a stale origin/$BASE describes commits that merged upstream days ago as if they were this PR's.
    • For new PR: git diff "origin/$BASE"...HEAD and git log "origin/$BASE"..HEAD --oneline
    • For existing PR: gh pr diff <pr-number>, and its current body: gh pr view <pr-number> --json title,body. An update is a merge, not a rewrite: a body often carries hand-written limitations, verification evidence and issue links that the diff cannot reconstruct, and --body-file replaces all of it silently. Carry that content forward, and only rewrite what the diff has actually made wrong.
  2. Generate description in this format:
## Changes

### Summary

[Brief summary of changes - 1-3 sentences]

### Business Context

[Business/technical context - why was this change needed. Infer from branch name, commits, and code changes. Remove this section if unclear.]

### Changes

[Technical approach - main architectural decisions, main changes. Use bullet points.]

### Architecture

[Diagrams, for an architectural change only — see Rules. Reference each attached image as `![alt](./name.png)` with one sentence saying what the reader should take from it. Remove this section for a change with no architectural shape.]

### Verification

[Example queries, commands, or steps to verify the changes work correctly. When the change is observable through the project's own tracing/observability backend (new or changed spans, telemetry attributes, logged events — check whether the repo has one before assuming), include links or excerpts from example traces you actually produced — see Rules.]

### Linked Issues

[Link to any relevant issues or tickets found in branch name or commits. Remove this section if none found.]
  1. Execute (write the body to a file and pass --body-file; a long body with backticks does not survive --body "…" intact):
    • New PR: gh pr create --base "$BASE" --title "<title>" --body-file body.md
    • Existing PR: gh pr edit <pr-number> --body-file body.md
    • Diagrams go in the body as mermaid, so there is nothing to upload and no asset URL to go stale. gh has no image-upload flag - --attach is not a flag gh pr create or gh pr edit has ever exposed - and a local PNG referenced by path renders as a broken image for every reviewer.
  2. Return the PR URL.

Rules

  • No "Test plan" or "Generated with..." sections
  • Keep descriptions concise
  • Use present tense ("Add", "Update", "Remove")
  • Omit Business Context and Linked Issues sections when there's nothing to fill in — don't leave placeholders
  • Include trace/log evidence for observable changes, when the repo has the means to produce it. When the change produces or alters observability (new/changed spans, telemetry attributes, structured logs) and the project has a tracing or logging backend, link to or excerpt example traces/log lines you actually produced in the Verification section — one per meaningful path (happy path + key error paths), using that backend's own link format (e.g. a dashboard deep-link, a log query, a captured span tree). Only cite evidence you genuinely produced — never fabricate ids, URLs, or output. If the project has no such backend, or the change isn't observable through one, skip this and verify with the project's normal test/run commands instead.
  • Attach diagrams for an architectural change. When a change adds or reshapes a flow across components — a new tool or service path, a new gate, a state machine, a cross-channel behaviour — put images in the Architecture section rather than making the reviewer rebuild the shape from the diff. Two usually suffice: one component/flow diagram (who calls what, and what each outcome writes) and one sequence diagram (the call order, with the refusal branches). Put the mermaid straight in the body, in a fenced ```mermaid block: GitHub renders it in a pull request description, so the diagram needs no renderer, no uploaded asset and no version of anything. It also stays readable in the diff and as text, which a PNG does not. A committed architecture doc's diagram belongs wherever this repo keeps those instead, e.g. docs/architecture.md, a docs/architecture/ directory, or an ADR. Diagram the mechanism the PR actually changes, including its failure paths; a box-and-arrow restatement of the module tree earns nothing. Skip the section for a fix, a test-only change, or a one-file tweak.

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.