返回 Skill 列表
DevOps进阶
日志与监控 Skill
配置应用日志收集、错误追踪、性能监控。
📋 SKILL.md 完整代码
--- name: monitoring-skill description: >- 配置应用日志收集、错误追踪、性能监控。 Use when working on monitoring skill tasks. allowed-tools: Read,Write,Bash --- # 日志与监控 Skill ## Quick Start 1. Save as `~/.claude/skills/monitoring-skill/SKILL.md` 2. Restart Claude Code 3. Type `/monitoring-skill` or describe your task naturally 4. Claude auto-triggers when your task matches the description ## Instructions - Understand the user's specific context and needs - Apply domain best practices consistently - Provide actionable, specific guidance with examples - Verify all outputs before presenting to user ## Gotchas - Test with a fresh Claude instance after changes - Keep SKILL.md under 500 lines; use references/ for details - Description is the trigger key — make it specific and keyword-rich
🚀 怎么用
1. 复制上面的 SKILL.md 代码 2. 保存为 ~/.claude/skills/monitoring-skill/SKILL.md 3. 重启 Claude Code 4. 输入 /monitoring-skill 或直接描述任务触发 5. AI 自动按 Skill 流程执行
监控三件套
日志(记录发生了什么)→错误追踪(Sentry:捕获并定位异常)→性能监控(页面加载时间、API响应时间、数据库查询时间)。配好后出问题第一时间知道,不用等用户投诉。