geusan/agent-skills/review-database

Claude Code and agent skill by geusan/agent-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Review PostgreSQL, MySQL, or MariaDB design and consistency across ERDs, ORM models, native migrations, and relevant queries. Use for DB 점검, 스키마 리뷰, ERD 검토, ORM/DB 불일치, or migration design review. Read-only by default; do not replace the project's ORM/migration workflow or apply schema changes.

Install

npx vskill@latest install geusan/agent-skills/review-database

SKILL.md

The same SKILL.md was published earlier as geusan/agent-skills/review-database.

Review Database

Review the business data model and its real implementation together. ORM conventions inform physical mapping; the correctness criteria are requirements, relational semantics, access patterns, and the selected engine. A matching ORM diagram alone is not sufficient evidence.

Find the authoritative representations

Read project instructions, Git status, the requested diff/feature scope, database engine/version, ORM configuration, schema definitions, migration history, and relevant application queries. Use the ORM and migration contract to identify which files define desired state and which are generated representations.

Identify the ERD's declared status and scope. A proposed diagram can intentionally differ from implemented code; list the required implementation changes instead of treating that difference as deployed drift. A code-target diagram does not establish which migrations were applied to a running environment. If database access or a schema snapshot is unavailable, state that limitation and review the available code evidence.

Read the relevant section of engine considerations. Do not infer MariaDB behavior solely from MySQL compatibility or generalize one version's capabilities to another.

Compare meaning, code, and effective schema

  • Check relationships, optionality, keys, uniqueness, referential actions, and data ownership against the business operation.
  • Compare physical table/column mappings, types, defaults, nullability, and constraints across the ERD, ORM, and effective migration result. Follow migration order and subsequent alterations; reading the original CREATE TABLE alone is insufficient.
  • Distinguish ORM-only relationships from enforced foreign keys. Include meaningful schema objects not represented by the ORM, such as raw-SQL indexes, checks, triggers, or views.
  • Review indexes against actual WHERE/JOIN/ORDER BY patterns and write cost. Use real plan evidence where available; do not invent workload sizes, latency, or performance improvements.
  • Inspect transaction boundaries, concurrent uniqueness/conflict behavior, idempotency where needed, and tenant/data-lifecycle rules relevant to the scope.
  • For migrations, inspect data compatibility, backfills, locking/rebuild behavior, application rollout order, and recovery. Do not assume every DDL operation can be rolled back transactionally.

Use ERD conventions when checking cardinalities and diagram completeness. The optional renderer freshness check only compares the diagram source and SVG bytes; explicitly separate its result from ORM/migration/database semantic consistency.

Keep review read-only

Leave schemas, model code, migration files, diagrams, and generated images unchanged unless the user requests fixes or documentation updates. Do not run schema push, auto-migration, introspection that overwrites models, or generators against the working tree as part of inspection. Prefer exported schema metadata or configured read-only access. Commands that execute queries or DDL need a suitable authorized target; EXPLAIN ANALYZE is not a non-executing explanation.

If validation requires creating schema or applying migrations, use the project's isolated test database and native tooling within the authorized scope. Otherwise report the check as unperformed. Do not copy production row data or credentials into an ERD/report.

When fixes are requested, use the design workflow and the owning implementation workflow to update the established schema/migrations and derived ERD together. Keep the same migration source of truth and honor the user's existing authorization.

Report actionable findings

For each finding, give severity, file/line or schema-object evidence, the triggering condition and impact, and the minimal remedy in the project's own tooling. Distinguish confirmed defects, missing evidence, and optional improvements. Do not invent findings because a schema uses a different naming style, ID type, or acceptable normalization tradeoff.

Summarize the diagram/model/migration agreement, database state actually inspected, target versions, and checks versus gaps. For Go + Next.js features, relate database guarantees to the Go operation and frontend API expectations without duplicating database ownership in the frontend.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/geusan/agent-skills/review-database/badge)](https://verified-skill.com/skills/geusan/agent-skills/review-database)

Something wrong with this skill or its page? Tell us.