From architecture-investigation
Audit a freshly-written Investigation Brief for gaps, ambiguity, and weak definitions, then close every gap — by re-reading the grilling, re-reading the codebase, or grilling the user again via AskUserQuestion. Iterates until the brief is solid. Invoked by the `/architecture-investigation:investigate` orchestrator after `write-investigation-brief` and before the user reviews. Sets `status: reviewed` when done.
How this skill is triggered — by the user, by Claude, or both
Slash command
/architecture-investigation:peer-review-briefThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. Identify the investigation id. If unclear, list `findings/*` and use `AskUserQuestion` to ask.
findings/* and use AskUserQuestion to ask.findings/<id>/brief.md.brief.md does not exist OR its status is approved (already passed user review) OR something other than draft / reviewed: stop and exit. Tell the user the brief isn't in a reviewable state.You audit the brief, close gaps, and produce a tighter brief. You are not the user's review — the user will review what you hand back. Your job is to catch what the brief writer missed so the user's review can be about judgment, not gap-spotting.
Walk the brief section by section. For each, mark clean or gap.
For every gap, try in this order:
findings/<id>/grilling.md. Maybe the answer is there and the brief writer didn't carry it across.AskUserQuestion with 3–4 multi-choice options and a recommended one. Same shape as grill-the-investigation.When a gap is closed, edit brief.md in place. Do not append a "review notes" appendix — the brief is a one-page artifact, not a changelog.
When you grill the user, append the Q&A to grilling.md under a ## Follow-up answers (from peer-review-brief) section. This keeps the grilling record complete.
Loop, max 3 iterations:
AskUserQuestion round.If gaps remain after 3 iterations, surface them to the user via AskUserQuestion:
"I couldn't close these N gaps without more info. Do you want to answer them now, or accept the brief with the gaps noted?"
- Answer them now
- Accept the brief with gaps flagged (the brief will get an explicit "Open questions" section)
Do not loop indefinitely.
Set brief.md frontmatter to status: reviewed. Hand back to the orchestrator. The orchestrator presents the brief to the user, who picks Approve / Edit / Redo.
npx claudepluginhub grooviz/aqzsedrf2 --plugin architecture-investigationCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.