-
Notifications
You must be signed in to change notification settings - Fork 0
Document and test allowed-tools patterns in CONTRIBUTING.md #22
Description
Summary
Before adding allowed-tools frontmatter to skills, we need:
-
Verified syntax — Test that scoped patterns like
Bash(git*)actually work in Claude Code vs plainBashvs no declaration. Useclaude -pin/tmp/to compare behavior with and without. -
Documented patterns in CONTRIBUTING.md — Add a section covering:
allowed-toolssyntax and semantics (additive only, no restriction)- Scoped Bash patterns:
Bash(git*),Bash(gh*)vs broadBash - When to use scoped vs broad vs no declaration
- Examples and links to Claude Code docs
-
Per-skill rationale — Determine whether
CONTRIBUTING.mdworks at subdirectory level in Claude Code / Gemini CLI for per-skill design decisions. If not, define a convention (e.g.,DESIGN.mdor a section in CONTRIBUTING.md linking to skills by name). Cannot useREADME.mdat skill level — that's published on echoskill.ai. -
Testing methodology — Document how to test skill effectiveness:
claude -pcalls in/tmp/test directories- Compare with and without
allowed-tools - Verify scoped patterns actually scope (does
Bash(git*)blockBash(rm*)?) - Document results alongside the pattern docs
Context
Started adding allowed-tools to all skills in PR branch review-skill-tool-approvals. Paused because:
- Broad
Bashis too permissive — need scoped patterns - The scoped syntax (
Bash(git*)) is underdocumented in develop-skill - No evidence yet that scoped patterns work as expected
- Need CONTRIBUTING.md patterns before applying across 14 skills
Blocked by
- Testing: need verified results before committing changes
- setup-agent-context skill should reference this CONTRIBUTING.md guidance
Related
- Branch
review-skill-tool-approvalshas 4 skills partially edited + Chris→Bob fix in pre-publish-privacy-review - The develop-skill skill mentions
allowed-tools: Bash, Readbut doesn't cover scoping