chore(agents): ignore local Claude settings and commit apm-deployed hooks
Ignore .claude/settings.local.json and stop ignoring .claude/hooks/, so hooks apm deploys are committed for review. Track .claude/settings.json with disableSkillShellExecution, so no committed skill runs a shell command when it loads. State the apm primitive policy in apm.yml and the hook-ownership rule in the setup doc. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
5962b9b6fb
commit
8df9070cd8
4 files changed
+16
-4
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"disableSkillShellExecution": true
|
||||
}
|
||||
+4
-3
@@ -13,9 +13,10 @@ vault-pass*
|
||||
gitleaks-report.json
|
||||
# galaxy-importer output
|
||||
importer_result.json
|
||||
# APM: apm_modules/ is the dependency cache; .claude/skills,
|
||||
# agents and hooks are `apm install` deploy output, regenerated on every install.
|
||||
# APM: apm_modules/ is the dependency cache. Deployed skills and agents stay out
|
||||
# while their source is private; deployed hooks are committed for review.
|
||||
apm_modules/
|
||||
.claude/skills/
|
||||
.claude/agents/
|
||||
.claude/hooks/
|
||||
# Claude Code: personal settings and allowlists, never shared
|
||||
.claude/settings.local.json
|
||||
@@ -5,6 +5,10 @@ license: GPL-3.0-or-later
|
||||
|
||||
# git and mattpocock only (#104): bin and core are unused here, and gitea returns once it is
|
||||
# rebuilt on the tea CLI.
|
||||
|
||||
# Hook primitives come from apm; no instruction primitive is deployed until the root AGENTS.md
|
||||
# has a managed section. `apm approve` writes the executables.allow entry into this file, and it
|
||||
# is committed because an unattended `apm install` cannot answer the prompt.
|
||||
targets:
|
||||
- claude
|
||||
dependencies:
|
||||
|
||||
@@ -41,8 +41,12 @@ held by review until an offline link check exists.
|
||||
*Held by:* aspirational.
|
||||
- **The tracked `.claude/settings.json` never holds `permissions.allow`; `deny` and `ask` rules are
|
||||
allowed. Your own allowlist and personal guards go in `.claude/settings.local.json`, which is never
|
||||
committed.** (`.gitignore` lists it once issue #196 lands; until then, leave it out of your commits.)
|
||||
committed.**
|
||||
*Reason:* a branch's settings take effect for whoever opens it with an agent, so an `allow` rule
|
||||
pushed on an unmerged branch lets that branch's commands run without a prompt before anyone has
|
||||
reviewed it, while a `deny` or `ask` rule can only add prompts.
|
||||
*Held by:* review (`.claude/` is under `CODEOWNERS`).
|
||||
- **Every hook in the tracked `.claude/settings.json` arrives through apm; personal hooks go in
|
||||
`.claude/settings.local.json`.**
|
||||
*Reason:* a hook nobody owns is checked by nothing.
|
||||
*Held by:* review (`.claude/` is under `CODEOWNERS`).
|
||||
Reference in new issue
Block a user