<!--
Flag #62/#63: allowed-tools removed. Inherits Bash(*) from
.claude/settings.json. Restricting to specific subcommand patterns at the
skill level silently blocks agents on permission prompts the agent cannot
see — see dispatch #171 for the devex incident that surfaced this trap.
-->
Sandbox Create
Scaffold a new item in your sandbox with collision detection.
Arguments
$ARGUMENTS is <type> <name> where:
- type:
command,hook,hookify,tool,script - name: kebab-case name (no extension)
Steps
- Parse arguments: Extract type and name. Validate name matches
^[a-z0-9-]+$.
- Detect engineer: Scan
usr/*/directories. If only one, use it. If multiple, match againstgit config user.name.
- Collision check: Search ALL locations for the same name:
- Shared:
.claude/commands/,.claude/hooks/,.claude/hookify.*,agency/tools/ - All sandboxes:
usr/*/claude/commands/,usr/*/agency/hooks/,usr/*/agency/hookify/,usr/*/tools/,usr/*/scripts/ - If collision found: report WHERE and ask to continue or rename
- Scaffold the item based on type with appropriate template (command .md, hook .sh, hookify .md, tool .ts, script .sh).
- Make executable (hook and script types only).
- Print result:
```
Created: usr/<engineer>/<path>/<name>.<ext>
Next: edit the file, then activate it:
/sandbox-activate <name>
```