Docs review

From mindroom-ai/mindroom · View interactive version

Docs review is an AI agent skill from the GitHub repository mindroom-ai/mindroom. Review documentation for accuracy, completeness, and consistency against the actual codebase.

How to use this skill

Skill file

Review documentation for accuracy, completeness, relevance, and consistency. Focus on things that require judgment—automated checks handle the rest.

The Documentation Policy in AGENTS.md defines who reads docs/ and what belongs there.

What's Already Automated

Don't waste time on these—CI and pre-commit hooks handle them:

What This Review Is For

Focus on things that require judgment:

  1. Accuracy: Does the documentation match what the code actually does?
  2. Completeness: Are there undocumented features, config options, user-visible behaviors, or operator procedures?

In user docs, internal limits, hardening, and failure or recovery paths are gaps only when a user would plausibly ask about them; docs/architecture/ pages keep the inventories AGENTS.md requires complete.

  1. Relevance: Does every sentence in user docs pass the Documentation Policy, or does it describe implementation mechanics or change history?

docs/architecture/ pages and the design records in docs/dev/ hold only what the code cannot show, as the AGENTS.md Documentation Policy lists; outside the inventories AGENTS.md requires, a sentence there that describes what the code does is a finding.

  1. Clarity: Would a MindRoom agent answering a user question find and apply this? Are examples realistic?
  2. Consistency: Do different docs contradict each other or repeat the same fact?
  3. Freshness: Has the code changed in ways the docs don't reflect?

Review Process

1. Check Recent Changes

# What changed recently that might need doc updates?
git log --oneline -20 | grep -iE "feat|fix|add|remove|change|option"

# What code files changed?
git diff --name-only HEAD~20 | grep "\.py$"

Look for new features, changed defaults, renamed options, or removed functionality.

2. Verify Configuration Docs Against Code

Compare docs under docs/configuration/ against the Pydantic models in the src/mindroom/config/ package, whose root model is in src/mindroom/config/main.py.

Do not rely on a fixed list of files; discover what exists in both locations and check they match.

# Find every config class declaration, including indirect Pydantic subclasses
rg -n "^class " src/mindroom/config

# Find all config doc files
ls docs/configuration/

Trace inheritance for every discovered class instead of assuming each Pydantic model directly subclasses BaseModel.

Check:

3. Verify Architecture Docs Against Source

# What source files actually exist?
git ls-files "src/mindroom/**/*.py"

Check docs/architecture/, including the module rows in docs/architecture/code-map.md:

4. Verify Feature Docs Against Implementation

For every doc file under docs/, find the corresponding source module(s) and check they agree. Don't assume a fixed mapping — discover it:

ls docs/*.md docs/*/
ls src/mindroom/*.py src/mindroom/*/

Look for docs that describe features the code no longer has, or code with features the docs don't cover.

5. Check Examples

For examples in any doc:

6. Cross-Reference Consistency

The same info appears in multiple places. Check for conflicts between README.md, docs/, and AGENTS.md.

Also verify that script paths and file references in AGENTS.md and docs/deployment/ match the actual filesystem layout.

6b. Verify Deployment Docs

Check docs/deployment/ files against actual Dockerfiles, Helm charts, scripts, and environment variable defaults in src/mindroom/constants.py.

7. Self-Check This Prompt

This prompt can become outdated too. If you notice:

Include prompt updates in your fixes.

Output Format

Categorize findings:

  1. Critical: Wrong info that would break user workflows
  2. Inaccuracy: Technical errors (wrong defaults, paths, types)
  3. Missing: Undocumented features or options
  4. Irrelevant: Implementation mechanics, change history, or repeated facts to remove
  5. Outdated: Was true, no longer is
  6. Inconsistency: Docs contradict each other
  7. Minor: Typos, unclear wording

For each issue, provide a ready-to-apply fix:

### Issue: [Brief description]

- **File**: path/to/file.md:42
- **Problem**: What's wrong
- **Fix**: What to change
- **Verify**: How to confirm
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.