一键导入
dbt-tools-cli-plugin-skill
Author a new agent skill under plugins/dbt-tools-cli/skills for @dbt-tools/cli; layout, plugin README index, and structural verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Author a new agent skill under plugins/dbt-tools-cli/skills for @dbt-tools/cli; layout, plugin README index, and structural verification.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Reload in-memory artifacts after dbt run or a known artifact change. Use on the same target without restarting MCP.
Establish the dbt artifact root for this session (local path, s3://, or gs://). Use before any other dbt-tools analysis primitive.
Check MCP session state—target, load time, stale flag, runs, warehouse type. Use as a gate before analysis primitives.
Establish the dbt artifact root for this session (local path, s3://, or gs://). Use before any other dbt-tools analysis primitive.
Check whether dbt artifacts exist, are fresh, and which readiness level applies. Use as a gate before manifest- or run_results-based analysis.
Return metadata and context for one dbt resource by unique_id. Use when explaining what a model, source, or test does.
| name | dbt-tools-cli-plugin-skill |
| description | Author a new agent skill under plugins/dbt-tools-cli/skills for @dbt-tools/cli; layout, plugin README index, and structural verification. |
| compatibility | Repository dbt-tools-ts; skills under plugins/dbt-tools-cli/skills/. |
Use this skill when the user asks or implies:
@dbt-tools/cli / dbt-toolsplugins/dbt-tools-cli/skills/ with another workflowThis is a meta-skill (how to add plugin skills). It does not replace the CLI reference in packages/cli/README.md.
Plugin skills live here:
plugins/dbt-tools-cli/skills/<kebab-case-id>/SKILL.mdThey ship with the dbt-tools-cli agent plugin (plugins/dbt-tools-cli/). Per-engine manifests already set skills to ./skills/—you do not edit .codex-plugin, .cursor-plugin, or .claude-plugin just to add another subdirectory skill.
Do not add or edit marketplace entries (.agents/plugins/marketplace.json, .cursor-plugin/marketplace.json) for a new skill inside an existing plugin; marketplaces list plugins, not individual skills.
name<plugin-id>:<skill-folder> — for this plugin, dbt-tools-cli: plus the kebab-case directory under skills/ (example: dbt-tools-cli:discover). Plugin id matches plugins/dbt-tools-cli/.claude-plugin/plugin.json name (same across engine manifests). Use FQH in the plugin README Handle column, runbooks, and a single Skill handle (FQH) line under each skill’s main # title.name: Must equal the folder name only (e.g. name: discover). Agent Skills allows lowercase letters, numbers, hyphens only; no : or /. VS Code Agent Skills forbid namespace prefixes in name and may silently skip invalid skills./plugin:skill, Codex $, etc.). See Host compatibility in plugins/dbt-tools-cli/README.md.Pick an id — kebab-case folder name matching the primary CLI command when possible (e.g. discover, explain). Use the same string for YAML name: in SKILL.md. Avoid clashing with existing skills (for example status).
Create plugins/dbt-tools-cli/skills/<id>/SKILL.md with frontmatter and body (see skeleton below).
Content rules
packages/cli/README.md for flags and options; prefer dbt-tools schema for discovery and --json where appropriate.manifest.json / run_results.json, point to the Readiness gate section in status instead of duplicating readiness rules.references/ under the same skill directory (see exemplar status/references/readiness.md).Link depth — From plugins/dbt-tools-cli/skills/<id>/SKILL.md, the repo root is four levels up (../../../../). Example: ../../../../packages/cli/README.md for flags and extended topics.
Index — Add a row to plugins/dbt-tools-cli/README.md skills table: Handle (dbt-tools-cli:<id>), Skill (link to skills/<id>/SKILL.md), Purpose (one line). Keep the table’s Skill handles and Host compatibility sections accurate if you change plugin id or add skills.
Verify — From repository root:
./plugins/tests/verify-agent-plugins.sh structural
pnpm lint:report
pnpm coverage:report
pnpm knip
Structural rules and ADR pointer: references/layout-and-verification.md.
Use as a starting point (replace my-workflow and fill sections):
---
name: my-workflow
description: One or two sentences for agent discovery; mention dbt-tools and the task.
---
# My workflow
**Skill handle (FQH):** `dbt-tools-cli:my-workflow` (plugin `dbt-tools-cli`, skill directory `my-workflow`). Documentation only; YAML `name` stays `my-workflow`.
## When to use
## Commands
Link to [packages/cli/README.md](../../../../packages/cli/README.md) for flags; prefer `dbt-tools schema` and `--json` where appropriate.
## Related
- [packages/cli/README.md](../../../../packages/cli/README.md) — Field Filtering, Input Validation, Error handling, Automation
README table row example (match plugins/dbt-tools-cli/README.md):
| `dbt-tools-cli:my-workflow` | [`my-workflow`](skills/my-workflow/SKILL.md) | Short purpose line. |
plugins/README.mdplugins/CONTRIBUTING.mdstatus