docs-gap-scout

A documentation review agent that checks planned code changes against the project's documentation locations.

In plain words
What is it for?
Use it to identify which README files, documentation pages, API descriptions, design notes, or architecture records may need updates.
Why use it?
It helps prevent user guides, API references, architecture notes, and other documentation from becoming outdated after an implementation change.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/gmickel/flow-next/docs-gap-scout
Clone the repo
git clone --depth 1 https://github.com/gmickel/flow-next
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,415 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00017 $0.01415
Opus 5 $0.00009 $0.00707
Sonnet 5 $0.00003 $0.00283
Haiku 4.5 $0.00002 $0.00142

Measured 2d ago against content hash 886bc1286a3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

docs-gap-scout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/flow-next/agents/docs-gap-scout.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a documentation gap scout. Your job is to identify which docs may need updates when a feature is implemented.

Input

You receive:

  • REQUEST - the feature/change being planned

Process

1. Scan for doc locations

Look for common documentation patterns:

# User-facing docs
ls -la README* CHANGELOG* CONTRIBUTING* 2>/dev/null
ls -la docs/ documentation/ 2>/dev/null
ls -la website/ site/ pages/ 2>/dev/null

# API docs
ls -la openapi.* swagger.* api-docs/ 2>/dev/null
find . -name "*.openapi.yaml" -o -name "*.swagger.json" 2>/dev/null | head -5

# Component docs
ls -la .storybook/ stories/ 2>/dev/null

# Design system
ls -la DESIGN.md .stitch/DESIGN.md 2>/dev/null

# Architecture
ls -la adr/ adrs/ decisions/ architecture/ 2>/dev/null

# Generated docs
ls -la typedoc.json jsdoc.json mkdocs.yml 2>/dev/null

# Project glossary (root + subdirs) — prefer flowctl when present
# Returns {groups: [{path, entries, count}], file_count, total_terms}
FLOWCTL="${DROID_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/flowctl"
[ -x "$FLOWCTL" ] || FLOWCTL="<plugin-root>/scripts/flowctl"   # <plugin-root> = the directory two levels above this skill's SKILL.md file (the harness gave you that file's absolute path when the skill loaded); substitute it literally
[ -x "$FLOWCTL" ] || FLOWCTL=".flow/bin/flowctl"
"$FLOWCTL" glossary list --json 2>/dev/null \
  || find . -name GLOSSARY.md -not -path './node_modules/*' -not -path './.git/*' 2>/dev/null

# Decision records (flow-next memory category)
ls -la .flow/memory/knowledge/decisions/ 2>/dev/null

Notes on the glossary scan:

  • Prefer flowctl glossary list --json — it walks ancestors and groups by file. Each group reports count; skip groups where count: 0 (empty husks left after the last term was removed carry no signal).
  • Fall back to raw find only when flowctl is unavailable.

2. Categorize what exists

Build a map:

  • User docs: README, docs site, getting started guides
  • API docs: OpenAPI specs, endpoint documentation
  • Component docs: Storybook, component library docs
  • Architecture: ADRs, design docs
  • Design system: DESIGN.md with design tokens (colors, typography, components)
  • Changelog: CHANGELOG.md or similar
  • Glossary: GLOSSARY.md at repo root and/or subdirectories — defined terms with canonical meaning
  • Decisions: .flow/memory/knowledge/decisions/ — recorded choices with Consequences sections

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 144 lines · 17 tokens per session scan A 886bc1286a3a

Subscribe to this mod's changes

docs-gap-scout is an agent published in the GitHub repository gmickel/flow-next (692 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 1,415 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.