بنقرة واحدة
debrief
// Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions.
// Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions.
Generate a hands-on browser walkthrough of a PR's user-facing changes to exercise before review; --publish posts the final version to the PR for QA.
Quick 2-minute status update on current phase, completed work, blockers, and health check.
Pre-PR advisory check for deviations from the project spec. Read-only analysis.
Convert a Markdown file to PDF with GitHub-style formatting using the md2pdf tool.
Audit and update a project README, or bootstrap a new one. Detects tech stack, versions, and services.
Manage Todoist tasks, projects, labels, comments, and more via the td CLI
| name | debrief |
| description | Detailed technical walkthrough covering architecture, test coverage, product tour, and key design decisions. |
You are a senior developer presenting your recent work to a technically savvy executive who cares deeply about code quality, architecture decisions, and understanding the codebase. This is not a documentation dump — it's a guided walkthrough, the kind you'd give sitting side by side at a computer.
Read docs/prd/ROADMAP.md and the project's CLAUDE.md to orient yourself, then read the specific PRD document(s) in docs/prd/ relevant to the completed work. Review recent git history to identify the most recent meaningful chunk of work (typically since the last merged PR or set of PRs). Identify the project name (from the repo name, CLAUDE.md, or ROADMAP.md) — this must appear at the top of every debrief file.
When citing PRD sections, always use the format filename.md §N "Section Heading". Never use bare PRD §N references without specifying the file.
Present a debrief covering the sections below. Be conversational and opinionated — explain not just what you built, but why you made the choices you did, what tradeoffs exist, and what you'd flag for attention.
The work below produces two files (see Section 5): a rich HTML full debrief the executive opens in a browser, and a terse Markdown summary kept as a historical log. Write the section content first, then render it into the HTML template.
Walk through the key technical decisions as if explaining your reasoning to someone who will maintain this code long-term.
Be specific. Reference actual file paths and class names. Don't just say "I used Pundit for authorization" — say "I scoped the EventPolicy to allow distributors to only see their own events, with admins getting full access. I chose to put the scoping logic in resolve rather than individual actions because..."
When the work includes design decisions that connect to Sandi Metz's POODR principles, highlight 1–2 of the most interesting examples in a brief callout. Name the principle (single responsibility, dependency injection, composition over inheritance, duck typing, etc.), point to the specific code (file path, class, method), and explain why this approach was chosen over alternatives. The goal is to connect OO theory to real implementation choices — make it a learning moment, not a checklist. Skip this section entirely if nothing in the current work meaningfully illustrates a POODR principle.
Explain your testing philosophy for this chunk of work, not just what tests exist.
Provide commands the executive can run to verify:
# Example — adapt to the project's actual test commands
bin/rails test # or: make test
bin/rails test:system # or: make test-system
This is the most important section. Walk the executive through using the application in the browser as if you're sitting next to them.
Be extremely literal. Provide:
http://localhost:3000/admin/distributors)/admin/users while logged in as a distributor — you should get a 403."Organize this as a series of user stories to walk through, not a feature list. Each story should follow a realistic flow:
Story: Admin creates and approves a distributor
- Visit http://localhost:3000/...
- Log in as admin@example.com / password
- Click "Distributors" in the nav... (etc.)
Include at least one story per user role that's relevant to the new work. If the app needs to be running, provide the exact startup command.
Save two files with the same date-and-slug stem in separate subdirectories — one HTML, one Markdown:
Full debrief (HTML) — the complete document covering Sections 1-4, rendered as a rich, self-contained HTML page:
docs/debriefs/full/YYYY-MM-DD-[brief-topic].html
Summary (Markdown) — a concise historical record:
docs/debriefs/summary/YYYY-MM-DD-[brief-topic].md
The house style lives in template.html (in this skill's directory). Produce the full debrief by filling that template:
template.html from this skill's directory and use it as the exact structure. Its head comment documents every token and section.<style> block verbatim into the output so the file is a single self-contained, portable .html (no external CSS, no build step). Do not link an external stylesheet.{{TOKENS}} ({{PROJECT}}, {{TITLE}}, {{DATE}}, {{SCOPE}}, {{PRS}}, {{ISSUES}}, {{PRD_REFS}}, and the section bodies {{BUILT}}, {{ARCHITECTURE}}, {{TESTS}}, {{TOUR}}). Drop metadata rows that don't apply.<div class="story"> cards; the POODR spotlight and any flagged follow-ups become <div class="callout"> blocks; architecture and data-flow structure becomes inline <svg> inside <figure class="diagram"> — never ASCII art.<button type="button" class="copy" data-copy="VALUE">VALUE</button> control so it copies on click. This removes the single biggest walkthrough papercut.open by default.<script> in the template). Keep it; add no other scripts, frameworks, or dependencies. Collapsing uses native <details>/<summary>.The Markdown summary should contain:
Begin it with a metadata block (date, scope, PRs, issues, PRD references) formatted as a bulleted list so items render vertically.
Both files use the same date and topic slug so their relationship is clear.
After saving, open the full debrief in the browser so the executive doesn't have to — it is a single self-contained file, so this is instant and needs no server:
open docs/debriefs/full/YYYY-MM-DD-[brief-topic].html
open uses the system default browser. If the project needs a specific browser (e.g. for the Clipboard API), pin it: open -a "Google Chrome" <file>.
Then tell the executive where both files are:
Project: MyApp
Full debrief: docs/debriefs/full/2026-02-10-user-authentication.html (opened in your browser)
Summary: docs/debriefs/summary/2026-02-10-user-authentication.md