YAML examples for Claude Code
Run Claude Code with all options
yaml
- action: "Run Claude Code"
type: "CLAUDE_CODE"
trigger_time: "ON_EVERY_EXECUTION"
integration: "my_anthropic_integration"
prompts:
- "Review the code and suggest improvements"
- file: ".buddy/review-prompt.md"
model: "claude-sonnet-4-20250514"
skills:
- buddy-works/security-audit
- "my-org/agent-skills/tree/main/linter"
mcp_servers:
github:
type: "http"
url: "https://api.githubcopilot.com/mcp/"
headers:
Authorization: "Bearer $GITHUB_TOKEN"
filesystem:
type: "stdio"
command: "npx"
args:
- "-y"
- "@modelcontextprotocol/server-filesystem"
- "/buddy/my-repo"
env:
ROOT: "/buddy/my-repo"
effort: "max"
claude_args: "--verbose --max-turns 5"
dangerously_skip_permissions: false
working_directory: "/buddy/my-repo"
Minimal Claude Code action
yaml
- action: "Quick review"
type: "CLAUDE_CODE"
integration: "my_anthropic_integration"
prompts:
- "Review the code"
Claude Code with file-based prompts
yaml
- action: "Claude Code from prompt files"
type: "CLAUDE_CODE"
trigger_time: "ON_EVERY_EXECUTION"
integration: "my_anthropic_integration"
prompts:
- file: ".buddy/code-review.md"
- file: ".buddy/security-check.md"
model: "claude-sonnet-4-20250514"
Claude Code with inline and file prompts
yaml
- action: "Claude Code mixed prompts"
type: "CLAUDE_CODE"
trigger_time: "ON_EVERY_EXECUTION"
integration: "my_anthropic_integration"
prompts:
- "You are a code reviewer."
- file: ".buddy/review-rules.md"
- "Focus on security issues."
model: "claude-sonnet-4-20250514"
claude_args: "--max-turns 10"