plugins/compound-engineering/skills/document-review/SKILL.md
Review workflow artifacts such as brainstorms, plans, architecture docs, tickets, and compounded learnings with artifact-aware lenses, including headless workflow invocation
npx skillsauth add the-rabak/compound-engineering-plugin document-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Improve workflow documents through structured, artifact-aware review.
This skill supports both:
If a document path is provided, read it first and infer the artifact type from path and content.
Dual-read by artifact extension. Brainstorm, plan, and architecture artifacts may each be legacy .md or the .html-artifact output (brainstorm since T03, plan since the html-artifacts pilot, architecture since T04). Detect which reader applies from the artifact's own file extension before reading its content: .md -- parse frontmatter and sections as today (legacy path, unchanged). .html -- load commands/workflows/references/html-artifacts/island-extraction-helper.md, quote its first non-empty line, and read the artifact's #artifact-data JSON island for that kind's fixed-core facts instead of frontmatter/sections. If extraction fails for any reason, stop immediately and report the artifact path and the exact failure per the helper's fail-loud branch -- do not proceed on partial data, scrape the rendered HTML, or fall back to a .md mirror (none exists for an .html artifact). Ticket-index, ticket, and solution artifacts stay .md-only.
If no document is specified, ask which artifact to review or look for the most recent relevant file in:
docs/brainstorms/ (.md or .html)docs/plans/ (.md or .html)docs/architecture/ (.md or .html)docs/tickets/docs/solutions/Classify the artifact as one of:
If the caller already specified the review mode, trust it unless the file clearly contradicts it.
Do not review an artifact in isolation when its contract depends on linked docs.
Load only the minimum linked artifacts needed to judge handoff integrity:
brainstorm_ref, constitution, and architecture_ref if already recordedIf a required linked artifact is missing, note that as a review finding instead of inventing the missing context.
Always review for these baseline lenses:
Then apply artifact-specific lenses.
/deepen-plan, /workflows:work, and /workflows:review can actually use this artifactKeep findings short and actionable. Use these buckets:
Also identify one critical improvement if a single change would most improve the artifact.
Keep edits in the same file. Do not create parallel review docs, checklists, or metadata-only artifacts.
Simplification is purposeful removal of unnecessary complexity, not shortening for its own sake.
Simplify when:
Don't simplify:
After changes are complete, ask:
After 2 refinement passes, recommend completion—diminishing returns are likely. But if the user wants to continue, allow it.
Return control to the caller (workflow or user) after selection.
If this skill was invoked by another workflow for a non-interactive pass, do not ask follow-up questions unless a blocking ambiguity truly prevents review.
Return a concise summary:
## Document Review
- **Artifact type:** ...
- **Critical improvement:** ...
- **Edits made:** ...
- **Remaining blockers or open questions:** ...
development
Mutates a single field or content region of an existing self-contained HTML artifact in place (island-first, no-added-facts, injection-safe) without regenerating the document from scratch. Invoked by a workflow command whenever it needs to back-write into an artifact it already composed -- e.g. a ref/status update, or a content rewrite that must re-project the affected view -- never by the user directly.
development
Composes a self-contained, interactive HTML artifact (island-first, single file, token-layer themed, injection-safe) from a workflow command's structured plan payload. Invoked by a workflow command at its artifact-write step -- currently `/workflows:plan` -- never by the user directly.
development
Mutates a single field or content region of an existing self-contained HTML artifact in place (island-first, no-added-facts, injection-safe) without regenerating the document from scratch. Invoked by a workflow command whenever it needs to back-write into an artifact it already composed -- e.g. a ref/status update, or a content rewrite that must re-project the affected view -- never by the user directly.
development
Composes a self-contained, interactive HTML artifact (island-first, single file, token-layer themed, injection-safe) from a workflow command's structured plan payload. Invoked by a workflow command at its artifact-write step -- currently `/workflows:plan` -- never by the user directly.