Core Review Workflow
Table of Contents
- When to Use
- Activation Patterns
- Required TodoWrite Items
- Step 1 – Establish Context
- Step 2 – Inventory Scope
- Step 3 – Capture Evidence
- Step 4 – Structure Deliverables
- Step 5 – Verify Findings Are Grounded
- Step 6 – Contingency Plan
When To Use
- Use this skill at the beginning of any detailed review workflow (e.g., for architecture, math, or an API).
- It provides a consistent structure for capturing context, logging evidence, and formatting the final report, which makes the findings of different reviews comparable.
When NOT To Use
- Diff-focused analysis - use diff-analysis
Activation Patterns
Trigger Keywords: review, audit, analysis, assessment, evaluation, inspection
Contextual Cues:
- "review this code/design/architecture"
- "conduct an audit of"
- "analyze this for issues"
- "evaluate the quality of"
- "perform an assessment"
Auto-Load When: Any review-specific workflow is detected or when analysis methodologies are requested.
Required TodoWrite Items
review-core:context-established
review-core:scope-inventoried
review-core:evidence-captured
review-core:deliverables-structured
review-core:findings-verified
review-core:contingencies-documented
Step 1 – Establish Context (review-core:context-established)
- Confirm
pwd, repo, branch, and upstream base (e.g., git status -sb, git rev-parse --abbrev-ref HEAD).
- Note comparison target (merge base, release tag) so later diffs reference a concrete range.
- Summarize the feature/bug/initiative under review plus stakeholders and deadlines.
Step 2 – Inventory Scope (review-core:scope-inventoried)
- List relevant artifacts for this review: source files, configs, docs, specs, generated assets (OpenAPI, Makefiles, ADRs, notebooks, etc.).
- Record how you enumerated them (commands like
rg --files -g '*.mk', ls docs, cargo metadata).
- Capture assumptions or constraints inherited from the plan/issue so the domain-specific analysis can cite them.
Step 3 – Capture Evidence (review-core:evidence-captured)
- Log every command/output that informs the review (e.g.,
git diff --stat, make -pn, cargo doc, web.run citations). Keep snippets or line numbers for later reference.
- Track open questions or variances found during preflight; if they block progress, record owners/timelines now.
Record Lessons Learned (decision journal)
If this work involved rework, a failed approach, or a blocker, record it to
docs/lessons-learned.md so the insight survives past the session (draft and
confirm):
- If leyline is installed, invoke
Skill(leyline:decision-journal) and append
a lesson entry (what_happened, what_didnt_work, root_cause, action;
set phase to review). Show the draft; append on confirmation.
- Fallback (leyline absent): append to
docs/lessons-learned.md using the
in-file ENTRY TEMPLATE; assign the next LL-NNN id.
Step 4 – Structure Deliverables (review-core:deliverables-structured)
- Prepare the reporting skeleton shared by all reviews:
- Summary (baseline, scope, recommendation)
- Ordered findings (severity, file:line, principle violated, remediation)
- Follow-up tasks (owner + due date)
- Evidence appendix (commands, URLs, notebooks)
- validate the domain-specific checklist will populate each section before concluding.
Step 5 – Verify Findings Are Grounded (review-core:findings-verified)
Every finding must be falsifiable: a citation a second pass can
mechanically re-read and confirm. Findings that fail verification do not
ship.
Use the grounded-finding schema from Skill(imbue:structured-output):
each finding carries a Location (file:line) and a verbatim
Anchor snippet copied from that line.
Write the findings to .review/findings.json (one object per finding:
id, file, line, anchor, severity, category,
recommendation, evidence_refs).
Run the verifier:
python plugins/imbue/scripts/citation_verifier.py \
--findings .review/findings.json --repo-root .
Exit 0 means every citation resolved; exit 1 lists each finding
whose path, line, or anchor did not match the source.
Drop or label UNVERIFIED any finding the verifier failed; only
verified findings enter the report. Attach the verifier output to the
evidence appendix.
If the script is unavailable, fall back to re-reading each cited
file:line by hand and confirming the anchor text is present; note the
manual fallback in the contingency section.
Step 6 – Contingency Plan (review-core:contingencies-documented)
- If a required tool or skill is unavailable (e.g.,
web.run), document the alternative steps that will be taken and any limitations this introduces. This helps reviewers understand any gaps in coverage.
- Note any outstanding approvals or data needed to complete the review.
Exit Criteria
- All TodoWrite items complete with concrete notes (commands run, files listed, evidence paths).
- Every reported finding carries a
Location + verbatim Anchor and was confirmed by citation_verifier.py (or a documented manual re-read); no unverified findings ship.
.review/findings.json exists and the verifier exited 0, or every failed finding was dropped or labeled UNVERIFIED.
- Domain-specific review can now assume consistent context/evidence/deliverable scaffolding and focus on specialized analysis.
- Any rework, failed approach, or blocker uncovered during evidence capture is recorded to
docs/lessons-learned.md (or the in-file template).
Source: athola/claude-night-market → plugins/imbue/skills/review-core/SKILL.md
1---2name: review-core3description: Provides review-workflow scaffolding for context, evidence, and output. Use at the start of any detailed review to ensure consistent, comparable findings.4---5
6# Core Review Workflow
7
8## Table of Contents
9
101. [When to Use](#when-to-use)
112. [Activation Patterns](#activation-patterns)
123. [Required TodoWrite Items](#required-todowrite-items)
134. [Step 1 – Establish Context](#step-1--establish-context-review-corecontext-established)
145. [Step 2 – Inventory Scope](#step-2--inventory-scope-review-corescope-inventoried)
156. [Step 3 – Capture Evidence](#step-3--capture-evidence-review-coreevidence-captured)
167. [Step 4 – Structure Deliverables](#step-4--structure-deliverables-review-coredeliverables-structured)
178. [Step 5 – Verify Findings Are Grounded](#step-5--verify-findings-are-grounded-review-corefindings-verified)
189. [Step 6 – Contingency Plan](#step-6--contingency-plan-review-corecontingencies-documented)
19
20## When To Use
21- Use this skill at the beginning of any detailed review workflow (e.g., for architecture, math, or an API).
22- It provides a consistent structure for capturing context, logging evidence, and formatting the final report, which makes the findings of different reviews comparable.
23
24## When NOT To Use
25
26- Diff-focused analysis - use diff-analysis
27
28## Activation Patterns
29**Trigger Keywords**: review, audit, analysis, assessment, evaluation, inspection
30**Contextual Cues**:
31- "review this code/design/architecture"
32- "conduct an audit of"
33- "analyze this for issues"
34- "evaluate the quality of"
35- "perform an assessment"
36
37**Auto-Load When**: Any review-specific workflow is detected or when analysis methodologies are requested.
38
39## Required TodoWrite Items
401. `review-core:context-established`
412. `review-core:scope-inventoried`
423. `review-core:evidence-captured`
434. `review-core:deliverables-structured`
445. `review-core:findings-verified`
456. `review-core:contingencies-documented`
46
47## Step 1 – Establish Context (`review-core:context-established`)
48- Confirm `pwd`, repo, branch, and upstream base (e.g., `git status -sb`, `git rev-parse --abbrev-ref HEAD`).
49- Note comparison target (merge base, release tag) so later diffs reference a concrete range.
50- Summarize the feature/bug/initiative under review plus stakeholders and deadlines.
51
52## Step 2 – Inventory Scope (`review-core:scope-inventoried`)
53- List relevant artifacts for this review: source files, configs, docs, specs, generated assets (OpenAPI, Makefiles, ADRs, notebooks, etc.).
54- Record how you enumerated them (commands like `rg --files -g '*.mk'`, `ls docs`, `cargo metadata`).
55- Capture assumptions or constraints inherited from the plan/issue so the domain-specific analysis can cite them.
56
57## Step 3 – Capture Evidence (`review-core:evidence-captured`)
58- Log every command/output that informs the review (e.g., `git diff --stat`, `make -pn`, `cargo doc`, `web.run` citations). Keep snippets or line numbers for later reference.
59- Track open questions or variances found during preflight; if they block progress, record owners/timelines now.
60
61### Record Lessons Learned (decision journal)
62
63If this work involved rework, a failed approach, or a blocker, record it to
64`docs/lessons-learned.md` so the insight survives past the session (draft and
65confirm):
66
67- If leyline is installed, invoke `Skill(leyline:decision-journal)` and append
68 a lesson entry (`what_happened`, `what_didnt_work`, `root_cause`, `action`;
69 set `phase` to `review`). Show the draft; append on confirmation.
70- Fallback (leyline absent): append to `docs/lessons-learned.md` using the
71 in-file ENTRY TEMPLATE; assign the next `LL-NNN` id.
72
73## Step 4 – Structure Deliverables (`review-core:deliverables-structured`)
74- Prepare the reporting skeleton shared by all reviews:
75 - Summary (baseline, scope, recommendation)
76 - Ordered findings (severity, file:line, principle violated, remediation)
77 - Follow-up tasks (owner + due date)
78 - Evidence appendix (commands, URLs, notebooks)
79- validate the domain-specific checklist will populate each section before concluding.
80
81## Step 5 – Verify Findings Are Grounded (`review-core:findings-verified`)
82
83Every finding must be falsifiable: a citation a second pass can
84mechanically re-read and confirm. Findings that fail verification do not
85ship.
86
87- Use the grounded-finding schema from `Skill(imbue:structured-output)`:
88 each finding carries a `Location` (`file:line`) and a verbatim
89 `Anchor` snippet copied from that line.
90- Write the findings to `.review/findings.json` (one object per finding:
91 `id`, `file`, `line`, `anchor`, `severity`, `category`,
92 `recommendation`, `evidence_refs`).
93- Run the verifier:
94
95 ```bash
96 python plugins/imbue/scripts/citation_verifier.py \
97 --findings .review/findings.json --repo-root .
98 ```
99
100 Exit `0` means every citation resolved; exit `1` lists each finding
101 whose path, line, or anchor did not match the source.
102- Drop or label `UNVERIFIED` any finding the verifier failed; only
103 verified findings enter the report. Attach the verifier output to the
104 evidence appendix.
105- If the script is unavailable, fall back to re-reading each cited
106 `file:line` by hand and confirming the anchor text is present; note the
107 manual fallback in the contingency section.
108
109## Step 6 – Contingency Plan (`review-core:contingencies-documented`)
110- If a required tool or skill is unavailable (e.g., `web.run`), document the alternative steps that will be taken and any limitations this introduces. This helps reviewers understand any gaps in coverage.
111- Note any outstanding approvals or data needed to complete the review.
112
113## Exit Criteria
114- All TodoWrite items complete with concrete notes (commands run, files listed, evidence paths).
115- Every reported finding carries a `Location` + verbatim `Anchor` and was confirmed by `citation_verifier.py` (or a documented manual re-read); no unverified findings ship.
116- `.review/findings.json` exists and the verifier exited `0`, or every failed finding was dropped or labeled `UNVERIFIED`.
117- Domain-specific review can now assume consistent context/evidence/deliverable scaffolding and focus on specialized analysis.
118- Any rework, failed approach, or blocker uncovered during evidence capture is recorded to `docs/lessons-learned.md` (or the in-file template).
119
120---
121
122**Source:** [`athola/claude-night-market`](https://github.com/athola/claude-night-market) → `plugins/imbue/skills/review-core/SKILL.md`