Cfn doc lint

From masharratt/claude-flow-novice · View interactive version

Cfn doc lint is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. Enforce the feature-status.md and state-machines.md doc contract: closed status vocabulary, required columns, per-entity state-machine shape, cell-length caps, TOC for large files, plural filename. Use after editing either doc, or run --check-all to audit every project. Catches the three failure mod

How to use this skill

Skill file

CFN Doc Lint

Purpose: the two commit-time docs (readme/feature-status.md, readme/state-machines.md)

rotted across 28 projects for the same three reasons: changelog dumped where

status belongs, status vocabulary drifting so no grep works, and duplicate

state-machine entities contradicting each other. This skill enforces the contract

in SCHEMA.md so docs stay machine-parseable and human-scannable.

The contract lives in SCHEMA.md (same dir). This skill is the enforcement;

the schema is the spec.

Usage

# one doc (auto-detects type by filename)
.claude/skills/cfn-doc-lint/execute.sh <project>/readme/feature-status.md

# a project dir (lints both docs if present)
.claude/skills/cfn-doc-lint/execute.sh <project>

# every project
.claude/skills/cfn-doc-lint/execute.sh --check-all /home/masha/projects

Exit 0 = clean (warnings allowed). Exit 1 = one or more ERRORs.

What it checks

Structural (ERROR, fails the lint):

Flags singular state-machine.md and domain-prefixed variants.

/ Last Reviewed / verified against + an ISO date).

five tokens).

the date-prepend-instead-of-edit failure mode.

Quality (WARN, reports only):

Adding it to a workflow

Wire execute.sh as a PostToolUse hook scoped to the two filenames so a

non-conforming doc fails at edit time. See the project .claude/settings.json

hook section. Run --check-all in the commit skill or CI to audit the portfolio.

When NOT to use

This lints doc structure, not doc truth. It will not tell you a feature marked

prod is actually broken, or that a state machine omits a real transition. For

staleness against code, pair with cfn-detect-stale-docs.

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.