Agent skill
web-database-validator
Validate database schema, migrations, indexes, and query behavior with structured pass/fail reporting.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/web-database-validator
Metadata
Additional technical details for this skill
- stage
- 6-database-validation
- category
- web-builder
- pipeline
- web-builder
SKILL.md
Web Database Validator
Objective
Validate schema and query quality after backend scaffolding, including migration sanity checks and performance guardrails.
Required Workflow
- Read
project-config.jsonand ORM schema files. - Run migrations in a local test database (Docker or in-memory SQLite for dry runs).
- 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)
- Seed realistic test data using Faker.js or Python Faker.
- Run query checks for row counts, relationships, and cascades.
- Output
db-validation-report.jsonwith pass/fail per check.
Execution
python skills/web-database-validator/scripts/database_validator.py --input <workspace> --output <out.json> --format json
References
references/tools.md
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?