Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
# 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
# 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
# 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)
Script 4: validate_korean_typography.py
Purpose: Korean-specific typography and encoding validation
Full-width character detection (U+3000, <, >, etc.)
Punctuation consistency (. vs。, , vs、)
Spacing rules (Korean-English boundaries)
Character statistics per file
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
# 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
Complete Validation Pipeline
#!/bin/bash# Run all 5 phases sequentiallyecho"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
Section 4: Project Root Auto-Detection
All scripts use automatic project root detection:
deffind_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:
Works from any directory
Works from any execution context (local, CI/CD, automation)
# 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
# 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
# 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)
Script 4: validate_korean_typography.py
Purpose: Korean-specific typography and encoding validation
Full-width character detection (U+3000, <, >, etc.)
Punctuation consistency (. vs。, , vs、)
Spacing rules (Korean-English boundaries)
Character statistics per file
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
# 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
Complete Validation Pipeline
#!/bin/bash# Run all 5 phases sequentiallyecho"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
Section 4: Project Root Auto-Detection
All scripts use automatic project root detection:
deffind_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:
Works from any directory
Works from any execution context (local, CI/CD, automation)