skills/html-artifacts/html-pr-writeup/SKILL.md
Produce a single-file HTML "PR writeup" artifact that explains a pull request to its reviewers — motivation, before/after behavior, file-by-file tour with the reasoning, where to focus the review, test plan, and rollout. Use this skill whenever the user is about to open a PR, has just finished a branch, mentions writing a PR description, asks for a PR write-up, says things like "explain this change to my team", "help me pitch this PR", "write the PR description", "summarize what I'm shipping", or wants to make sure reviewers understand intent and risk before they read the diff. Trigger even when they don't say "HTML" — the artifact format is the whole point and the user should not have to ask for it by name.
npx skillsauth add arctuition/skills html-pr-writeupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are helping the user produce one self-contained HTML file that serves as the PR's cover letter to its reviewers. The artifact replaces a wall of markdown that nobody reads with a document people actually open.
The reader is a reviewer who has not touched this code recently. They want, in this order: what changed and why it matters, what's risky, what to focus on, and what to skip.
Before writing, make sure you know:
git diff, the user's paste, or by reading the modified files.branch → main or similar.If a piece is missing and you can find it from the repo (git log, the issue tracker via MCP, the PR template), find it. If it's still missing, ask the user one focused question rather than fabricating.
Use this structure unless the user explicitly asks for something different. Skip a section if it would be empty — never pad.
PULL REQUEST · <repo>), h1 with the PR title, meta line with file count, +/-, branch, author..ba-grid component. Keep entries concrete (timings, error rates, retry counts), not adjectives.risk-tag (safe / worth a look / needs attention), what changed and why, and a short code snippet for non-trivial hunks.A right-side TOC sidebar is helpful when the document gets above ~3 screens.
The prose is what makes the difference between a PR description nobody reads and one they do. A few habits:
Apply the tokens and components in references/design-tokens.md exactly. The visual language across these artifacts is intentionally consistent:
h1/h2, mono for filenames/eyebrows/labels.Default filename: pr-<number>-writeup.html if a PR number is known, otherwise pr-<branch-name>-writeup.html.
Save in ~/artifacts/, creating the directory if it doesn't exist. If the user specified a directory or filename, honor that instead. Surface a computer:// link so the user can open it themselves — don't auto-open. Don't dump the HTML source into chat — the artifact is the deliverable.
Tell the user where you saved it and offer to (a) upload it somewhere shareable, or (b) iterate on a specific section.
Match the user's language. If the user wrote the request in Chinese, the HTML body should be Chinese (filenames, code, and color tokens stay as-is). If the user mixed languages, follow the dominant one in the request itself.
references/design-tokens.md — full CSS/component vocabulary (eyebrow, TL;DR, before/after grid, file cards with risk tags, code blocks, TOC sidebar). Read it before assembling the HTML — it has the full CSS and component markup you need to drop into the document's <style> and body.data-ai
Wrap up the work you just did and open a PR for it — branch off main/master if needed, commit only the changes you made, push, open a pull request (following .github/PULL_REQUEST_TEMPLATE.md when present), and open the PR in the browser. Targets the `upstream` remote's default branch as the base when an `upstream` remote exists, otherwise `origin`. Use when the user says "sign off", "signoff", "ship it", "open a PR for this", "commit and PR", or "wrap this up".
development
Produce a single-file HTML "thread recap" artifact that captures what was discussed in an agent / pairing / chat conversation — the questions explored, the decisions made and their tradeoffs, the dead ends we walked into, the open questions left, and the artifacts produced — so a teammate who wasn't in the room can pick up the context. Use this skill whenever the user asks to summarize a conversation/thread/session, mentions sharing a thread with colleagues, says things like "把这个对话总结一下", "share this thread with the team", "write up what we decided", "decision log for this conversation", "document the tradeoffs we made", "recap of our pairing session", or wants to hand off a Claude/ChatGPT/agent transcript as context. Trigger even when "HTML" isn't said — the artifact format is the whole point. Input can be the current session's own conversation context OR a transcript the user pastes in.
development
Produce a single-file HTML "code review companion" artifact that helps a reviewer get oriented in someone else's pull request — a risk-coloured map of every file, an annotated diff with margin notes and severity tags, the call-graph that shows how the changed pieces fit together, and the questions worth asking the author. Use this skill whenever the user is about to review a PR, has been assigned one, mentions reviewing code they didn't write, says things like "help me review this", "I need to review PR
development
Produce a single-file HTML "module map" artifact that breaks down a business module, feature, subsystem, or end-to-end workflow — inline-SVG architecture diagram with the hot path highlighted, a key-files panel, a numbered callstack walkthrough in execution order, a gotchas callout, and a glossary. Use this skill whenever the user asks to break down a module, explain how a feature works, document a business workflow, draw an architecture diagram, onboard a teammate, "explain X to me", "map out the auth flow", "walk me through the order pipeline", or "document this subsystem". Trigger even without the word "HTML" — the artifact format is the whole point. For PR review use html-pr-review; for authoring a PR use html-pr-writeup.