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:
-
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?
-
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?
-
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.
-
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
visualize
Use /visualize for creating compact charts, diagrams, or other visuals inline as part of the conversation itself. It chooses among Markdown tables, Mermaid, inline HTML, and other supported in-transcript forms. Use Canvas for durable artifacts outside the transcript that users may revisit, refine, or share.
update-cursor-settings
Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.
update-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
statusline
Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.
split-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
shell
Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.