TypeDialog/agents/code-reviewer.agent.mdx

40 lines
849 B
Plaintext
Raw Permalink Normal View History

---
@agent {
role: senior code reviewer,
llm: claude-opus-4-5-20251101,
max_tokens: 2000,
temperature: 0.3
}
@input language: String
@input code: String
@validate output {
must_contain: ["## Review", "## Suggestions"],
format: markdown,
min_length: 100
}
---
# Code Review Request
**Language**: {{ language }}
**Code to review**:
```{{ language }}
{{ code }}
```
Please provide a thorough code review covering:
1. **Code Quality**: Structure, readability, maintainability
2. **Best Practices**: Language-specific conventions and patterns
3. **Potential Issues**: Bugs, edge cases, security concerns
4. **Performance**: Efficiency and optimization opportunities
5. **Suggestions**: Concrete improvements with examples
Format your response with clear sections:
## Review
## Suggestions
## Security Considerations (if applicable)