跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 databricks-core

Databricks Core

Databricks CLI操作和Databricks CLI使用的母/入点技能:认证,配置选择和捆绑. 先装入CLI, 认证, profile, 和捆绑任务, 然后装入匹配的产品技能 。 对于查找或探索数据,回答有关数据的问题,或生成SQL,加载数据砖-数据-发现技能(它通向Genie One的路径). 包含Databricks相关CLI任务的最新指南.

1468 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

Databricks CLI操作和Databricks CLI使用的母/入点技能:认证,配置选择和捆绑. 先装入CLI, 认证, profile, 和捆绑任务, 然后装入匹配的产品技能 。 对于查找或探索数据,回答有关数据的问题,或生成SQL,加载数据砖-数据-发现技能(它通向Genie One的路径). 包含Databricks相关CLI任务的最新指南.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Databricks、Product Skills、Prerequisites、Profile Selection - CRITICAL、Claude Code - IMPORTANT、WORKS: --profile flag。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and bundles. Load this first for CLI, auth, profile, and bundle tasks, then load the matching product skill. For finding or exploring data, answering questions about the data, or generating SQL, load the databricks-data-discovery skill (it routes to Genie One). Contains up-to-date guidelines for Databricks-related CLI tasks.

DatabricksProduct SkillsPrerequisitesProfile Selection - CRITICALClaude Code - IMPORTANTWORKS: --profile flagWORKS: chained with &&DOES NOT WORK: separate commandsData Exploration — Use AI Toolsdiscover table structure (columns, types, sample data, stats)run ad-hoc SQL queriesfind the default warehouse

兼容:Requires databricks CLI (>= v1.0.0)

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
databricks-core
description
Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and bundles. Load this first for CLI, auth, profile, and bundle tasks, then load the matching product skill. For finding or exploring data, answering questions about the data, or generating SQL, load the databricks-data-discovery skill (it routes to Genie One). Contains up-to-date guidelines for Databricks-related CLI tasks.
compatibility
Requires databricks CLI (>= v1.0.0)
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「databricks-core」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-1d39c6ee95a52c2d-%E6%95%B0%E6%8D%AE%E7%A0%96%E6%A0%B8%E5%BF%83.html
请存为 .cursor/skills/databricks-core/SKILL.md 或 .claude/skills/databricks-core/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/databricks/databricks-agent-skills' --list

