docs(adr): bundled Claude Code skills are turned off at user level #279
@@ -0,0 +1,62 @@
|
||||
# Bundled Claude Code skills are turned off with one user-level switch
|
||||
|
||||
**Status: accepted (2026-12-03).**
|
||||
|
||||
## 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.
|
||||
|
||||
## Decision
|
||||
|
||||
**Bundled skills are turned off with one switch, not 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"`
|
||||
|
||||
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.** Today it copies the file over, which would drop 11 of the operator's 13 top-level keys.
|
||||
The merge is a separate implementation ticket, not part of this ADR's PR.
|
||||
|
||||
## Considered options
|
||||
|
||||
**A `skillOverrides` blocklist (rejected).** It needs a new entry for each unwanted skill that ships.
|
||||
|
||||
**`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.
|
||||
|
||||
## 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.
|
||||
- Sources: code.claude.com/docs/en/settings-reference, `/skills` and `/ship-command-troubleshooting`.
|
||||
|
||||
Related: ADR-0018, ADR-0019; #266.
|
||||
Reference in new issue
Block a user