From db-coding-agent
Use when resolving database coding agent configuration — reads .db-agent.json, merges with per-invocation overrides, validates governance constraints, and returns the resolved engine, framework, migration tool, and guidelines path
How this skill is triggered — by the user, by Claude, or both
Slash command
/db-coding-agent:config-resolverThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Resolve the active configuration for the database coding agent by merging config file settings with per-invocation overrides, then validating governance constraints.
Resolve the active configuration for the database coding agent by merging config file settings with per-invocation overrides, then validating governance constraints.
.db-agent.json directoryMapping, matched against the current file/directorydb-detection skill (file extensions, config files, connection strings)defaults.engine from .db-agent.jsondefaults/coding-guidelines.mdBefore running any governance checks, inspect the workspace root for .guardrails-agent.json.
If .guardrails-agent.json exists:
guardrailsActive: truepolicy-enforcement skill via the agent's adapter skill.If .guardrails-agent.json does not exist:
guardrailsActive: falseRead config file:
.db-agent.json in the workspace rootschemas/db-agent.schema.jsonCheck per-invocation override:
Check directory mapping:
directoryMapping, use that enginesrc/postgres/migrations/001.sql matches src/postgresRun auto-detection (if enabled):
db-detection skillApply config defaults:
defaults.engine from configResolve framework, migration tool, SDK, guidelines path:
engines.<engine> in configGovernance validation:
organization.governance.approvedEngines is set and resolved engine is NOT in the list → STOP. Surface error: "Engine <engine> is not in your organization's approved engines: [list]. Contact your admin."organization.governance.mandatoryGuidelines is true and no guidelines file exists at the resolved path → STOP. Surface error: "Mandatory guidelines file not found at <path>. Create the file or update your .db-agent.json."organization.governance.enforceLsp is true and the engine module's LSP is not installed or fails to start → STOP. Surface error: "LSP is required by org policy but is not available for <engine>. Install the @Vensure-Devops-QA/db-<engine> plugin."organization.governance.approvedFrameworks.<engine> is set and resolved framework is NOT in the list → STOP. Surface error: "Framework <framework> is not approved for <engine>. Approved: [list]."Fetch org policy (if configured):
organization.governance.orgPolicyEndpoint is set in config, call it:
GET <endpoint> with headers X-Plugin-Name: db-coding-agent, X-Plugin-Version: 1.0.0, X-Requested-Engine: <engine>, X-Requested-Framework: <framework>Return resolved config:
After resolution, state the resolved config clearly:
Resolved config:
- Engine: <engine>
- Framework: <framework>
- Migration tool: <migrationTool>
- SDK: <sdk>
- Test framework: <testFramework>
- Guidelines: <path or "plugin defaults">
- LSP: <enabled/disabled>
- Source: <which resolution level determined the engine>
- Governance: <local / remote policy endpoint>
npx claudepluginhub gagandeepp/software-agent-teams --plugin db-coding-agentGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.