用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/chrisleekr/personal-claw --skill speckit-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | speckit-pr |
| description | Read feature artifacts and implementation diff, then draft a PR description with architecture diagrams. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"templates/commands/pr.md"} |
| disable-model-invocation | true |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Check for extension hooks (before PR generation):
.specify/extensions.yml exists in the project root.hooks.before_pr keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Pre-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Pre-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
Wait for the result of the hook command before proceeding to the Outline.
.specify/extensions.yml does not exist, skip silentlySetup: Run .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
Load design documents: Read from FEATURE_DIR:
Gather implementation diff:
git diff --stat origin/main...HEAD to get the file-level change summarygit diff origin/main...HEAD to get the full diff--stat output and key architectural changes rather than line-by-line detailsGather test evidence:
## Commands section in plan.md for the project's test commandGenerate PR description: Using the .github/pull_request_template.md as the output structure, fill each section:
### PR Title
- Format: `<type>(<scope>): <concise description derived from spec.md feature name>`
- Determine `<type>` from the actual diff — do NOT default to `feat`:
- `feat` — new user-facing capability
- `fix` — bug fix
- `refactor` — code restructuring with no behaviour change
- `chore` — tooling, config, dependencies, CI
— documentation only
— tests only
If the diff mixes types, use the dominant type
What this PR does (1-2 sentences from spec.md)
Why it's needed (motivation from spec.md)
Link to the spec:
Organize changes by area/module based on output
List key files changed with brief descriptions of what changed in each
Include — one "Before" and one "After" — showing the architectural or structural change introduced by this PR
Use with high-contrast hex color pairs that meet WCAG 2 AA standards (minimum 4.5:1 ratio) such as for dark backgrounds or for light backgrounds
Use for new lines instead of
Avoid parentheses in node labels as they break Mermaid syntax
Use inline syntax (e.g., ) instead of separate statements — the latter fails in GitHub's Mermaid renderer
Avoid multiple blocks — GitHub's Mermaid renderer fails when a second follows . Use a single subgraph or flatten nodes instead
Use descriptive node IDs (3+ characters) to avoid conflicts with Mermaid reserved words
Label diagrams clearly: and
Paste relevant test output (pass/fail counts, coverage if available)
Reference completed tasks from tasks.md (count of checked vs total)
If tests could not be run, state why
Extract known limitations from spec.md and plan.md
Note any TODO/FIXME comments in the diff
List any deferred scope or tech debt introduced
If none, state "No known risks or follow-ups identified"
Pre-fill based on what's actually true:
or for "New code has tests where appropriate"
or for "Documentation updated if behavior changed"
Check for extension hooks (after PR generation):
.specify/extensions.yml exists in the project root.hooks.after_pr keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Post-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Post-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
.specify/extensions.yml does not exist, skip silentlyOutput: Print the complete PR description in markdown, ready to paste into a GitHub PR. Start with the PR title on the first line prefixed with # , then the template sections.