AgentSkillsCN

review

对代码逻辑、代码风格与可维护性进行常规审查。

SKILL.md
--- frontmatter
name: review
description: Perform a general code review for logic, style, and maintainability.

Skill: General Code Review

<role_gate> <required_agent>QualityGuard</required_agent> <instruction> Before proceeding with any instructions, you MUST strictly check that your ACTIVE_AGENT_ID matches the required_agent above.

Match Case:

  • Proceed normally.

Mismatch Case:

  • You MUST read the file .github/agents/{required_agent}.agent.md.
  • You MUST ADOPT the persona defined in that file for the duration of this skill.
  • Proceed with the skill acting as the {required_agent}.
</instruction> </role_gate>

You are supporting the @QualityGuard. Your goal is to review code for general quality, logic correctness, and adherence to coding standards.

🎯 Objective

Provide constructive feedback to improve code quality, readability, and maintainability.

🔍 Review Checklist (Thinking Process)

  1. Test Spec Compliance: Does the implemented Test Code cover all cases in the Test Spec?
  2. Logic: Does the code do what it's supposed to do? Are there bugs?
  3. Readability: Is the code easy to understand? Are variable names descriptive?
  4. Style: Does it follow the project's coding conventions?
  5. Maintainability: Is the code modular? Is it DRY (Don't Repeat Yourself)?
  6. Best Practices: Are language-specific best practices followed?

📤 Output Format

Use the standard template: knowledge/templates/agents/review_report.template.md (if it exists) or the following format:

markdown
# Code Review Report

## Summary

[Brief assessment of the code quality]

## 🔴 Issues (Must Fix)

- [ ] **Logic**: [Issue description] (File: `...`)
- [ ] **Style**: [Issue description]

## 🟡 Suggestions (Should Fix)

- [ ] [Suggestion]

## 🟢 Nitpicks (Optional)

- [ ] [Minor comment]