Proactively review code changes for quality, security, and code style when user asks for code review, says 'review', '审查', '检查代码', or completes a batch of edits. Use when user provides code to check or wants feedback on recent changes.
Explore and document unfamiliar codebases. Use when user asks 'how does X work', 'explain the architecture', 'find where Y is implemented', 'what does this project do', or needs broad multi-file codebase exploration. Also triggers for 'search the codebase for', '找出所有', '帮我看看这个项目'.
Draft pull request descriptions only. Use when user completes a feature or bugfix and says 'create a PR', 'draft a pull request', '提交 PR', '创建拉取请求', 'prepare for merge', or after finishing a batch of work that should be reviewed before merging. This agent may only write markdown drafts under .claude/drafts/; it must…
Audit code for OWASP Top-10 vulnerabilities, exposed secrets, and unsafe patterns. Use when user asks for security review, says 'audit', '安全审计', '安全检查', '漏洞扫描', or before pushing to production. Also triggers when user mentions 'security check' in context of code changes.
Run tests and analyze failures. Use when user asks to 'run tests', 'run the test suite', '跑测试', '执行测试', 'check if tests pass', 'test this', or when code changes need verification. Also triggers when user says 'make sure nothing is broken', '验证一下', or after completing a batch of edits that should be validated.