create-pr
Prepare and open or update a reviewable GitHub pull request using the bundled editable template. Use when asked to create a PR or prepare its title/body; preserve draft-only and no-push requests.
- License 许可
- MIT
- 所属仓库
- yasik/skills
- 最近更新
- 2026-11-08
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- create-pr
- description
- Prepare and open or update a reviewable GitHub pull request using the bundled editable template. Use when asked to create a PR or prepare its title/body; preserve draft-only and no-push requests.
02 资源文件 1
- 参考文档references/pr-template.md387 B
03 SKILL.md 正文
Create a PR
Make the final change easy to assess. Use the exact section and checklist layout in pr-template.md; this is the user's editable template. Read it each time rather than reproduce it from memory.
Prepare the change
- Resolve the repository, branch, remote host, intended base, and existing PR.
Inspect status, the full branch diff, and in-scope local changes. Never include
another task's edits or secrets. Do not assume the current branch is safe to push.
Leave planning artifacts, such as
docs/plans/and scratch notes, out of the PR unless the repository already tracks them. - Reconcile the final scope with the request. Split unrelated work only when needed and authorized; do not rewrite history just to make it look tidy.
- Check applicable repository conventions, meaningful tests, and public-doc impact.
Use
simplify-code,review-code, andunit-test-coverageas needed. Reuse relevant completed checks/reviews when their inputs have not changed. Do not create tests or docs solely to tick a box. - Complete authorized fixes and verification before presenting a PR as ready. If a material check is blocked, report it explicitly and use a draft PR unless the user's stated delivery mode requires otherwise.
Write for the reviewer
Use a concrete title about the resulting behavior. In Summary, state the problem and what changes; give a before/after trigger when useful. Scale detail to the diff. In Test plan, list checks actually run, observed results, and material limitations. Do not substitute a proposed future test for a completed one.
Preserve the template's checklist wording. Check an item only when supported by
what was actually done. For irrelevant tests/docs or unavailable make targets,
leave that item unchecked and explain why in Test plan. Name the commands that
actually ran; do not claim make lint ran when only another tool ran.
Do not include session history, discarded alternatives, raw transcripts, or private context. Rewrite the title/body around the final implementation after scope changes.
Commit messages
Follow the repository's commit convention when one exists. Otherwise write a concise subject in the imperative mood ("Reject unknown protocol versions"), one logical change per commit, and a body only when the reason is not obvious from the diff. Do not add "Co-Authored-By", "Authored by", or tool attribution lines to commits or PR text unless the repository requires them.
Publish within authority
A request to create a PR includes the necessary in-scope commit and push unless explicitly restricted. A title/body-only request stops at the prepared text. Inspect what will be committed and pushed. Use explicit paths for staging; do not amend other authors' commits, force-push, or push directly to the base. If local branch state cannot be used safely, prepare an isolated branch or explain what concrete decision is required. Never reset unrelated work.
Use the available GitHub connector or authenticated gh CLI, including Enterprise
hosts. Prefer structured title/body arguments; with gh, write Markdown to a
UTF-8 temporary file and pass --body-file. Never interpolate the body into shell
code. Reuse the existing PR for the same branch instead of creating a duplicate.
Read the resulting PR back and verify base, head, draft status, title, and body.
Attach it to the current chat when the host supplies that capability. Report the
URL, verification, and unresolved limits. Creation does not imply approval, merge,
deployment, or an ongoing watch. Use babysit-pr only when watch work is requested.
04 同仓库更多 Skills
terminal-report
Produce beautiful, structured terminal output for a CLI or analysis tool — ANSI colors, aligned data tables, inline bar charts, diverging/centered bars, tagged progress logs, sparklines, and section headers. Use this skill whenever you are building a command-line tool, analysis script, report generator, data dashboard, or status/progress display that prints to a terminal, OR whenever the user wants output to look "polished", "colored", "styled", "like a dashboard", or shows a screenshot of a pretty terminal and asks how to make one. Applies even when the user just says "print the results nicely" or "make a little CLI for this" without naming colors or charts explicitly.
technical-prose
Write and revise technical explanations, design docs, reviews, reports, and progress updates in clear, connected prose. Use when the reader needs to understand a mechanism or decision, or when a draft feels dense, choppy, jargon-heavy, or like compressed implementation notes. Preserve technical meaning while making the reasoning easy to follow.
teach
Teach a complex topic as one complete, self-paced written lesson — chaptered sections the learner reads top to bottom, a deep-dive that slows down on the single hardest concept and breaks it into steps with worked examples, diagrams only where they actually clarify, and real citations for going deeper. Works from an explicit topic ("teach me how Raft consensus works") or from one or more links/papers/docs the user wants to be brought up to speed on — it fetches them, falling back to a browser when a page is paywalled, JavaScript-rendered, or only partially retrievable. Use this whenever the user wants to *understand* something rather than just get an answer: "teach me X", "explain this <link>", "help me understand <topic>", "I want to learn <thing>", "break this down for me", "ELI5 but properly / but deep", or when they drop a URL and ask to be walked through it like a class. Distinct from a quick factual lookup or a terse summary — reach for this when the goal is durable understanding, not a TL;DR.
mermaid-render
Render a Mermaid diagram as a beautiful, optionally animated SVG (and PNG) in a calm editorial style, instead of stock Mermaid output. Supports flowchart, stateDiagram, and sequenceDiagram. Use whenever the user wants to render, draw, beautify, restyle, or "make nice" a Mermaid / flowchart / sequence / state diagram, add animated data-flow to a diagram, or turn a described process or architecture into a polished diagram for a doc, README, or slide. All styling — colors, fonts, shapes, borders, animation — is configurable in one theme file.
dev-docs
Write, rewrite, or review developer documentation to a complete, packaged technical-writing style guide: tone, grammar, punctuation, formatting, procedures, code samples, placeholders, UI text, linking, naming, and a word list of about 700 terms, plus an index of every rule. Use whenever the user asks for developer docs, technical docs, a README, API reference, quickstart, how-to, tutorial, concept page, release notes, docstrings or reference comments, or a docs style review, or wants docs that read like a major platform's documentation. Also use to check a draft against the style guide or to look up a term in the word list.
unit-test-coverage
Select, write, and review meaningful tests of public functions and interfaces. Use when adding behavior, fixing a regression, reviewing test quality, or diagnosing failing tests. Every test must protect a critical behavior or flow; never add tests only to increase coverage.