Skip to content
site-reliability-engineer logo

site-reliability-engineer

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...

SKILL.md

Full skill instructions

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

#ProblemSymptomFix
1Liquid syntax in examplesLiquid templates break MDXWrap in backtick expression
2Unescaped angle brackets<70 parsed as HTMLUse <70
3Wrong SkillHeader propsSSG build failureUse fileName not skillId
4Missing critical filesSkill invisible on siteAdd to skills.ts
5Cache corruptionPhantom errorsClear .docusaurus, build

Quick Start

Install Hooks (One-Time)

npm run install-hooks

Manual Validation

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)

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 <digit patterns
  3. SkillHeader props - Validates component usage
  4. Required files - Checks hero images, ZIPs exist

Speed: Under 5 seconds for typical commits

Expert vs Novice Approach

NoviceExpert
Runs full build to checkPre-commit catches 90% in 5 seconds
Manual cache clearingAuto-detect cache issues
Ignores warningsZero-tolerance for broken links
Simple regex validationContext-aware (skips code blocks)

Anti-Patterns

Anti-Pattern: Full Build for Validation

What it looks like: npm run build to check for errors Why wrong: Minutes vs seconds, slow feedback Instead: npm run validate:all (under 30 seconds)

Anti-Pattern: Ignoring Build Warnings

What it looks like: "Build succeeded, ship it!" (ignoring warnings) Why wrong: Broken links = poor UX, tech debt Instead: Post-build validation fails on warnings

Anti-Pattern: Naive Regex Validation

What it looks like: /\{\{.*?\}\}/ (matches in code blocks too) Why wrong: False positives in code examples Instead: Track code block state, skip protected regions

Scripts (in scripts/ folder)

ScriptPurpose
validate-liquid.jsDetect unescaped Liquid syntax
validate-brackets.jsDetect unescaped angle brackets
validate-skill-props.jsValidate SkillHeader component

Troubleshooting Quick Reference

IssueDiagnosisFix
Hook not runningls -la .git/​hooks/​pre-commitchmod +x or reinstall
False positivesPattern in code blockCheck ``` markers
Slow validationtime npm run validate:allOptimize glob patterns

Success Metrics

After installing hooks:

  • Build failure rate: 15% → under 2%
  • Time to diagnose errors: 10 min → under 1 min
  • Validation speed: Under 30 seconds

Reference Files

  • references/​validation-logic.md - Context-aware detection patterns
  • references/​ci-cd-integration.md - GitHub Actions, health reports
  • scripts/ - Working validation scripts

Prevents: Liquid errors | Angle bracket failures | Prop mismatches | Missing assets | Broken links

Use with: skill-documentarian (sync) | docusaurus-expert (advanced config)