---
@agent {
  role: code-reviewer,
  llm: claude-sonnet-4,
  tools: [analyze_code, security_scan]
}

@input file_path: String

@shell "git diff HEAD~1" as recent_changes

@validate output {
  must_contain: ["Security", "Performance", "Maintainability"],
  format: markdown,
  min_length: 100
}
---

# Code Review: {{ file_path }}

You are a senior code reviewer. Review the following changes:

**Recent Changes:**
```
{{ recent_changes }}
```

Provide a comprehensive code review covering:
1. **Security**: Potential vulnerabilities
2. **Performance**: Optimization opportunities
3. **Maintainability**: Code quality and readability
4. **Best Practices**: Language-specific conventions

Rate each category from 1-5 and provide specific recommendations.
