一键导入
pr
Create a pull request with conventional format. Use when asked to create a PR, open a pull request, or push changes for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a pull request with conventional format. Use when asked to create a PR, open a pull request, or push changes for review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Implement a feature or fix end-to-end. Analyzes the request, builds in TDD order, runs gate checks, self-reviews with bounded loops, and reports for human approval before committing.
Bundle the Release Checklist + /docs --commit --full into one atomic, human-approved release commit. Reads specs/plan/M<N>.md, bumps the four release files, regenerates docs, prompts once for approval, commits on `y`, does not push.
Guide the user through writing or completing spec files (requirements, technical spec, testing spec, plan). Use after /setup to fill in specs before implementation, or to update existing specs.
Set up SDD/TDD development process for the current project. Creates CLAUDE.md, configures settings, and optionally creates spec files. Use when starting a new project or adding process to an existing one.
Socratic design session for greenfield features with open solution spaces. Clarifies goals one question at a time, proposes 2-3 approaches with tradeoffs, gets design approval, then feeds into /spec-write.
Run the project gate checks and report results. Use after completing any feature, before creating a PR, or to verify project health.
| name | pr |
| description | Create a pull request with conventional format. Use when asked to create a PR, open a pull request, or push changes for review. |
| argument-hint | [PR title] |
Create a pull request for the current branch.
Before creating the PR, run the Schema L probe (see docs/patterns.md § Tracker Mode Probe). If CLAUDE.md has no ## Task Tracking section, mode is none and the rest of this skill runs unchanged. If a tracker mode is active:
docs/ticket-binding.md before any MCP write. Decline exits cleanly with zero side effects.transition_status(ticket, in_review) and optionally upsert_ticket_metadata to add the PR URL to the ticket description (NFR-8 ≤ 2 MCP calls). Capability-missing cases degrade with a canonical-shape warning + proceed.See docs/pr-tracker-mode.md for the full tracker-mode flow.
Before Step 1, check whether this branch archives a milestone without carrying its release:
Detect archive moves (tree-based). Run git diff main...HEAD --name-status and look for paths added or renamed under specs/plan/archive/ or specs/frs/archive/. Detection is over the merged tree, not commit messages — a squashed or reordered history cannot hide the move.
Check for a release marker. Run git log main..HEAD --oneline and look for a chore(release): commit. If one is present, the release already rides this branch — suppress the prompt and proceed.
Prompt only when both hold (archive moves present, no release marker). Print the affected milestone(s), then prompt exactly:
Milestone archive detected on this branch, but no release commit.
[m]erge later / [s]hip first / [a]bort
m — proceed with PR creation as normal; the release ships later. Inject a Follow-up: /ship-milestone M<N> line into the PR body for each affected milestone, so the merged PR itself documents the outstanding ceremony.s — exit with zero side effects and print the hint: Run /ship-milestone M<N>, then re-run /pr.a — abort cleanly with zero side effects.This pre-flight is soft: it never auto-blocks, and every choice is the operator's. Branches with no archive moves — spec-only PRs included — see no prompt at all and go straight to Step 1.
git status and git log to understand what's being submittedmain, create a new branch from the changes:
feat/short-description, fix/short-description, or chore/short-description-u flaggh pr create:
<type>(<scope>): <title>, ≤ 72 characters. Use ! for breaking changes (feat(api)!: drop legacy endpoint). When the branch carries multiple commits, pick the type/scope of the dominant change (the merge commit or release commit on a release branch). The PR title and the squash-merge subject must both validate against the commit-msg hook.## Summary
<1-3 bullet points describing what changed and why>
## Test plan
- [ ] Testing steps or verification notes
main$ARGUMENTS contains a PR title, use it