Rust database
My personal pi harness configuration.
npx -y skills add nyquistwilder/personal-pi --skill rust-databaseAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Greenfield Rust database workflow for SQLx or project-selected access, migrations, transactions, pooling, query correctness, test databases, and isolation from real data.
SKILL.md
2.5 KB, 462 tokens by cl100k_base, as published. Nobody here has run it
Rust Database
Rule
Make persistence explicit, transactional, context-aware, and isolated from real mutable systems. Prefer explicit SQL and typed boundaries before ORM-style abstractions.
Hard Stops
Stop before:
- Touching production or developer databases without explicit approval and backup/safety plan.
- Running destructive migrations, changing schema, or changing data retention semantics without rollback and compatibility discussion.
- Adding SQLx, Diesel, SeaORM, migration tools, or containers without approval.
- Using real credentials or committing generated secrets.
Defaults
- Prefer SQLx for async SQL in Tokio services when compile-time query checking or explicit SQL fits.
- Use SQLx migrations for straightforward app-owned schemas.
- Use Diesel only when a synchronous, compile-time query-builder/ORM model is explicitly desired.
- Use SeaORM only for dynamic/entity-driven CRUD services where that tradeoff is approved.
- Make transactions explicit and keep their scope small.
- Pass pools/connections through application state; avoid global pools.
- Map database errors to domain errors at the data boundary.
- Configure pool size, acquisition timeout, and statement timeouts intentionally.
Testing
Use isolated temporary databases, test schemas, transaction rollbacks, or approved
testcontainers when real database behavior matters. Never point tests at production or a
developer's default database by accident. Test migrations, constraints, not-found behavior,
unique conflicts, rollback, and serialization/deserialization edge cases.
Workflow
- Define schema, migrations, queries, transaction boundaries, indexes, and failure behavior.
- Choose SQLx, Diesel, SeaORM, or existing project access based on approved needs.
- Implement data access behind small stores/repositories consumed by services.
- Add isolated tests and fixtures.
- Run migrations/tests, full tests, Clippy, and
just check.
Antipatterns
- String-concatenated SQL with untrusted input.
- Auto-running destructive migrations on every production startup.
- Hiding large workflows in implicit transactions.
- Treating generated ORM entities as domain models by default.
- Tests that require machine-local database state.
Completion
Report schema/query changes, transaction model, tool choices, test database approach, commands, and safety boundaries.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.