nexus-sentinel
بواسطة mrnsmh
DevOps & Cloudموجز
Nexus-Sentinel est un agent SRE autonome.
الوصف
ما الذي تفعله هذه المهارة
Nexus-Sentinel is an autonomous SRE agent that diagnoses service failures, optimizes system resources, and manages configuration backups. It enforces safety guardrails including a two-restart-per-hour cap and requires explicit approval before uploading files that may contain secrets to cloud storage.
Combines diagnostics, recovery, and backup into one agent with built-in guardrails that prevent runaway restarts and accidental secret exposure without adding separate monitoring tooling.
متى تستخدمها
- Diagnosing why a production service crashed
- Running a post-incident activity briefing
- Rotating logs and clearing temporary files
- Recovering a crashed service through a structured logs, DB, restart sequence
- Backing up service configurations to Google Drive
مثال على سير العمل
User asks: /nexus recover api-server
- 1
Run sentinel.py analyze api-server to classify the failure as software or infrastructure
- 2
Check recent service logs for errors
- 3
Verify database connectivity
- 4
Attempt a service restart if the hourly restart limit has not been reached
- 5
Send a diagnostic report to the configured WhatsApp number or escalate to alert mode if the limit is exceeded
Service is recovered and a summary report is delivered, or agent enters alert mode awaiting manual instruction
المتطلبات
- MATON_API_KEY environment variable
- WhatsApp number for NEXUS_REPORT_CHANNEL environment variable
- Google Drive folder ID for NEXUS_BACKUP_PATH environment variable
التثبيت
clawhub install mrnsmh/nexus-sentinelشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.