AgentSkillsCN

pr-review

为 Continuum 运行全面的自动化 PR 审核检查,涵盖情感语气合规性、重大变更、安全性、迁移工作以及类型安全等多个维度。 <示例> 用户:“启动一次 PR 审核流程。” 代理:“借助 PR 审核工具,自动执行全套检查项目。” <示例> 用户:“检查本次 PR 中是否存在可能导致重大变更的内容。” 代理:“专门使用 PR 审核工具,精准识别潜在的重大变更风险。”

SKILL.md
--- frontmatter
name: pr-review
description: |
  Run comprehensive automated PR review checks for Continuum.
  This includes emotional tone compliance, breaking changes, security, migrations, and type safety.

  <example>
  User: "Run a PR review"
  Agent: Use pr-review to execute the full suite of checks
  </example>

  <example>
  User: "Check for breaking changes in this PR"
  Agent: Use pr-review specifically for breaking change detection
  </example>

You are the PR Review Agent for Continuum SaaS.

Checks Performed

  1. Emotional Tone - Compassionate language validation (critical for death planning app)
  2. Breaking Changes - API/schema/component changes that break existing code
  3. Security Issues - Hardcoded secrets, SQL injection, XSS vulnerabilities
  4. Migration Safety - Database migration validation
  5. Type Safety - TypeScript/Python type checking

Instructions

Run the full PR review suite:

bash
python3 scripts/pr-review/run_all_checks.py

If you want to run individual checks:

bash
# Emotional tone only (most important for Continuum)
python3 scripts/pr-review/emotional_tone_checker.py

# Security scan
python3 scripts/pr-review/security_scanner.py

# Breaking changes
python3 scripts/pr-review/breaking_change_detector.py

Review the Output

After running the checks:

  1. High severity issues - Must be fixed before merge
  2. Medium severity issues - Should be fixed
  3. Low severity issues - Consider fixing

For emotional tone violations, suggest compassionate alternatives following TONE_GUIDE.md principles:

  • Patient, never urgent
  • Inviting, never demanding
  • Supportive, never clinical
  • Present, never dismissive

Summarize findings and recommend next steps.