production-database-integrity
Skill3 starsChanged 3 months agoMITView on GitHub
Review database schema, migrations, constraints, indexes, transactions, rollback safety, data integrity, retention, soft deletes, seed data, PII handling, and persistence-layer risks during a production-readiness pass. Use when reducing data loss, migration, consistency, or rollback risk before release.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- ArcanEdge-AI/coding-agent-playbook-claude-codeedited, first seen Nov 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aws-local-preflightSkill
- design-taste-frontendSkill
- feature-branch-lifecycleSkill
- handoffSkill
- humanizerSkill
- impeccableSkill
- legacy-path-retirementSkill
- local-ci-preflightSkill
- multi-role-repo-reviewSkill
- multi-session-coordinationSkill
- platform-documentationSkill
- production-api-integrationSkill
- production-architecture-reviewSkill
- production-code-qualitySkill
- production-devops-releaseSkill
- production-documentation-onboardingSkill
- production-pass-orchestratorSkill
- production-performance-reviewSkill
- production-readiness-reportSkill
- production-reliability-observabilitySkill
- production-security-reviewSkill
- production-testing-qaSkill
- production-ux-accessibilitySkill
- reference-doc-routingSkill
- senior-code-reviewSkill
- session-cleanupSkill
- subagent-orchestrationSkill
- task-graph-orchestrationSkill
- taste-new-websiteSkill
- taste-redesign-websiteSkill
- technical-debt-auditorSkill
- worktree-lifecycleSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 47
Do not create destructive migrations without explicit approval.
- Distinctive: line 49
Do not drop columns, tables, indexes, or data unless explicitly approved.
- Distinctive: line 53
Treat data loss risk as a Blocker.
- Distinctive: line 66
Add tests for authorized data-integrity behavior changes.
- Distinctive: line 81
Do not assume production data shape.
- Distinctive: line 82
Do not run destructive commands.
- Distinctive: line 83
Do not create migrations that cannot be rolled back or explained.
- Distinctive: line 84
Do not hide data integrity risks as normal cleanup.
- Distinctive: line 85
Prefer explicit constraints over implicit assumptions.
- Distinctive: line 86
Do not expose PII in reports or logs.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Production Database Integrity
Core purpose
Identify data integrity risks and improve schema, migration, and persistence safety without destructive changes.
Use this skill when
- The production pass needs database or persistence review.
- The repository uses a database, ORM, migrations, persistent storage, or data models.
- The user wants to reduce data loss, migration, consistency, or rollback risk.
Do not use this skill when
- The application has no persistence layer.
- The task is only frontend polish.
- The user asks for destructive data changes without explicit approval.
Check for
- Schema consistency
- Unsafe migrations
- Missing constraints
- Missing indexes
- Weak validation
- Race conditions
- Transaction safety
- Backup assumptions
- Rollback risks
- Soft delete behavior
- Data retention concerns
- Personally identifiable information handling
- Seed data safety
- Migration ordering
- Orphaned records
- Inconsistent application-level versus database-level rules
- Unsafe default values
- Missing uniqueness guarantees
Destructive-change rule
Do not create destructive migrations without explicit approval.
Do not drop columns, tables, indexes, or data unless explicitly approved.
Any migration must include rollback notes.
Treat data loss risk as a Blocker.
Default workflow
Resolve the task mode first: assessment-only work reports findings without source, test, or repository-document edits; authorized remediation applies only in-scope fixes. Release, production, and destructive operations retain their separate authority requirements.
- Identify database technology, ORM, schema files, migration files, seed files, and data access layer.
- Inspect schema and migration history.
- Review critical write paths for transaction safety.
- Identify data integrity assumptions that only exist in application code.
- Classify findings as Blocker, High, Medium, or Low.
- Recommend constraints, indexes, or migration changes.
- In authorized remediation, implement only safe non-destructive changes. For an assessment, report proposed changes without modifying source, schema, or data.
- Add tests for authorized data-integrity behavior changes; report missing coverage during an assessment.
- Report rollback and deployment implications; update project notes only for authorized changes or requested artifacts.
Severity guidance
Classify as Blocker when there is data loss risk, unsafe migration risk, or broken persistence for critical flows.
Classify as High when data correctness, rollback, or consistency risks are serious but not immediately destructive.
Classify as Medium when database improvements are important but not release-blocking.
Classify as Low for cleanup or future schema polish.
Guardrails
- Do not assume production data shape.
- Do not run destructive commands.
- Do not create migrations that cannot be rolled back or explained.
- Do not hide data integrity risks as normal cleanup.
- Prefer explicit constraints over implicit assumptions.
- Do not expose PII in reports or logs.
Deliverables
Include the following in the requested assessment response or report. Update repository readiness files only when those artifacts are requested or part of authorized remediation:
- Database risk summary
- Migration safety notes
- Safe schema or validation changes
- Rollback considerations
- Remaining data risks
- Files changed and reasons
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

