Data Integrity
Keep data correct under concurrency and failure — database constraints, transactions and isolation, optimistic and pessimistic locking, idempotent writes, ledgers, outbox consistency across systems, and detection of drift with reconciliation queries.
What it does
Keep data correct under concurrency and failure — database constraints, transactions and isolation, optimistic and pessimistic locking, idempotent writes, ledgers, outbox consistency across systems, and detection of drift with reconciliation queries.
- Category
- databasereliabilitybackend
- Platforms
- backend
- Frameworks and tools
- postgresqlmysqlorm
- Capabilities
- architecturereviewdebuggingcode-generation
Example tasks
- “Prevent double-booking and overselling under concurrent requests.”
- “Design a wallet or credits ledger that always balances and survives retries.”
- “Find and repair orphaned and inconsistent rows left by past bugs, then add constraints so it cannot recur.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (80 lines in total).
- 01Data Integrity
- 021. Constraints first
- 032. Transactions and isolation
- 043. Concurrency control techniques
- 054. Idempotent writes
- 065. Ledgers and money
- 076. Consistency across systems: transactional outbox
- 087. Detect and repair drift
- 098. Testing
- 10Common mistakes
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Data Integrity
1.0.0
- Initial release.