一键导入
best-practice-check
Analyze a feature or component to ensure it follows project best practices before implementation or review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Analyze a feature or component to ensure it follows project best practices before implementation or review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | Best Practice Check |
| description | Analyze a feature or component to ensure it follows project best practices before implementation or review. |
| last_verified | "2026-01-23T00:00:00.000Z" |
| applicable_sdk | Android 14+ (API 34+) |
| dependencies | ["codebase-aware-implementation","code-quality-audit"] |
Last Verified: 2026-01-23 Applicable SDK: Android 14+ (API 34+) Dependencies: codebase-aware-implementation, code-quality-audit
This skill analyzes a specific feature or component in the project to determine if it follows best practices.
/best-practice-check <feature-name-or-file-path>
This skill will analyze:
Code Organization
State Management
Architecture Patterns
Error Handling
Performance
User Experience
The skill will provide:
/best-practice-check light toggle feature
Will analyze:
When this skill is invoked:
Identify the feature scope
Analyze the code
Compare with best practices
Generate report
Write analysis to file
.agent/<feature-name>_best_practice_analysis.md# Best Practice Analysis: <Feature Name>
**Date**: YYYY-MM-DD
**Analyzed Files**:
- file1.kt
- file2.kt
## Executive Summary
Brief overview of findings.
## Detailed Analysis
### 1. Code Organization
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
### 2. State Management
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
### 3. Architecture Patterns
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
### 4. Error Handling
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
### 5. Performance
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
### 6. User Experience
- Current approach: ...
- Evaluation: ✅/⚠️/❌
- Details: ...
## Strengths
1. ...
2. ...
## Concerns
1. Issue description
- Location: file.kt:line
- Impact: ...
- Risk level: Low/Medium/High
## Recommendations
### High Priority
1. Recommendation
- Why: ...
- How: ...
- Code example: ...
### Medium Priority
...
### Low Priority / Nice to Have
...
## Alternative Approaches
### Approach A: <Name>
**Pros**:
- ...
**Cons**:
- ...
**Code example**:
```kotlin
// ...
Pros:
Cons:
Final assessment and recommended action.
Guidance for creating effective modular skills for Claude. Use when creating or refining skills to ensure they are concise, follow progressive disclosure patterns, and provide appropriate degrees of freedom.
Guidelines for ensuring smooth and race-condition-free theme transitions in Android, specifically regarding icon tinting and state management.
Best practices for effective human-AI pair programming and communication
Clarify touch-target vs visual size when users ask to resize buttons without changing icons.
Choose whether the outer container acts as the touch proxy or remains a layout placeholder to control hit targets.
Best practices for 60fps custom View rendering with zero allocation in onDraw