reviewing-changes
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseReviewing Changes - Android Additions
审查变更 - Android 新增内容
This skill provides Android-specific workflow additions that complement the base agent standards.
bitwarden-code-reviewer该Skill提供了特定于Android的工作流补充内容,以完善基础的 Agent标准。
bitwarden-code-reviewerInstructions
说明
IMPORTANT: Use structured thinking throughout your review process. Plan your analysis in tags before providing final feedback.
<thinking>重要提示:在整个审查过程中使用结构化思维。在提供最终反馈前,将你的分析过程写在标签中。
<thinking>Step 1: Retrieve Additional Details
步骤1:获取额外细节
<thinking>
Determine if more context is available for the changes:
1. Are there JIRA tickets or GitHub Issues mentioned in the PR title or body?
2. Are there other GitHub pull requests mentioned in the PR title or body?
</thinking>
Retrieve any additional information linked to the pull request using available tools (JIRA MCP, GitHub API).
If pull request title and message do not provide enough context, request additional details from the reviewer:
- Link a JIRA ticket
- Associate a GitHub issue
- Link to another pull request
- Add more detail to the PR title or body
<thinking>
判断是否有更多关于变更的上下文信息:
1. PR标题或正文中是否提到了JIRA工单或GitHub Issues?
2. PR标题或正文中是否提到了其他GitHub拉取请求?
</thinking>
使用可用工具(JIRA MCP、GitHub API)获取与拉取请求相关的任何额外信息。
如果拉取请求的标题和描述提供的上下文不足,请向提交者请求更多细节:
- 关联JIRA工单
- 关联GitHub Issue
- 链接到其他拉取请求
- 为PR标题或正文添加更多细节
Step 2: Detect Change Type with Android Refinements
步骤2:结合Android专属规则检测变更类型
<thinking>
Analyze the changeset systematically:
1. What files were modified? (code vs config vs docs)
2. What is the PR/commit title indicating?
3. Is there new functionality or just modifications?
4. What's the risk level of these changes?
</thinking>
Use the base change type detection from the agent, with Android-specific refinements:
Android-specific patterns:
- Feature Addition: New , new
ViewModel, newRepositoryfunctions, new@Composablefiles*Screen.kt - UI Refinement: Changes only in ,
*Screen.kt,*Composable.ktpackage filesui/ - Infrastructure: Changes to ,
.github/workflows/,gradle/,build.gradle.ktslibs.versions.toml - Dependency Update: Changes only to or
libs.versions.tomlwith version bumpsbuild.gradle.kts
<thinking>
系统分析变更集:
1. 修改了哪些文件?(代码、配置还是文档)
2. PR/提交标题表明了什么?
3. 是新增功能还是仅做了修改?
4. 这些变更的风险等级如何?
</thinking>
使用Agent的基础变更类型检测功能,并结合Android专属规则:
Android专属模式:
- 功能新增:新增、新增
ViewModel、新增Repository函数、新增@Composable文件*Screen.kt - UI优化:仅修改、
*Screen.kt、*Composable.kt包下的文件ui/ - 基础设施变更:修改、
.github/workflows/、gradle/、build.gradle.ktslibs.versions.toml - 依赖更新:仅修改或
libs.versions.toml中的版本号build.gradle.kts
Step 3: Load Appropriate Checklist
步骤3:加载对应的检查清单
Based on detected type, read the relevant checklist file:
- Dependency Update → (expedited review)
checklists/dependency-update.md - Bug Fix → (focused review)
checklists/bug-fix.md - Feature Addition → (comprehensive review)
checklists/feature-addition.md - UI Refinement → (design-focused review)
checklists/ui-refinement.md - Refactoring → (pattern-focused review)
checklists/refactoring.md - Infrastructure → (tooling-focused review)
checklists/infrastructure.md
The checklist provides:
- Multi-pass review strategy
- Type-specific focus areas
- What to check and what to skip
- Structured thinking guidance
根据检测到的变更类型,读取相关的检查清单文件:
- 依赖更新 → (快速审查)
checklists/dependency-update.md - Bug修复 → (聚焦审查)
checklists/bug-fix.md - 功能新增 → (全面审查)
checklists/feature-addition.md - UI优化 → (设计聚焦审查)
checklists/ui-refinement.md - 代码重构 → (模式聚焦审查)
checklists/refactoring.md - 基础设施变更 → (工具聚焦审查)
checklists/infrastructure.md
检查清单包含:
- 多轮审查策略
- 特定类型的聚焦领域
- 需要检查和可以跳过的内容
- 结构化思维指导
Step 4: Execute Review Following Checklist
步骤4:遵循检查清单执行审查
<thinking>
Before diving into details:
1. What are the highest-risk areas of this change?
2. Which architectural patterns need verification?
3. What security implications exist?
4. How should I prioritize my findings?
5. What tone is appropriate for this feedback?
</thinking>
Follow the checklist's multi-pass strategy, thinking through each pass systematically.
<thinking>
在深入细节之前:
1. 此变更的最高风险区域是什么?
2. 需要验证哪些架构模式?
3. 存在哪些安全影响?
4. 我应该如何对发现的问题进行优先级排序?
5. 反馈采用何种语气较为合适?
</thinking>
遵循检查清单的多轮审查策略,系统地完成每一轮审查。
Step 5: Consult Android Reference Materials As Needed
步骤5:必要时参考Android参考资料
Load reference files only when needed for specific questions:
- Issue prioritization → (Critical vs Suggested vs Optional)
reference/priority-framework.md - Phrasing feedback → (questions vs commands, I-statements)
reference/review-psychology.md - Architecture questions → (MVVM, Hilt DI, module org, error handling)
reference/architectural-patterns.md - Security questions (quick reference) → (common patterns and anti-patterns)
reference/security-patterns.md - Security questions (comprehensive) → (full zero-knowledge architecture)
docs/ARCHITECTURE.md#security - Testing questions → (unit tests, mocking, null safety)
reference/testing-patterns.md - UI questions → (Compose patterns, theming)
reference/ui-patterns.md - Style questions →
docs/STYLE_AND_BEST_PRACTICES.md
仅在针对特定问题需要时加载参考文件:
- 问题优先级划分 → (关键、建议、可选)
reference/priority-framework.md - 反馈措辞 → (提问式 vs 命令式,第一人称表述)
reference/review-psychology.md - 架构问题 → (MVVM、Hilt DI、模块组织、错误处理)
reference/architectural-patterns.md - 安全问题(快速参考) → (常见模式与反模式)
reference/security-patterns.md - 安全问题(全面参考) → (完整的零知识架构)
docs/ARCHITECTURE.md#security - 测试问题 → (单元测试、模拟、空安全)
reference/testing-patterns.md - UI问题 → (Compose模式、主题)
reference/ui-patterns.md - 代码风格问题 →
docs/STYLE_AND_BEST_PRACTICES.md
Core Principles
核心原则
- Appropriate depth: Match review rigor to change complexity and risk
- Specific references: Always use format for precise location
file:line_number - Actionable feedback: Say what to do and why, not just what's wrong
- Efficient reviews: Use multi-pass strategy, skip what's not relevant
- Android patterns: Validate MVVM, Hilt DI, Compose conventions, Kotlin idioms
- 适当的审查深度:根据变更的复杂度和风险匹配审查严格程度
- 精确的引用:始终使用格式指定精确位置
file:line_number - 可执行的反馈:说明要做什么以及原因,而不仅仅指出问题
- 高效的审查:采用多轮策略,跳过无关内容
- Android模式验证:验证MVVM、Hilt DI、Compose规范、Kotlin惯用写法