/dev-workflow:pr-summaryfrom dev-workflow
Generates a pull request description from git changes by analyzing commits, diffs, and code structure. Automatically detects and follows your project's PR template.
Ships in dev-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generate a pull request description from $ARGUMENTS (or the current branch if no arguments are provided).
Search for a PR template using two Glob patterns in parallel (both MUST be executed):
**/*PULL_REQUEST_TEMPLATE***/*pull_request_template*From the combined results, select the first match according to this priority order:
PULL_REQUEST_TEMPLATE.md or pull_request_template.md.github/PULL_REQUEST_TEMPLATE.md or pull_request_template.mddocs/PULL_REQUEST_TEMPLATE.md or pull_request_template.md.github/PULL_REQUEST_TEMPLATE/ directory (use the default template)If no match is found, use the default template from refs/default-template.md.
Read the selected template. This template defines the exact sections and structure the final PR description must follow.
Collect all git information in a single Bash call by running the following combined command. This is critical to minimize API round-trips and avoid rate limiting:
echo "===BRANCH===" && git rev-parse --abbrev-ref HEAD && echo "===BASE===" && git remote show origin 2>/dev/null | grep 'HEAD branch' | sed 's/.*: //' || (git branch -a --format='%(refname:short)' | grep -E '^(origin/)?(main|master|develop)$' | head -1 | sed 's|origin/||') && echo "===STATUS===" && git status --porcelain && echo "===LOG===" && git log --oneline $(git remote show origin 2>/dev/null | grep 'HEAD branch' | sed 's/.*: //' || echo main)...HEAD 2>/dev/null && echo "===STAT===" && git diff --stat $(git remote show origin 2>/dev/null | grep 'HEAD branch' | sed 's/.*: //' || echo main)...HEAD 2>/dev/null && echo "===DIFF===" && git diff $(git remote show origin 2>/dev/null | grep 'HEAD branch' | sed 's/.*: //' || echo main)...HEAD 2>/dev/null
Parse the output by the ===SECTION=== delimiters to extract each piece of information.
If the base branch cannot be determined from the output, ask the user which branch to compare against.
If there are uncommitted changes shown in the STATUS section, note them but focus the PR description on committed changes.
Large diff handling: If the diff exceeds 1000 lines or 30+ files, run a second command to process changes by directory or module rather than as a single block. Summarize at a higher level to stay within context limits.
Analyze the diff output collected in Phase 2. Do NOT read individual changed files unless the diff is ambiguous or truncated — the diff itself contains sufficient information for the PR description.
If specs/{feature-name}/order.md exists (generated by /specify), read it to produce a more accurate and context-rich summary. Extract feature background, goals, and implementation decisions. Otherwise, skip this step.
From the diff and commit log collected in Phase 2, identify:
Generate the PR description by filling in the template detected in Phase 1.
Present the generated PR description to the user in a markdown code block so it can be easily copied. Do not wrap it in additional commentary before the code block.
Save the generated PR description to specs/{feature-name}/pr-summary.md. If the specs/ directory for this feature exists (from /specify), use the same feature name. Otherwise, derive the feature name from the branch name.
After presenting the description, briefly note:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-summary, pull-request, git-diff, pr-template, code-review
npx claudepluginhub kzytateishi/spikeee-plugins-marketplace --plugin dev-workflowOther plugins' skills for the same job
6 skills in this plugin
/code-reviewRun a comprehensive code review using available AI tools in parallel. Analyzes architecture, code quality, security, and test coverage. Dynamically detects and leverages available MCP servers for multi-perspective review. Use after implementation or refactoring, before creating a PR.
/dev-workflowRun the full development workflow end-to-end: specify → implement → refactor → code-review → pr-summary. Pauses after specify for user confirmation before proceeding. Pass a feature description to start from specification, or a feature name to resume from implementation.
/implementStart implementation based on a specification document (order.md). Processes tasks from todo.md sequentially. Supports TDD (Red-Green-Refactor) or standard implementation workflow. Auto-detects project's test framework, lint tools, and coding conventions. Use after /specify.