From Dev10x
Plans safe, read-only database queries with schema-first verification. Loads schemas from memory files and configs, verifies table/column names before SQL construction, delegates to engine skills.
npx claudepluginhub dev10x-guru/dev10x-claude --plugin Dev10xThis skill uses the workspace's default tool permissions.
This skill follows `references/task-orchestration.md` patterns.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
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)~/.claude/memory/Dev10x/databases.yaml — global, user-level configskills/*/databases.yaml)~/.claude/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