Commit ecfecb6
docs: document security scope and trust model for workflow commands (#165)
## Summary
Documents the security model and trust requirements for workflow
commands (`/plugin-dev:create-plugin` and
`/plugin-dev:create-marketplace`), providing transparency about their
file system access.
## Problem
Fixes #162
The workflow commands have broad file system access (Write, Edit,
Bash(mkdir:*), etc.) which is correct and necessary for their
scaffolding function. However, security-conscious users had no
documentation explaining what access they're granting or why it's
needed.
## Solution
Implemented Option 3 from the issue (both command files + CLAUDE.md):
### CLAUDE.md - Comprehensive "Workflow Command Security" section
- Explains why broad tool access is needed (creating directories,
generating templates, initializing git)
- Documents security considerations (permission scope, confirmation
prompts, directory verification)
- Contrasts with `/plugin-dev:start` which uses minimal permissions
- Provides guidance for security-sensitive environments
### Command files - Brief security notes
- Added one-sentence security notes to both workflow commands
- Cross-references the detailed documentation in CLAUDE.md
- Doesn't slow down users but provides visibility
### Alternatives Considered
1. **Command files only** - Would duplicate content and increase
maintenance burden
2. **CLAUDE.md only** - Less discoverable for users reading command
files
3. **Both (chosen)** - Best discoverability with single source of truth
for details
## Changes
| File | Change |
|------|--------|
| `CLAUDE.md` | Added "Workflow Command Security" subsection under
Workflow |
| `commands/create-plugin.md` | Added brief security note after Core
Principles |
| `commands/create-marketplace.md` | Added brief security note after
Core Principles |
## Testing
- [x] markdownlint passes on all modified files
- [x] Documentation is accurate (verified against actual frontmatter)
- [x] Cross-references are correct
---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 5f5f5d9 commit ecfecb6
3 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
228 | 258 | | |
229 | 259 | | |
230 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments