Skip to content
Back to skills

Web Database Validator

ASecurity

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

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 28, 2026
ai-agentspythongobashsqlrailsdockerdatabasebackendperformance

Works with

  • terminal

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add 0x-Professor/Agent-Skills-Hub --skill web-database-validator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Database Validator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Web Database Validator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0x-professor-web-database-validator/badge)](https://www.skillsdirectory.com/skills/0x-professor-web-database-validator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: web-database-validator
description: Validate database schema, migrations, indexes, and query behavior with structured pass/fail reporting.
compatibility: codex, claude-code, claude-ai, agent-skills
license: Apache-2.0
allowed-tools:
  - read_file
  - write_file
  - run_terminal_cmd
  - web_search
metadata:
  category: web-builder
  stage: 6-database-validation
  pipeline: web-builder
---

# 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 <workspace> --output <out.json> --format json
```

## References

- `references/tools.md`

Files in this skill

  • SKILL.md1.3 KB
  • agents/openai.yaml359 B
  • references/tools.md414 B
  • scripts/database_validator.py6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.