AgentSkillsCN

review-comments

当用户说“检查立方体评论”、“立方体违规”、“立方体反馈”、“立方体代码评审”、“修复违规”、“解决评审问题”,或正在处理带有开放评审意见的拉取请求分支时使用。查询立方体的 MCP 工具,以呈现与当前工作相关的 PR 评审违规信息。

SKILL.md
--- frontmatter
name: review-comments
description: Use when the user says "check cubic comments", "cubic violations", "cubic feedback", "cubic code review", "fix violations", "address review", or is working on a pull request branch with open review comments. Queries cubic's MCP tools to surface PR review violations relevant to the current work.

PR Review Comments

This skill surfaces AI code review comments and violations from cubic when working on pull requests.

When to Activate

  • User says "check cubic comments", "cubic violations", "cubic feedback", or "cubic code review"
  • User mentions fixing review comments or addressing feedback
  • User is on a feature branch with an open PR
  • User is editing a file that was flagged in a review
  • User asks what cubic found or what needs to be fixed

How to Use

  1. Detect the current repository from git remote: git remote get-url origin
  2. Detect the current branch: git branch --show-current
  3. Find the PR number: gh pr view --json number --jq .number
  4. Call get_pr_violations with repo, pullNumber, and owner to get all published violations with full content
  5. Filter violations to prioritize:
    • Files the user is currently editing
    • Unaddressed violations (aiAddressed = false)
    • Higher severity violations first

Presentation

  • Show violations inline when relevant to the current file
  • Group by file when showing an overview
  • Highlight which violations are still open vs already addressed
  • If all violations are addressed, congratulate the user