All skills

Assess documentation for gaps, staleness, quality, and files outside the defined doc set. Preserve useful knowledge in canonical docs, then remove superseded or unnecessary files. Check changed code when the tree is dirty, otherwise assess the whole repo. Explicit modes: --review, --update, --generate, or --session to capture durable knowledge from a conversation or transcript. Use for doc creation, cleanup, freshness, quality, or saving occasional manual test procedures and results whose numbers a later run will compare against; routine suite runs and ordinary QA passes do not need test records.

Use this Skill: https://skilld.dev/gh/nielsmadan/agentic-coding/doc

This session only. Nothing lands on disk.

referencesmode-review.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Review Mode (--review)

The --review action (assess is the default; this is the explicit override). Assesses docs against the principles in references/principles.md, then offers to apply fixes.

Scope

Flag Scope Method
(none) Context-related docs Find docs related to recent conversation
<target> A feature/area as a whole Find all docs covering that feature
--staged Staged .md files git diff --cached --name-only -- '*.md'
--unpushed .md files changed across unpushed commits git diff --name-only $(git rev-list HEAD --not --remotes | tail -1)^..HEAD -- '*.md'
--all All documentation Glob docs/**/*.md (excluding docs/explain/, docs/product/, docs/superpowers/) + README.md + CLAUDE.md. Include docs/user/ (check for accuracy vs behavior, but it's human-format — don't flag verbosity). Include docs/decisions/ + docs/log/ for link/quality checks but never sync their bodies to code (append-only). Include docs/reference/, but judge it against the external subject and the version the repo now resolves — never against our code.

--unpushed derives its range from git rev-list HEAD --not --remotes (oldest unpushed commit's parent → HEAD). If nothing is unpushed, or there is no remote/upstream (or the range walks back to the root commit) so it can't be determined reliably, stop and ask the user to pick another scope.

Workflow

  1. Get file list based on scope. Include legacy and extra documentation when checking the retained set in cleanup.md; inventory completed scratch for cleanup separately from the living-doc accuracy review.
  2. Review (directly if ≤5 files, parallel sub-agents if more), checking each doc against its lifecycle — prioritize accuracy/completeness/staleness over prose. Check living docs against current code. For docs/tests/, use manual-tests.md: review procedures for repeatability and runs against their recorded revision and evidence.
  3. Report findings by priority (see Output Format). For docs/features/ docs, report divergences between the documented behavior and the implementation in both directions (doc describes behavior the code lacks; code has behavior the doc omits) without assuming either side is correct — the user reconciles. This is the implementation side of the three-layer check; review-product checks docs/product/ ↔ docs/features/.
  4. Offer to apply. Present the findings as a numbered list and ask the user which to apply — accept multiple selections. Where the tool supports an interactive multi-select prompt, use it; otherwise ask the user to reply with the numbers (e.g. 1,3,4), all, or none.
  5. Apply the chosen findings using the --update apply logic for in-place edits and cleanup.md for extraction and removal, then report what changed. none → stop without writing. Review never rewrites silently — the user always chooses.

Checklist

Accuracy:

  • No local paths (/Users/, /home/, C:\)
  • File paths / file:line references exist and are correct
  • Class/function names are current; described behavior matches the code
  • No signatures restated in prose (should reference code instead)
  • Links to related docs work
  • docs/tests/: only occasional manual operations whose results a later run compares against; procedures have usable commands, prerequisites, inputs, and evaluation criteria. Flag records of routine suite runs or ordinary feature QA passes for removal
  • docs/tests/*/runs/: observed results and original setup are preserved; missing historical details are reported as gaps, not filled from current code or measurements
  • docs/reference/: every verified claim carries a date and the version probed; upstream links resolve; no claim is stamped against a version older than the one the repo now resolves (report it as needing re-verification — do not rewrite the claim)
  • docs/decisions/: an ADR marked superseded carries a working forward link to the ADR that replaced it (one without a pointer reads as current to anyone arriving by search)
  • docs/decisions/: no two accepted ADRs answer the same question differently — report the contradiction and which one is current; never settle it by editing either body

Quality:

  • No verbatim duplication across files
  • Every in-scope doc belongs to the retained set and has a distinct purpose; extra files have a concrete extraction/removal finding under cleanup.md
  • Current-state and why are separated; gotchas documented
  • Examples are concrete (not generic placeholders)

Completeness:

  • No incomplete sections, placeholders, or TODOs
  • Key interfaces covered (APIs, components, hooks, services, utilities)
  • Root overview.md present if ~3+ docs warrant an index (Principle 5); do not flag a missing per-directory overview.md unless that subdir clearly needs one
  • Instruction file (AGENTS.md/CLAUDE.md) is lean: no derivable/enforceable content, roughly <200 lines (Principle 8)
  • Required sections match the doc type (Purpose, How it works, Gotchas for code docs; procedure/run fields from manual-tests.md for docs/tests/)

Output Format

## Documentation Review: {scope}

### Critical (fix now)
1. {file}:{line} - {issue}

### High Priority (fix soon)
2. {file} - {issue}

### Suggestions
3. {file} - {improvement}

Number findings sequentially across all tiers so the user can select by number.

Troubleshooting

Review finds no issues but coverage is incomplete

Solution: Use --all to scan the full docs/ tree against source modules; missing docs for key modules surface as completeness gaps.

Review "fixed" a stale ADR by updating its body

Cause: Treating docs/decisions/ like a live code-derived doc. An ADR describes the past on purpose, so it goes out of date by design and that is not a defect. Solution: The only edit review may propose is the **Status:** line plus a forward link to the ADR that replaced it — the fix for a decision that no longer holds is a new ADR. Revert the rewrite and report it as needing supersession.

Review "fixed" a reference doc by rewriting a verified claim

Cause: Treating docs/reference/ like a live code-derived doc. Solution: Review may flag a claim as stale against the current version and may fix links and prose, but the claim itself changes only by re-running the probe (that is --update's job). Revert the rewrite and report it as needing re-verification instead.

Source: SKILL.md on GitHub

1 alert6mo3 checks · Risk SAFE
  • Gen Agent Trust Hub6mo

    The skill manages documentation review and generation by processing project files. While the core functionality is safe, the skill is susceptible to indirect prompt injection because it reads and analyzes untrusted documentation and project instructions (CLAUDE.md), which could contain malicious directions. No evidence of data exfiltration or remote code execution was found.

  • Socket6mo

    No alerts

  • Snyk6mo

    Risk: HIGH · 1 issue

Signed by skilld at 6e73347. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
effort
high
Other metadata
argument-hint
[ (no args = context-aware assess) | --review | --update | --generate <target> | --session [--md <file>]] [--all | --staged | --unpushed]

README badge

README badge for nielsmadan/agentic-coding/doc