captainphantasy/floyd/doc-parity-patterns

Claude Code and agent skill by captainphantasy/floyd

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Validates code-documentation parity using tree-sitter static analysis. Use when user asks about documentation validation, doc parity, checking if docs are up to date, or whether code matches documentation.

Install

npx vskill@latest install captainphantasy/floyd/doc-parity-patterns

SKILL.md

The same SKILL.md was published earlier as captainphantasy/floyd/doc-parity-patterns.

Documentation Parity Patterns

Validate that code and documentation stay synchronized using real static analysis, not just LLM reasoning.

When to Use

Trigger this skill when user asks:

  • "validate docs", "check documentation", "doc parity"
  • "are docs up to date", "documentation drift"
  • "does this match the docs", "is this documented"
  • "what's missing from documentation"
  • "check code against docs"

Core Principles

  1. Code-based validation: Use tree-sitter or AST parsing, not prompts
  2. Tiered severity: Critical (API breaks), Warning (outdated info), Info (typos)
  3. Incremental checking: Check modified files, not entire codebase
  4. Non-blocking default: Alert but don't block unless configured

Validation Depth Levels

LevelWhat It ChecksSpeed
ShallowExported symbol names exist in docsFast
MediumFunction signatures match (params, types)Moderate
DeepBehavioral descriptions match actual behaviorSlow

Common Issues Found

IssueSeverityAuto-Fix
Missing export in docsWarningYes (placeholder)
Orphaned doc entryWarningYes (remove)
Signature mismatchWarningYes (update)
Path reference invalidInfoNo
Behavior description outdatedCriticalNo (human review)

Tree-Sitter Patterns

Extract exported symbols by language:

TypeScript:

bash
tree-sitter parse file.ts | grep -E "export_statement|function_declaration"

Go:

bash
tree-sitter parse file.go | grep -E "function_declaration.*^[A-Z]"

Python:

bash
tree-sitter parse file.py | grep -E "function_definition|class_definition"

Validation Workflow

  1. Extract exported symbols from source files
  2. Search documentation for symbol references
  3. Compare signatures (at medium depth)
  4. Report mismatches with severity levels
  5. Offer auto-fixes where applicable

References

  • hooks/scripts/parity-check.sh - Main validation script
  • commands/check.md - Manual check command
  • commands/fix.md - Auto-fix command

Examples

Validate specific file:

bash
# Check if src/api/users.ts exports are documented
/doc-parity:check --files=src/api/users.ts

Full project scan:

bash
# Check all source files against all docs
/doc-parity:check --severity=warning --depth=medium

Fix found issues:

bash
# Preview and apply fixes
/doc-parity:fix --docs=docs/API.md

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/captainphantasy/floyd/doc-parity-patterns/badge)](https://verified-skill.com/skills/captainphantasy/floyd/doc-parity-patterns)

Something wrong with this skill or its page? Tell us.