/db-context-engineering:context-engineering-bootstrapfrom db-context-engineering
Generates a baseline ContextSet (Templates, Facets, Value Searches) from a target database schema and optional enrichment sources. Saves to a specified path and optionally uploads to a Context Set server.
Ships in db-context-engineering. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Load
context-engineering-workflowfirst for shared terminology, lifecycle overview, and safety protocol. If the user is asking to build a context set from scratch (end-to-end with evaluation and optimization), route throughcontext-engineering-workflow(init$\rightarrow$dataset-generation$\rightarrow$hillclimb) rather than running standalone bootstrap.
From a target database and optional user-supplied enrichment sources (design docs, ORM models, sample SQL, glossary), produce a baseline ContextSet JSON at a caller-specified path. Optionally upload to the Context Set server and return the resource name.
<source>-list-schemas) must be visible to the agent throughout the run. If missing or unreachable at any point, stop and route through context-engineering-init; do not work around it (no bash uvx toolbox-server invoke fallback)../bootstrap_context.json at cwd.projectId, location, and a contextSetId (project and location default to .context-engineering/workspace_state.md when it exists). Together they form projects/<project_id>/locations/<location>/contextSets/<context_set_id> — see the Context Set MCP Protocol in ctxset-mcp-protocol.md.When invoked by context-engineering-hillclimb inside an experiment (.context-engineering/experiments/<experiment_name>/hillclimb/experiment_state.md exists): read the Toolbox source from experiment_state.md ## Active Database and the enrichment sources per Inputs & resolution rules in ctxset-mcp-protocol.md (Enrichment sources (this experiment) in experiment_state.md if present, otherwise Enrichment sources in .context-engineering/workspace_state.md), write the output to .context-engineering/experiments/<experiment_name>/hillclimb/v0/context_set_v0.json, skip steps 1–2 below unless a value is missing from both files, run steps 3–6 autonomously without pausing for interactive schema or candidate approval (the hill-climb loop's Auto-approve uploads setting governs whether v0 pauses before upload), and do not upload — the hill-climb loop owns all uploads.
Confirm scope with the user (standalone only):
<source> to introspect (default: Default DB source in .context-engineering/workspace_state.md when it exists; else auto-select if exactly one supported source exists in tools.yaml; otherwise prompt).projectId and location from .context-engineering/workspace_state.md when it exists (show them; ask only if missing or the user wants different ones) and ask for contextSetId; call list_context_set_locations(projectId) and confirm the chosen location is in the returned list (if not, let the user pick one from it). Tell the user the exact resource name that will be written.Collect enrichment sources (standalone only): default to Enrichment sources in .context-engineering/workspace_state.md when it exists (show them and ask whether to add more for this run); otherwise prompt for design docs, ORM models, sample SQL, glossary, etc. Wait for the user's response before proceeding.
Deduce Key Info (Core Execution):
<source>-list-schemas, <source>-list-graphs) to fetch the schemas for the target database and relevant tables/graphs. The sources come from the shared .context-engineering/tools.yaml; inside an experiment, use the Source Name (and its listed Tools) recorded under ## Active Database in the experiment's experiment_state.md rather than picking a source ad hoc.hillclimb, proceed directly using the experiment's active database scope.)GRAPH <graph_name> MATCH ...) over writing relational SQL JOIN queries against the underlying node/edge tables.Identify candidate items: analyze schema + enrichment to identify representative natural language queries with their corresponding SQL/GQL (Templates), common filter conditions or business rules and graph pattern fragments (Facets), and columns that require specialized fuzzy/semantic value searching (Value Searches). In standalone mode, present these candidates to the user for review and approval before generating; when invoked by hillclimb, proceed directly to step 5.
Generate the ContextSet: invoke the context-engineering-generation-guide skill with the approved candidates. Save items incrementally to the output path via the mutate_context_set MCP tool. For a new file, construct "operation": "add" mutations for each item.
Validate: Call validate_context_set on the output file. If invalid, fix each issue via mutate_context_set and re-validate until clean. Stop after two failed attempts and surface remaining issues to the user.
Optionally upload (standalone only): if running standalone and the user opted to upload (when invoked by hillclimb, skip this step — the hill-climb loop owns all uploads):
projectId, location, contextSetId per the Resource naming rule in ctxset-mcp-protocol.md and show it to the user. Remind them that if a context set with this name already exists, the upload overwrites it and the previous contents cannot be recovered; proceed only on explicit confirmation.upload_context_set(projectId=<project_id>, location=<location>, contextSetId=<context_set_id>, contextPayload=<exact file contents>, description=<short description>, databases=<Database>) — <Database> is derived at upload time from the chosen Toolbox <source>'s block in tools.yaml, using the mapping table under Database association in ctxset-mcp-protocol.md.get_operation(projectId, location, operationId) on the returned operation (≥5 s between polls, 5-minute ceiling) until done: true before continuing — see the Context Set MCP Protocol in ctxset-mcp-protocol.md. On done: true the upload is complete; on an error field, surface it verbatim and stop.Summarize: report the local file path and (if uploaded) the resource name and the operation name that completed.
mutate_context_set MCP tool for ContextSet file changes — pass mutation payloads directly. Do not read the target file beforehand.context-engineering-evaluate or context-engineering-hillclimb.MCP:
<source>-list-schemas (Toolbox) — schema introspection.mutate_context_set — incremental writes to the output JSON.list_context_set_locations (remote Context Set server) — confirm the upload location before uploading.upload_context_set (remote Context Set server) — optional Context Set server upload; takes the file contents inline in contextPayload; returns an operation.get_operation (remote Context Set server) — poll the upload operation until done: true.validate_context_set — check the output file before uploading.Sibling skill:
context-engineering-generation-guide — produces well-formed Template / Facet / Value Search JSON. Also the reference for context-item schema and authoring standards.What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (googlecloudplatform/db-context-enrichment) — no native marketplace selected
npx claudepluginhub p/googlecloudplatform-db-context-engineering-plugin7 skills in this plugin
/context-engineering-dataset-generationGenerate or expand a golden evaluation dataset of SQL/Question (NLQ+SQL) pairs for evaluating NL-to-SQL translation accuracy on a target database. Don't use for generating context items (Templates, Facets, Value Searches) or running Evalbench evaluations./context-engineering-evaluateGuides the agent to execute an evaluation of a ContextSet against a golden NLQ+SQL dataset using the Evalbench framework, either standalone or as one iteration of the hill-climbing loop./context-engineering-Other plugins' skills for the same job