// "Enhanced docs unified with AI-powered features. Enhanced with Context7 MCP for up-to-date documentation."
| name | moai-docs-unified |
| version | 4.0.0 |
| created | "2025-11-12T00:00:00.000Z" |
| updated | "2025-11-12T00:00:00.000Z" |
| status | stable |
| tier | specialization |
| description | Enhanced docs unified with AI-powered features. Enhanced with Context7 MCP for up-to-date documentation. |
| allowed-tools | Read, Glob, Grep, WebSearch, WebFetch, mcp__context7__resolve-library-id, mcp__context7__get-library-docs |
| primary-agent | doc-syncer |
| secondary-agents | ["alfred"] |
| keywords | ["docs","unified","cd","ci","test"] |
| tags | ["documentation"] |
| orchestration | null |
| can_resume | true |
| typical_chain_position | terminal |
| depends_on | [] |
Docs Unified
Primary Agent: doc-syncer
Secondary Agents: alfred
Version: 4.0.0
Keywords: docs, unified, cd, ci, test
📚 Content
The moai-docs-unified skill provides a complete documentation management ecosystem integrating 5 specialized validation scripts:
Core Components:
Key Benefits:
Purpose: Comprehensive markdown validation for Korean documentation
Location: .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
Key Validations:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py \
--path docs/src/ko \
--output .moai/reports/lint_report_ko.txt
Output: .moai/reports/lint_report_ko.txt (8 validation categories)
Purpose: Mermaid diagram type and syntax validation
Location: .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
Key Features:
%%{init: ...}%%)Supported Diagram Types:
✅ graph TD/BT/LR/RL (Flowchart)
✅ stateDiagram-v2 (State machines)
✅ sequenceDiagram (Interactions)
✅ classDiagram (Class structures)
✅ erDiagram (Entity relationships)
✅ gantt (Timelines)
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py \
--path docs/src \
--output .moai/reports/mermaid_validation_report.txt
Output: .moai/reports/mermaid_validation_report.txt (16 diagrams, 100% valid)
Purpose: Extract and document all Mermaid diagram code with rendering guide
Location: .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
Key Features:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py \
--path docs/src \
--output .moai/reports/mermaid_detail_report.txt
Output: .moai/reports/mermaid_detail_report.txt (full diagram code + test guide)
Purpose: Korean-specific typography and encoding validation
Location: .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
Key Validations:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py \
--path docs/src \
--output .moai/reports/korean_typography_report.txt
Output: .moai/reports/korean_typography_report.txt (28,543 lines validated, 43 files)
Purpose: Aggregate all validation phases into prioritized quality report
Location: .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
Report Structure:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
# With custom report directory
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py \
--report-dir .moai/reports \
--output .moai/reports/korean_docs_comprehensive_review.txt
Output: .moai/reports/korean_docs_comprehensive_review.txt (aggregated report)
# Phase 1: Markdown linting
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# Phase 2: Mermaid validation
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# Phase 2.5: Mermaid code extraction
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
# Phase 3: Korean typography
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# Phase 4: Comprehensive report
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
#!/bin/bash
# Run all 5 phases sequentially
echo "Running Phase 1: Markdown Linting..."
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
echo "Running Phase 2: Mermaid Validation..."
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
echo "Running Phase 2.5: Mermaid Detail Extraction..."
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
echo "Running Phase 3: Korean Typography..."
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
echo "Running Phase 4: Comprehensive Report..."
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
echo "All validation phases complete!"
echo "Check .moai/reports/ for generated files:"
ls -lh .moai/reports/*.txt
All scripts use automatic project root detection:
def find_project_root(start_path: Path) -> Path:
current = start_path
while current != current.parent:
if (current / "pyproject.toml").exists() or (current / ".git").exists():
return current
current = current.parent
raise RuntimeError("Project root not found")
script_path = Path(__file__).resolve()
project_root = find_project_root(script_path.parent)
Benefits:
uv runGitHub Actions Integration:
# .github/workflows/docs-validation.yml
name: Documentation Validation
on:
pull_request:
paths:
- 'docs/**'
push:
branches:
- develop
- main
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: pip install uv
- name: Run Documentation Validation Suite
run: |
# Phase 1: Markdown Linting
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# Phase 2: Mermaid Validation
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# Phase 3: Korean Typography
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# Phase 4: Comprehensive Report
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
- name: Upload Reports
if: always()
uses: actions/upload-artifact@v3
with:
name: documentation-reports
path: .moai/reports/*.txt
- name: Comment PR with Results
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const report = fs.readFileSync('.moai/reports/korean_docs_comprehensive_review.txt', 'utf8');
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '📊 Documentation Validation Report\n```\n' + report.slice(0, 3000) + '\n```'
});
Phase 1 - Markdown Linting:
Phase 2 - Mermaid Validation:
Phase 3 - Korean Typography:
Phase 4 - Comprehensive Report:
📚 Content
The moai-docs-unified skill provides a complete documentation management ecosystem integrating 5 specialized validation scripts:
Core Components:
Key Benefits:
Purpose: Comprehensive markdown validation for Korean documentation
Location: .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
Key Validations:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py \
--path docs/src/ko \
--output .moai/reports/lint_report_ko.txt
Output: .moai/reports/lint_report_ko.txt (8 validation categories)
Purpose: Mermaid diagram type and syntax validation
Location: .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
Key Features:
%%{init: ...}%%)Supported Diagram Types:
✅ graph TD/BT/LR/RL (Flowchart)
✅ stateDiagram-v2 (State machines)
✅ sequenceDiagram (Interactions)
✅ classDiagram (Class structures)
✅ erDiagram (Entity relationships)
✅ gantt (Timelines)
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py \
--path docs/src \
--output .moai/reports/mermaid_validation_report.txt
Output: .moai/reports/mermaid_validation_report.txt (16 diagrams, 100% valid)
Purpose: Extract and document all Mermaid diagram code with rendering guide
Location: .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
Key Features:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py \
--path docs/src \
--output .moai/reports/mermaid_detail_report.txt
Output: .moai/reports/mermaid_detail_report.txt (full diagram code + test guide)
Purpose: Korean-specific typography and encoding validation
Location: .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
Key Validations:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# With custom paths
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py \
--path docs/src \
--output .moai/reports/korean_typography_report.txt
Output: .moai/reports/korean_typography_report.txt (28,543 lines validated, 43 files)
Purpose: Aggregate all validation phases into prioritized quality report
Location: .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
Report Structure:
Execution:
# From project root
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
# With custom report directory
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py \
--report-dir .moai/reports \
--output .moai/reports/korean_docs_comprehensive_review.txt
Output: .moai/reports/korean_docs_comprehensive_review.txt (aggregated report)
# Phase 1: Markdown linting
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# Phase 2: Mermaid validation
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# Phase 2.5: Mermaid code extraction
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
# Phase 3: Korean typography
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# Phase 4: Comprehensive report
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
#!/bin/bash
# Run all 5 phases sequentially
echo "Running Phase 1: Markdown Linting..."
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
echo "Running Phase 2: Mermaid Validation..."
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
echo "Running Phase 2.5: Mermaid Detail Extraction..."
uv run .claude/skills/moai-docs-unified/scripts/extract_mermaid_details.py
echo "Running Phase 3: Korean Typography..."
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
echo "Running Phase 4: Comprehensive Report..."
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
echo "All validation phases complete!"
echo "Check .moai/reports/ for generated files:"
ls -lh .moai/reports/*.txt
All scripts use automatic project root detection:
def find_project_root(start_path: Path) -> Path:
current = start_path
while current != current.parent:
if (current / "pyproject.toml").exists() or (current / ".git").exists():
return current
current = current.parent
raise RuntimeError("Project root not found")
script_path = Path(__file__).resolve()
project_root = find_project_root(script_path.parent)
Benefits:
uv runGitHub Actions Integration:
# .github/workflows/docs-validation.yml
name: Documentation Validation
on:
pull_request:
paths:
- 'docs/**'
push:
branches:
- develop
- main
jobs:
validate-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: pip install uv
- name: Run Documentation Validation Suite
run: |
# Phase 1: Markdown Linting
uv run .claude/skills/moai-docs-unified/scripts/lint_korean_docs.py
# Phase 2: Mermaid Validation
uv run .claude/skills/moai-docs-unified/scripts/validate_mermaid_diagrams.py
# Phase 3: Korean Typography
uv run .claude/skills/moai-docs-unified/scripts/validate_korean_typography.py
# Phase 4: Comprehensive Report
uv run .claude/skills/moai-docs-unified/scripts/generate_final_comprehensive_report.py
- name: Upload Reports
if: always()
uses: actions/upload-artifact@v3
with:
name: documentation-reports
path: .moai/reports/*.txt
- name: Comment PR with Results
if: github.event_name == 'pull_request'
uses: actions/github-script@v6
with:
script: |
const fs = require('fs');
const report = fs.readFileSync('.moai/reports/korean_docs_comprehensive_review.txt', 'utf8');
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '📊 Documentation Validation Report\n```\n' + report.slice(0, 3000) + '\n```'
});
Phase 1 - Markdown Linting:
Phase 2 - Mermaid Validation:
Phase 3 - Korean Typography:
Phase 4 - Comprehensive Report:
✅ Validation Checklist
Note: Advanced patterns for complex scenarios.
Coming soon: Deep dive into expert-level usage.
Must-Have:
Recommended:
Security:
When to Use Context7 for This Skill:
This skill benefits from Context7 when:
Example Usage:
# Fetch latest documentation
from moai_adk.integrations import Context7Helper
helper = Context7Helper()
docs = await helper.get_docs(
library_id="/org/library",
topic="docs",
tokens=5000
)
Relevant Libraries:
| Library | Context7 ID | Use Case |
|---|---|---|
| [Library 1] | /org/lib1 | [When to use] |
When to use moai-docs-unified:
Start
├─ Need docs?
│ ├─ YES → Use this skill
│ └─ NO → Consider alternatives
└─ Complex scenario?
├─ YES → See Level 3
└─ NO → Start with Level 1
Prerequisite Skills:
Complementary Skills:
Next Steps:
Metadata
skill_id: moai-docs-unified
skill_name: Unified Documentation Management & Quality Assurance
version: 1.0.0
created_date: 2025-11-10
updated_date: 2025-11-10
language: english
word_count: 2200
triggers:
- keywords: [documentation management, docs linting, mermaid validation, korean typography, documentation quality, comprehensive report, docs-unified]
- contexts: [docs-unified, @docs:all, documentation-management, quality-assurance]
agents:
- docs-manager
- docs-auditor
- quality-gate
freedom_level: high
context7_references:
- url: "https://en.wikipedia.org/wiki/Software_quality"
topic: "Software Quality Metrics"
- url: "https://github.com/moai-adk/moai-adk"
topic: "MoAI-ADK Documentation Standards"
** .0** (2025-11-12)
Generated with: MoAI-ADK Skill Factory
Last Updated: 2025-11-12
Maintained by: Primary Agent (doc-syncer)