BosskuAI Database Engineering
Use this skill when schema, query behavior, indexes, migrations, data consistency, or database choice affects the outcome.
Database coverage
- MariaDB / MySQL: InnoDB constraints, indexes, generated columns, JSON tradeoffs, online migration risk, replication-aware changes.
- PostgreSQL: constraints, partial indexes, JSONB, GIN/GiST, CTEs, advisory locks,
EXPLAIN ANALYZE.
- SQLite: local/dev/test constraints, WAL mode, type affinity, concurrency limits, migration compatibility.
- MongoDB: document shape, compound indexes, aggregation pipelines, schema validation, write concern, and bounded document growth.
Review checklist
- Data model matches the business invariant, not only the current UI.
- Constraints exist in the database for rules that must never be violated.
- Indexes match real
WHERE, JOIN, ORDER BY, and uniqueness paths.
- Migrations are reversible or have a safe forward-only rollback plan.
- High-volume changes are chunked and safe for production traffic.
- Query plans are checked before claiming a query is fast.
- Soft deletes, tenancy, status transitions, and audit trails are modeled explicitly.
Guardrails
- Do not solve missing constraints only in application code.
- Do not add indexes blindly; check selectivity and write cost.
- Do not use MongoDB as a shortcut for unclear relational modeling.
- Do not assume MySQL, MariaDB, PostgreSQL, and SQLite support the same DDL.
Output format
Database engine: [engine/version if known]
Invariant to protect: [rule]
Schema/query findings:
P0/P1/P2 — [issue] — [fix]
Migration plan: [safe steps]
Index plan: [index + reason]
Verification: [EXPLAIN/tests/constraints checked]
References
../../references/playbooks/bosskuai-database-engineering-playbook.md
../../references/checklists/database-engineering-checklist.md
../../references/checklists/expert-cofounder-stack-checklist.md
1---
2name: bosskuai-database-engineering
3description: Use this for SQL and NoSQL database design across MariaDB, MySQL, PostgreSQL, SQLite, MongoDB, indexing, transactions, migrations, constraints, query plans, and data correctness.
4metadata:
5 source: https://skillmd.com/skills/aibot88/bosskuai-database-engineering
6---
7
8# BosskuAI Database Engineering
9
10Use this skill when schema, query behavior, indexes, migrations, data consistency, or database choice affects the outcome.
11
12## Database coverage
13
14- MariaDB / MySQL: InnoDB constraints, indexes, generated columns, JSON tradeoffs, online migration risk, replication-aware changes.
15- PostgreSQL: constraints, partial indexes, JSONB, GIN/GiST, CTEs, advisory locks, `EXPLAIN ANALYZE`.
16- SQLite: local/dev/test constraints, WAL mode, type affinity, concurrency limits, migration compatibility.
17- MongoDB: document shape, compound indexes, aggregation pipelines, schema validation, write concern, and bounded document growth.
18
19## Review checklist
20
21- Data model matches the business invariant, not only the current UI.
22- Constraints exist in the database for rules that must never be violated.
23- Indexes match real `WHERE`, `JOIN`, `ORDER BY`, and uniqueness paths.
24- Migrations are reversible or have a safe forward-only rollback plan.
25- High-volume changes are chunked and safe for production traffic.
26- Query plans are checked before claiming a query is fast.
27- Soft deletes, tenancy, status transitions, and audit trails are modeled explicitly.
28
29## Guardrails
30
31- Do not solve missing constraints only in application code.
32- Do not add indexes blindly; check selectivity and write cost.
33- Do not use MongoDB as a shortcut for unclear relational modeling.
34- Do not assume MySQL, MariaDB, PostgreSQL, and SQLite support the same DDL.
35
36## Output format
37
38```text
39Database engine: [engine/version if known]
40Invariant to protect: [rule]
41Schema/query findings:
42 P0/P1/P2 — [issue] — [fix]
43Migration plan: [safe steps]
44Index plan: [index + reason]
45Verification: [EXPLAIN/tests/constraints checked]
46```
47
48## References
49
50- `../../references/playbooks/bosskuai-database-engineering-playbook.md`
51- `../../references/checklists/database-engineering-checklist.md`
52- `../../references/checklists/expert-cofounder-stack-checklist.md`