Help us improve
Share bugs, ideas, or general feedback.
From Dev10x
Plans safe database queries with schema-first construction and read-only safety. Loads schema context, verifies table/column names, and delegates execution to engine-specific skills.
npx claudepluginhub dev10x-guru/dev10x-claude --plugin Dev10xHow this skill is triggered — by the user, by Claude, or both
Slash command
/Dev10x:dbThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill follows `references/task-orchestration.md` patterns.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
This skill follows references/task-orchestration.md patterns.
Create a task at invocation, mark completed when done:
REQUIRED: Create a task at invocation. Execute at startup:
TaskCreate(subject="Plan database query", activeForm="Planning query")Mark completed when done: TaskUpdate(taskId, status="completed")
Schema-first query construction for safe, accurate database queries.
Before writing any SQL:
information_schema queryDev10x:db-psql for PostgreSQL)Generic skills discover database context by searching these resources (in order, first match wins per resource type):
~/.claude/memory/Dev10x/db-*-schema.md — global schema docs
(preferred, see references/config-resolution.md)Handled by Dev10x:db-psql — see its SKILL.md for the full
search order. Key locations:
$DB_CONFIG environment variable (explicit override)skills/db-psql/databases.yaml)~/.config/Dev10x/databases.yaml — XDG; preferred global location~/.claude/memory/Dev10x/databases.yaml — deprecated fallbackskills/*/databases.yaml)~/.claude/skills/*/databases.yaml)~/.claude/plugins/marketplaces/*/skills/*/databases.yaml)*:db pattern (e.g.,
tt:db, acme:db) — project-specific aliases, common queries,
and DSN configurationAlways load available context before constructing queries.
SELECT * on production tables without a WHERE clause| Anti-Pattern | What to Do Instead |
|---|---|
| Guess table/column names | Load schema files first, or query information_schema.tables / information_schema.columns |
| Retry with random name variations | Stop and look up the correct name in schema docs |
SELECT * on large tables | Use specific columns and LIMIT |
| Inline DSN strings in prompts | Use the engine-specific skill's wrapper script |
| Skip schema check for "simple" queries | Always verify — even common tables have gotchas |
Schema files should follow this template. Place them at
~/.claude/memory/Dev10x/db-<name>-schema.md (preferred global
path per references/config-resolution.md):
# <Project> Database Schema — <database-name>
## <Domain Group>
| Table | Key Columns | Notes |
|-------|-------------|-------|
| `table_name` | id, name, status, foreign_key_id | Brief purpose |
## Common Gotchas
- Table `actual_name` (NOT `guessed_name`)
- Money fields store JSON: `field::jsonb->>'amount'`
## Common Queries
### Find X by Y
\```sql
SELECT ... FROM ... WHERE ...
\```
This skill provides query planning guidance. Actual query execution is handled by engine-specific skills:
Dev10x:db-psql — PostgreSQL via psql wrapper