一键导入
debrief
Use for debriefs or saved findings/reports from the current task. Creates `.ai/debriefs/<slug>/index.html`; `--md` writes `index.md` instead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use for debriefs or saved findings/reports from the current task. Creates `.ai/debriefs/<slug>/index.html`; `--md` writes `index.md` instead.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use only when explicitly asked to archive/prune/compact/roll over checked tasks from TODO.md into `.ai/todos/TODO_UNTIL_YYYY_MM_DD.md`, leaving unchecked tasks.
Use only when explicitly invoked for Git commit workflows: stage intended changes, craft Conventional Prefix Format messages by default, Natural Language messages with --natural or configured repos, commit, and optionally --all, --staged, --deep, --close, or --push.
Use for dependency updates: update/bump deps, npm/pnpm/yarn/bun package upgrades, outdated checks, package.json updates, or taze.
Use for release versioning: bump/cut/tag a release, bump version, create a release, changelog updates, or version tagging.
Use for GitHub PR/issue/discussion workflows: create/update PRs or issues, post comments, start discussions; triggers include create/open PR, file/update issue, yeet.
Use to polish recently changed code: simplify for readability/maintainability and run a risk-profiled review that autonomously applies fixes. Default runs both passes; pass --simplify or --review for one. Covers code/PR review, audits, bug/security checks, reviewing diffs or changes, cleanup, refactoring, and reducing complexity.
| argument-hint | [<slug>] [--md] |
| disable-model-invocation | false |
| name | debrief |
| user-invocable | true |
| description | Use for debriefs or saved findings/reports from the current task. Creates `.ai/debriefs/<slug>/index.html`; `--md` writes `index.md` instead. |
Persist the current task's findings as a self-contained, interactive HTML debrief at ./.ai/debriefs/<slug>/index.html. Pick a slug from the user's task, build the page using the playground skill's conventions, and pre-populate it with concrete findings drawn from the transcript. Pass --md to emit a plain Markdown report at ./.ai/debriefs/<slug>/index.md instead; Markdown mode does not require the playground skill.
<slug> (optional): kebab-case folder name, e.g. auth-security-review. If omitted, derive a topical slug from the task — short (3-5 words), lowercase, dash-separated.--md (optional): emit a Markdown report at <debriefs_dir>/index.md instead of HTML. Disables the playground dependency.The playground skill is required only for HTML mode (the default). With --md, this skill has no external dependencies. scripts/prepare.sh probes for playground only when building HTML; if missing it prints the install command and exits non-zero. Manual install:
bunx skills add anthropics/skills --skill playground --global
$ARGUMENTS if provided.auth-security-review, bundle-size-analysis, tailwind-v4-migration, lcp-regression-q1. Avoid generic names (report, findings, debrief, output).^[a-z0-9]([a-z0-9-]*[a-z0-9])?$ — the helper script enforces this.Run from the skill directory:
bash scripts/prepare.sh [--md] <slug>
The script:
.agents/skills/playground, .claude/skills/playground, ~/.agents/skills/playground, ~/.claude/skills/playground. In --md mode the probe is skipped entirely.2 with the install command if playground is missing in HTML mode — relay the message verbatim and stop../.ai/debriefs/<slug>/.KEY=VALUE lines on stdout: MODE, PLAYGROUND_DIR, DEBRIEFS_DIR, DEBRIEF_PATH, EXISTS. PLAYGROUND_DIR is empty when MODE=md; DEBRIEF_PATH ends in index.md instead of index.html.If EXISTS=true, ask the user before continuing: overwrite or pick a new slug.
Skip this step when --md is set.
Read $PLAYGROUND_DIR/SKILL.md, then load one template under $PLAYGROUND_DIR/templates/ whose shape best fits the debrief:
| Debrief shape | Template |
|---|---|
| Code review / audit findings | diff-review.md |
| Document or spec critique | document-critique.md |
| Architecture / codebase tour | code-map.md |
| Learning, scope, knowledge gaps | concept-map.md |
| Data / query exploration | data-explorer.md |
| Visual / design decisions | design-playground.md |
Read only the chosen template — don't load all six. If nothing fits cleanly, pick the closest and adapt; do not invent a new template.
Write a single HTML file to $DEBRIEF_PATH that satisfies playground core requirements:
For larger payloads, embed findings as a JS array literal inside one inline <script> at the top of the file.
--md)Write a single Markdown file to $DEBRIEF_PATH. Recommended skeleton:
# <Slug in Title Case>
<One- or two-sentence summary of what was investigated and the headline takeaway.>
## Findings
### <Finding title> — severity: high|medium|low
- **File:** `path/to/file.ts:42`
- **Issue:** <one-line description>
```ts
// minimal snippet showing the issue
```
**Suggestion:** <concrete fix>.
## Next steps
- [ ] <actionable item>
Rules:
$DEBRIEFS_DIR/ if needed.After writing $DEBRIEF_PATH, open it in the user's default browser. Run this unconditionally — do not skip, prompt, or wait for confirmation:
open "$DEBRIEF_PATH"
Then print the absolute $DEBRIEF_PATH so the user can locate it.
A self-contained HTML debrief at ./.ai/debriefs/<slug>/index.html that:
With --md, the output is instead a plain Markdown report at ./.ai/debriefs/<slug>/index.md containing the same findings without the interactive UI.
./.ai/debriefs/<slug>/. Never write elsewhere..ai/debriefs/ to .gitignore if debriefs shouldn't be committed.