/agent-skills:pr-checklistfrom Agent Skills
Run the pre-PR definition-of-done checklist for a feature branch. Ensures types, unit tests, E2E tests, docs, visual verification, and screenshots are all complete before opening a PR or marking a Linear issue In Review. Uses per-repo guidelines from .agents/pr-guidelines.md or .claude/pr-guidelines.md; offers to scaffold them if not. Use whenever a development task is considered "done" or a PR is about to be opened.
Ships in Agent Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use the active harness's shell, file, test, browser, and image-inspection capabilities. Look for .agents/pr-guidelines.md and .claude/pr-guidelines.md; if both exist, merge compatible requirements and stop on conflicts. Harness hook formats are optional enforcement adapters—the checklist itself remains authoritative in Claude Code and Codex.
A feature is NOT done until every item below passes. Do not open a PR, push to main, or mark a Linear issue In Review until this checklist is complete. Once the checks finish, publish their QA summary in the GitHub PR as described in Step 7; the detailed report (a Compass Doc on Compass projects, a vault note otherwise) remains the durable evidence record.
Before running any checklist step, resolve the repository guidance file:
for f in .agents/pr-guidelines.md .claude/pr-guidelines.md; do test -f "$f" && echo "$f"; done
If the file exists: read it and let it override or extend every step below. The guidelines file is the authoritative source for this repo's definition of done. Any command, viewport, coverage threshold, or process it specifies takes precedence over the defaults in this skill.
If neither file exists: offer to create the harness-native file before proceeding (.agents/pr-guidelines.md for Codex, .claude/pr-guidelines.md for Claude Code):
"This project doesn't have a harness PR-guidelines file yet. That file lets you customize the PR checklist per repo — commands, viewports to test, screenshot tooling, docs location, coverage requirements, etc.
Want me to set it up now? I'll ask a few questions about this project and generate a tailored file. (You can also say 'skip' to run the default checklist this time.)"
If the user says yes, run the Guidelines Setup Wizard below. If they say skip, continue with the defaults in Steps 1-6.
Ask the following questions, then write the harness-native guidelines file. Commit it so all contributors and future assistant sessions inherit the config.
Questions to ask:
tsconfig.build.json, tsconfig.json, or none)pnpm test:e2e) Any known
setup steps (env file, dev server, seed data)?pnpm docs:screenshots) Where are they committed?docs/, content/,
README.md)Write the output as a Markdown file using the template below. Fill in every section the user answered; omit sections that don't apply.
# PR Guidelines — <Project Name>
Generated by the pr-checklist skill. Edit freely.
## Commands
| Task | Command |
|---|---|
| Type-check | `<tsc command>` |
| Unit tests | `<test command>` |
| E2E tests | `<e2e command>` |
| Screenshots | `<screenshot command or "none">` |
## Coverage Requirements
- Unit test minimum: <threshold or "none specified">
- E2E: every new user-facing flow must have a test
## Visual Verification
Whenever any UI is touched, manually verify at these viewports before opening
the PR:
- **Desktop:** <e.g. 1280x800>
- **Mobile:** <e.g. 390x844 (iPhone 14)>
- <any additional viewports>
For each viewport, confirm:
- [ ] Layout is not broken (no overflow, no collapsed sections)
- [ ] Interactive elements are reachable and usable
- [ ] No visual regressions from the diff
- <any project-specific items, e.g. dark mode, RTL>
## Docs Location
User-facing docs live in `<path>`. Review and update any page related to the
changed feature.
## Issue Tracker
Move the Linear issue to **In Review** before opening the PR.
## Project-Specific Gates
<list any extra gates, or delete this section>
Run the TypeScript compiler and fix all errors before anything else. Use the
command from .claude/pr-guidelines.md if present; otherwise:
pnpm tsc --noEmit --project tsconfig.build.json
Run the command from .claude/pr-guidelines.md if present; otherwise:
pnpm test
Requirements:
Run the command from .claude/pr-guidelines.md if present; otherwise:
pnpm test:e2e # use the e2e-local skill to set up environment first
Requirements:
If the test command crashes before running any tests (e.g. "Vitest cannot be imported in CommonJS", "command not found", process exits before reporter output): this is a tooling bug, not a test failure. Stop and fix the tooling before treating any work as done.
Skip this step entirely if no UI files were touched in this branch.
If the guidelines file defines viewports, use those. Default viewports when no guidelines file exists:
For each viewport, manually verify (or use Playwright/screenshot tooling if available):
If a visual regression is found, fix it before proceeding. Do not open a PR with a known visual bug and plan to fix it "later."
Write a QA report — do not skip this even if you're about to summarize in chat. Chat summaries are invisible to the user when this skill runs inside a background subagent; a written report is the only durable record.
Where the report goes depends on the project. Decide first:
the project uses Compass if pm-config.md (repo root, or Products/<Project>/pm-config.md
in the vault) has a ## Provider Connections → Compass section. If it does, Compass is the
primary record (path A) and the vault is a fallback. If not, use the vault only (path B).
Org slug, Workspace slug, Workspace ID).
Geode sessions already have the native mcp__compass__* tools authenticated; elsewhere use
the credential the section names.list_tasks for the branch/PR/topic;
else create_task, status IN_REVIEW, with the PR link once it exists). Link it to its
Solution or Roadmap Item with link_task when one fits; if an approved standalone delivery
Task already exists use it rather than duplicating; if nothing fits, say so in the report
rather than inventing an association. Every PR on a Compass project needs a Task: the gate checks for it.QA_REPORT:
write_doc(workspaceId,
path: "QA Reports/<YYYY-MM-DD> <feature or PR title>",
kind: "QA_REPORT",
content: <markdown: heading "## QA Report — <HH:MM>"; per viewport/mode pass/fail against
the four bullets above; commands run with their REAL pass/fail counts and the
machine they ran on; screenshots taken; a "NOT VERIFIED" list; PR and preview
links; if screenshots are in the vault, their vault-relative paths>)
Record only OBSERVED output. Mark anything unverified as NOT VERIFIED. Get the doc's id and
url from list_docs(kind: "QA_REPORT").link_task(taskId, linkedType: "DOC", linkedId: docId), and post
add_comment(targetType: "TASK", targetId: taskId, authorName: "Claude Code", body: "QA Report: <doc url> — PASS|FAIL"). If a Solution is known, also comment on it
(add_solution_comment).prepare_doc_image_upload, private upload, returned Markdown) and embed the actual
screenshots, not a pointer to the vault. Inspect the images for secrets and unrelated private
data first. Label each capture or group with commit/version, capture date, environment
(local/preview/production), viewport and state. Never publish upload tokens or use public
hosting to bypass workspace access controls.
Verify delivery: read the saved Doc back, then open it as an authorized workspace reader
and confirm every embedded screenshot renders. A successful upload response or saved Markdown
alone is not display verification. If upload or display checking is blocked, mark
screenshot publication incomplete with the reason, separately from passing tests; local
evidence does not clear hosted verification gates. Keep the originals in the vault under
Attachments/QA/<Project>/<YYYY-MM-DD>-<slug>/ as an archive and link any vault file you
create from today's Daily/YYYY-MM-DD.md under ## Claude Sessions. Do not use a vault
path as the Doc's evidence link.~/.claude/qa-gates/ (create it if missing), file name = branch with each / and space
replaced by __, plus .gate; one line:
QA-GATE: PASS branch=<branch> task=TASK-<n> report=<Compass doc URL>
The PR-create hook requires task= and report=, the right branch, and a file touched in the
last 24h.Products/<Project>/Runs/<slug>-<YYYY-MM-DD>-<topic>.md
with a ## QA Report — <HH:MM> section, then add these two lines to it:
QA-GATE: PASS branch=<branch>
COMPASS-UNAVAILABLE: <the actual error text>
and back-fill the Compass Doc and Task link once Compass returns (then write the receipt).Products/<Project>/Runs/<project-slug>-<YYYY-MM-DD>-*.md (vault-relative; project name
from the repo directory/package.json, capitalized). Append to today's note if one exists
(most recently modified if several); otherwise create ...-<YYYY-MM-DD>-qa.md.## QA Report — <HH:MM> section listing, per viewport/mode checked: pass/fail
against the four bullets above, and what was actually different if something failed and got
fixed.Attachments/QA/<Project>/<YYYY-MM-DD>-<slug>/ and embed with
![[Attachments/QA/<Project>/.../file.png]].QA-GATE: PASS branch=<branch> to that note once everything passed, and link it
from today's Daily note.Docs location comes from .claude/pr-guidelines.md if present; otherwise
check docs/ or the project root.
If the guidelines file specifies a screenshot command, or the project has a
pnpm docs:screenshots script:
<screenshot command>
Build a concise Markdown summary from the checks actually run. Do not claim a check passed without its command output or other direct evidence. Include:
Not applicable — no UI changesWrap the summary in stable markers so rerunning the checklist replaces the existing report instead of appending duplicates:
<!-- qa-report:start -->
## QA Report
**Status:** PASS | FAIL
| Check | Result | Evidence |
|---|---|---|
| Type-check | PASS | `<command>` — <result> |
| Unit tests | PASS | `<command>` — <count/result> |
| E2E tests | PASS | `<command>` — <count/result> |
| Visual verification | N/A | No UI changes |
| Docs/screenshots | PASS | <what was reviewed or regenerated> |
**Known gaps:** None.
**Detailed evidence:** `<compass-doc-url, or vault path when Compass was unavailable or the project has none>`
**Compass doc:** `<url, or "N/A — project not Compass-managed">`
<!-- qa-report:end -->
Resolve whether the current branch already has a PR with gh pr view. Then:
gh pr edit --body-file <file>. Preserve every other part of the PR
body verbatim. Read the PR body back afterward and confirm the marked report
is present.create-pr skill must include it in the initial PR body and verify
it after creation. Do not open a PR merely because this checklist ran unless
opening one is already authorized by the user's request.If GitHub authentication, permissions, or network access prevents publication, report the exact failure and return the ready-to-paste marked block. Do not describe the GitHub QA report as published until the read-back verification succeeds.
Build the final checklist from the guidelines file if present; otherwise use these defaults. Present it to the user as a completed checklist with pass/fail status for each item:
tsc --noEmit cleanCOMPASS-UNAVAILABLE line). Other projects: vault run note with embedded screenshots,
state the pathInvoke this skill proactively at the end of any development task — before declaring it done, before asking the user to review, and before opening a PR. The user should never have to ask "did you run the tests?" — that should always already be done.
"Invoke proactively" is voluntary and fails under momentum. If you are doing autonomous work on a project — especially multi-step builds where you will push multiple times — install the enforcement hook before starting, not after something breaks.
Claude Code adapter: check whether .claude/settings.json exists in the project root. If it
doesn't, create it with this hook. Codex does not use this hook schema; keep the
gate in AGENTS.md and the skill checklist instead of writing an incompatible hook.
{
"hooks": {
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"if": "Bash(git push*)",
"command": "jq -r 'if (.tool_input.command | test(\"git push\")) then {\"hookSpecificOutput\":{\"hookEventName\":\"PostToolUse\",\"additionalContext\":\"QUALITY GATE: You just pushed to git. Before declaring this work done you MUST run the pr-checklist skill (or check .claude/pr-guidelines.md for this repo's requirements). Do not tell the user the work is done until the full checklist passes.\"}} | tojson else empty end'",
"timeout": 5
}
]
}
]
}
}
This injects a blocking reminder into context after every git push, making
the checklist structural rather than voluntary. Commit .claude/settings.json
so it applies to the whole project, not just one session.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (richardbowman/agent-skills) — no native marketplace selected
npx claudepluginhub p/richardbowman-agent-skills32 skills in this plugin
/backup-vercel-secretsBack up Vercel production and preview environment variables to 1Password as individual key/value fields. Use when the user wants to snapshot or archive their Vercel secrets for a project./brain-dumpInteractive knowledge extraction interviewer. Enters a structured interview mode to extract tacit knowledge from the user and saves a full transcript plus structured notes to the Obsidian vault./brainstormActive ideation partner. The assistant leads the session by proposing angles, surfacing frameworks, filling knowledge gaps, and challenging assumptions. Produces a structured Obsidian ideation doc and session transcript.Other plugins' skills for the same job