fairdb-operations-kit

Complete operations kit for FairDB PostgreSQL as a Service - VPS setup, PostgreSQL management, customer provisioning, monitoring, and backup automation

View on GitHub
Author Jeremy Longshore
Namespace @jeremylongshore/claude-code-plugins-plus
Category devops
Version 1.0.0
Stars 1,193
Downloads 2
self.md verified
Table of content

Complete operations kit for FairDB PostgreSQL as a Service - VPS setup, PostgreSQL management, customer provisioning, monitoring, and backup automation

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/fairdb-operations-kit

Contents

Folders: agents, commands, skills

Files: LICENSE, README.md

Documentation

A comprehensive Claude Code plugin suite for managing FairDB PostgreSQL as a Service operations. This plugin automates VPS provisioning, PostgreSQL management, backup configuration, customer onboarding, and monitoring workflows.

Overview

FairDB is a managed PostgreSQL-as-a-Service platform built on Contabo VPS infrastructure with pgBackRest backups to Wasabi S3 storage. This plugin kit provides Claude with the ability to execute complex operational tasks through natural language commands.

Features

Installation

/plugin install fairdb-operations-kit@claude-code-plugins-plus

Commands

Infrastructure Setup

Customer Management

Operations & Monitoring

Agent Capabilities

The fairdb-automation-agent provides intelligent automation for:

Skills

FairDB Backup Manager

An Agent Skill that automatically activates when working with backups:

Architecture

FairDB Infrastructure Stack
├── Contabo VPS
│   ├── Ubuntu 24.04 LTS
│   ├── PostgreSQL 16
│   ├── pgBackRest
│   └── Monitoring (Prometheus/Grafana)
├── Wasabi S3 Storage
│   ├── Full backups (weekly)
│   ├── Differential backups (daily)
│   └── WAL archives (continuous)
└── Security Layer
    ├── UFW Firewall
    ├── Fail2ban IPS
    ├── SSL/TLS encryption
    └── Key-based SSH

Standard Operating Procedures

This plugin implements three core SOPs:

SOP-001: VPS Hardening

SOP-002: PostgreSQL Installation

SOP-003: Backup Configuration

Configuration

Required environment variables:

# Contabo API
CONTABO_API_KEY=<your-api-key>

# Wasabi S3
WASABI_ACCESS_KEY=<access-key>
WASABI_SECRET_KEY=<secret-key>
WASABI_BUCKET=<bucket-name>
WASABI_ENDPOINT=<region-endpoint>

# PostgreSQL
FAIRDB_ADMIN_USER=<admin-username>
FAIRDB_ADMIN_PASS=<admin-password>

# Monitoring
FAIRDB_MONITORING_WEBHOOK=<webhook-url>

Usage Examples

Complete New Customer Setup

User: "I need to onboard Acme Corp as a new FairDB customer"

Claude: I'll help you onboard Acme Corp. Let me use the fairdb-onboard-customer command...

[Executes complete workflow]:
✅ Database created: acme_corp_db
✅ Users created with secure passwords
✅ Network access configured for customer IPs
✅ Backups scheduled (daily at 3 AM)
✅ SSL certificates generated
✅ Monitoring enabled
✅ Connection documentation generated

Customer can now connect using:
postgresql://acme_corp_user:<password>@fairdb.example.com:5432/acme_corp_db?sslmode=require

Emergency Response

User: "Critical: customers reporting connection failures!"

Claude: Initiating emergency response with fairdb-emergency-response...

[STEP 1] SERVICE STATUS CHECK
 CRITICAL: PostgreSQL is DOWN
Attempting emergency restart...
 PostgreSQL restarted successfully

[STEP 2] CONNECTION DIAGNOSTI

...(truncated)

## Included Skills

This plugin includes 1 skill definition:

### fairdb-backup-manager

> |

<details>
<summary>View skill definition</summary>

# Fairdb Backup Manager

This skill provides automated assistance for fairdb backup manager tasks.

## Prerequisites

Before using this skill, ensure:
- Required credentials and permissions for the operations
- Understanding of the system architecture and dependencies
- Backup of critical data before making structural changes
- Access to relevant documentation and configuration files
- Monitoring tools configured for observability
- Development or staging environment available for testing

## Instructions

### Step 1: Assess Current State
1. Review current configuration, setup, and baseline metrics
2. Identify specific requirements, goals, and constraints
3. Document existing patterns, issues, and pain points
4. Analyze dependencies and integration points
5. Validate all prerequisites are met before proceeding

### Step 2: Design Solution
1. Define optimal approach based on best practices
2. Create detailed implementation plan with clear steps
3. Identify potential risks and mitigation strategies
4. Document expected outcomes and success criteria
5. Review plan with team or stakeholders if needed

### Step 3: Implement Changes
1. Execute implementation in non-production environment first
2. Verify changes work as expected with thorough testing
3. Monitor for any issues, errors, or performance impacts
4. Document all changes, decisions, and configurations
5. Prepare rollback plan and recovery procedures

### Step 4: Validate Implementation
1. Run comprehensive tests to verify 

...(truncated)

</details>

## Source

[View on GitHub](https://github.com/jeremylongshore/claude-code-plugins-plus-skills)
Tags: devops fairdbpostgresqldatabasesaasoperationsdevopsbackupmonitoringvpscontabowasabipgbackrestautomationincident-response