AGENT SKILL

pr

Write a pull request's title and body and open it as a draft. Use whenever a PR is about to be opened or its description written: 'open a PR', 'raise a PR', 'create the pull request', 'write the PR body', 'gh pr create', or when a ticket or /implement run finishes with a PR for review. Produces a short, visual-first body (Summary, Evidence, Merge Danger, Closes lines) built for a reviewer deciding whether to merge agent-written work. Not for /fleet reconcile's feature-branch PR into main, which only lists tickets already reviewed on their own PRs.

License 许可
MIT
最近更新
2026-11-11
Stars
★ 0
Forks
0

01 前言 Front Matter

name
pr
metadata
{ "credits": [ { "url": "https://github.com/mattpocock/skills/blob/main/skills/engineering/pr/SKILL.md", "skill": "pr", "author": "Matt Pocock" }, { "url": "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md", "skill": "show-me", "author": "Dex Horthy", "organisation": "Humanlayer" } ] }
description
Write a pull request's title and body and open it as a draft. Use whenever a PR is about to be opened or its description written: 'open a PR', 'raise a PR', 'create the pull request', 'write the PR body', 'gh pr create', or when a ticket or /implement run finishes with a PR for review. Produces a short, visual-first body (Summary, Evidence, Merge Danger, Closes lines) built for a reviewer deciding whether to merge agent-written work. Not for /fleet reconcile's feature-branch PR into main, which only lists tickets already reviewed on their own PRs.

03 SKILL.md 正文

The reader is the person who merges agent-written work. They want to decide whether to trust and merge it without reading the diff first, and in as little time as possible. Every line you add costs them reading time, so the body is the smallest thing that answers: what changed, does it work, how risky is it.

Template

## Summary

<visual, where relevant>

<one line of prose>

## Evidence

- **Before:** <one line or screenshot>
- **After:** <one line or screenshot>

## Merge Danger

**Door:** <one-way | two-way>
**Blast radius:** <one phrase>

**Look at:** <the file or decision that most deserves human attention>

Closes #<N>

? Generated with [Claude Code](https://claude.com/claude-code)

Omit any section that has nothing real to say rather than filling it. No preamble, no restating the title, no lists of files touched.

Summary

Lead with a visual when the change has a shape worth seeing, then one line of prose stating the intent. A trivial change gets the prose line alone.

  • UI changes: screenshots of the changed screen. This beats any diagram.
  • Everything else: at most one or two of the views below, the smallest that makes the point. Keep only the calls, files, states and boundaries the reviewer needs.

Pseudocode for logic:

on(save)
  if content is unchanged
    return cached result
  write new content

Call tree for runtime flow, component tree for UI structure, shallow file tree for a broad refactor, Mermaid for interaction between parts:

submitForm
  createSession
    persistPrompt
    launchAgent

A diff sketch when the surrounding shape already exists and the point is what changed. Match the sketch to the topic (call tree, file tree, component tree, control flow):

 submitForm
   createSession
     persistPrompt
+    expandSkillMention
     launchAgent

Evidence

Show proof the change works, one line per side. Screenshots for visual changes; otherwise the exact test, command or skill run with its result before and after. For skill or prose-only changes, a one-line note of the invocation you ran and what it produced is enough.

If nothing could be run, write Not verified: <why> in place of the two lines. Never describe a check you did not run. A reviewer who trusts false evidence merges a broken change, which is worse than one who knows to check.

Merge Danger

  • Door: two-way if a revert fully undoes it; one-way if it destroys data, migrates state, publishes something, or changes a contract others depend on.
  • Blast radius: one phrase naming who or what breaks if this is wrong (e.g. fleet dispatch only, every skill's frontmatter, none).

Drop the whole section for docs, typos and other changes with no runtime effect.

Look at

One optional line pointing the reviewer at the part that most needs a human: a judgement call, an unusual pattern, a spot you are least sure of. Leave it out when nothing stands out.

Closes

One Closes #<N> line per ticket the PR resolves, so GitHub closes them on merge. A bundle covering several tickets repeats the line for each.

Opening the PR

  1. Match the title to the repo's recent convention (gh pr list --state merged --limit 5 --json title).

  2. Open it as a draft:

    gh pr create --draft --title "<title>" --body "<body>"
    

    Add --base <branch> only when you were given a base; otherwise use the repo default.

  3. Print the PR URL.

04 同仓库更多 Skills

O-Marsters-1997
O-Marsters-1997/my-claude-code

obsidian-develop

Build, prototype, extend, debug and review Obsidian community plugins against a live vault: inspect the running app's UI, DOM, console and plugin state, prototype in the runtime, then verify each change with a build, reload and check loop. Use whenever the user is working on an Obsidian plugin, even when they just say "add a command", "make a sidebar view", "my settings tab is blank", "why isn't my view updating" or "get this ready for the community directory"; when they ask about the plugin API (obsidian.d.ts, Workspace, leaves, Vault, MetadataCache, FileManager, views, modals, settings tabs, CodeMirror 6 editor extensions, markdown post-processors, events); or when they want a running Obsidian instance's DOM, CSS, console or plugins inspected. Not for general note-taking, Obsidian Markdown syntax, themes without a plugin, or managing vault content (use ingest, to-vault or vault-recall for those).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

vault-recall

Answer the user's conceptual or technical question using their Obsidian vault as well as general knowledge. Use when the user asks a question (not a task) whose topic appears in the vault MOC digest from session start. Not for task instructions, not mid-task, and not for writing to the vault (that is to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

ingest

Ingest one external source (an article, course lesson, doc, PDF or URL) into the user's Obsidian vault: save the original to raw/, then build wiki/ pages per the vault's § Ingest. Use when the user types /ingest, or says "ingest this", "add this source to my wiki", "put this article/lesson in the vault as a wiki page". Works from any repo. Routing rule: someone else's words go to wiki/ (this skill); the user's own learnings and decisions go to notes/ (/to-vault).

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-tickets

Breaks a source into independently-grabbable GitHub tickets. For a code feature the source is the plan (`docs/plans/<feature>.md`, from /to-plan) and every new or changed symbol lands in exactly one ticket, its signatures copied into the ticket body; a non-code feature is cut from the PRD's slices. Cuts tickets for one feature per run. If a code feature has no approved plan, offers /to-plan instead of cutting from prose. In a repo that runs command-centre, also emits `[[task]]` blocks into its config; in a plain treepad repo, emits a Batch Manifest instead so the tickets materialise as stacked worktrees.

★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-seams

Records an agreed-but-unlanded cross-repo interface as a seam: the file a consumer's agent gets pasted into its prompt as ground truth, plus the `[[seam]]` block command-centre reads for the retirement pointer. Use when two repos need to build against an interface neither has landed yet — "record a seam for X", "we agreed on this schema, seam it", "add a seam so Y can build against Z's new field". Halts for approval before writing either file.

Skill与智能体开发
★ 0
O-Marsters-1997
O-Marsters-1997/my-claude-code

to-roadmap

Prioritises settled features into a Now / Next / Later kanban board, rendered as a self-contained ./ideas/roadmap.html. Each card is a feature, not a ticket — one card later becomes several tickets via /to-prd -> /to-plan -> /to-tickets. Boards the features in ./docs/approach.md, or the "## Accepted ideas" in ./ideas/CONTEXT.md when there is no approach doc. The approach doc is settled truth: this assigns tiers and reasons about ordering, it never re-litigates what was decided.

产品经理
★ 0