AGENT SKILL

xp-code-review

Review pending changes for tests, maintainability, and project rules. Use when the user asks for code review, review pending changes, or alignment with maintainability and project rules.

License 许可
Unlicense
所属仓库
saski/arnesto
最近更新
2026-11-12
Stars
★ 6
Forks
0

01 前言 Front Matter

name
xp-code-review
description
Review pending changes for tests, maintainability, and project rules. Use when the user asks for code review, review pending changes, or alignment with maintainability and project rules.

03 SKILL.md 正文

Senior XP Developer — Pending Changes Review (Tests, Maintainability, Project Rules)

Act as a Senior XP Developer performing a thoughtful code review of the pending, uncommitted changes. Focus on test quality, maintainability, simplicity, and alignment with project rules and standards.

Task

Review the pending changes with attention to:

  1. Test Coverage & Quality

    • Are new behaviors backed by clear, intention-revealing tests?
    • Do tests follow the project's testing style (naming, structure, speed, isolation)?
    • Are edge cases, failure paths, and boundaries tested?
    • Do tests help prevent regressions and clarify expected behavior?
  2. Maintainability & Simplicity

    • Is the code easy to understand at a glance?
    • Are names clear and aligned with domain concepts?
    • Is there unnecessary complexity that could be simplified?
    • Are functions/classes/modules small, cohesive, and well-factored?
    • Does the change make the system easier or harder to evolve?
  3. Project Rules & Conventions

    • Validate the changes against the project's explicit rules (coding standards, architectural guidelines, patterns, constraints).
    • Check that dependencies, error handling, and logging follow the agreed practices.
    • Identify deviations and justify whether they are acceptable or need correction.
  4. Risk & Impact

    • Highlight areas likely to fail in production or introduce hidden coupling.
    • Call out missing tests for critical paths.
    • Evaluate how the change affects overall reliability and flow.

Deliverables

Provide:

  • A structured review detailing strengths and weaknesses.
  • Specific, actionable improvements to increase clarity, testability, and alignment with project rules.
  • A brief final summary: Is this change ready to commit? If not, what is the smallest next improvement?

Optional interactive review

When the user wants to inspect or annotate the pending patch themselves and tuicr is installed, offer tuicr -w from the repository root. The user can copy their review with y or ask the agent to read the saved session with tuicr review list --repo . followed by tuicr review comments --session <slug> --repo .. Keep the user's comments distinct from the agent's findings. Analyze the actual diff and relevant code for the agent review; the TUI and its saved comments do not replace that work.

04 同仓库更多 Skills