agentleFS
edjchapmanedjchapman/claude-code-config/skills/pr/SKILL.md

pr

Skill8 starsChanged 19 days agoMITView on GitHub

Open a pull request with a well-crafted description. Use when branch work is finished and ready for review.

  • Commits and pushes

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 8 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read Jira config from the project's CLAUDE.md if present (look for a ## Jira section with Base URL and Ticket Pattern).

    line 19
  2. Distinctive:

    Read each commit message

    line 37
  3. Very specific:

    Look at the actual changes with git diff origin/main..HEAD

    line 38
  4. Distinctive:

    Look for ticket/issue numbers in branch name or commits

    line 43
  5. Very specific:

    Check if there are related specs in specs/ directory

    line 44
  6. Very specific:

    Add a Jira link to the PR body using the project CLAUDE.md base URL: Related: TICKET-ID

    line 57
  7. Distinctive:

    If no base URL is configured, include the ticket ID as plain text and note: "Jira base URL not configured in project CLAUDE.md - add …

    line 59
  8. Distinctive:

    Search for PR templates in order:

    line 64
  9. Distinctive:

    Use template as base structure for PR body

    line 73
  10. Distinctive:

    Use default structure (see Step 6)

    line 79
  11. Distinctive:

    If Jira ticket found, confirm linking is correct

    line 111
  12. Distinctive:

    Ask if ready to create

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Help me create a pull request with a well-crafted description.

Arguments

$ARGUMENTS

  • --draft or -d: Create as draft PR
  • --base <branch>: Specify base branch (default: main)
  • Examples: /pr --draft, /pr --base develop

Jira Configuration

Read Jira config from the project's CLAUDE.md if present (look for a ## Jira section with Base URL and Ticket Pattern). If absent, ask the user. Do not assume any specific organisation's URL.

  • Common ticket patterns: [A-Z]+-\d+ (e.g. ABC-123, PROJ-456), #123, GH-123

Steps

Step 1: Understand current state

git branch --show-current
git log origin/main..HEAD --oneline
git diff origin/main..HEAD --stat

Step 2: Analyze all commits being included

  • Read each commit message
  • Look at the actual changes with git diff origin/main..HEAD
  • Identify the main themes and purpose

Step 3: Check for related context

  • Look for ticket/issue numbers in branch name or commits
  • Check if there are related specs in specs/ directory
  • Note any breaking changes or migrations

Step 4: Extract Jira context from branch name

Extract ticket ID from branch name patterns:

  • feature/BIL-123-description → BIL-123
  • fix/BIL-456-bug-fix → BIL-456
  • BIL-789/some-feature → BIL-789

If a ticket ID is found:

  • Add a Jira link to the PR body using the project CLAUDE.md base URL: Related: [TICKET-ID](<base_url>/TICKET-ID)
  • If no base URL is configured, include the ticket ID as plain text and note: "Jira base URL not configured in project CLAUDE.md - add manually if needed"

Step 5: Check for PR template

Search for PR templates in order:

  1. .github/PULL_REQUEST_TEMPLATE.md
  2. .github/PULL_REQUEST_TEMPLATE/default.md
  3. .github/pull_request_template.md
  4. docs/pull_request_template.md

If template found:

  • Use template as base structure for PR body
  • Merge Jira context and commit analysis into template sections
  • Fill in template placeholders where possible

If no template found:

  • Use default structure (see Step 6)

Step 6: Generate PR description

Default structure (if no template):

## Summary

<1-3 bullet points explaining what this PR does and why>

## Changes

<Grouped list of significant changes>

## Testing

<How this was tested or how reviewers should test>

## Notes for Reviewers

<Any context that helps review: focus areas, known issues, follow-ups>

## Related Issues

- [TICKET-ID](<base_url>/TICKET-ID) - {summary from Jira if available}

Step 7: Ask for confirmation before creating

  • Show the proposed title and description
  • Confirm the base branch (usually main)
  • If Jira ticket found, confirm linking is correct
  • Ask if ready to create

Step 8: Create the PR (only when confirmed)

gh pr create --title "<title>" --body "<body>"

Output

Present the PR title and description for review, then create when approved. Return the PR URL when complete.

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.