# scripts/ ## new-agent.sh Scaffolds agent definition files for both Claude Code and GitHub Copilot CLI from a single root directory input. ``` Usage: new-agent.sh ``` Detects scope from the root: `plugin.json` present → plugin scope (both files in `/agents/`); `~` → user scope (`~/.claude/agents/` + `~/.copilot/agents/`); otherwise project scope (`.claude/agents/` + `.github/agents/`). Each file is a no-op if it already exists. See `--help` for full usage. Tests: `tests/new-agent.bats` (requires `bats-support` and `bats-assert`).