Data Management Skill

Manage database data lifecycle with migrations, backups, retention, and compliance.

1|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JaveedIshaq/ai-workflow-orchestrator --skill data-management-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Data Management Skill
Source: https://github.com/JaveedIshaq/ai-workflow-orchestrator/tree/main/templates/skills/data-management
Command: npx skills add https://github.com/JaveedIshaq/ai-workflow-orchestrator --skill data-management-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides comprehensive patterns and tools for managing the entire lifecycle of your data, from creation and migration to retention, compliance, and versioning, ensuring data integrity and security.

Core Features & Use Cases

  • Zero-Downtime Migrations: Implement safe database schema changes using the Expand-Contract pattern.
  • Backup & Recovery: Establish robust backup strategies (PITR, daily snapshots) and recovery procedures.
  • Data Retention & Compliance: Configure automated data cleanup jobs and manage GDPR/CCPA compliance with export and deletion rights.
  • Soft Delete & Versioning: Implement soft delete patterns and maintain version history for critical data.
  • Use Case: Safely rename a critical column in a production database with millions of records without causing downtime, then set up automated daily backups and a 2-year retention policy for audit logs.

Quick Start

Use the data management skill to set up a daily backup script for your PostgreSQL database.

Frequently Asked Questions about Data Management Skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform zero-downtime database migrations on a production system?

Zero-downtime database migrations are implemented using the Expand-Contract pattern to safely apply schema changes without causing production outages. This approach allows you to modify critical columns in large databases safely while maintaining application availability.

What is the best way to set up automated data retention policies for GDPR compliance?

Automated data retention policies for GDPR and CCPA compliance are configured through scheduled cleanup jobs and data export or deletion rights. This ensures your system automatically manages user data lifecycle requirements and audit log retention periods.

How does soft delete implementation work for database records?

Soft delete implementation works by marking database records as inactive rather than physically removing them from the table. This pattern preserves data integrity for audit trails and versioning while preventing permanent data loss during routine operations.

Can I use this approach to establish backup and recovery strategies for PostgreSQL?

Yes, you can establish robust backup strategies including point-in-time recovery and daily snapshots for PostgreSQL databases. The provided scripts help automate daily backup routines and define structured recovery procedures for production environments.

How do I maintain data versioning and audit trails for critical database tables?

Data versioning is maintained through comprehensive audit trails that track historical changes to critical database records. This approach captures version history automatically, enabling reliable tracking of modifications for compliance and debugging purposes.

What are the limitations of using the Expand-Contract pattern for database schema changes?

The Expand-Contract pattern for database schema changes requires careful coordination across multiple deployment phases and assumes backward compatibility. Limitations include increased complexity for large migrations and the necessity of intermediate application deployments.