name: sysadmin-ops description: "Infrastructure operations skill for monitoring servers, validating tokens, and managing backups. Triggers: /infra-status, /token-check, /backup-now" disable-model-invocation: true argument-hint: "[/infra-status | /token-check | /backup-now]"
SysAdmin Operations Skill
Operations commands for Artvision infrastructure management.
Commands
/infra-status
Full infrastructure status report.
Usage: /infra-status or "статус инфраструктуры"
Actions:
- Check VPS connectivity (ping + SSH)
- Validate all API endpoints
- Check token expiration status
- Report last backup time
- Output formatted status report
Script:
python3 /Users/antonk/devops-agent/monitors/health.py --report
/token-check
Validate all tokens and check expiration.
Usage: /token-check or "проверь токены"
Actions:
- Load tokens.json
- Validate each token against its API
- Check expiration dates
- Alert if any token expires within 7 days
- Output validation report
Script:
python3 /Users/antonk/devops-agent/monitors/token_monitor.py --validate
/backup-now
Run immediate backup of all repositories.
Usage: /backup-now or "сделай бэкап"
Actions:
- Backup Git repos to Google Drive
- Create encrypted token backup
- Dump Supabase database (if enabled)
- Verify backup integrity
- Report results
Script:
python3 /Users/antonk/devops-agent/backup/backup_controller.py --run
/security-audit (TODO — скрипт не создан)
Статус: Скрипт
security_audit.pyещё не реализован. Когда будет готов:devops-agent/secrets/security_audit.py
Планируемые действия:
- Check token permissions (overprivileged?)
- Verify encrypted backups exist
- Check SSH key security
- Scan for exposed secrets in code
Quick Reference
| Command | Описание | Статус |
|---|---|---|
/infra-status |
Полный статус | ✅ Работает |
/token-check |
Проверка токенов | ✅ Работает |
/backup-now |
Ручной бэкап | ✅ Работает |
/security-audit |
Аудит безопасности | ⏳ TODO |
Configuration
- Config file:
/Users/antonk/devops-agent/config/settings.yaml - Tokens:
/Users/antonk/artvision-data/tokens.json - Logs:
/Users/antonk/devops-agent/logs/
Alert Destinations
- Telegram: @avportal_bot → Admin 161261562
- Log file:
/Users/antonk/devops-agent/logs/sysadmin.log
Related
- Agent:
sysadmin-orchestrator - Project:
/Users/antonk/devops-agent/