# Web Database Validator

> Validate database schema, migrations, indexes, and query behavior with structured pass/fail reporting.

- **Type:** Skill
- **Install:** `agentstack add skill-0x-professor-agent-skills-hub-web-database-validator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [0x-Professor](https://agentstack.voostack.com/s/0x-professor)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [0x-Professor](https://github.com/0x-Professor)
- **Source:** https://github.com/0x-Professor/Agent-Skills-Hub/tree/main/skills/web-database-validator

## Install

```sh
agentstack add skill-0x-professor-agent-skills-hub-web-database-validator
```

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

## About

# Web Database Validator

## Objective

Validate schema and query quality after backend scaffolding, including
migration sanity checks and performance guardrails.

## Required Workflow

1. Read `project-config.json` and ORM schema files.
2. Run migrations in a local test database (Docker or in-memory SQLite for dry runs).
3. Validate:
   - foreign key constraints
   - indexes on foreign keys and hot query columns
   - N+1 query risk with query logs or explain plans
   - soft-delete fields where required
   - auto timestamps (`created_at`, `updated_at`)
4. Seed realistic test data using Faker.js or Python Faker.
5. Run query checks for row counts, relationships, and cascades.
6. Output `db-validation-report.json` with pass/fail per check.

## Execution

```bash
python skills/web-database-validator/scripts/database_validator.py --input  --output  --format json
```

## References

- `references/tools.md`

## Source & license

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

- **Author:** [0x-Professor](https://github.com/0x-Professor)
- **Source:** [0x-Professor/Agent-Skills-Hub](https://github.com/0x-Professor/Agent-Skills-Hub)
- **License:** Apache-2.0

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-0x-professor-agent-skills-hub-web-database-validator
- Seller: https://agentstack.voostack.com/s/0x-professor
- 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%.