npx skills add 'https://github.com/databricks/databricks-agent-skills' --skill 'databricks-core'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: "databricks-core" description: "Databricks CLI operations and the parent/entry-point skill for Databricks CLI use: authentication, profile selection, and bundles. Load this first for CLI, auth, profile, and bundle tasks, then load the matching product skill. For finding or exploring data, answering questions about the data, or generating SQL, load the databricks-data-discovery skill (it routes to Genie One). Contains up-to-date guidelines for Databricks-related CLI tasks." compatibility: Requires databricks CLI (>= v1.0.0) metadata: version: "0.1.0" --- # Databricks Core skill for Databricks CLI, authentication, and data exploration. ## Product Skills For specific products, use dedicated skills: - **databricks-jobs** - Lakeflow Jobs development and deployment - **databricks-pipelines** - Lakeflow Spark Declarative Pipelines (batch and streaming data pipelines) - **databricks-apps** - Full-stack TypeScript app development and deployment - **databricks-lakebase** - Lakebase Postgres Autoscaling project management - **databricks-model-serving** - Model Serving endpoint management and inference For **data discovery, exploration, and query generation** — finding tables, answering natural-language questions about the data, or generating SQL — use **databricks-data-discovery** (it asks Genie One first, then falls back to manual exploration). If it isn't installed, use the AI-tool commands below and [Manual Data Exploration](manual-data-exploration.md). ## Prerequisites 1. **CLI installed and current**: the CLI must be >= v1.0.0. A CLI that is present but too old is not "good enough" — it must be upgraded, not worked around. - **Run the floor check in [CLI Installation](databricks-cli-install.md).** If it reports `UPGRADE` or `INSTALL`: STOP and follow that reference file to upgrade or install — do not proceed or tell the user their CLI is fine. - **If another skill routed you here to upgrade** (it needs a newer CLI than v1.0.0 — e.g. `databricks-setup-local` needs v1.12.0), that skill already detected the gap. A passing v1.0.0 floor check is not enough: follow the Update / repair procedures to install the latest stable, which satisfies any skill's floor. - Note: In sandboxed environments (Cursor IDE, containers), install commands write outside the workspace and may be blocked. Present the install command to the user and ask them to run it in their own terminal. - **Exception:** If CLI installation is blocked (sandboxed containers, restricted environments), ask the user whether to fall back to direct REST API calls using `DATABRICKS_HOST` and `DATABRICKS_TOKEN` environment variables if present in the shell. See the [Databricks REST API docs](https://docs.databricks.com/api/workspace/introduction). 2. **Authenticated**: `databricks auth profiles` - If not: see [CLI Authentication](databricks-cli-auth.md) ## Profile Selection - CRITICAL **NEVER auto-select a profile.** 1. List profiles: `databricks auth profiles` 2. Present ALL profiles to user with workspace URLs 3. Let user choose (even if only one exists) 4. Offer to create new profile if needed ## Claude Code - IMPORTANT Each Bash command runs in a **separate shell session**. ```bash # WORKS: --profile flag databricks apps list --profile my-workspace # WORKS: chained with && export DATABRICKS_CONFIG_PROFILE=my-workspace && databricks apps list # DOES NOT WORK: separate commands export DATABRICKS_CONFIG_PROFILE=my-workspace databricks apps list # profile not set! ``` ## Data Exploration — Use AI Tools **Use these instead of manually navigating catalogs/schemas/tables:** ```bash # discover table structure (columns, types, sample data, stats) databricks experimental aitools tools discover-schema catalog.schema.table --profile # run ad-hoc SQL queries databricks experimental aitools tools query "SELECT * FROM table LIMIT 10" --profile # find the default warehouse databricks experimental aitools tools get-default-warehouse --profile ``` **Names are literal.** Use catalog/schema/table names exactly as given — never change a hyphen to an underscore or otherwise normalize them. In SQL, backtick-quote any name part with special characters (e.g. `` `my-catalog`.schema.table ``); unquoted hyphens cause a parse error. These commands are first-class for running known SQL and profiling — Genie isn't required for that. For natural-language data questions, locating data you can't pin down, or generating a query from a question, prefer the `databricks-data-discovery` skill (above) if it's installed. See [Manual Data Exploration](manual-data-exploration.md) for the full command surface, quoting rules, and troubleshooting. ## Quick Reference **⚠️ CRITICAL: Some commands use positional arguments, not flags** ```bash # current user databricks current-user me --profile # list resources databricks apps list --profile databricks jobs list --profile databricks clusters list --profile databricks warehouses list --profile databricks pipelines list --profile databricks serving-endpoints list --profile # ⚠️ Unity Catalog — POSITIONAL arguments (NOT flags!) databricks catalogs list --profile # ✅ CORRECT: positional args databricks schemas list --profile databricks tables list --profile databricks tables get .. --profile # ❌ WRONG: these flags/commands DON'T EXIST # databricks schemas list --catalog-name ← WILL FAIL # databricks tables list --catalog ← WILL FAIL # databricks sql-warehouses list ← doesn't exist, use `warehouses list` # databricks execute-statement ← doesn't exist, use `experimental aitools tools query` # databricks sql execute ← doesn't exist, use `experimental aitools tools query` # When in doubt, check help: # databricks schemas list --help # get details databricks apps get --profile databricks jobs get --job-id --profile databricks clusters get --cluster-id --profile # bundles databricks bundle init --profile databricks bundle validate --profile databricks bundle deploy -t --profile databricks bundle run -t --profile ``` ## Troubleshooting | Error | Solution | |-------|----------| | `cannot configure default credentials` | Use `--profile` flag or authenticate first | | `configuration does not support OAuth tokens` | The command requires OAuth (e.g., `databricks apps logs`). Re-authenticate with `databricks auth login --host --profile `. See [CLI Authentication](databricks-cli-auth.md). | | `PERMISSION_DENIED` | Check workspace/UC permissions | | `RESOURCE_DOES_NOT_EXIST` | Verify resource name/id and profile | ## Required Reading by Task | Task | READ BEFORE proceeding | |------|------------------------| | First time setup | [CLI Installation](databricks-cli-install.md) | | Auth issues / new workspace | [CLI Authentication](databricks-cli-auth.md) | | Exploring tables/schemas | [Manual Data Exploration](manual-data-exploration.md) (or `databricks-data-discovery` if installed) | | Deploying jobs/pipelines | Use `/databricks-dabs` | ## Reference Guides - [CLI Installation](databricks-cli-install.md) - [CLI Authentication](databricks-cli-auth.md) - [Manual Data Exploration](manual-data-exploration.md)

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…