Aha-Loop: Skill for Claude Code

.agents/skills/doc-review/SKILL.md

doc-review is a skill for Claude Code, Codex from YougLin-dev/Aha-Loop. It costs 33 tokens per session (1,546 once invoked), scanned A, original, MIT.

A maintenance workflow for finding outdated, inaccurate, or irrelevant project documentation. It checks documents, referenced files, and code examples for signs that they no longer match the project.

In plain words
What is it for?
Use it for scheduled or on-demand documentation audits, especially after milestones, major code changes, or onboarding problems.
Why use it?
Documentation can become misleading after refactoring or long periods without review. This workflow identifies stale material and can optionally apply fixes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions CLAUDE.md; installed under .agents/ (shared by several agents).

This is YougLin-dev/Aha-Loop's own configuration. It tells Claude Code and Codex how to work on Aha-Loop itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Aha-Loop configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/aha-loop/doc-cleaner.sh --report.

Reuse

Borrowing it

Nothing to install: this file belongs to YougLin-dev/Aha-Loop. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/YougLin-dev/Aha-Loop/main/.agents/skills/doc-review/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/YougLin-dev/Aha-Loop

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for doc-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/youglin-dev/aha-loop/doc-review/github.svg)](https://agentmods.dev/skills/youglin-dev/aha-loop/doc-review)
Your own site
<a href="https://agentmods.dev/skills/youglin-dev/aha-loop/doc-review"><img src="https://agentmods.dev/badge/skills/youglin-dev/aha-loop/doc-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for doc-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/youglin-dev/aha-loop/doc-review"><img src="https://agentmods.dev/badge/skills/youglin-dev/aha-loop/doc-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00033 $0.01546
Opus 5.5 $0.00013 $0.00618
Sonnet 5.5 $0.00007 $0.00309
Haiku 4.5 $0.00003 $0.00155

Measured 2mo ago against content hash ce102e4a96a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

doc-review scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -o /dev/null -w "%{http_code}" URL
.agents/skills/doc-review/SKILL.md · 288 lines

How it starts

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

Doc Review Skill

Systematically review documentation for staleness, accuracy, and relevance.


The Job

  1. Scan all documentation files
  2. Check for staleness indicators
  3. Verify referenced code/files still exist
  4. Identify outdated content
  5. Generate cleanup report
  6. Optionally apply fixes

When to Use

Scheduled

  • After each milestone completion
  • Monthly maintenance cycle
  • Before major releases

On Demand

  • When documentation feels outdated
  • After significant refactoring
  • When onboarding reveals confusion

Review Process

Step 1: Inventory Documentation

Scan for documentation files:

find . -name "*.md" -not -path "./.git/*" -not -path "./.vendor/*" -not -path "./.worktrees/*"

Common locations:

  • README.md (root and subdirs)
  • docs/ directory
  • AGENTS.md, CLAUDE.md
  • .claude/skills/*/SKILL.md
  • knowledge/ directory
  • scripts/aha-loop/templates/

Step 2: Check Staleness Indicators

For each document, check:

Indicator Check Method Threshold
Last modified git log -1 > 30 days
Referenced files grep + verify Missing = stale
Code examples Syntax check Errors = stale
Version numbers Compare to actual Mismatch = stale
Links HTTP check Broken = stale

Step 3: Verify Code References

For each code reference in docs:

## Code Reference Check

File: [doc-path]
Reference: `src/main.rs:45-60`
Status: [Exists | Missing | Changed]

If Changed:
- Original: [what doc says]
- Current: [what code shows]
- Action: [Update doc | Flag for review]

Step 4: Check External Links

# Extract URLs
grep -oP 'https?://[^\s)]+' file.md

# Check each URL
curl -s -o /dev/null -w "%{http_code}" URL

Step 5: Generate Report

Create docs-review-report.md:

# Documentation Review Report

**Date:** [YYYY-MM-DD]
**Reviewed:** [N] files
**Issues Found:** [N]

## Summary

| Category | Count |
|----------|-------|
| Stale (>30 days) | [N] |
| Missing References | [N] |
| Broken Links | [N] |
| Outdated Examples | [N] |

## Issues by File

### [file1.md]
- [ ] Line 45: Reference to `src/old.rs` - file no longer exists
- [ ] Line 78: Code example uses deprecated API

### [file2.md]
- [ ] Line 12: Version "1.0.0" should be "2.0.0"
- [ ] Line 56: Broken link to external docs

## Recommended Actions

1. **Delete:** [files that should be removed]
2. **Update:** [files that need content updates]
3. **Review:** [files that need human review]

## Auto-fixable

The following can be auto-fixed:
- [ ] Update version numbers
- [ ] Remove dead links
- [ ] Update file paths

Run `./scripts/aha-loop/doc-cleaner.sh --fix` to apply.

Read the full file on GitHub · 288 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. 2mo ago First seen · 288 lines · 33 tokens per session scan A ce102e4a96a3

Subscribe to this mod's changes

doc-review is a skill published in the GitHub repository YougLin-dev/Aha-Loop (178 stars, last pushed 9mo ago), licensed MIT. It adds 33 tokens to every session and 1,546 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

doc-review compared with skills from other repositories

doc-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-reviewYougLin-dev/Aha-LoopSkill1789mo agoMITA33Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code