recap-doc

Generates post-development recap documents from git scope reports with blind-spot detection.

189|25|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sd0xdev/sd0x-harness --skill recap-doc-sd0xdev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: recap-doc
Source: https://github.com/sd0xdev/sd0x-harness/tree/main/skills/recap-doc
Command: npx skills add https://github.com/sd0xdev/sd0x-harness --skill recap-doc-sd0xdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? After an AI-assisted development session, developers struggle to reconstruct what changed and why. This Skill turns a detected change scope into a structured walkthrough document covering file-level intents, design decisions, spec drift, blind spots, and anticipated questions. ## Core Features & Use Cases - Scope-driven recap generation: Consumes a ScopeReport JSON (from detect-scope.js) and collects git evidence (log, diff stats, hunks) for the changed files only. - Mandatory blind-spot analysis: Applies heuristics (test-without-source, config-only changes, large deletions, security-sensitive paths) and always emits a Blind Spots section, even when empty. - Depth-controlled output: brief/normal/deep levels control top-N file coverage (5/10/15), code snippets, and whether Anticipated Questions are included. - Safe output handling: Redacts secrets before writing and confines output to the OS temp directory by default, with realpath-validated opt-in paths inside the repo. - Use Case: After Codex implements an auth feature, run the recap to get briefing-recap-2026-04-17.md with per-file explanations, spec-vs-implementation drift, and follow-up questions to review. ## Quick Start Ask the AI to run /recap-doc with the scope JSON produced by detect-scope.js, for example: generate a recap of this round of changes at normal depth.

Frequently Asked Questions about recap-doc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a recap of what changed in a coding session?▼

Run /recap-doc with a ScopeReport JSON produced by scripts/detect-scope.js, for example /recap-doc --scope /tmp/scope.json --depth normal. The skill collects git evidence for the changed files and writes a briefing-recap markdown to the temp directory.

What is the difference between recap-doc, recap-ask, and tech-brief?▼

recap-doc generates the walkthrough document for the current round of changes. recap-ask answers interactive follow-up questions over an existing recap, while tech-brief produces a stable technical share-out narrative for teammates across a whole feature.

Where does the recap document get saved by default?▼

Output is ephemeral by default, written to <tmp>/sd0x-dev-flow-recap/briefing-recap-<date>.md where <tmp> resolves via $TMPDIR, os.tmpdir(), then /tmp. To commit it with feature docs, pass --output with a path that resolves inside the repo root or temp directory.

What do the brief, normal, and deep depth levels change?▼

Depth controls the top-N changed files covered: 5 for brief, 10 for normal, 15 for deep. Brief omits the Anticipated Questions section and caps blind spots at three; deep adds inline code snippets and diff stats in the evidence section.

Why does recap-doc refuse to write my output file?▼

Writes are rejected when the realpath-resolved target escapes both the repo root and the temp directory, or when security-redact.js detects a high-confidence secret in the output. Choose a path inside the repo or temp directory and remove any secret-shaped strings.

When should I not use recap-doc?▼

Avoid it for interactive Q&A over an existing recap (use recap-ask), teammate-oriented technical share-outs (use tech-brief), single-function explanations (use codex-explain), or first-principles reasoning over an existing document (use fp-brief).