Skip to content

Commit 320c217

Browse files
committed
chore(claude): tighten skill allowed-tools — replace bare Bash with prefix-scoped matchers
Replaces bare Bash in skill allowed-tools frontmatter with an explicit list of Bash(prefix:*) matchers covering the common command set: Bash(pnpm:*), Bash(npm:*), Bash(git:*), Bash(node:*), Bash(rg:*), Bash(grep:*), Bash(find:*), Bash(ls:*), Bash(cat:*), Bash(head:*), Bash(tail:*), Bash(wc:*), Bash(diff:*) Override sets for skills with narrower needs: - security-scan: Task, Read, Bash(pnpm exec agentshield:*), Bash(zizmor:*), Bash(command -v:*), Bash(find .cache/external-tools/zizmor:*) - squashing-history: AskUserQuestion, Bash(git:*), Bash(diff:*), Bash(rm:*), Bash(ls:*) Bare Bash (= Bash(*)) silently allowed every shell command. The new list is the minimum credible footprint a fleet update skill needs; skills that need additional commands (jq, awk, python3, gh, etc.) should add those matchers explicitly in their own SKILL.md. Mirrors the canonical pattern landed on socket-repo-template main.
1 parent 0007c73 commit 320c217

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

.claude/skills/path-guard/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
name: path-guard
33
description: Audit and fix path duplication in this Socket repo. Apply the strict "1 path, 1 reference" rule — every build/test/runtime/config path is constructed exactly once; everywhere else references the constructed value. Default mode finds and fixes; `check` mode reports only; `install` mode drops the gate + hook + rule into a fresh repo.
44
user-invocable: true
5-
allowed-tools: Task, Bash, Read, Edit, Write, Grep, Glob, AskUserQuestion
6-
---
5+
allowed-tools: Task, Bash(pnpm:*), Bash(npm:*), Bash(git:*), Bash(node:*), Bash(rg:*), Bash(grep:*), Bash(find:*), Bash(ls:*), Bash(cat:*), Bash(head:*), Bash(tail:*), Bash(wc:*), Bash(diff:*), Read, Edit, Write, Grep, Glob, AskUserQuestion---
76

87
# path-guard
98

.claude/skills/security-scan/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
name: security-scan
33
description: Runs a multi-tool security scan — AgentShield for Claude config, zizmor for GitHub Actions, and optionally Socket CLI for dependency scanning. Produces an A-F graded security report. Use after modifying `.claude/` config, hooks, agents, or GitHub Actions workflows, and before releases.
44
user-invocable: true
5-
allowed-tools: Task, Bash, Read, Grep, Glob
6-
---
5+
allowed-tools: Task, Read, Bash(pnpm exec agentshield:*), Bash(zizmor:*), Bash(command -v:*), Bash(find .cache/external-tools/zizmor:*)---
76

87
# Security Scan
98

.claude/skills/updating/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
name: updating
33
description: Updates all npm dependencies to their latest versions. Triggers when user asks to "update dependencies", "update packages", or prepare for a release.
44
user-invocable: true
5-
allowed-tools: Bash, Read, Grep, Glob, Edit
6-
---
5+
allowed-tools: Bash(pnpm:*), Bash(npm:*), Bash(git:*), Bash(node:*), Bash(rg:*), Bash(grep:*), Bash(find:*), Bash(ls:*), Bash(cat:*), Bash(head:*), Bash(tail:*), Bash(wc:*), Bash(diff:*), Read, Grep, Glob, Edit---
76

87
# updating
98

0 commit comments

Comments
 (0)