dbflux-rpc-driver
Skill526 starsChanged 6 months agoApache-2.0View on GitHub
Create external DBFlux database drivers that speak the Driver RPC protocol. Trigger: When adding an RPC driver, external database service, driver plugin, or service configured through Settings → RPC Services.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- branch-prSkill
- dbflux-builtin-auth-providerSkill
- dbflux-builtin-driverSkill
- dbflux-releaseSkill
- dbflux-rpc-auth-providerSkill
- issue-creationSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Start from examples/custom_driver/ unless the user already has service code.
- Very specific: line 43
Keep Hello metadata and SessionOpened metadata consistent.
- Distinctive: line 51
Use absolute command paths while testing to avoid PATH ambiguity.
≈ “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 driver should live outside the DBFlux binary.
- The user mentions RPC services, external drivers, plugins, sockets, or
dbflux-driver-host. - The integration should be configured through Settings → RPC Services.
Source of Truth
docs/DRIVER_RPC_PROTOCOL.mdcrates/dbflux_ipc/src/driver_protocol.rscrates/dbflux_driver_ipc/src/driver.rscrates/dbflux_driver_ipc/src/transport.rscrates/dbflux_driver_host/src/main.rscrates/dbflux_app/src/rpc_services.rsexamples/custom_driver/
Critical Patterns
- Start from
examples/custom_driver/unless the user already has service code. - DBFlux stores launch config in
cfg_services,cfg_service_args, andcfg_service_envand probes services on startup. - Internal registry key is
rpc:<socket_id>. - The service is the source of truth for driver kind, metadata, and form definition.
- Restart DBFlux after changing persisted RPC service settings.
Protocol Checklist
- Bind the local socket using DBFlux IPC conventions.
- Handle
Helloand negotiate the highest compatible protocol version. - Return
driver_kind,driver_metadata, andform_definitionfromHello. - Handle
OpenSession,CloseSession, andPing. - Parse
DbConfig::External { kind, values }fromOpenSessionprofile JSON. - Validate required form values server-side; use
InvalidRequestfor malformed profiles. - Implement at least one useful requested operation such as
Execute,Schema, or browse/CRUD methods. - Return
UnsupportedMethodfor intentionally unsupported requests. - Keep
Hellometadata andSessionOpenedmetadata consistent. - Stamp every post-
Helloenvelope with the negotiated version.
Launch Facts
- Empty
commandand emptyargs: DBFlux expects the service to already be running. - Empty
commandwith non-emptyargs: DBFlux launchesdbflux-driver-hostfor driver services. - Explicit
command: DBFlux starts and owns that process, then kills it on shutdown. - Use absolute command paths while testing to avoid PATH ambiguity.
Commands
cargo build
RUST_LOG=info cargo run -- --socket <socket-id>
python3 scripts/lint.py fmt --checkDoes 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.

