Skip to content

Agent Reference ​

Superpowers provides specialized AI capabilities for specific tasks through the agent system. Each agent has clear trigger conditions, review standards, and workflows.

Overview ​

Differences between agents and skills:

FeatureSkillsAgents
DefinitionMarkdown file (SKILL.md)Agent definition file (.md)
InvocationLoaded via Skill toolVia @mention or skill call
Use CaseGeneral workflows and best practicesSpecialized execution for specific tasks
Count141 (code-reviewer)

code-reviewer Agent ​

Basic Information ​

ItemContent
Namecode-reviewer
TypeSenior Code Reviewer
DomainCode review, architecture review, quality assurance
Modelinherit (inherits current session model)
Definition Fileagents/code-reviewer.md

Trigger Conditions ​

The code-reviewer agent should be invoked when any of the following conditions are met:

  1. Major project step completed: Logic code blocks are written and need verification against the original plan
  2. Feature implementation completed: Important feature implementation is finished and needs review against architecture or planning documents
  3. Plan step completed: A numbered step in the planning document has been completed

Example Scenarios

Scenario 1: User completes a major system module

User input:
"I've finished implementing the user authentication system as outlined in step 3 of our plan"

AI response:
"Great work! Now let me use the code-reviewer agent to review the implementation against our plan and coding standards"

Scenario 2: User completes a feature module

User input:
"The API endpoints for the task management system are now complete - that covers step 2 from our architecture document"

AI response:
"Excellent! Let me have the code-reviewer agent examine this implementation to ensure it aligns with our plan and follows best practices"

Review Dimensions ​

The code-reviewer agent reviews from the following six dimensions:

1. Plan Alignment Analysis ​

  • ✅ Compare implementation against original planning document or step descriptions
  • ✅ Identify implementation approaches, architectures, or requirements that deviate from the plan
  • ✅ Evaluate whether deviations are reasonable improvements or harmful deviations
  • ✅ Verify all planned features are implemented

2. Code Quality Assessment ​

  • ✅ Review code for adherence to established patterns and conventions
  • ✅ Check error handling, type safety, and defensive programming
  • ✅ Evaluate code organization, naming conventions, and maintainability
  • ✅ Assess test coverage and test implementation quality
  • ✅ Identify potential security vulnerabilities or performance issues

3. Architecture and Design Review ​

  • ✅ Ensure implementation follows SOLID principles and established architecture patterns
  • ✅ Check for separation of concerns and loose coupling
  • ✅ Verify integration with existing systems
  • ✅ Evaluate scalability and extensibility considerations

4. Documentation and Standards ​

  • ✅ Verify code includes appropriate comments and documentation
  • ✅ Check that file headers, function documentation, and inline comments exist and are accurate
  • ✅ Ensure project-specific coding standards and conventions are followed

5. Issue Identification and Recommendations ​

  • ✅ Clearly categorize issues as: Critical (must fix), Important (should fix), or Suggestions (recommend improvements)
  • ✅ Provide specific examples and actionable suggestions for each issue
  • ✅ When identifying plan deviations, explain whether they are harmful or beneficial
  • ✅ Propose specific improvement suggestions, with code examples when helpful

6. Communication Protocol ​

  • ✅ If significant deviations from the plan are found, require the coding agent to review and confirm changes
  • ✅ If issues with the original plan itself are found, suggest updating the plan
  • ✅ Provide clear fix guidance for implementation issues
  • ✅ Always acknowledge what was done well before highlighting issues

Output Format Requirements ​

The code-reviewer agent output should:

  1. Structured: Clearly organized by issue category
  2. Actionable: Each issue has specific suggestions and examples
  3. Constructive: Points out problems while also acknowledging strengths
  4. Concise: Comprehensive but not verbose
  5. Helpful: Helps improve current implementation and future development practices

Best Practices ​

Usage Recommendations

  1. Invoke promptly: Call immediately after completing major steps to prevent issues from accumulating
  2. Provide specific feedback: Avoid vague evaluations; provide code line numbers and examples
  3. Balance feedback: Both point out problems and acknowledge strengths
  4. Actionable suggestions: Every suggestion should be directly convertible to action
  5. Respect the plan: When deviating from the plan, explain reasons and impact

Future Extensions ​

Currently Superpowers only includes the code-reviewer agent. Potential agent types that may be added in the future:

Agent TypePotential Use
test-writerAgent specialized in generating test cases
debuggerAgent focused on systematic debugging
security-auditorDedicated security audit agent
performance-optimizerPerformance optimization specialist agent
documentation-writerAgent for documentation generation and maintenance

The agent system works in conjunction with the following skills:

Skill NameRelationship with Agents
requesting-code-reviewInvokes code-reviewer agent
receiving-code-reviewReceives agent review feedback
subagent-driven-developmentUses agents in subagent development

Appendix: Agent Definition File Structure ​

Agent definition files use YAML frontmatter to configure basic properties:

yaml
---
name: <agent name>
description: |
  Detailed description of the agent, including trigger conditions and usage examples
model: inherit | <model name>
---

[Detailed role definition and workflow for the agent]

Field Descriptions:

FieldTypeRequiredDescription
namestringYAgent unique identifier (kebab-case)
descriptionstringYDescription of agent purpose and trigger conditions
modelstringNModel to use, inherit means inheriting current session model

Appendix: Source Code Reference ​

Click to expand source code locations

Updated: 2026-02-01

FeatureFile PathLine Number
code-reviewer agent definitionagents/code-reviewer.md1-49

Key Configuration:

  • name: code-reviewer: Agent unique identifier
  • model: inherit: Inherits current session model
  • description: Includes trigger conditions and usage examples

Review Dimensions:

  • Plan Alignment Analysis
  • Code Quality Assessment
  • Architecture and Design Review
  • Documentation and Standards
  • Issue Identification and Recommendations
  • Communication Protocol