code-docs-align

code-docs-align is a skill for Claude Code from EmpiricaAI/empirica. It costs 108 tokens per session (3,198 once invoked), scanned A, original, MIT.

A documentation accuracy investigation that compares documentation with the current code. It checks docstrings, comments, TODO items, and reference documentation, but does not edit them.

In plain words
What is it for?
Use it to review a whole project or selected directory, or to focus on docstrings, TODOs, reference-document accuracy, or other documentation mismatches.
Why use it?
Out-of-date documentation can mislead developers into using behavior or interfaces that no longer exist. This finds those mismatches so they can be corrected separately.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the empirica plugin — 21 skills, 2 commands, 4 agents shipped together

Good fit Use it to review a whole project or selected directory, or to focus on docstrings, TODOs, reference-document accuracy, or other documentation mismatches.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/empiricaai/empirica/code-docs-align
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.

Any agent
npx skills add EmpiricaAI/empirica --skill code-docs-align
Clone the repo
git clone --depth 1 https://github.com/EmpiricaAI/empirica

Made for: Claude Code.

Or install empirica, the plugin that ships this one along with the rest of its 21 skills, 2 commands, 4 agents.

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 code-docs-align

README.md
[![agentmods](https://agentmods.dev/badge/skills/empiricaai/empirica/code-docs-align/github.svg)](https://agentmods.dev/skills/empiricaai/empirica/code-docs-align)
Your own site
<a href="https://agentmods.dev/skills/empiricaai/empirica/code-docs-align"><img src="https://agentmods.dev/badge/skills/empiricaai/empirica/code-docs-align/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 code-docs-align

Your own site · 80×15
<a href="https://agentmods.dev/skills/empiricaai/empirica/code-docs-align"><img src="https://agentmods.dev/badge/skills/empiricaai/empirica/code-docs-align.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,198 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00108 $0.03198
Opus 5.5 $0.00043 $0.01279
Sonnet 5.5 $0.00022 $0.00640
Haiku 4.5 $0.00011 $0.00320

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

Security

Grade A, and why

code-docs-align 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 1mo 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.

empirica/plugins/claude-code-integration/skills/code-docs-align/SKILL.md · 362 lines

How it starts

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

Code-Docs Alignment: Documentation Accuracy Investigation

Verify that documentation matches code. Find stale, misleading, or phantom docs.

This skill is purely noetic — it discovers mismatches between documentation and code. It does NOT fix anything. The output (findings, goals, unknowns) feeds into the Empirica workflow for praxic remediation.

Why this matters: For AI-based workflows and enterprise evaluation, stale documentation is worse than missing documentation — it actively misleads. /code-audit checks code quality. docs-assess checks doc coverage. This skill checks the gap: do the docs match the code?


How to Run

/code-docs-align                              # Check entire project
/code-docs-align --target src/handlers/       # Check specific directory
/code-docs-align --focus docstrings           # Focus on one dimension
/code-docs-align --focus todos                # Focus on TODO/FIXME audit
/code-docs-align --focus ref-docs             # Focus on ref-doc accuracy

Phase 0: PREFLIGHT

Open a transaction before investigating.

empirica preflight-submit - << 'EOF'
{
  "work_type": "docs",
  "task_context": "Code-docs alignment audit on <target>",
  "vectors": { "...": "YOUR OWN assessment across the 13 vectors" },
  "reasoning": "What you actually know about this codebase's docs right now"
}
EOF

No canned vector values. This skill used to print a fixed block — know: 0.2, uncertainty: 0.7 and so on — for you to submit verbatim. That teaches the one habit the whole measurement layer exists to prevent: reporting numbers you did not assess. A pasted vector set is not a low reading, it is a fabricated one, and it corrupts the calibration record more than skipping the transaction would.

Assess where you genuinely are. If you have already read the docs you are about to audit, know is not 0.2, and saying so is the point.

If you were already grounded before opening — you read the target first — declare claims in PREFLIGHT with grounding read (or ran with scope and count) and proceed straight to praxic. No CHECK needed; see /epistemic-transaction.

Read the full file on GitHub · 362 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed 806854bda9ef
  2. 1mo ago First seen · 362 lines · 108 tokens per session scan A 0b1dfc13bb5b

Subscribe to this mod's changes

code-docs-align is a skill published in the GitHub repository EmpiricaAI/empirica (251 stars, last pushed yesterday), licensed MIT. It adds 108 tokens to every session and 3,198 once invoked, about $0.0004 per session on Opus 5.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.

Related

Other skills, from other repositories

workflow-builder

Design, build, and maintain autonomous OpenClaw workflows (stewards). Use when creating new workflow agents, improving existing ones, evaluating automation opportunities, or debugging workflow reliability. Triggers on "build a workflow", "create a steward", "automate this process", "workflow audit", "what should I…

TechNickAI/openclaw-config · 86 tokens

smart-delegation

Intelligent task delegation — route to think with deep reasoning for hard problems, or Grok for unfiltered takes. Teaches when to escalate, how to pack context into sub-agent spawns, and how to communicate delays transparently. Default: handle directly on chat (thinking off). Escalate only when the quality gain…

TechNickAI/openclaw-config · 80 tokens

claude-code

Route real repo work to Claude Code instead of editing by hand. Triggers on "claude code" or "cc", and on any request to edit, fix, refactor, or open a PR in a repo outside /.openclaw/workspace. Claude Code picks up the repo's CLAUDE.md / AGENTS.md, applies its standards, and knows the /ai-coding-config:multi-review…

TechNickAI/openclaw-config · 105 tokens

review

A pause before an artifact goes into the world. Reviews external comms, money, calendar, public posts, or send-as-operator actions through a small panel of independent lenses (empathy first) and returns a verdict of pass / edit / hold / block.

TechNickAI/openclaw-config · 55 tokens

cortex

Personal knowledge compiler and memory system. Ingests raw sources (documents, notes, transcripts, captures) into a structured, interlinked knowledge base. Maintains living entity pages, learning analysis, and the MEMORY.md routing table. Replaces the librarian skill.

TechNickAI/openclaw-config · 55 tokens

drive-to-done

Drive a task all the way to a verified done state — write DoD first, verify each item with evidence, stop only at named stop conditions.

TechNickAI/openclaw-config · 35 tokens