From UDB Skills
Contribute code TO the UDB repository — deep codebase knowledge (the proto→descriptor→runtime pipeline, data-plane and native-service request lifecycles, CDC/outbox, canonical stores, XA/sagas, IR compilers, migration gates) plus the house coding doctrine (no code islands, reuse shared helpers, no hardcodes/stubs, fail closed). Use when implementing UDB plan/fix items (master_todo.md, fix plans), writing or reviewing Rust in src/runtime|ir|parser|generation|migration|control|backend|cli, adding a native service or backend, or asking where something lives in the UDB codebase.
How this skill is triggered — by the user, by Claude, or both
Slash command
/udb:udb-codingThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
UDB is a **proto-driven multi-database broker** (Rust, tonic/prost, sqlx): one
UDB is a proto-driven multi-database broker (Rust, tonic/prost, sqlx): one annotated proto contract derives DB schema, per-RPC security enforcement, ~17 native services / 260+ RPCs across 18 backends, six SDKs, CLI and docs. This skill carries the codebase map AND the house doctrine for changing it safely.
Full guide (read on demand): references/udb-coding.md — the proto→runtime pipeline, both request lifecycles file-by-file, the CDC/ canonical-store/XA/IR/migration subsystem mechanics with real function names, the native-service inventory, test/CI layout, the ten directives, the 10-question flaw catalog, and the new-service recipe.
To locate any symbol/file: read docs/generated/codebase-map.md first
(generated module-dependency graphs + per-file public-symbol index, CI
freshness-gated — never stale), then grep the canonical name it gives you.
Companion references (read the relevant one before coding in that area):
executors/<b>.rs,
ir/compile/<b>.rs, or canonical_store/<b>*.rs.
These carry the UDB-specific delta of each technology — rely on your own
generic Rust/SQL/engine knowledge for everything else.proto/udb/** → build.rs-embedded FileDescriptorSet →
descriptor_manifest.rs (OnceLock, fail-closed panic on bad decode) → drives
method_security, native routing, DDL generation, SDK manifest, docs. Never
hand-add a Rust id list — derive from the descriptor.MethodSecurityLayer (headers only → installs
VerifiedClaimContext) → handler (MUST bind body tenant/owner to the claim —
reads included) → fair admission (channels.rs / admit_on) → dispatch.singleton.rs WORKER_* consts,
run_while_leader) — never a bare interval loop on every replica.native_helpers.rs, singleton.rs,
ir/compile/util.rs, system_store.rs first (duplicate helpers caused a
real cross-tenant leak).grep -rn "<fn>" src/ crates/ tests/ build.rs (cfg(test) doesn't count).env!("CARGO_PKG_VERSION").failed_precondition + degraded health.cargo test --workspace --lib at the end; ${PIPESTATUS[0]}; check skips
test code; Windows needs CMAKE pointed at the VS-bundled cmake.Run the reference's 10-question flaw catalog (island? duplicate? hardcode?
stub? fail-open? capability lie? mirror test? unbounded? hot-path waste?
fence?). Append — DONE (date): <what> (file:line). Honest [~] beats a
false [x] — claims are re-audited adversarially against source.
docs/generated/**, sdk/*/gen/**,
generated clients) — they come from udb native … / buf / udb sdk generate.npx claudepluginhub fahara02/udb --plugin udbProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.