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.
npx skills add Kin9Zeus/senior-engineer-skills --skill database-engineeringgit clone --depth 1 https://github.com/Kin9Zeus/senior-engineer-skillsWrote 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.
[](https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/database-engineering)<a href="https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/database-engineering"><img src="https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/database-engineering/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.
<a href="https://agentmods.dev/skills/kin9zeus/senior-engineer-skills/database-engineering"><img src="https://agentmods.dev/badge/skills/kin9zeus/senior-engineer-skills/database-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00148 | $0.02745 |
| Opus 5.5 | $0.00059 | $0.01098 |
| Sonnet 5.5 | $0.00030 | $0.00549 |
| Haiku 4.5 | $0.00015 | $0.00275 |
Grade A, and why
database-engineering 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Database Engineering
The schema outlives the code, the framework, and usually the company. Application bugs are fixed with a deploy; data-model mistakes are fixed with a migration project, and data loss is fixed with nothing at all.
The five questions that open every review
- What are the constraints? Not in the ORM — in the database.
SELECTagainst the catalogue, not the model file. - Which foreign keys are unindexed? Almost always the top performance finding, and it never shows up in development.
- What does the hottest query actually do?
EXPLAIN ANALYZE, not intuition. - When was a backup last restored? Not "do backups exist" — restored.
- What happens to a row when the user asks to be deleted? If nobody can answer, that is a compliance finding as well as a design one.
Schema design
Constraints belong in the database. The ORM is not the only writer — a migration script, an admin tool, an analytics job, a psql session or a future service will write directly. A rule enforced only in application code is a rule that will be broken.
- Primary key on every table.
- Foreign keys with an explicit
ON DELETE—CASCADE,RESTRICTorSET NULLchosen per relationship. CopyingCASCADEeverywhere is how a user deletion silently removes audit records. NOT NULLwherever the business says required. Nullable-by-default columns push the check into every consumer, forever.UNIQUEon what is genuinely unique, including composite uniqueness.CHECKfor invariants: non-negative amounts, valid ranges, valid enum values,end_date > start_date.- Enums as a database type or a lookup table with a foreign key — not a free string column with a comment.
Types matter more than they look
| Data | Use | Never |
|---|---|---|
| Money | NUMERIC(19,4) or integer minor units |
Float. Ever |
| Timestamps | timestamptz, stored UTC |
Naive local time |
| Identifiers | UUIDv7 / ULID for public ids | Sequential integers exposed publicly — they leak volume and enable enumeration |
| Text | text with a CHECK on length |
Arbitrary varchar(255) chosen by habit |
| JSON | jsonb, for genuinely schemaless data only |
JSON as an escape from schema design |
| Booleans | boolean NOT NULL DEFAULT false |
Nullable three-state booleans |
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 255 lines · 148 tokens per session scan A fd56c7ec217a
database-engineering is a skill published in the GitHub repository Kin9Zeus/senior-engineer-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 148 tokens to every session and 2,745 once invoked, about $0.0006 per session on Opus 5.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.
Other skills, from other repositories
best-practices
Apply modern web development best practices for security, compatibility, and code quality. Use when asked to "apply best practices", "security audit", "modernize code", "code quality review", or "check for vulnerabilities".
sql-code-review
Universal SQL code review assistant that performs comprehensive security, maintainability, and code quality analysis across all SQL databases (MySQL, PostgreSQL, SQL Server, Oracle). Focuses on SQL injection prevention, access control, code standards, and anti-pattern detection. Complements SQL optimization prompt for…
gotchas
Catches silent bugs that look right in a diff, compile clean, and pass happy-path tests: 200 OK HTML stand-ins, swallowed exceptions, state written before the async point of no return, module singletons shared across requests, Web APIs that fail without throwing, fresh-clone gaps, and tests that pass for the wrong…
code-readability
Makes code readable at the point of use: no floating (magic) numbers or strings without a name or a unit-and-why note nearby, names that carry units and meaning, small functions, shallow nesting, honest comments, and no dead code. Balanced by default: 0, 1, -1, named object properties, tests, and self-evident math are…
SQL Query Optimizer
Reviews SQL queries for performance issues and rewrites them with optimized execution plans.
a11y-review
Static analysis pass over JSX/HTML/CSS source for WCAG 2.2 AA failure patterns. Does NOT run axe-core, does NOT measure real contrast, does NOT test runtime behavior — pair with a11y-testing for that. Use when the user asks for an accessibility review, a11y check, WCAG review, "is this accessible?", "does my site meet…