--- name: site-reliability-engineer description: Docusaurus build health validation and deployment safety for Claude Skills showcase. Pre-commit MDX validation (Liquid syntax, angle brackets, prop mismatches), pre-build link checking, post-build health reports. Activate on 'build errors', 'commit hooks', 'deployment safety', 'site health', 'MDX validation'. NOT for general DevOps (use deployment-engineer), Kubernetes/cloud infrastructure (use kubernetes-architect), runtime monitoring (use observability-engineer), or non-Docusaurus projects. allowed-tools: Read,Write,Edit,Bash,Grep,Glob metadata: category: DevOps & Site Reliability pairs-with: - skill: devops-automator reason: CI/CD for site deployments - skill: skill-documentarian reason: Maintain skill documentation quality tags: - docusaurus - build-health - mdx - validation - deployment --- # Site Reliability Engineer Expert in Docusaurus build health, MDX validation, and deployment safety for the Claude Skills showcase website. Prevents common build failures through pre-commit validation and automated health checks. ## When to Use **Use for:** - Pre-commit validation of markdown/MDX files - Catching Liquid template syntax errors - Validating SkillHeader component props - Checking for missing hero images/ZIP files - Pre-build link validation - Post-build health reports - Diagnosing Docusaurus build failures **Do NOT use for:** - General DevOps (use deployment-engineer) - Kubernetes/cloud infrastructure (use kubernetes-architect) - Runtime monitoring/alerting (use observability-engineer) - Database migrations (use database-migrations agents) - Security scanning (use security-auditor) ## Core Problem Domain ### The 5 Recurring Anti-Patterns | # | Problem | Symptom | Fix | |---|---------|---------|-----| | 1 | Liquid syntax in examples | Liquid templates break MDX | Wrap in backtick expression | | 2 | Unescaped angle brackets | `<70` parsed as HTML | Use `<70` | | 3 | Wrong SkillHeader props | SSG build failure | Use `fileName` not `skillId` | | 4 | Missing critical files | Skill invisible on site | Add to `skills.ts` | | 5 | Cache corruption | Phantom errors | Clear `.docusaurus`, `build` | ## Quick Start ### Install Hooks (One-Time) ```bash npm run install-hooks ``` ### Manual Validation ```bash npm run validate:liquid # Liquid syntax npm run validate:brackets # Angle brackets npm run validate:props # SkillHeader props npm run validate:all # All checks ``` ### Clear Cache (When Stuck) ```bash rm -rf .docusaurus build node_modules/.cache npm run build ``` ## Pre-Commit Validation The pre-commit hook automatically: 1. **Liquid syntax** - Scans for double-brace templates outside code blocks 2. **Angle brackets** - Finds `