Thank you for contributing to Squad Agent!
Squad Agent에 기여해 주셔서 감사합니다!
Each agent requires two files:
새 에이전트를 추가하려면 두 개의 파일이 필요합니다:
---
name: squad-{name}
description: >
What this agent does. Include trigger keywords.
Use PROACTIVELY if it should auto-invoke.
Pipeline: where this agent sits in the workflow
tools: Read, Bash, Glob, Grep
model: opus
maxTurns: 15
---
You are a [role description].
## Process
1. Step 1...
## Rules
- NEVER [safety constraint]
## Allowed Commandsgit log, git diff, ...
## NEVER Run
rm, git commit, ...
## Boundaries
**Will:**
- [explicit scope items]
**Will Not:**
- [explicit out-of-scope items] (→ /squad-{other})
## Output Format
```markdown
## Report Title
**Date**: {YYYY-MM-DD}
...
**Required sections for all agents / 모든 에이전트 필수 섹션:**
- `## Rules` with at least one NEVER clause / NEVER 규칙 최소 1개
- `## Allowed Commands` + `## NEVER Run` (if agent has Bash) / Bash 도구 시 필수
- `## Boundaries` (Will/Will Not) for Write-enabled agents / Write 도구 시 필수
- `## Output Format` with markdown template / 출력 형식 템플릿
- `Pipeline:` line in description / description에 파이프라인 위치
### 2. Command definition: `commands/squad-{name}.md`
```markdown
---
description: "Short description. Usage: /squad-{name} [args]"
allowed-tools: Agent
---
Invoke the squad-{name} subagent.
$ARGUMENTS
Add your agent to the available agents list in commands/squad.md.
commands/squad.md의 에이전트 목록에 추가하세요.
Add the new agent name to the SQUAD_AGENTS array in install.sh.
install.sh의 SQUAD_AGENTS 배열에 새 에이전트 이름을 추가하세요.
| Field | Required | Default | Description |
|---|---|---|---|
name |
Yes | — | Agent ID (e.g., squad-review) |
description |
Yes | — | Auto-delegation trigger. Include PROACTIVELY for auto-invoke |
tools |
No | (inherit) | Comma-separated. Supports Task(squad-name) |
model |
No | inherit |
haiku / sonnet / opus / inherit |
maxTurns |
No | — | Max turns limit |
- Prefix:
squad-+ descriptive function name - Examples:
squad-review,squad-plan,squad-audit
Follow this canonical order for the tools: field:
tools: 필드에 다음 표준 순서를 따르세요:
- Read-only:
Read, Bash, Glob, Grep - Write (no Bash):
Read, Write, Edit, Glob, Grep - Write + Bash:
Read, Write, Edit, Bash, Glob, Grep
- One agent per PR / PR당 하나의 에이전트
- Include both
agents/andcommands/files / 두 파일 모두 포함 - Test with
bash install.shlocally / 로컬에서 설치 테스트 - Update README agent table if adding new agents / 새 에이전트 추가 시 README 테이블 갱신
- Use Conventional Commits / Conventional Commits 사용
- All Write-enabled agents MUST have Boundaries section / Write 에이전트는 반드시 Boundaries 포함
- All Bash-enabled agents MUST have Allowed Commands + NEVER Run / Bash 에이전트는 명령어 제한 필수
- Shell scripts: Follow Google Shell Style Guide
- Agent prompts: Clear, concise, with structured output formats
- Use
set -euo pipefailin all shell scripts