You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Split out from #4917. While that PR keeps responsibility for *moving*
the aitools skills-management surface out of `experimental/`, this PR
makes the user-facing interface changes that should land at the same
moment:
- New `--scope=project|global` flag on
`install`/`update`/`uninstall`/`list`, with `--scope=both` accepted by
`update` and `list`.
- `--project` and `--global` are marked deprecated via cobra's
`Deprecated` property: hidden from `--help`, emit a stderr deprecation
warning when used, continue to function so existing scripts don't break.
They're slated for removal in a later release.
- `--scope` combined with `--project`/`--global` is rejected up front
with an actionable error.
- `install`'s `--help` now documents the non-interactive `--agents`
auto-detect contract so callers know what gets picked.
**Stacked on #4917.** Base will rebase to `main` once that lands.
Splitting because (a) #4917 is otherwise a pure file move and reviewers
asked to keep it that way, and (b) the interface change has its own
product question (boolean pair vs. enum) worth landing as a discrete
unit.
## Why land this with the rename
aitools is being declared a stable top-level surface in #4917. This is
the cheapest moment to fix the two-boolean shape before external scripts
depend on it. An enum is also better for agent-driven invocations than
two booleans with implicit precedence: `--scope=project|global|both` is
one flag with valid values, not two flags with order-dependent
semantics.
## Surface
```
databricks aitools install --scope=project|global (--scope=both rejected)
databricks aitools uninstall --scope=project|global (--scope=both rejected)
databricks aitools update --scope=project|global|both
databricks aitools list --scope=project|global|both (default: both)
databricks aitools install --project # warns: use --scope=project
databricks aitools install --global # warns: use --scope=global
```
## Test plan
- [ ] `databricks aitools install --scope=project` and `--scope=global`
go to the right destination
- [ ] `databricks aitools install --scope=both` errors with a clear
message
- [ ] `databricks aitools install --project` still works and prints the
deprecation warning to stderr
- [ ] `databricks aitools install --scope=global --project` errors with
the conflict message
- [ ] `databricks aitools list --scope=both` shows both scopes
(equivalent to no flag)
- [ ] `databricks aitools install --help` no longer shows
`--project`/`--global`; `--scope` is documented; `--agents` auto-detect
behavior is described
- [ ] Unit: `TestParseScopeFlag` (table-driven on the translation),
`TestInstallScopeFlag`, `TestListScopeFlag` — all green
This pull request was AI-assisted by Isaac.
---------
Co-authored-by: simon <4305831+simonfaltum@users.noreply.github.com>
Co-authored-by: simon <simon.faltum@databricks.com>
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
9
9
### CLI
10
10
11
-
* Added `databricks aitools` command group for installing Databricks skills into your coding agents (Claude Code, Cursor, Codex CLI, OpenCode, GitHub Copilot, Antigravity). Skills are fetched from [github.com/databricks/databricks-agent-skills](https://github.com/databricks/databricks-agent-skills) and either symlinked into each agent's skills directory or copied into the current project. Use `databricks aitools install` to set up, `update` to pull newer versions, `list` to see what's available, and `uninstall` to remove them.
11
+
* Added `databricks aitools` command group for installing Databricks skills into your coding agents (Claude Code, Cursor, Codex CLI, OpenCode, GitHub Copilot, Antigravity). Skills are fetched from [github.com/databricks/databricks-agent-skills](https://github.com/databricks/databricks-agent-skills) and either symlinked into each agent's skills directory or copied into the current project. Use `databricks aitools install` to set up, `update` to pull newer versions, `list` to see what's available, and `uninstall` to remove them. Pick where they go with `--scope=project|global` (`--scope=both` is accepted on `update` and `list`).
12
12
*`[__settings__].default_profile` is now consulted as a fallback by `databricks api`, `databricks auth token`, and bundle commands when neither `--profile` nor `DATABRICKS_CONFIG_PROFILE` is set. `databricks auth token` continues to give precedence to `DATABRICKS_HOST` over `default_profile`. For bundle commands, `default_profile` only applies when the bundle does not pin its own `workspace.host`.
returnnil, errors.New("skills are installed in both global and project scopes; use --global, --project, or both flags to specify which to update")
183
+
returnnil, errors.New("skills are installed in both global and project scopes; use --scope=global, --scope=project, or --scope=both to specify which to update")
0 commit comments