agentleFS
0xErwin10xErwin1/dbflux/skills/dbflux-builtin-driver/SKILL.md

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.

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
  1. Distinctive:

    Use a stable built-in driver key consistent with existing drivers.

    line 28
  2. Distinctive:

    Keep schema loading shallow by default.

    line 31
  3. Very specific:

    Create or update crates/dbflux_driver_<name>/.

    line 35
  4. Distinctive:

    Add workspace and crate manifest entries following existing driver crates.

    line 36
  5. Very specific:

    Add the feature flag in the dbflux crate manifest.

    line 37
  6. Very specific:

    Add crates/dbflux_driver_<name>/README.md with only Features and Limitations.

    line 39
  7. Distinctive:

    Add focused tests for metadata, config/form parsing, generated queries, and non-live behavior.

    line 40
  8. Very specific:

    No concrete-driver checks in dbflux_ui or app workflow code.

    line 44
  9. Distinctive:

    No mock final behavior unless the user explicitly asks for a demo/test scaffold.

    line 45
  10. Distinctive:

    Do not log passwords, tokens, session credentials, or secret field values.

    line 47

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.md
  • crates/dbflux_core/src/core/traits.rs
  • crates/dbflux_core/src/driver/capabilities.rs
  • crates/dbflux_core/src/driver/form.rs
  • crates/dbflux_app/src/app_state.rs
  • Existing crates/dbflux_driver_*/ crates and their README.md files

Critical Patterns

  • Implement DbDriver and Connection; 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 ErrorFormatter when backend errors expose detail/hint/code fields.
  • Implement QueryGenerator when DBFlux must generate native read/mutation templates or MCP previews.
  • Keep schema loading shallow by default; fetch expensive details on demand.

Checklist

  1. Create or update crates/dbflux_driver_<name>/.
  2. Add workspace and crate manifest entries following existing driver crates.
  3. Add the feature flag in the dbflux crate manifest.
  4. Register the driver in AppState::build_builtin_drivers() behind that feature flag.
  5. Add crates/dbflux_driver_<name>/README.md with only Features and Limitations.
  6. Add focused tests for metadata, config/form parsing, generated queries, and non-live behavior.

Boundaries

  • No concrete-driver checks in dbflux_ui or app workflow code.
  • No mock final behavior unless the user explicitly asks for a demo/test scaffold.
  • Unsupported operations must return explicit DbError::NotSupported or 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 --workspace

Download now (ZIP)

Does 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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.