← Back to list

ensuring-mobile-standards
by Mkas08
⭐ 0🍴 0📅 Jan 23, 2026
SKILL.md
name: ensuring-mobile-standards description: Ensure consistent code quality, style, and best practices for mobile apps. Use when writing code, reviewing PRs, or setting up linting.
Mobile App Coding Standards
When to use this skill
- When writing new code or refactoring existing code.
- During code reviews to check for adherence to standards.
- When configuring linting or formatting rules.
- When creating new components to ensure they meet quality guidelines.
Code Style
- Type Checking: Use TypeScript (React Native) or Dart (Flutter) with strict type checking enabled. Avoid
any. - Linting: Follow established rules (ESLint/Prettier for JS/TS, Dart Analyzer for Dart).
- Naming Conventions:
- Use
PascalCasefor Components, Classes, and Types. - Use
camelCasefor variables, functions, and hooks. - Use
UPPER_CASEfor constants. - Use meaningful, descriptive names (e.g.,
fetchUserDatainstead ofgetData).
- Use
- Documentation: Add JSDoc/DartDoc comments for complex functions, interfaces, and public APIs.
Component Guidelines
- Functional Components: Prefer functional components with hooks over class components in React Native.
- Typed Props: Define props interfaces for all components.
- Size Limit: Keep components small and focused. Aim for <300 lines. Split larger components into smaller sub-components.
- Logic Extraction: Move complex business logic, data fetching, and side effects into custom hooks or services. Keep the UI layer dumb.
State Management
- Tooling: Use the agreed-upon state manager (e.g., Redux Toolkit, Context API, Riverpod).
- Structure: Keep state normalized (avoid deep nesting).
- Actions: Use descriptive action names that describe what happened (e.g.,
userLoggedIn), not what to do. - Async Handling: Handle loading, error, and success states explicitly for all async operations.
API Integration
- Async/Await: Use
async/awaitsyntax for cleaner asynchronous code. - Error Handling: Implement
try/catchblocks and handle errors gracefully. Display user-friendly error messages. - Interceptors: Use request/response interceptors for common tasks like adding auth tokens or logging errors.
- Resilience: Handle network failures and offline states.
Performance
- Lazy Loading: Lazy load heavy components or screens to improve initial startup time.
- Assets: Optimize images and use proper formats (WebP, SVG).
- Rendering: Avoid unnecessary re-renders. Use
React.memo,useMemo, anduseCallbackappropriately (but don't premature optimize). - Lists: Use
FlatListorSectionListfor long lists withremoveClippedSubviews.
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon