rules-docs

Validate markdown documentation for broken links, placeholders, and path consistency.

Updated May 20, 2025
One-click install
npx skills add https://github.com/flext-sh/flext --skill rules-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-docs
Source: https://github.com/flext-sh/flext/tree/main/.claude/skills/rules-docs
Command: npx skills add https://github.com/flext-sh/flext --skill rules-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that documentation within the docs/ directory remains accurate, up-to-date, and consistent with the project's codebase and architectural standards.

Core Features & Use Cases

  • Link Validation: Verifies that all internal links and file references within documentation are valid and point to existing resources.
  • Content Alignment: Ensures architectural claims and descriptions in docs match the actual code implementation.
  • Placeholder Removal: Detects and flags common placeholders like TODO, FIXME, and TBD, prompting their resolution.
  • Path Consistency: Enforces the use of repository-relative paths to maintain link integrity across different environments.
  • Use Case: When updating a feature in flext-core, this Skill helps ensure that the corresponding architectural diagrams and usage guides in docs/architecture/ are updated accordingly and that all links remain functional.

Quick Start

Use the rules-docs skill to validate all markdown files in the docs directory.

Frequently Asked Questions about rules-docs

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

FAQPage Schema
How do I validate markdown documentation links against my codebase?

To validate markdown documentation links, scan the docs directory to verify internal links and file references point to existing resources. This ensures documentation alignment by enforcing repository-relative paths and checking for broken links.

What is docs-as-code validation for technical writing?

Docs-as-code validation ensures documentation remains accurate and consistent with the codebase by checking content alignment, enforcing markdown hygiene, and verifying that architectural claims match the actual implementation.

How do I detect placeholder text like TODO and FIXME in markdown files?

Detecting placeholder text like TODO, FIXME, and TBD in markdown files involves scanning the docs directory to flag unresolved markers. This prompts their resolution to maintain documentation quality and remove incomplete sections.

Can I check if my architectural diagrams match my code implementation?

Yes, you can check if architectural diagrams match your code implementation by validating content alignment. This process scans markdown files to ensure architectural claims and usage guides reflect the actual codebase structure.

What is the best way to enforce repository-relative paths in documentation?

The best way to enforce repository-relative paths in documentation is through automated path consistency checks. This maintains link integrity across different environments by verifying all file references use repository-relative formats.

Why does documentation validation fail on outdated architectural claims?

Documentation validation fails on outdated architectural claims when descriptions in the docs directory no longer match the code implementation. Content alignment checks detect these discrepancies to ensure technical accuracy.