Purpose
Run disciplined Android code reviews that prioritize issues by incident risk and provide implementation-ready fixes.
Scope and authority
This skill is synthesis authority across domains.
It consolidates architecture, security, performance, testing, and release concerns into a prioritized outcome.
When not to use
- when the primary task is deep root-cause investigation (
android-debugging)
- when the primary goal is new architecture design selection (
android-architecture)
When to use
- pull request reviews
- technical debt audits
- release-candidate quality checks
Decision engine workflow
- Establish change intent and blast radius.
- Check non-negotiable constraints first.
- Evaluate architecture, correctness, maintainability, performance, and security implications.
- Rank findings by severity and operational impact.
- Propose fix order and verification strategy.
Branching decision tree
Branch A: change risk profile
high blast radius (cross-module, auth, payment, startup, release-critical):
- perform deep multi-domain review with stricter evidence requirements
medium blast radius:
- prioritize correctness, maintainability, and boundary consistency
low blast radius:
- focus on local quality and regression prevention
Branch B: release proximity
near release:
- prioritize regressions and production-risk findings first
normal window:
- include strategic maintainability improvements with staged follow-up
Branch C: change category
security-sensitive:
- require stronger evidence and verification for exploitability/reachability concerns
performance-sensitive:
- require measurement-backed findings for hotspot regressions
boundary-sensitive:
- prioritize dependency direction and ownership violations
Branch D: evidence availability
full diff/artifacts available:
- run normal severity-based review flow
partial artifacts only:
- scope findings to verified surfaces, mark unknowns explicitly
no diff/artifacts provided:
- do not approve/reject code quality conclusively
- return a provisional risk review with required evidence checklist
- provide a low-risk fallback path (narrow merge scope or hold)
Quantitative gates
Use measurable evidence gates for high-impact findings:
- evidence sufficiency gate:
pass when finding has concrete code evidence and reproducible risk path
at-risk when evidence is partial but plausible
fail when claim is mostly speculative
- verification readiness gate:
pass when recommended fix includes clear verification steps
at-risk when verification is incomplete
fail when no verification plan exists
Uncertainty protocol
Always include confidence on non-trivial findings.
For medium/low confidence findings, include the minimum evidence needed to confirm/refute.
Confidence bands:
High (>= 0.80)
Medium (0.60-0.79)
Low (< 0.60)
If confidence is medium/low:
- list assumptions explicitly
- request minimum additional evidence that can re-rank severity
- provide at least one fallback recommendation with lower regression risk
- escalate to specialized skill when domain certainty is insufficient
Output contract
Follow global order from ../../AGENTS.md:
Context and constraints
Decision and rationale
Alternatives considered
Tradeoffs
Risks and mitigations
Confidence and unknowns
Cross-skill impacts
Next implementation steps
Then include review-specific artifacts:
Findings by severity
Evidence
Risk impact
Recommended fix
Follow-up checks
No-diff fallback template (required when artifacts are missing)
When PR diff or runtime artifacts are missing, add:
Review status: Provisional - insufficient evidence
Blocking unknowns: exact missing artifacts (diff, module list, benchmarks, security config deltas)
Provisional findings: only evidence-backed risks, each marked confirmed or hypothesis
Minimum evidence to finalize: smallest artifact set needed for final severity ranking
Fallback path: low-risk option (scope split, hold merge, or merge non-runtime subset only)
Cross-skill handoff payload
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
Set requesting_skill to android-code-review.
Anti-pattern detection
- hidden coupling or boundary violations
- missing tests on behavior-critical changes
- performance-sensitive changes with no measurements
- security-impacting changes with weak controls
Related resources
references/review-severity-evidence.md
templates/review-report.md
1---2name: android-code-review3description: Structured Android code review skill with severity-based findings across architecture, correctness, maintainability, performance, and security. Use this for PR reviews and technical debt assessments.4---56# Purpose78Run disciplined Android code reviews that prioritize issues by incident risk and provide implementation-ready fixes.910## Scope and authority1112This skill is synthesis authority across domains.13It consolidates architecture, security, performance, testing, and release concerns into a prioritized outcome.1415## When not to use1617- when the primary task is deep root-cause investigation (`android-debugging`)18- when the primary goal is new architecture design selection (`android-architecture`)1920## When to use2122- pull request reviews23- technical debt audits24- release-candidate quality checks2526## Decision engine workflow27281. Establish change intent and blast radius.292. Check non-negotiable constraints first.303. Evaluate architecture, correctness, maintainability, performance, and security implications.314. Rank findings by severity and operational impact.325. Propose fix order and verification strategy.3334## Branching decision tree3536### Branch A: change risk profile3738- `high blast radius` (cross-module, auth, payment, startup, release-critical):39 - perform deep multi-domain review with stricter evidence requirements40- `medium blast radius`:41 - prioritize correctness, maintainability, and boundary consistency42- `low blast radius`:43 - focus on local quality and regression prevention4445### Branch B: release proximity4647- `near release`:48 - prioritize regressions and production-risk findings first49- `normal window`:50 - include strategic maintainability improvements with staged follow-up5152### Branch C: change category5354- `security-sensitive`:55 - require stronger evidence and verification for exploitability/reachability concerns56- `performance-sensitive`:57 - require measurement-backed findings for hotspot regressions58- `boundary-sensitive`:59 - prioritize dependency direction and ownership violations6061### Branch D: evidence availability6263- `full diff/artifacts available`:64 - run normal severity-based review flow65- `partial artifacts only`:66 - scope findings to verified surfaces, mark unknowns explicitly67- `no diff/artifacts provided`:68 - do not approve/reject code quality conclusively69 - return a provisional risk review with required evidence checklist70 - provide a low-risk fallback path (narrow merge scope or hold)7172## Quantitative gates7374Use measurable evidence gates for high-impact findings:7576- evidence sufficiency gate:77 - `pass` when finding has concrete code evidence and reproducible risk path78 - `at-risk` when evidence is partial but plausible79 - `fail` when claim is mostly speculative80- verification readiness gate:81 - `pass` when recommended fix includes clear verification steps82 - `at-risk` when verification is incomplete83 - `fail` when no verification plan exists8485## Uncertainty protocol8687Always include confidence on non-trivial findings.88For medium/low confidence findings, include the minimum evidence needed to confirm/refute.8990Confidence bands:9192- `High` (>= 0.80)93- `Medium` (0.60-0.79)94- `Low` (< 0.60)9596If confidence is medium/low:9798- list assumptions explicitly99- request minimum additional evidence that can re-rank severity100- provide at least one fallback recommendation with lower regression risk101- escalate to specialized skill when domain certainty is insufficient102103## Output contract104105Follow global order from `../../AGENTS.md`:1061071. `Context and constraints`1082. `Decision and rationale`1093. `Alternatives considered`1104. `Tradeoffs`1115. `Risks and mitigations`1126. `Confidence and unknowns`1137. `Cross-skill impacts`1148. `Next implementation steps`115116Then include review-specific artifacts:117118- `Findings by severity`119- `Evidence`120- `Risk impact`121- `Recommended fix`122- `Follow-up checks`123124### No-diff fallback template (required when artifacts are missing)125126When PR diff or runtime artifacts are missing, add:127128- `Review status`: `Provisional - insufficient evidence`129- `Blocking unknowns`: exact missing artifacts (diff, module list, benchmarks, security config deltas)130- `Provisional findings`: only evidence-backed risks, each marked `confirmed` or `hypothesis`131- `Minimum evidence to finalize`: smallest artifact set needed for final severity ranking132- `Fallback path`: low-risk option (scope split, hold merge, or merge non-runtime subset only)133134## Cross-skill handoff payload135136Use the standard payload defined in `../../AGENTS.md` (section: Cross-skill handoff contract).137Set `requesting_skill` to `android-code-review`.138139## Anti-pattern detection140141- hidden coupling or boundary violations142- missing tests on behavior-critical changes143- performance-sensitive changes with no measurements144- security-impacting changes with weak controls145146## Related resources147148- `references/review-severity-evidence.md`149- `templates/review-report.md`