Android code review toolkit v3.1.1 - Refactored architecture with clear responsibility separation
Android code review expert. CRITICAL: Use this skill whenever the user mentions Android code, Kotlin files, Java classes, Activity, Fragment, ViewModel, Service, BroadcastReceiver, or any Android component. Trigger on phrases like "review android", "check this Kotlin", "android memory leak", "thread safety", "lifecycle issue", "CalledFromWrongThreadException", "out of memory", "app crashing", "security issue", "hardcoded secrets", or requesting code review for .kt/.java files. Analyzes memory leaks, thread safety, lifecycle problems, security vulnerabilities, null safety, coroutine issues, handler leaks, and architectural anti-patterns. Provides structured findings with severity (CRITICAL/HIGH/MEDIUM), file:line locations, code examples showing ❌ wrong vs ✅ correct patterns, impact analysis, and specific fix recommendations. Supports severity-based filtering for token efficiency. Confidence threshold: 90%+. Always use when reviewing Android/Kotlin/Java code.
Claude Plugin 发布清单。在发布插件时,自动验证结构、兼容性、版本完整性、Git 同步等所有检查项。当用户提到"发布插件"、"准备发布"、"创建 release"、"打 tag"、"验证发布"或询问"是否可以发布"时使用此 skill。确保插件符合所有发布要求,避免发布失败。**此 skill 完全自动化执行所有检查和发布步骤,无需用户确认。**
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Automated Android code review for Kotlin/Java code — security, quality, and performance checks based on Google's official Android best practices.
Key Features: Zero configuration • 90% confidence threshold • ~55% token optimization • Compatible with all Claude providers
# Step 1: Add marketplace
/plugin marketplace add daishengda2018/claude-code-for-android
# Step 2: Install plugin
/plugin install claude-code-for-android@claude-code-for-android
# Step 3: Verify installation
/plugin
# Clone repository
git clone https://github.com/daishengda2018/claude-code-for-android.git
cd claude-code-for-android
# Copy plugin files to ~/.claude/
cp -r commands/* ~/.claude/commands/
cp -r agents/* ~/.claude/agents/
cp -r skills/* ~/.claude/skills/
# Restart Claude Code
Note: Manual installation requires restarting Claude Code to load the plugin.
# Smart auto-detection (zero configuration)
/android-code-review
The plugin automatically detects what to review:
git diff --stagedgit diffgit log -1 --patchIn case you only want to review the stated files:
# Explicit staged changes
/android-code-review --target staged
/android-code-review --target file:app/src/main/java/com/example/MyFragment.kt
# Security-only (fastest)
/android-code-review --severity critical
# High-severity (default)
/android-code-review --severity high
# All checks
/android-code-review --severity all
android-code-review --output-format json > review.json
# Review a PR by number
/android-code-review --target pr:123
# High-severity only (faster)
/android-code-review --target pr:123 --severity high
# Export as JSON for archiving
/android-code-review --target pr:123 --output-format json > pr-123-review.json
Note: The default behavior reviews local git changes, not pull requests. Use --target pr:<number> for PR review.
| Category | Checks |
|---|---|
| Security | Hardcoded secrets, insecure storage, Intent hijacking, WebView flaws, cleartext traffic |
| Code Quality | Memory leaks, error handling, large functions, deep nesting, dead code |
| Android Patterns | Lifecycle violations, ViewModel misuse, deprecated APIs, permissions |
| Jetpack/Kotlin | Coroutine misconfiguration, Room issues, Hilt errors, Compose anti-patterns |
| Performance | ANR risks, layout inefficiencies, bitmap mismanagement, startup bottlenecks |
| Best Practices | Naming conventions, documentation, accessibility, resource management |
| Severity | Patterns Loaded | Token Cost | Use Case |
|---|---|---|---|
critical | Security only | ~1,500 | Fast security scan |
high | Security + Quality + Architecture | ~6,950 | Default review |
medium | Above + Performance | ~8,100 | Comprehensive review |
all | All patterns | ~8,900 | Complete analysis |
claude-code-for-android/
├── commands/
│ └── android-code-review.md # User-facing command
├── agents/
│ └── android-code-reviewer.md # Code review agent
├── skills/
│ └── android-code-review/
│ └── SKILL.md # Detection rules orchestration
├── .claude-plugin/ # Marketplace metadata
│ ├── plugin.json # Plugin manifest
│ └── marketplace.json # Marketplace description
└── [other files]
npx claudepluginhub daishengda2018/claude-code-for-android --plugin claude-code-for-androidComprehensive code review skill with 53 specialized agents for architecture, code quality, error handling, types, comments, tests, accessibility, localization, concurrency, performance, simplification, security, and platform-specific reviews (iOS, macOS, Android, Angular, TypeScript, Next.js, Vue.js, Python, Django, Ruby, Rust, Go, Rails, Flutter, Java/Spring Boot, C#/.NET, PHP/Laravel, C/C++, React Native, Svelte/SvelteKit, Elixir/Phoenix, Kotlin Server, Scala, Terraform, Shell/Bash, Docker, Kubernetes, GraphQL, GitHub Actions) with automatic platform detection and confidence scoring.
Android development validation with Gradle build hooks.
Automated code review with severity levels and actionable feedback
Developer workflow skills — full task implementation cycle, View→Compose UI migration, safe code migration, test plan generation, exploratory QA testing, feature verification, PR preparation, PR creation (draft or ready), and full PR lifecycle through CI/CD and code review
使用多個專門代理進行自動化程式碼審查,配備基於置信度的評分系統以過濾誤報
Comprehensive code review with architecture, security, and PR enhancement