markdown-validation
Markdown Validation
This skill provides comprehensive markdown validation capabilities for documentation files.
When to Use
Use markdown-validation when:
- Validating markdown files for syntax and formatting errors
- Checking documentation quality after edits
- Enforcing documentation standards across the project
- Identifying broken links or invalid references
- Reviewing markdown files before commits
Validation Checks
1. Syntax Validation
- Valid markdown syntax
- Proper header hierarchy (no skipped levels)
- Balanced code fences
- Correct list formatting
- Proper link syntax
2. Link Validation
- Internal links point to existing files
- Anchor links match actual headers
- No broken external links (when network available)
3. Formatting Standards
- Consistent heading styles
- Proper code block language tags
- Table formatting correctness
- No trailing whitespace
- Consistent list markers
4. Documentation Quality
- Files have descriptive headers
- Code examples are complete
- Links are descriptive (not "click here")
- Tables have headers
- Proper frontmatter when required
Usage
Automatic Validation
The validation script runs automatically when triggered by hooks on markdown file edits.
Manual Validation
Validate a single file:
./docs/skills/markdown-validation/scripts/validate-markdown.py path/to/file.md
Validate multiple files:
./docs/skills/markdown-validation/scripts/validate-markdown.py file1.md file2.md file3.md
Validate a directory:
find docs/ -name "*.md" -exec ./docs/skills/markdown-validation/scripts/validate-markdown.py {} +
Output Format
Validation results are returned in structured format:
✅ path/to/file.md - PASS
❌ path/to/other.md - FAIL
Line 15: Header level skipped (h1 -> h3)
Line 42: Broken internal link: [docs/missing.md](docs/missing.md)
Line 87: Unclosed code fence
Integration with Hooks
This skill works best when integrated with PostToolUse hooks:
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [{
"type": "command",
"command": "if echo \"$CLAUDE_TOOL_INPUT\" | grep -q '\\.md\"'; then $CLAUDE_PROJECT_DIR/docs/skills/markdown-validation/scripts/validate-markdown.py \"$(echo \"$CLAUDE_TOOL_INPUT\" | grep -o '\"[^\"]*\\.md\"' | tr -d '\"')\"; fi"
}]
}
]
}
}
Common Issues and Fixes
Issue: Header Level Skipped
Problem: # Header 1 followed by ### Header 3 (skipped h2)
Fix: Maintain sequential header hierarchy
Issue: Broken Internal Link
Problem: Link points to non-existent file Fix: Update link target or create missing file
Issue: Unclosed Code Fence
Problem: opened but not closed **Fix**: Add closing after code block
Issue: No Language Tag
Problem: Code fence missing language identifier
Fix: Add language: python, bash, ```javascript
Configuration
Create .markdown-validation.json in project root to customize validation:
{
"checkLinks": true,
"checkSyntax": true,
"requireFrontmatter": false,
"allowedHeaderLevels": [1, 2, 3, 4, 5, 6],
"requireLanguageTags": true,
"maxLineLength": null
}
References
- Markdown Specification: See
references/markdown-spec.md - Project Standards: See
references/documentation-standards.md
More from auldsyababua/instructor-workflow
side-hustle-maker
Active coordinator for building AI-powered side-gigs in 2025. Use when users want to build micro-niche products, validate business ideas, create MVPs, or launch profitable side businesses. This skill orchestrates sub-agents to execute market research, product design, business validation, and launch planning. Triggers include "help me build a side hustle," "validate my business idea," "find market opportunities," "build an AI product," or "launch a side-gig.
33travel-planner
This skill should be used whenever users need help planning trips, creating travel itineraries, managing travel budgets, or seeking destination advice. On first use, collects comprehensive travel preferences including budget level, travel style, interests, and dietary restrictions. Generates detailed travel plans with day-by-day itineraries, budget breakdowns, packing checklists, cultural do's and don'ts, and region-specific schedules. Maintains database of preferences and past trips for personalized recommendations.
14csv-data-visualizer
This skill should be used when working with CSV files to create interactive data visualizations, generate statistical plots, analyze data distributions, create dashboards, or perform automatic data profiling. It provides comprehensive tools for exploratory data analysis using Plotly for interactive visualizations.
6finance-manager
Comprehensive personal finance management system for analyzing transaction data, generating insights, creating visualizations, and providing actionable financial recommendations. Use when users need to analyze spending patterns, track budgets, visualize financial data, extract transactions from PDFs, calculate savings rates, identify spending trends, generate financial reports, or receive personalized budget recommendations. Triggers include requests like "analyze my finances", "track my spending", "create a financial report", "extract transactions from PDF", "visualize my budget", "where is my money going", "financial insights", "spending breakdown", or any finance-related analysis tasks.
5startup-validator
Comprehensive startup idea validation and market analysis tool. Use when users need to evaluate a startup idea, assess market fit, analyze competition, validate problem-solution fit, or determine market positioning. Triggers include requests to "validate my startup idea", "analyze market opportunity", "check if there's demand for", "research competition for", "evaluate business idea", or "see if my idea is viable". Provides data-driven analysis using web search, market frameworks, competitive research, and positioning recommendations.
5token-budget-advisor
Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.
5