db-temporal-history

Audit database schemas for soft-delete consistency and audit trail integrity.

18|4|Updated Jun 16, 2026
One-click install
npx skills add https://github.com/Hainrixz/claude-db --skill db-temporal-history
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-temporal-history
Source: https://github.com/Hainrixz/claude-db/tree/main/skills/db-temporal-history
Command: npx skills add https://github.com/Hainrixz/claude-db --skill db-temporal-history

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill audits temporal and lifecycle modeling in databases, ensuring soft-delete consistency, audit trail presence, and GDPR compliance for data retention and erasure.

Core Features & Use Cases

  • Soft-Delete Consistency: Checks for consistent deleted_at/is_deleted usage across tables.
  • Audit/History Trail: Verifies the existence of change history for sensitive tables.
  • Retention & Erasure: Audits for GDPR/CCPA compliance, including PII data handling.
  • Use Case: A database auditor uses this Skill to ensure a new database schema complies with data lifecycle laws and regulations.

Quick Start

Run the db-temporal-history skill to audit the temporal modeling in your database.

Frequently Asked Questions about db-temporal-history

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

FAQPage Schema
How do I audit my database for GDPR compliance and PII data retention?

To audit database GDPR compliance, you need to check temporal data modeling for soft-delete consistency, audit trail presence, and PII data handling. This process identifies retention policy gaps to ensure data erasure meets regulatory requirements.

What is temporal data modeling and how does soft-delete consistency work?

Temporal data modeling tracks the history and lifecycle of database records over time. Soft-delete consistency ensures that `deleted_at` or `is_deleted` columns are uniformly applied across tables to preserve data without permanent erasure.

How do I check if my database schema has a consistent audit trail for sensitive tables?

Checking for a consistent audit trail involves verifying the existence of change history records for sensitive tables. The audit examines your database schema to ensure all data modifications are tracked properly for lifecycle compliance.

Can I use database auditing scripts to verify CCPA data erasure policies?

Yes, you can use database auditing scripts to verify CCPA data erasure policies. The audit reviews temporal modeling and retention configurations to detect issues with data lifecycle management and ensure regulatory compliance.

What do I need to provide to audit temporal modeling and data lifecycle consistency?

To audit temporal modeling and data lifecycle consistency, you need to provide access to the database schema and relevant data. This access allows the audit to identify soft-delete inconsistencies and missing audit trails.