fix: expand create-plugin allowed-tools and clarify validation approach#104
fix: expand create-plugin allowed-tools and clarify validation approach#104
Conversation
- Add Bash(git init:*) permission to allow git initialization in Phase 4
- Convert allowed-tools from JSON array to comma-separated string format
for consistency with official documentation
- Replace direct script execution references with agent-based validation:
- plugin-validator agent handles validation (it has Bash access to run
scripts internally)
- Clearer separation of concerns between command and agents
Fixes #103
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
Claude finished @sjnims's task in 1m 7s —— View job PR Review Complete ✅SummaryLooks good - This PR correctly addresses issue #103 by fixing the tool restriction mismatch and clarifying the validation approach. What's Good
Changes VerifiedLine 4 (frontmatter):
Lines 202, 212, 261, 264-265 (validation references):
Checklist Verification
Additional NotesThe PR description demonstrates good decision-making by documenting the alternatives considered:
This shows thoughtful consideration of the trade-offs. Recommendation: Merge when ready. |
Summary
Fixes the
create-plugincommand's tool restrictions that prevented git initialization and clarifies that validation runs through agents rather than direct script execution.Problem
Fixes #103
The command's
allowed-toolsonly permittedBash(mkdir:*), but the instructions told Claude to:git init(Phase 4, line 147)This created a mismatch between what the command instructed and what tools were available.
Solution
Approach taken: Minimal Bash expansion + clarify agent-based validation
Bash(git init:*)- Enables git initialization as instructed in Phase 4plugin-validatoragent handles validation (it has full Bash access and uses the scripts internally)Alternatives Considered
Bash(bash:*)- Rejected as too permissive; would allow arbitrary script executionChanges
plugins/plugin-dev/commands/create-plugin.md:Bash(git init:*), converted to comma-separated formatTesting
markdownlint)🤖 Generated with Claude Code