# Data Integrity Constraints

> Use when changing database constraints, keys, triggers, stored procedures, repair scripts, reconciliation queries, or application/database invariants.

- **Type:** Skill
- **Install:** `agentstack add skill-jukrap-ai-agent-playbook-data-integrity-constraints`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [jukrap](https://agentstack.voostack.com/s/jukrap)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [jukrap](https://github.com/jukrap)
- **Source:** https://github.com/jukrap/ai-agent-playbook/tree/main/skills/database/data-integrity-constraints
- **Website:** https://www.npmjs.com/package/ai-agent-playbook

## Install

```sh
agentstack add skill-jukrap-ai-agent-playbook-data-integrity-constraints
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Data Integrity Constraints

Use this as the primary database skill for enforcing, repairing, or reviewing data invariants.

## Workflow

1. Identify the invariant, owner, current enforcement layer, affected data, callers, reports, jobs, and repair/rollback needs.
2. Check existing violations before enforcing a new constraint or trigger.
3. Plan repair, backfill, dedupe, orphan cleanup, partial rollout, and application compatibility before tightening rules.
4. Verify with reconciliation queries, before/after counts, negative cases, app behavior, and post-deploy monitoring when available.

## Reference

Read `references/constraint-trigger-procedure-checks.md` for database-enforced invariants and routine safety.

Read `references/reconciliation-and-backfill-checks.md` for repair, dedupe, orphan, and backfill verification.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [jukrap](https://github.com/jukrap)
- **Source:** [jukrap/ai-agent-playbook](https://github.com/jukrap/ai-agent-playbook)
- **License:** MIT
- **Homepage:** https://www.npmjs.com/package/ai-agent-playbook

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-jukrap-ai-agent-playbook-data-integrity-constraints
- Seller: https://agentstack.voostack.com/s/jukrap
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
