重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
site-reliability-engineer by erichowens/some_claude_skills
npx skills add https://github.com/erichowens/some_claude_skills --skill site-reliability-engineer专注于 Docusaurus 构建健康、MDX 验证以及 Claude Skills 展示网站的部署安全。通过预提交验证和自动化健康检查,防止常见的构建失败。
适用于:
不适用于:
---|---|---|---
1 | 示例中的 Liquid 语法 | Liquid 模板破坏 MDX | 用反引号表达式包裹
2 | 未转义的角度括号 | <70 被解析为 HTML | 使用 <70
3 | 错误的 SkillHeader 属性 | SSG 构建失败 | 使用 fileName 而非 skillId
4 | 缺失关键文件 | 技能在网站上不可见 | 添加到
5 | 缓存损坏 | 幽灵错误 | 清除 ,
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
skills.ts.docusaurusbuildnpm run install-hooks
npm run validate:liquid # Liquid 语法
npm run validate:brackets # 角度括号
npm run validate:props # SkillHeader 属性
npm run validate:all # 所有检查
rm -rf .docusaurus build node_modules/.cache
npm run build
预提交钩子自动执行:
<digit 模式速度 : 对于典型的提交,在 5 秒内完成
| 新手 | 专家 |
|---|---|
| 运行完整构建来检查 | 预提交在 5 秒内捕获 90% 的问题 |
| 手动清除缓存 | 自动检测缓存问题 |
| 忽略警告 | 对损坏链接零容忍 |
| 简单的正则表达式验证 | 上下文感知(跳过代码块) |
表现 : 运行 npm run build 来检查错误 错误原因 : 分钟级与秒级对比,反馈缓慢 替代方案 : 运行 npm run validate:all(30 秒内)
表现 : “构建成功了,发布吧!”(忽略警告) 错误原因 : 损坏的链接 = 糟糕的用户体验,技术债务 替代方案 : 构建后验证在出现警告时失败
表现 : 使用 /\{\{.*?\}\}/(也会匹配代码块内的内容) 错误原因 : 在代码示例中出现误报 替代方案 : 跟踪代码块状态,跳过受保护区域
scripts/ 文件夹)| 脚本 | 用途 |
|---|---|
validate-liquid.js | 检测未转义的 Liquid 语法 |
validate-brackets.js | 检测未转义的角度括号 |
validate-skill-props.js | 验证 SkillHeader 组件 |
| 问题 | 诊断 | 修复方法 |
|---|---|---|
| 钩子未运行 | ls -la .git/hooks/pre-commit | chmod +x 或重新安装 |
| 误报 | 模式出现在代码块中 | 检查 ``` 标记 |
| 验证缓慢 | time npm run validate:all | 优化 glob 模式 |
安装钩子后:
references/validation-logic.md - 上下文感知的检测模式references/ci-cd-integration.md - GitHub Actions,健康报告scripts/ - 可用的验证脚本防止 : Liquid 错误 | 角度括号失败 | 属性不匹配 | 缺失资源 | 损坏链接
配合使用 : skill-documentarian(同步) | docusaurus-expert(高级配置)
每周安装次数
48
代码仓库
GitHub 星标数
76
首次出现
Jan 24, 2026
安全审计
安装于
gemini-cli43
codex43
cursor42
opencode42
github-copilot39
cline35
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.
Use for:
Do NOT use for:
---|---|---|---
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
npm run install-hooks
npm run validate:liquid # Liquid syntax
npm run validate:brackets # Angle brackets
npm run validate:props # SkillHeader props
npm run validate:all # All checks
rm -rf .docusaurus build node_modules/.cache
npm run build
The pre-commit hook automatically:
<digit patternsSpeed : Under 5 seconds for typical commits
| Novice | Expert |
|---|---|
| Runs full build to check | Pre-commit catches 90% in 5 seconds |
| Manual cache clearing | Auto-detect cache issues |
| Ignores warnings | Zero-tolerance for broken links |
| Simple regex validation | Context-aware (skips code blocks) |
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)
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
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/ folder)| Script | Purpose |
|---|---|
validate-liquid.js | Detect unescaped Liquid syntax |
validate-brackets.js | Detect unescaped angle brackets |
validate-skill-props.js | Validate SkillHeader component |
| Issue | Diagnosis | Fix |
|---|---|---|
| Hook not running | ls -la .git/hooks/pre-commit | chmod +x or reinstall |
| False positives | Pattern in code block | Check ``` markers |
| Slow validation | time npm run validate:all | Optimize glob patterns |
After installing hooks:
references/validation-logic.md - Context-aware detection patternsreferences/ci-cd-integration.md - GitHub Actions, health reportsscripts/ - Working validation scriptsPrevents : Liquid errors | Angle bracket failures | Prop mismatches | Missing assets | Broken links
Use with : skill-documentarian (sync) | docusaurus-expert (advanced config)
Weekly Installs
48
Repository
GitHub Stars
76
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli43
codex43
cursor42
opencode42
github-copilot39
cline35
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
127,000 周安装
Spring Boot Kotlin项目创建指南:使用GitHub Copilot快速搭建全栈应用
7,900 周安装
ASP.NET .NET Framework容器化指南:Windows Docker容器部署完整教程
7,900 周安装
CentOS Linux 问题诊断专家 | RHEL兼容命令与最佳实践解决方案
7,900 周安装
Azure资源健康诊断与修复指南 - 利用日志遥测分析问题
7,900 周安装
Azure成本优化工作流:自动分析IaC与资源,生成成本节约建议与GitHub Issue
7,900 周安装
GitHub Copilot上下文助手 - 智能分析代码依赖,精准定位所需文件
8,000 周安装