motherduck-manage-guides
About motherduck-manage-guides
A skill for creating and maintaining MotherDuck Guides. It focuses on organizing guidance, validating catalog references and SQL, and controlling access and version changes.
Key features
- 01Designing Guide topics and structure
- 02Validating references and SQL
- 03Managing access and visibility
- 04Versioning and change comments
- 05Applying and verifying updates
Use cases
- 01Document business terms against catalog objects
- 02Draft validated SQL guidance for analysts
- 03Review Guide access before organization sharing
- 04Track Guide revisions alongside code
MCP support
The skill describes reading and updating Guides through MCP tools, including query and Dive or Flight guide retrieval, and verifying changes after updates.
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ motherduckdb/ agent-skills --skill motherduck-manage-guidesAfter installing, type/motherduck-manage-guidesin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlreferences/GUIDES_PLAYBOOK.md
Details
From the project READMEManage MotherDuck Guides
Source Of Truth
- Prefer the current MotherDuck Guides documentation and MCP tool descriptions.
- For analytical queries through MCP, call
get_query_guidebefore writing SQL, then traverse only relevant topics and Guides. get_dive_guideandget_flight_guideautomatically include summaries from the reserveddivesandflightstopics; do not load those topics separately unless deeper context is needed.
Default Posture
- Keep one short root orientation Guide only when its guidance applies broadly. Put domain-specific knowledge under shallow, descriptive topics.
- Default new Guides to
access = 'user'. Organization visibility requires an explicit request and the required admin permission; change it withset_guide_access(MCP) or--accessonmotherduck guide push. - Document tables that Flights create under the
data-sourcestopic (notflights, which holds authoring conventions): source, purpose, grain, key columns, transformations, refresh behavior, and caveats, with references to the table, its producing Flight, and any consuming Dive. Useorganizationaccess when the table's database has an owned share,userotherwise. - Write one coherent subject per Guide, with a discriminating title and description. Lead with rules, tested SQL, and named pitfalls.
- Attach references to the databases, shares, schemas, tables, columns, Dives, Flights, or Guides the content governs so agents discover it at the right time.
- Validate referenced objects and executable SQL against the live workspace before presenting a Guide as trustworthy.
- Use version comments to explain why guidance changed. Read before update and avoid overwriting concurrent work.
- When a shell is available and Guides should live in Git or be reviewed like code, use
motherduck guide(seemotherduck-cli): editguide.mdlocally,pushwith--version-description, and pass the commit SHA as--external-idso each version traces to a change.
Workflow
- Inspect
get_query_guideorlist_guidesto understand the visible topic tree and avoid duplication. - Read the relevant Guide versions and referenced objects before drafting a change.
- Choose the narrowest useful topic; leave the topic empty only for organization-wide orientation.
- Draft concise Markdown that maps business language to exact catalog objects and validated SQL.
- For a create or update request, apply the change through MCP or the documented SQL function and read it back.
- Verify metadata, access, references, current version, and change comment. For query work, follow the Guide and still validate the resulting SQL against the live schema.
For answer, review, or planning requests, inspect and draft without creating or modifying Guides. For explicit create/update requests, perform the in-scope mutation and verify it; ask before deletion or expanding visibility beyond the authorized audience. An explicit organization-publication request already authorizes that audience, subject to admin permission.
References
Read only the reference sections needed for the current task.
- Read
references/GUIDES_PLAYBOOK.mdfor topic design, access governance, references, MCP/SQL operations, versioning, and quality checks.
Related Skills
Load related skills only for missing capabilities; reuse established context.
motherduck-explorefor validating referenced catalog objectsmotherduck-queryfor testing SQL and applying Guide-aware analysismotherduck-create-diveandmotherduck-create-flightfor reserved-topic conventionsmotherduck-security-governancefor organization visibility and permission boundaries