create-pr
Create a draft or ready-for-review PR for the current branch. Use when asked to draft, create, open, or prepare a PR, or to write a PR description.
- License 许可
- MIT
- 所属仓库
- lithammer/ai
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- create-pr
- description
- Create a draft or ready-for-review PR for the current branch. Use when asked to draft, create, open, or prepare a PR, or to write a PR description.
02 资源文件 1
- 参考文档agents/openai.yaml111 B
03 SKILL.md 正文
Create PR
- Identify the current branch and an appropriate base branch. Inspect the intended changes, including uncommitted work, and use the conversation context already available. Check claims against the actual branch rather than relying on memory. Preserve file contents, unrelated changes, and unrelated staging.
- Write the title and description in the current session using the guidance below.
- Read the description as a teammate about to review the diff. Keep the outcome and useful heads-ups; cut implementation narration and explanations already present in the changed code or documents.
- If asked only for a description, return the title and body without changing Git state or creating a PR. Otherwise, prepare the PR branch locally, creating one if needed. Commit only the intended changes if needed, then push that branch. Keep the local checkout on the PR branch.
- Create the PR as a draft unless explicitly requested ready for review. Confirm the published body matches the intended text. Return the URL, or the title, body, and blocker if preparation or creation fails.
Description
Write from the PR author's perspective, not as an assistant reporting on their work.
Tell a teammate what this makes possible, and why now if they'd ask. Assume they'll read the diff. Most PRs need only a short sentence describing the outcome. Then name only what a reviewer must decide or do before merging, such as a merge or deploy order. Keep discussion tied to a particular line in an inline comment rather than the description.
Answer what a reviewer, or someone tracing this change later, would ask
first: how do you know it works? Show what you would show a teammate at
your desk, beside the claim it backs, and let it replace the explanation
where possible. Reuse it from the session or capture it now; gh pr create --help covers --attach. Tests and CI show that logic meets a contract,
not that the change works in practice; leave out that they pass.
Fold every other note into one <details> block after the evidence, with a
<summary> that says what it holds and a blank line after </summary>.
End the body with a line for each issue the PR references. Read its open
acceptance criteria: write Closes #N when this PR meets the last of them,
and Refs #N otherwise.
04 同仓库更多 Skills
shape
Review a working change for its shape (cause, ownership, states, names, size, reuse, cost), then apply what you accept.
correctness
Review a working change for defects (logic, state, lifecycle, concurrency, regression) and for drift from its ticket, docs, and rules, then apply what you accept.
zero-tech-debt
Rework a change as if the intended UX and architecture existed from day one, deleting compatibility cruft and accidental complexity.
waterfall-review
Review a code change by dispatching specialized review subagents in parallel — each focused on a single dimension (correctness, security, architecture, etc.) — then triaging their findings into a unified report. Works standalone on a branch or as part of the waterfall flow after implementation. Invoke when the user explicitly asks to review a branch or diff, or as a step inside waterfall-implement; avoid auto-triggering on casual mentions of "review".
waterfall-refactor
Identify refactoring opportunities in code that a feature will touch. Runs at strategic level during design (looking for structural moves that could change which approach is chosen) or tactical level before implementation (looking for pre-work that gives the feature a better foundation). Primarily invoked by waterfall-design or waterfall-implement; avoid auto-triggering on casual mentions of "refactor".
waterfall-plan
Detail a chosen design approach into an implementation plan (objective, file manifest, execution order, test strategy), then auto-proceed to waterfall-challenge. Convergent phase of the waterfall flow.