doc-test-alignment

Validate README.md, CLAUDE.md, and SKILL.md documentation against repository scripts and tests.

112|6|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/agentculture/culture --skill doc-test-alignment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-test-alignment
Source: https://github.com/agentculture/culture/tree/main/.claude/skills/doc-test-alignment
Command: npx skills add https://github.com/agentculture/culture --skill doc-test-alignment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Prevents committed documentation from drifting away from what the repository’s code and tests actually do, reducing broken workflows and misleading contributor guidance.

Core Features & Use Cases

  • Docs-to-code verification contract: Defines the alignment checks for README.md command examples, CLAUDE.md command lines, and per-skill SKILL.md descriptions versus their implementation scripts.
  • Targeted drift detection: Flags discrepancies where prose claims behavior that the actual scripts and tests no longer provide, including stale or misleading test names.
  • Stubbed gating until implemented: Provides a discoverable convention entry so contributors and automation can find and prioritize the real workflow as it’s built.

Quick Start

Run the skill entry point by executing scripts/check.sh and treat a green exit code as a bug until the real implementation lands.

Frequently Asked Questions about doc-test-alignment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check if my README command examples match my actual test behavior?

To check if README command examples match test behavior, run a doc-test alignment script that validates documented commands against implementation scripts and flags discrepancies where prose claims behavior the tests no longer provide.

What is doc-test alignment and when do I need it for repository hygiene?

Doc-test alignment ensures committed documentation stays consistent with code and tests. You need it during planning, pre-PR verification, and explicit requests to validate that README, CLAUDE, and SKILL.md files match actual scripts.

How do I validate SKILL.md descriptions against their corresponding scripts?

You validate SKILL.md descriptions by executing a verification script that checks each .claude/skills/<name>/ SKILL.md description against its corresponding scripts and tests, surfacing any mismatches as documented rather than silently passing.

Why does my documentation verification script silently pass when tests are stale?

Documentation verification scripts silently pass when the alignment check lacks a strict contract requiring scripts/check.sh to surface mismatches. A green exit code should be treated as a bug until the real implementation lands and explicitly flags drift.

Do I need any dependencies to run CLI example verification for contributor workflows?

No dependencies are required to run CLI example verification for contributor workflows. The skill operates independently using a scripts directory to validate README.md command examples and CLAUDE.md command lines against repository tests.

What's the best way to prevent documentation drift in a repository with multiple skills?

The best way to prevent documentation drift is to enforce a docs-to-code verification contract that performs targeted drift detection across README examples, CLAUDE.md command lines, and SKILL.md descriptions during pre-PR repository hygiene checks.