agentleFS
corticalstackcorticalstack/flow/.claude/skills/describe-pr/SKILL.md

describe-pr

Skill1 starsChanged 5 months agoMITView on GitHub

Generate a PR description from the repo template, save it under flow/prs/, and update the live PR. Explicit-only; run only when invoked via /describe-pr or the user asks to describe a PR.

We split this skill into the rules it gives an agent

23 rules. 2 are common, 12 are distinctive, and 9 are very specific to this project.

  • 2

    Common

    Most of the 8 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

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

    Check if .github/PULL_REQUEST_TEMPLATE.md exists (standard GitHub location)

    line 14
  2. Distinctive:

    If it doesn't exist, use a standard PR template with Summary, Changes, Test Plan, and Checklist sections

    line 15
  3. Distinctive:

    Read the template carefully to understand all sections and requirements

    line 16
  4. Very specific:

    Check if the current branch has an associated PR: tracker pr-current --json url,number,title,state 2>/dev/null

    line 19
  5. Very specific:

    If no PR exists for the current branch, or if on main/master, list open PRs: tracker pr-list-open

    line 20
  6. Distinctive:

    Ask the user which PR they want to describe

    line 21
  7. Very specific:

    Check if flow/prs/{number}_description.md already exists

    line 24
  8. Distinctive:

    If it exists, read it and inform the user you'll be updating it

    line 25
  9. Distinctive:

    Consider what has changed since the last description was written

    line 26
  10. Distinctive:

    Read through the entire diff carefully

    line 36
  11. Common:

    Look for breaking changes or migration requirements

    line 40
  12. Distinctive:

    Look for any checklist items in the template

    line 43
  13. Very specific:

    If it's a command you can run (like uv run pytest, npm test, etc.), run it

    line 45
  14. Very specific:

    If it passes, mark the checkbox as checked: - [x]

    line 46
  15. Very specific:

    If it fails, keep it unchecked and note what failed: - [ ] with explanation

    line 47
  16. Distinctive:

    If it requires manual testing (UI interactions, external services), leave unchecked and note for user

    line 48
  17. Distinctive:

    Document any verification steps you couldn't complete

    line 49
  18. Distinctive:

    Ensure all checklist items are addressed (checked or explained)

    line 57
  19. Very specific:

    Write the completed description to flow/prs/{number}_description.md

    line 60
  20. Very specific:

    Update the PR description directly: tracker pr-edit-body {number} flow/prs/{number}_description.md

    line 64
  21. Distinctive:

    If any verification steps remain unchecked, remind the user to complete them before merging

    line 66
  22. Common:

    If the PR touches multiple components, organize the description accordingly

    line 77
  23. Distinctive:

    Always attempt to run verification commands when possible

    line 78

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

Generate PR Description

You are tasked with generating a comprehensive pull request description following the repository's standard template.

Steps to follow:

  1. Read the PR description template:
    • Check if .github/PULL_REQUEST_TEMPLATE.md exists (standard GitHub location)
    • If it doesn't exist, use a standard PR template with Summary, Changes, Test Plan, and Checklist sections
    • Read the template carefully to understand all sections and requirements
  2. Identify the PR to describe:
    • Check if the current branch has an associated PR: tracker pr-current --json url,number,title,state 2>/dev/null
    • If no PR exists for the current branch, or if on main/master, list open PRs: tracker pr-list-open
    • Ask the user which PR they want to describe
  3. Check for existing description:
    • Check if flow/prs/{number}_description.md already exists
    • If it exists, read it and inform the user you'll be updating it
    • Consider what has changed since the last description was written
  4. Gather comprehensive PR information:
    • Get the full PR diff: tracker pr-diff {number}
    • On GitHub: if you get an error about no default remote repository, instruct the user to run gh repo set-default and select the appropriate repository
    • Get commit history: tracker pr-view {number} --json commits
    • Review the base branch: tracker pr-view {number} --json baseRefName
    • Get PR metadata: tracker pr-view {number} --json url,title,number,state
  5. Analyze the changes thoroughly: (ultrathink about the code changes, their architectural implications, and potential impacts)
    • Read through the entire diff carefully
    • For context, read any files that are referenced but not shown in the diff
    • Understand the purpose and impact of each change
    • Identify user-facing changes vs internal implementation details
    • Look for breaking changes or migration requirements
  6. Handle verification requirements:
    • Look for any checklist items in the template
    • For each verification step:
      • If it's a command you can run (like uv run pytest, npm test, etc.), run it
      • If it passes, mark the checkbox as checked: - [x]
      • If it fails, keep it unchecked and note what failed: - [ ] with explanation
      • If it requires manual testing (UI interactions, external services), leave unchecked and note for user
    • Document any verification steps you couldn't complete
  7. Generate the description:
    • Fill out each section from the template thoroughly:
      • Answer each question/section based on your analysis
      • Be specific about problems solved and changes made
      • Focus on user impact where relevant
      • Include technical details in appropriate sections
    • Ensure all checklist items are addressed (checked or explained)
  8. Save the description:
    • Write the completed description to flow/prs/{number}_description.md
    • Show the user the generated description
  9. Update the PR:
    • Update the PR description directly: tracker pr-edit-body {number} flow/prs/{number}_description.md
    • Confirm the update was successful
    • If any verification steps remain unchecked, remind the user to complete them before merging
  10. Transition linked work-item states (if PR is linked to issues / work items):
    • Get linked work-item ids: tracker pr-closing-issues {number}
    • For each linked work item: tracker set-state <id> pr-submitted in-progress

Important notes:

  • This command works across different repositories - always read the local template
  • Be thorough but concise - descriptions should be scannable
  • Focus on the "why" as much as the "what"
  • Include any breaking changes or migration notes prominently
  • If the PR touches multiple components, organize the description accordingly
  • Always attempt to run verification commands when possible
  • Clearly communicate which verification steps need manual testing

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.