dbflux-builtin-driver
Skill526 starsChanged 6 months agoApache-2.0View on GitHub
Add native built-in DBFlux database drivers using the repository's driver traits and registration flow. Trigger: When adding a built-in DBFlux driver, native database adapter, or `crates/dbflux_driver_*` crate.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- branch-prSkill
- dbflux-builtin-auth-providerSkill
- dbflux-releaseSkill
- dbflux-rpc-auth-providerSkill
- dbflux-rpc-driverSkill
- issue-creationSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Use a stable built-in driver key consistent with existing drivers.
- Distinctive: line 31
Keep schema loading shallow by default.
- Very specific: line 35
Create or update crates/dbflux_driver_<name>/.
- Distinctive: line 36
Add workspace and crate manifest entries following existing driver crates.
- Very specific: line 37
Add the feature flag in the dbflux crate manifest.
- Very specific: line 39
Add crates/dbflux_driver_<name>/README.md with only Features and Limitations.
- Distinctive: line 40
Add focused tests for metadata, config/form parsing, generated queries, and non-live behavior.
- Very specific: line 44
No concrete-driver checks in dbflux_ui or app workflow code.
- Distinctive: line 45
No mock final behavior unless the user explicitly asks for a demo/test scaffold.
- Distinctive: line 47
Do not log passwords, tokens, session credentials, or secret field values.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- The user wants database support compiled into DBFlux.
- The change creates or extends
crates/dbflux_driver_<name>/. - The driver should appear without configuring an RPC service.
Source of Truth
ARCHITECTURE.mdcrates/dbflux_core/src/core/traits.rscrates/dbflux_core/src/driver/capabilities.rscrates/dbflux_core/src/driver/form.rscrates/dbflux_app/src/app_state.rs- Existing
crates/dbflux_driver_*/crates and theirREADME.mdfiles
Critical Patterns
- Implement
DbDriverandConnection; do not add driver-specific UI branches. - Declare UI behavior through
DriverMetadata,DatabaseCategory,QueryLanguage,DriverCapabilities,DriverFormDef, and optional generic seams. - Use a stable built-in driver key consistent with existing drivers.
- Implement structured error formatting through
ErrorFormatterwhen backend errors expose detail/hint/code fields. - Implement
QueryGeneratorwhen DBFlux must generate native read/mutation templates or MCP previews. - Keep schema loading shallow by default; fetch expensive details on demand.
Checklist
- Create or update
crates/dbflux_driver_<name>/. - Add workspace and crate manifest entries following existing driver crates.
- Add the feature flag in the
dbfluxcrate manifest. - Register the driver in
AppState::build_builtin_drivers()behind that feature flag. - Add
crates/dbflux_driver_<name>/README.mdwith only Features and Limitations. - Add focused tests for metadata, config/form parsing, generated queries, and non-live behavior.
Boundaries
- No concrete-driver checks in
dbflux_uior app workflow code. - No mock final behavior unless the user explicitly asks for a demo/test scaffold.
- Unsupported operations must return explicit
DbError::NotSupportedor equivalent errors. - Do not log passwords, tokens, session credentials, or secret field values.
Commands
python3 scripts/lint.py fmt --check
cargo check -p dbflux --features <driver-feature>
cargo test -p dbflux_driver_<name>
cargo check --workspaceDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

