AgentSkillsCN

focus-review

将代码审查的重点聚焦于高风险变更

SKILL.md
--- frontmatter
name: focus-review
description: Focus code review on high-risk changes
usage: /focus-review <changed-files>
arguments:
  - name: changed_files
    description: Files to review
    required: true

Focus Review Skill

Review focus for: {{.changed_files}}

Quick Start

bash
# Check risk of changed files
omen -p "{{.changed_files}}" -f json defect

# Check complexity
omen -p "{{.changed_files}}" -f json complexity

# Check for new debt
omen -p "{{.changed_files}}" -f json satd

Review Checklist

  • Files with defect prob > 0.7: Extra scrutiny
  • Functions with cyclomatic > 15: Simplification needed
  • New HACK/FIXME: Justification required
  • Orphaned code: Remove

Comment Format

code
**[PRIORITY]**: file:line
What: Description
Why: Impact
Fix: Suggestion