enhance-docs

Featured

Use when improving documentation structure, accuracy, and RAG readiness.

AI & Automation 1,019 stars 117 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# enhance-docs Analyze documentation for readability, structure, and RAG optimization. ## Parse Arguments ```javascript const args = '$ARGUMENTS'.split(' ').filter(Boolean); const targetPath = args.find(a => !a.startsWith('--')) || '.'; const fix = args.includes('--fix'); const aiMode = args.includes('--ai'); ``` ## Documentation Locations | Type | Location | Purpose | |------|----------|---------| | User docs | `docs/*.md`, `README.md` | Human-readable guides | | Agent docs | `agent-docs/*.md` | AI reference material | | Project memory | `CLAUDE.md`, `AGENTS.md` | AI context/instructions | ## Optimization Modes ### AI-Only Mode (`--ai`) For agent-docs and RAG-optimized documentation: - Aggressive token reduction - Dense information packing - Self-contained sections for retrieval - Optimal chunking boundaries ### Both Mode (`--both`, default) For user-facing documentation: - Balance readability with AI-friendliness - Clear structure for both humans and retrievers ## Workflow 1. **Discover** - Find all .md files 2. **Parse** - Extract structure and content 3. **Check** - Run pattern checks based on mode 4. **Report** - Generate markdown output 5. **Fix** - Apply auto-fixes if --fix ## Detection Patterns ### 1. Link Validation (HIGH) - Broken anchor links (`[text](#missing-anchor)`) - Links to non-existent files - Malformed link syntax ### 2. Structure Validation (HIGH) **Heading hierarchy:** - No jumps (H1 → H3 without H2) - Single H1 per document - Code blocks ...

Details

Author
agent-sh
Repository
agent-sh/agentsys
Created
10 months ago
Last Updated
1 weeks ago
Language
JavaScript
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category