Files
Holocron/docs/adr/0035-bundled-claude-code-skills-are-turned-off-at-user-level.md
T

84 lines
4.5 KiB
Markdown

# Bundled Claude Code skills are turned off at user level
**Status: accepted (2026-12-03), amended 2026-12-06 (#286).**
## Context
Issue #266. Claude Code ships bundled skills and syncs skills from the claude.ai account, and the
operator wants only this repo's plugin skills. Claude Code 2.1.334 has no allowlist: a skill missing
from `skillOverrides` is on, and `Skill(x)` allow rules do not restrict other skills. The operator
wanted a setting that also covers bundled skills added later. A custom `/ship` is also not loaded
where the built-in one is available.
On Claude Code 2.1.337 the switch does not cover built-in plugins (`cc-plugin-*@builtin`). Their
skills `design`, `doctor` and `plugin-authoring` still load, and so do their tools (#286).
## Decision
**Bundled skills are turned off with one switch; built-in plugin skills need a per-name list.** The
settings live at user level in `providers/claude-code/settings.json`, which `scripts/install.sh` deploys to
`~/.claude/settings.json`:
- `disableBundledSkills: true`
- `syncClaudeAiSkills: false`
- `env.CLAUDE_CODE_DISABLE_SHIP: "1"`, the documented fix for the custom `/ship`.
- `skillOverrides.init: "off"`
- `skillOverrides` `design`, `doctor` and `plugin-authoring`: `"off"`, for the built-in plugin skills.
- `enabledPlugins`: `cc-plugin-easel@builtin` and `cc-plugin-plugin-authoring@builtin` set to `false`.
`cc-plugin-privacy`, `-agents-md`, `-telemetry` and `-verbs` stay on: they add no skills and their
behaviour has not been checked.
- `syncClaudeAiPlugins: false`, the plugin counterpart of `syncClaudeAiSkills`.
**A per-name `skillOverrides` blocklist is accepted for built-in plugin skills only**, because the
single switch does not reach them. Bundled skills stay under the switch. `enabledPlugins` lives in
this user-level file, so ADR-0018's ban on it in the project `.claude/settings.json` does not apply.
Holocron does not distribute these settings to consumer repos. User-level settings already apply to
every repo on the machine, and another machine needs its own `install.sh` run.
**`install.sh` must merge into an existing `~/.claude/settings.json` before these settings are
deployed.** It used to copy the file over, which would have dropped 11 of the operator's 13 top-level
keys. Done since: `scripts/merge-json.py` merges the file, and `tests/test-install.sh` covers it.
## Considered options
**A `skillOverrides` blocklist (rejected as the general mechanism).** It needs a new entry for each unwanted skill that ships.
It is now used for built-in plugin skills (#286), but is still rejected as the general mechanism.
**`skillOverrides` in the committed `.claude/settings.json`, as #266 proposed (rejected).** apm owns
that file and `apm audit --ci` fails on hand-added keys (AGENTS.md, ADR-0018, ADR-0019). apm 0.39.3
cannot write the key either.
**A PreToolUse hook on the Skill tool (rejected).** It can refuse a call but cannot hide a skill or
resolve a name collision.
**Turning off only the three unwanted synced skills in the claude.ai account (rejected).** The
operator chose to turn off all syncing.
## Consequences
1. `simplify`, `loop`, `update-config` and `claude-api` are lost and cannot be re-enabled one by one
(tested).
2. All synced `anthropic-skills:*` are lost, including `pdf`, `docx`, `xlsx` and
`satisfactory-helper`. Claude Code moves the synced copies to `.trash`.
3. New built-in commands, as opposed to bundled skills, are not covered.
4. Each new built-in plugin skill needs its own `skillOverrides` entry.
5. The `cc-plugin-easel` chart tool and the `cc-plugin-plugin-authoring` `scan_secrets` MCP server are
lost.
## Evidence
- **Tested** in headless mode on Claude Code 2.1.334: the effect of `disableBundledSkills` on bundled
skills, and `skillOverrides.init: "off"`.
- **Documented, not tested:** that the custom `/ship` loads in an interactive session with
`CLAUDE_CODE_DISABLE_SHIP=1`.
- **From the docs only:** the `syncClaudeAiSkills` behaviour.
- **Tested** in headless mode on Claude Code 2.1.337, from the `init` event of
`claude -p … --output-format stream-json --verbose`: `skillOverrides` for `design`, `doctor` and
`plugin-authoring`, and `enabledPlugins` for the two plugins. Confirmed after `scripts/install.sh`:
the `init` event lists none of the three skills and only the four plugins kept on.
- **From the setting's description in the binary only:** the `syncClaudeAiPlugins` behaviour.
- Sources: code.claude.com/docs/en/settings-reference, `/skills` and `/ship-command-troubleshooting`.
Related: ADR-0018, ADR-0019; #266, #286.