AGENT SKILL

pr-writing

Write a pull request title and description a reviewer who never saw the conversation can assess quickly — the concrete problem, the resulting behaviour, how it was checked and what was left out. Use when drafting or opening a PR, preparing a branch for review, writing a PR for an open-source project, or rewriting a PR after its scope changed. Follows the target repository's template, branch and commit conventions. Drafting is not permission to push or open the PR.

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

01 前言 Front Matter

name
pr-writing
license
MIT
description
Write a pull request title and description a reviewer who never saw the conversation can assess quickly — the concrete problem, the resulting behaviour, how it was checked and what was left out. Use when drafting or opening a PR, preparing a branch for review, writing a PR for an open-source project, or rewriting a PR after its scope changed. Follows the target repository's template, branch and commit conventions. Drafting is not permission to push or open the PR.

03 SKILL.md 正文

Write a reviewable pull request

Write for a reviewer triaging a queue who has not seen your conversation. Lead with what was wrong and what behaves differently now, then the evidence, then anything they must decide.

Check the target first

Read the diff, the repository's contributing guide, any PR template under .github/, and the last dozen merged PR titles for the real house style. Confirm which branch takes contributions; don't assume main or trust a stale local ref. Look for a policy on AI-assisted contributions and follow it: some projects require disclosure, some hold agent-opened PRs as drafts until a human has reviewed them.

With no convention to follow, area: imperative summary makes a good title. Never invent reviewer names, issue links, decisions or dates.

Write to the actual change

A small change can be two sentences and a test result. A larger one usually covers, in this order:

  1. What broke, for whom: the concrete trigger, before and after.
  2. What the change is, and what it deliberately is not. Naming what you left out shows you saw it and chose one change per PR.
  3. How it was tested: what ran, what it establishes, what remains unmeasured. "The new test fails without the fix and passes with it" is the most persuasive sentence a bug-fix PR can contain.
  4. Rollout notes or an open question for the reviewer, only if real.

Use the template when the repository has one. Cite line numbers only where a reviewer would click. Rewrite the title and body around the final implementation if the scope moved during the work.

When addressing several review comments, track each to its resolution; a small table helps when coverage would otherwise be hard to check.

Keep it reviewable

Group changes that must land together; split independent ones when that makes review and rollback easier. A coherent change across many files is not automatically too big, and splitting dependent halves that each fail on their own is worse. If a check was already failing before your change, say so and whether you affected it; don't call everything green.

Deliver

For a draft, return a finished, copyable title and body. When the user has authorised publishing, use the repository's normal flow, pass multi-line bodies through a file or the tool's body field rather than shell quoting, and confirm the PR opened against the right base. Stage only your own changes. Keep "drafted", "pushed", "opened", "approved" and "merged" distinct, and report only what actually happened.

Title: exports: reject an empty destination before starting

An export with an empty destination started and reported success without producing a file. This validates the destination before dispatch and returns an actionable error.

The new test fails on main and passes here; a valid destination still produces a readable export. Delivery to production storage was not exercised.

04 同仓库更多 Skills

marliechorgan
marliechorgan/claude-setup

write-human

暂无简介

★ 0
marliechorgan
marliechorgan/claude-setup

worker-brief

Write the brief for a subagent, background agent or headless Claude session so it can succeed with no memory of this conversation, then lint it before dispatch. Use whenever you delegate — spawning an Agent or Task call, handing a job to a subagent, writing a prompt for another agent or session, queueing work for later, or re-briefing a worker whose first attempt missed. Covers acceptance first, inputs checked now, gotchas, write scope, authority, budget and partial returns, a separate report path, and permission to push back. For several workers on one job, use fanout-brief as well.

★ 0
marliechorgan
marliechorgan/claude-setup

test-crew

Test a running app, tool, AI agent or plan in minutes with a crew of independent AI testers run in parallel against the real thing on this machine - a user who tries to get the job done, an attacker who tries to break in or misuse it, a strategist who asks whether it is worth using, and optionally a breaker for edge inputs - each finding tied to an input that reproduces it. Use when the user says test it, try it out, does this actually work, is it ready, sanity-check it, pentest or red-team it, UX test, user test, stress-test the plan, or before calling a build done, demoing or shipping it; also to test a chatbot or agent with a simulated user and attacker. Fast and local, not a diff review (review-changes) or a CI suite. Ships a planted-defect app to check the crew itself still catches what it should.

★ 0
marliechorgan
marliechorgan/claude-setup

review-changes

Use this skill whenever someone asks you to review, check or look over a diff, pull request, patch, script or config change, however short, and before you call your own change ready. Reviews changed code, scripts or configuration — a diff, a pull request, the first working version of a feature, partial work being parked, a helper script whose output you are about to rely on, or several workers' changes combined. Use when asked to review, check or sanity-check a change, and on your own at those points during a build. Runs each new check against its whole input class, opens every caller and consumer the change touches, looks for other routes around a guard, compares the result with main, and reports only findings that matter, each with the input that reproduces it.

★ 0
marliechorgan
marliechorgan/claude-setup

oss-contribute

Take an open-source repository you have never opened to a small, reviewable pull request in one session — pick an unclaimed issue, open the clone safely, learn the project's rules, fix it test-first, write it up, and stop for the human to push. Use when the user says contribute to X, find me something to fix in X, any good first issues in X, ship a PR to X, or can we fix this bug upstream. Includes quarantining a stranger's repo so its CLAUDE.md, AGENTS.md and .claude/ folder cannot load as instructions or hooks. Stops at green tests and a diff; the human opens the PR.

★ 0
marliechorgan
marliechorgan/claude-setup

multi-agent-system-design

Design, debug and test applications built from AI agents — chatbots, assistants, tool-using agents and multi-agent workflows. Use when designing agent roles, tools, prompts, shared state or handoffs; when an agent misbehaves (asks for things it was already told, ignores an instruction, calls the wrong tool, says it did something that never happened, loops or stalls); when reviewing an agent architecture; or when proving an agent change works by testing the running app with a simulated user and checking what was actually saved. Covers retrieval and record selection, recovery and retries, rules that must hold, and explaining the design. For splitting the build across several Claude workers, use fanout-brief.

★ 0