Loading...
Loading...
Expert in documentation structure, cohesion, flow, audience targeting, and information architecture. Use PROACTIVELY for documentation quality issues, content organization, duplication, navigation problems, or readability concerns. Detects documentation anti-patterns and optimizes for user experience.
npx skill4agent add cin12211/orca-q documentation-expert# Detect documentation structure
find docs/ -name "*.md" 2>/dev/null | head -5 && echo "Markdown docs detected"
find . -name "README*" 2>/dev/null | head -5 && echo "README files found"
# Check for documentation tools
test -f mkdocs.yml && echo "MkDocs detected"
test -f docusaurus.config.js && echo "Docusaurus detected"
test -d docs/.vitepress && echo "VitePress detected"<!-- Before (problematic) -->
docs/
├── getting-started/
│ ├── installation/
│ │ ├── prerequisites/
│ │ │ └── system-requirements.md # Too deep!
<!-- After (quick fix) -->
docs/
├── getting-started/
│ ├── installation-prerequisites.md # Flattened<!-- Hub page (overview.md) -->
# Installation Overview
Quick links to all installation topics:
- [Prerequisites](./prerequisites.md)
- [System Requirements](./requirements.md)
- [Quick Start](./quickstart.md)
<!-- Spoke pages link back to hub -->docs/
├── tutorials/ # Learning-oriented
├── how-to/ # Task-oriented
├── reference/ # Information-oriented
└── explanation/ # Understanding-oriented# Detect deep navigation
find docs/ -name "*.md" | awk -F/ '{print NF-1}' | sort -rn | head -1
# Find oversized documents
find docs/ -name "*.md" -exec wc -w {} \; | sort -rn | head -10
# Validate structure
echo "Max depth: $(find docs -name "*.md" | awk -F/ '{print NF}' | sort -rn | head -1)"<!-- Before -->
## Installation
Run npm install.
## Configuration
Edit the config file.
<!-- After -->
## Installation
Run npm install.
## Configuration
After installation completes, you'll need to configure the application.
Edit the config file.<!-- Proper information flow -->
The application uses a config file for settings. [OLD]
This config file is located at `~/.app/config.json`. [NEW]
You can edit this file to customize behavior. [NEWER]<!-- Standard template -->
# [Feature Name]
## Overview
[What and why - context setting]
## Prerequisites
[What reader needs to know]
## Concepts
[Key terms and ideas]
## Implementation
[How to do it]
## Examples
[Concrete applications]
## Related Topics
[Connections to other content]# Check for transition words
grep -E "However|Therefore|Additionally|Furthermore" docs/*.md | wc -l
# Find terminology inconsistencies
for term in "setup" "set-up" "set up"; do
echo "$term: $(grep -ri "$term" docs/ | wc -l)"
done<!-- Add to document header -->
**Audience**: Intermediate developers
**Prerequisites**: Basic JavaScript knowledge
**Time**: 15 minutesdocs/
├── quickstart/ # Beginners
├── guides/ # Intermediate
└── advanced/ # Experts<!-- Persona-driven content -->
# For DevOps Engineers
This guide assumes familiarity with:
- Container orchestration
- CI/CD pipelines
- Infrastructure as code# Check for audience indicators
grep -r "Prerequisites\|Audience\|Required knowledge" docs/
# Find undefined acronyms
grep -E "\\b[A-Z]{2,}\\b" docs/*.md | head -20<!-- Breadcrumb -->
[Home](/) > [Guides](/guides) > [Installation](/guides/install)
<!-- Table of Contents -->
## Contents
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Configuration](#configuration)## Related Topics
- [Configuration Guide](./config.md)
- [Troubleshooting](./troubleshoot.md)
- [API Reference](../reference/api.md)# taxonomy.yml
categories:
- getting-started
- guides
- reference
tags:
- installation
- configuration
- api# Find broken internal links
for file in docs/*.md; do
grep -o '\\[.*\\](.*\\.md)' "$file" | while read link; do
target=$(echo "$link" | sed 's/.*](\\(.*\\))/\\1/')
[ ! -f "$target" ] && echo "Broken: $file -> $target"
done
done---
last_updated: 2024-01-15
version: 2.0
status: current
---# Quarterly review script
find docs/ -name "*.md" -mtime +90 | while read file; do
echo "Review needed: $file"
done# .github/workflows/docs-test.yml
- name: Test code examples
run: |
extract-code-blocks docs/**/*.md | sh<!-- Before -->
This is a very long paragraph that continues for many lines without any breaks making it difficult to read and scan...
<!-- After -->
This is a shorter paragraph.
Key points:
- Point one
- Point two
- Point three
The content is now scannable.# H1 - Page Title (one per page)
## H2 - Major Sections
### H3 - Subsections
Never skip levels (H1 to H3)./* Documentation design tokens */
--doc-font-body: 16px;
--doc-line-height: 1.6;
--doc-max-width: 720px;
--doc-code-bg: #f5f5f5;# Detect documentation patterns
test -d docs && echo "Dedicated docs directory"
test -f README.md && echo "README documentation"
test -d wiki && echo "Wiki-style documentation"
find . -name "*.md" -o -name "*.rst" -o -name "*.txt" | head -5# Quick structure analysis (always run first)
find . -name "*.md" -type f | wc -l # Total markdown files
find . -name "*.md" -exec wc -w {} + | sort -rn | head -5 # Largest files
ls -la *.md 2>/dev/null | head -10 # Root-level markdown files (README, CHANGELOG, etc.)
find docs/ -name "*.md" 2>/dev/null | awk -F/ '{print NF-1}' | sort -rn | uniq -c # Depth check in docs/# First, check project structure to identify documentation locations
ls -la
# Based on what directories exist (docs/, documentation/, wiki/, etc.),
# run the appropriate validation commands:
# For broken links complaints → Run link checker
npx --yes markdown-link-check "*.md" "[DOC_FOLDER]/**/*.md"
# For markdown formatting issues → Run markdown linter (reasonable defaults)
npx --yes markdownlint-cli --disable MD013 MD033 MD041 -- "*.md" "[DOC_FOLDER]/**/*.md"
# MD013: line length (too restrictive for modern screens)
# MD033: inline HTML (sometimes necessary)
# MD041: first line heading (README may not start with heading)# Check project structure
ls -la
# Run full validation suite on identified paths
# (Adjust paths based on actual project structure seen above)
# Markdown formatting (focus on important issues)
npx --yes markdownlint-cli --disable MD013 MD033 MD041 -- "*.md" "[DOC_FOLDER]/**/*.md"
# Link validation
npx --yes markdown-link-check "*.md" "[DOC_FOLDER]/**/*.md"# Terminology inconsistencies
for term in "setup" "set-up" "set up"; do
echo "$term: $(grep -ri "$term" docs/ | wc -l)"
done
# Missing transitions (poor flow)
grep -E "However|Therefore|Additionally|Furthermore|Moreover" docs/*.md | wc -lDocumentation Health Check:
├── Structure: Max 3 levels, <3000 words/doc
├── Cohesion: Transitions, consistent terms
├── Audience: Clear definition, prerequisites
├── Navigation: Breadcrumbs, related links
├── Quality: Updated <6 months, no broken links
└── Readability: Short paragraphs, visual breaks