db-review

db-review is a skill for Claude Code from eugeniosegala/claude-connoisseur. It costs 17 tokens per session (779 once invoked), scanned A, original, MIT.

A review of a database schema, which is the structure describing tables, fields, relationships, and rules in a database. It reports possible improvements without changing the schema.

In plain words
What is it for?
Use it to review schema files for indexing, types, normalisation, naming, constraints, referential integrity, and performance. It returns suggestions for improvement rather than applying them.
Why use it?
It can reveal missing indexes, unsuitable data types, weak constraints, naming inconsistencies, and relationship or performance problems before they cause issues.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

Part of the claude-connoisseur plugin — 13 skills, 2 hooks shipped together

Good fit Use it to review schema files for indexing, types, normalisation, naming, constraints, referential integrity, and performance. It returns suggestions for improvement rather than applying them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eugeniosegala/claude-connoisseur/db-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add eugeniosegala/claude-connoisseur --skill db-review
Clone the repo
git clone --depth 1 https://github.com/eugeniosegala/claude-connoisseur

Made for: Claude Code.

Or install claude-connoisseur, the plugin that ships this one along with the rest of its 13 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for db-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/eugeniosegala/claude-connoisseur/db-review/github.svg)](https://agentmods.dev/skills/eugeniosegala/claude-connoisseur/db-review)
Your own site
<a href="https://agentmods.dev/skills/eugeniosegala/claude-connoisseur/db-review"><img src="https://agentmods.dev/badge/skills/eugeniosegala/claude-connoisseur/db-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for db-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/eugeniosegala/claude-connoisseur/db-review"><img src="https://agentmods.dev/badge/skills/eugeniosegala/claude-connoisseur/db-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 779 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.00779
Opus 5 $0.00009 $0.00390
Sonnet 5 $0.00003 $0.00156
Haiku 4.5 $0.00002 $0.00078

Measured 12d ago against content hash 37c3f3350b99, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

db-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/db-review/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Database Schema Review

Analyse the specified database schema files and provide actionable improvement suggestions.

Files and instructions: $ARGUMENTS

What to review

  • Indexing: missing indexes on foreign keys, frequently queried columns, and composite indexes for multi-column lookups. Flag redundant or duplicate indexes.
  • Data types: overly wide types (e.g. VARCHAR(255) where VARCHAR(50) suffices, BIGINT where INT is enough), incorrect types (e.g. strings for dates, floats for currency), and missing precision on decimals.
  • Normalisation: repeated data that should be extracted into separate tables, denormalisation without justification, and violation of normal forms.
  • Naming conventions: inconsistent table/column naming (mixed camelCase and snake_case, plural vs singular), unclear or ambiguous column names.
  • Constraints: missing NOT NULL where nullability is unlikely intentional, missing UNIQUE constraints, missing CHECK constraints for bounded values, and missing DEFAULT values.
  • Referential integrity: missing or incorrect foreign key relationships, cascading deletes that may be dangerous, orphan-prone relationships.
  • Performance: tables likely to grow large without partitioning strategy, missing covering indexes for known query patterns, N+1-prone relationship structures.
  • Schema-level concerns: missing created_at/updated_at audit columns, soft-delete patterns without indexes on the deleted flag, missing composite primary keys on junction tables.

How to interpret arguments

The arguments are free-form and flexible. They may contain:

  • File references of any type and in any format: @schema.sql, migrations/001.sql, models.py, schema.prisma, schema.rb db/structure.sql
  • Additional natural language instructions alongside file references, such as:
    • "focus on indexing only"
    • "this is a read-heavy workload"
    • "we use PostgreSQL 16"
    • "also check the migration files in db/migrations"

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 60 lines · 17 tokens per session scan A 37c3f3350b99

Subscribe to this mod's changes

db-review is a skill published in the GitHub repository eugeniosegala/claude-connoisseur (9 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 779 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

triage-contributor-pr

Triage open pull requests from external contributors to prisma/prisma and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version…

prisma/orm · 131 tokens

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

review-triage-phase

Produces canonical review actions from fetched review state and renders action markdown. Use when the user wants only triage/action-planning for the review-framework workflow.

prisma/orm · 36 tokens

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

migration-review

Review database migration files when a change adds or modifies paths under migrations/. Use it before merge to collect forward, rollback, locking, and data-safety evidence.

rohitg00/ai-engineering-from-scratch · 35 tokens