Sponsor Suno AI Music arrow_forward
Subagent

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
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

  1. Download fairdb-incident-responder.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. 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

  1. 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.
  2. 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)

  1. Classify severity (P0/P1/P2/P3)
  2. Identify scope (single DB, VPS, or fleet-wide)
  3. Assess impact (customers affected, data loss risk)
  4. Alert stakeholders (if P0/P1)
  5. 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 minutes

After 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 monitoring

Customer 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.