Skip to content

chore: env allowlist + .cache exclude + CLAUDE.md fleet rules#624

Merged
John-David Dalton (jdalton) merged 3 commits intomainfrom
chore/hygiene-claude-cache
Apr 27, 2026
Merged

chore: env allowlist + .cache exclude + CLAUDE.md fleet rules#624
John-David Dalton (jdalton) merged 3 commits intomainfrom
chore/hygiene-claude-cache

Conversation

@jdalton
Copy link
Copy Markdown
Contributor

Doc/config-only split from #620. Self-landable; no runtime impact.

Files

  • CLAUDE.md — sync fleet rules (sorting, open-PR, paths, inclusive-language, Set constructor sort, don't-revert-untouched, workflow-dispatch); replace whitelist/blacklist with allowlist/denylist
  • .config/tsconfig.check.json — restore .cache/** exclude
  • .gitignore — add **/.cache/
  • .claude/agents/security-reviewer.md — sync from socket-repo-template canonical
  • .claude/skills/security-scan/SKILL.md — sync from socket-repo-template canonical

Test plan

  • CI passes

Doc/config-only updates split out from PR #620.

CLAUDE.md
  - Sync sorting + open-PR + paths + inclusive-language + Set
    constructor sort + don't-revert-untouched rules from the fleet
  - Replace whitelist/blacklist with allowlist/denylist
  - Document workflow-dispatch rule

.config/tsconfig.check.json
  - Restore .cache/** exclude (was previously dropped)

.gitignore
  - Add **/.cache/

.claude/agents/security-reviewer.md
.claude/skills/security-scan/SKILL.md
  - Sync from socket-repo-template canonical

No runtime behavior changes.
@jdalton
Copy link
Copy Markdown
Contributor Author

bugbot run

Comment thread .claude/skills/security-scan/SKILL.md Outdated
Replaces blanket Bash/Grep/Glob entries with command-pattern-specific
matchers (Bash(prefix:*)) so the skill cannot run anything the body
of the skill doesn't actually invoke. Drops Grep/Glob from skills
that don't use them.

- security-scan: Task, Read, Bash(pnpm exec agentshield:*),
  Bash(zizmor:*), Bash(command -v:*),
  Bash(find .cache/external-tools/zizmor:*)
- updating: Read, Edit, Bash(pnpm run:*), Bash(pnpm test:*),
  Bash(git status:*), Bash(git diff:*), Bash(git add:*),
  Bash(git commit:*), Bash(git log:*)

Addresses billxinli's review on PR #624 / #1283.
…s, allowed-tools to quality-scan

Extends the .claude/ tightening already on this branch:

- Adds tools: frontmatter to all three agents so they declare exactly
  what they need instead of inheriting the default tool set:
  - code-reviewer (read-only): Read, Grep, Glob, Bash(git/rg/grep/find/ls/wc/cat/head/tail:*)
  - security-reviewer: same + Bash(pnpm exec agentshield:*), Bash(zizmor:*),
    Bash(command -v:*)
  - refactor-cleaner: adds Edit, Write, Bash(pnpm run/test/exec:*), Bash(node:*)
- Adds permissions.deny block to .claude/settings.json blocking
  publish/release escape hatches: npm/pnpm/yarn publish, gh release
  create/delete, gh workflow run/dispatch, git push --force/-f.
  Particularly important for socket-sdk-js, which publishes to npm
  but currently has no Bash-targeted PreToolUse hooks.
- Adds allowed-tools: to quality-scan/SKILL.md (was missing entirely,
  inheriting full default access).

Mirrors the canonical pattern landed on socket-repo-template main.
@jdalton John-David Dalton (jdalton) merged commit c3beacc into main Apr 27, 2026
11 checks passed
@jdalton John-David Dalton (jdalton) deleted the chore/hygiene-claude-cache branch April 27, 2026 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants