Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

create-pr-description

FreeNo executable scriptsNot checked

Generate a PR description following the repository's pull request template. Use when the user asks to create, draft, or generate a PR description for a pull…

encero-systemsby encero-systems★ 75 GitHub stars

About this skill

PR Description Generator

Workflow

  1. Identify the repository and branch - Determine which repository and branch the PR is for. If not specified, ask the user. The workspace may contain multiple repositories (e.g., incan/, IncQL/).
  2. Locate the PR template - Find .github/pull_request_template.md in the repository root. If not found, use the standard template from the repository's .github/ folder.
  3. Gather context - Run git diff main...HEAD (or the appropriate base branch) to see all changes. Also check git log main..HEAD --oneline for commit messages.
  4. Check for associated issue - Extract issue number from branch name (e.g., bugfix/184-... → issue #184) or check commit messages for Fixes #NNN, Closes #NNN, etc.
  5. RFC lifecycle preflight - If the branch implements an RFC or touches workspaces/docs-site/docs/RFCs/*, inspect the governing RFC before drafting the PR body.
    • If the RFC is In Progress and the branch implements the full RFC scope, use bump-rfc first so the RFC is Implemented, moved into closed/implemented/, and reflected in the PR diff before the PR is presented for review.
    • If the branch implements only part of the RFC, keep the RFC active and state the remaining scope clearly in the PR body.
    • Do not draft a review-ready PR description that claims full RFC completion while the RFC file still says In Progress.
  6. Analyze the changes - Categorize the changes by:
    • Type (bug fix, new feature, refactor, docs, CI/tooling, RFC)
    • Area(s) affected (Incan Language, Compiler, Tooling, Editor, Runtime, Docs)
    • User-facing behavior changes
    • Internal architectural changes
    • Risks or breaking changes
  7. Fill in the template - Use the analysis to populate each section of the PR template.
    • For Incan, replace stale template commands with commands verified against the Makefile and workspaces/oven/src/main.incn. Oven owns builds and execution; never prescribe Cargo. Use incan inspect codegraph PATH --query defs TERM or --query callers TERM for declaration and call relationships before grep.
    • Record the smallest contract selectors used during development and affected whole-family counts at commit points, per workspaces/contracts/README.md. Check boxes only for verification actually run.
    • Test changes extend existing cases before adding any; add only when no same-area case can carry the behavior. Keep the whole suite under about 3,000 tests, name guarded bugs in # behavior:, and use one producer Loaf carrying all declarations per library case.
    • Design records change only when a decision changes, in a sentence or two. Keep decisions, boundaries, consequences, and non-goals under about 1,000 words; mechanisms belong in commit messages and rustdoc, never a paragraph per commit.
  8. Add issue reference - If an issue number was found and the diff completes its verified scope, append Closes #<issue number> at the end of the PR description. Use Refs #<issue number> when the PR delivers only part of the issue.
  9. Output the PR description - Return the complete PR description in markdown format, ready to be used in a pull request.

PR Template Location

The skill automatically locates the PR template at:

  • .github/pull_request_template.md in the repository root

If the template is not found, the skill uses the standard template structure.

Template Sections

Summary

  • What does this PR change, and why?
  • One tight paragraph summarizing the change.

Type of change

  • Bug fix, New feature, Refactor/maintenance, Documentation, CI/tooling, or RFC

Area(s)

  • Incan Language (syntax/semantics)
  • Compiler (frontend/backend/codegen)
  • Tooling (CLI/formatter/test runner)
  • Editor integration (LSP/VS Code extension)
  • Runtime / Core crates (stdlib/core/derive)
  • Documentation

Key details

  • User-facing behavior: what changes for users?
  • Internals: what changed architecturally?
  • Risks: what could break?

Testing / verification

  • Relevant contracts: incan run workspaces/contracts/src/main.incn -- INCAN workspaces/contracts/fixtures SELECTOR (substitute compiler and selector; whole families at commit points)
  • make pre-commit / incan run scripts/check_changed_rustdocs.incn (changed Rust)
  • make pre-commit (formatting, spelling, rustdoc, skill table)
  • incan run scripts/check_us_english.incn before every commit
  • Manual verification notes

Docs impact

  • No docs changes needed
  • Docs updated
  • Docs follow Divio intent (tutorial/how-to/reference/explanation)

Output Format

Return the PR description in markdown format, ready to be used in a pull request. Include all sections of the template, with checkboxes for items that need user verification. If an issue number was found, close it only when the diff completes its verified scope; otherwise append Refs #<issue number>.

For RFC-driven PRs, include the final RFC lifecycle st

Full SKILL.md on GitHub

Install create-pr-description in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

.instructions.md.prompt.md

FAQ

What does the create-pr-description skill do?

Generate a PR description following the repository's pull request template. Use when the user asks to create, draft, or generate a PR description for a pull request. The skill automatically locates the PR template in the target repository and fills it in based on the git diff.

How do I install the create-pr-description skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the create-pr-description skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare create-pr-description with