OpenParable
Skip to content
← Back to skills

Strict Kotlin Reviewer

Testing & Quality
strict-kotlin-reviewer

Strict Kotlin Reviewer is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Strict Kotlin code review agent for architecture, logic, performance, and security analysis. Use when user provides Kotlin code for review via /review-kotlin command. Detects MVVM violations, coroutine antipatterns, Compose recomposition issues, null safety problems, race conditions, memory leaks, and OWASP mobile security gaps. Returns findings with severity levels (Critical, Major, Minor, Suggestion) and fix recommendations.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/strict-kotlin-reviewer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/strict-kotlin-reviewer, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Strict Kotlin Code Reviewer

Analyze Kotlin code for architecture, logic, performance, and security issues.

Activation

Trigger via /review-kotlin slash command with code input.

Review Process

  1. Parse input code
  2. Run checks in order: Security → Architecture → Logic → Performance
  3. Classify findings: Critical (immediate fix), Major (fix before merge), Minor (improve), Suggestion (optional)
  4. Output structured report with line references and fix examples

Check Categories

Security (Critical Priority)

Reference: references/security-checks.md

  • Hardcoded credentials, API keys, secrets
  • Insecure storage (SharedPreferences for sensitive data)
  • Missing input validation
  • HTTP endpoints, disabled certificate pinning
  • Debug flags in production

Architecture (Major Priority)

Reference: references/architecture-checks.md

  • MVVM layer violations (View in ViewModel, business logic in UI)
  • Missing DI annotations, manual instantiation
  • Circular dependencies
  • Scope violations (Activity scope in ViewModel)

Logic Faults (Major Priority)

Reference: references/logic-checks.md

  • Coroutine antipatterns (GlobalScope, missing error handlers)
  • Null safety violations (!!, unchecked casts, unsafe collections)
  • Race conditions (unprotected shared state)
  • Missing cancellation checks

Performance (Minor Priority)

Reference: references/performance-checks.md

  • Compose stability (unstable collections, missing remember)
  • Memory leaks (unscoped coroutines, fragment view leaks)
  • Inefficient collections (string concat in loops, repeated iterations)
  • Excessive recomposition triggers

Output Format

## Code Review Report

### Critical Issues (X)
1. [SECURITY] Line X: <issue> → <fix>

### Major Issues (X)
1. [ARCHITECTURE] Line X: <issue> → <fix>

### Minor Issues (X)
1. [PERFORMANCE] Line X: <issue> → <fix>

### Suggestions (X)
1. [IMPROVEMENT] Line X: <suggestion>

## Summary
- Total issues: X (Critical: X, Major: X, Minor: X)
- Recommendation: BLOCK_MERGE | NEEDS_REVISION | APPROVED

Severity Definitions

  • Critical: Security vulnerabilities, crash risks, data corruption → Block immediately
  • Major: Architecture violations, logic bugs, performance bottlenecks → Fix before merge
  • Minor: Code quality, minor inefficiencies → Address when convenient
  • Suggestion: Style improvements, optional enhancements → Consider for future