Agent skill
sre
Server, services, logs, errors, performance, load, memory, disk, processes, nginx, mysql, redis, php, supervisor
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/sre-billyfranklim1-claude-skills
SKILL.md
Skill: SRE — Server Reliability Engineering
Quando Usar
Quando o usuario perguntar sobre servidor, servicos, logs, erros, performance, load, memoria, disco, processos.
Contexto
- Servidor: my-server (Ubuntu 22.04, 4 vCPUs, 16GB RAM)
- Servicos: Nginx 1.26, MySQL 8.0, Redis 7.2, PHP-FPM 8.0/8.3/8.4
- Process managers: Supervisor (Laravel workers), PM2 (Next.js apps)
- Observability: Grafana:3000, Loki:3100, Promtail:9080
SLOs
- CPU Load: warning > 3.0, critical > 4.0
- Memory: warning > 80%, critical > 90%
- Disk: warning > 70%, critical > 85%
- HTTP 5xx: < 0.5%
Comandos Essenciais
# Health check rapido
uptime && free -h && df -h /
systemctl is-active nginx mysql redis-server
supervisorctl status
pm2 jlist
# Logs
tail -100 /var/log/nginx/error.log
journalctl -u mysql --since "1 hour ago" --no-pager
tail -100 /home/deploy/.daemon-logs/daemon-XXXXX.log
# Processos pesados
ps aux --sort=-%cpu | head -10
ps aux --sort=-%mem | head -10
Runbook: Restart Seguro
- Identifique o servico com problema
- Verifique logs ANTES de reiniciar
- Restart progressivo: PHP-FPM → Nginx → Workers
- Confirme recuperacao com curl/health check
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?