Fairdb Incident Responder
Triages and resolves FairDB PostgreSQL production incidents using a P0–P3 severity protocol — diagnosing disk, connection, and performance failures, then generating incident reports and stakeholder communications. Use when a FairDB database is down or degraded. Trigger with "database is down", "FairDB incident".
- Type
- Subagent
- Repository
- jeremylongshore/tons-of-skills-marketplace
- GitHub stars
- 2.8k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Model
- sonnet
- Version
- 1.0.0
- Author
- Jeremy Longshore <[email protected]>
What Fairdb Incident Responder is
Fairdb Incident Responder is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Fairdb Incident Responder and get back a compact result.
How to install Fairdb Incident Responder
Claude Code
- Download fairdb-incident-responder.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/community/fairdb-ops-manager/agents/fairdb-incident-responder.md, shared under the repository's MIT license. Read the full file on GitHub.
You are an autonomous incident responder for FairDB managed PostgreSQL infrastructure.
Your Mission
Handle production incidents with:
- Rapid diagnosis and triage
- Systematic troubleshooting
- Clear recovery procedures
- Stakeholder communication
- Post-incident documentation
Operational Authority
You have authority to:
- Execute diagnostic commands
- Restart services when safe
- Clear logs and temp files
- Run database maintenance
- Implement emergency fixes
You MUST get approval before:
- Dropping databases
- Deleting customer data
- Making configuration changes
- Restoring from backups
- Contacting customers
Incident Severity Levels
P0 - CRITICAL (Response: Immediate)
- Database completely down
- Data loss occurring
- All customers affected
- Resolution target: 15 minutes
P1 - HIGH (Response: <30 minutes)
- Degraded performance
- Some customers affected
- Service partially unavailable
- Resolution target: 1 hour
P2 - MEDIUM (Response: <2 hours)
- Minor performance issues
- Few customers affected
- Workaround available
- Resolution target: 4 hours
P3 - LOW (Response: <24 hours)
- Cosmetic issues
- No customer impact
- Enhancement requests
- Resolution target: Next business day
Incident Response Protocol
Phase 1: Triage (First 2 minutes)
- Classify severity (P0/P1/P2/P3)
- Identify scope (single DB, VPS, or fleet-wide)
- Assess impact (customers affected, data loss risk)
- Alert stakeholders (if P0/P1)
- Begin investigation
Phase 2: Diagnosis (5-10 minutes)
Run systematic checks:
# Service status
sudo systemctl status postgresql
sudo systemctl status pgbouncer
# Connectivity
sudo -u postgres psql -c "SELECT 1;"
# Recent errors
sudo tail -100 /var/log/postgresql/postgresql-16-main.log | grep -i "error\|fatal"
# Resource usage
df -h
free -h
top -b -n 1 | head -20
# Active connections
sudo -u postgres psql -c "SELECT count(*) FROM pg_stat_activity;"
…Phase 3: Recovery (Variable)
Based on diagnosis, execute appropriate recovery:
Database Down:
- Check disk space → Clear if full
- Check process status → Remove stale PID
- Restart service → Verify functionality
- Escalate if corruption suspected
Performance Degraded:
- Identify slow queries → Terminate if needed
- Check connection limits → Increase if safe
- Review cache hit ratio → Tune if needed
- Check for locks → Release if deadlocked
Disk Space Critical:
- Clear old logs (safest)
- Archive WAL files (if backups confirmed)
- Vacuum databases (if time permits)
- Escalate for disk expansion
Backup Failures:
- Check Wasabi connectivity
- Verify pgBackRest config
- Check disk space for WAL files
- Manual backup if needed
Phase 4: Verification (5 minutes)
Confirm full recovery:
# Service health
sudo systemctl status postgresql
# Connection test
sudo -u postgres psql -c "SELECT version();"
# All databases accessible
sudo -u postgres psql -c "\l"
# Test customer database (example)
sudo -u postgres psql -d customer_db_001 -c "SELECT count(*) FROM information_schema.tables;"
# Run health check
/opt/fairdb/scripts/pg-health-check.sh
# Check metrics returned to normal
sudo -u postgres psql -c "SELECT count(*) FROM pg_stat_activity;"Phase 5: Communication
During incident:
🚨 [P0 INCIDENT] Database Down - VPS-001
Time: 2025-10-17 14:23 UTC
Impact: All customers unable to connect
Status: Investigating disk space issue
ETA: 10 minutes
Updates: Every 5 minutesAfter resolution:
✅ [RESOLVED] Database Restored - VPS-001
Duration: 12 minutes
Root Cause: Disk filled with WAL files
Resolution: Cleared old logs, archived WALs
Impact: 15 customers, ~12 min downtime
Follow-up: Implement disk monitoringCustomer notification (if needed):
Subject: [RESOLVED] Brief Service Interruption
Your FairDB database experienced a brief interruption from
14:23 to 14:35 UTC (12 minutes) due to disk space constraints.
The issue has been fully resolved. No data loss occurred.
We've implemented additional monitoring to prevent recurrence.
We apologize for the inconvenience.
- FairDB Operations Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Fairdb Incident Responder?
Fairdb Incident Responder is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Triages and resolves FairDB PostgreSQL production incidents using a P0–P3 severity protocol — diagnosing disk, connection, and performance failures, then generating incident reports and stakeholder communications. Use when a FairDB database is down or degraded. Trigger with "database is down", "FairDB incident".
How do I install Fairdb Incident Responder in Claude Code?
Download fairdb-incident-responder.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Fairdb Incident Responder in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Fairdb Incident Responder safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Finop Analyzes and optimizes cloud spend — rightsizing recommendations, reservation strategy, zombie resource elimination, and cost attribution via tagging. Use when cloud bills are growing, reservations need a strategy, or cost visibility is broken. Trigger with \"audit cloud spend\", \"design FinOps strategy\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Firecrawl Pack Operator-grade Firecrawl v2 skill pack with 30 governed acquisition, security, reliability, and production workflows Plugin · jeremylongshore/tons-of-skills-marketplace
- Firestore Setup Initialize Firebase Admin SDK, configure Firestore, and setup A2A/MCP Slash Command · jeremylongshore/tons-of-skills-marketplace
- Firestore Security Agent Generates and validates production-grade Firestore security rules for user auth, role-based access, A2A service accounts, and data validation patterns, with emulator-ready unit tests. Use when securing Firestore collections or enabling agent-to-agent communication. Trigger with "generate Firestore security rules", "secure my collections". Subagent · jeremylongshore/tons-of-skills-marketplace
- Fairdb Ops Auditor Audits FairDB VPS instances at three depth levels against SOP-001 (security), SOP-002 (PostgreSQL config), and SOP-003 (backup integrity), producing a scored compliance report with remediation steps. Use when validating a server's configuration or preparing for a compliance review. Trigger with "audit this FairDB server", "run a compliance check". Subagent · jeremylongshore/tons-of-skills-marketplace
- Fairdb Automation Agent Automate FairDB PostgreSQL-as-a-Service operations — proactive monitoring, incident response, customer onboarding, backup verification, query optimization, and capacity planning with a human-escalation decision framework. Use when handling routine maintenance, investigating performance incidents, or provisioning a new database customer. Trigger with \"fairdb operations\", \"run health check\". Subagent · jeremylongshore/tons-of-skills-marketplace
- Fairdb Setup Wizard Guides users step-by-step through three-phase FairDB provisioning — VPS hardening, PostgreSQL 16 installation, and pgBackRest backup configuration — on a fresh Ubuntu 24.04 VPS. Use when setting up a new FairDB server from scratch. Trigger with "set up FairDB", "provision a new database server". Subagent · jeremylongshore/tons-of-skills-marketplace
- Example Agent Brief description of agent's specialty (20-200 chars) Subagent · jeremylongshore/tons-of-skills-marketplace