AgentSkillsCN

android-native-agent-pack

为 Kotlin 和 Jetpack Compose 项目打造一套全面且专业的 Android 原生技能包。包含架构、数据、UI、测试、构建、发布、安全、性能与可观测性等领域的专业代理与工作流。

SKILL.md
--- frontmatter
name: android-native-agent-pack
description: A comprehensive, professional Android native skill pack for Kotlin and Jetpack Compose projects. Includes specialist agents and workflows for architecture, data, UI, testing, build, release, security, performance, and observability.

Android Native Agent Pack

This skill pack serves as the Standard Operating Procedure (SOP) for this Android repository. It is designed to ensure high-quality, maintainable, and scalable code.

🎯 Core Objectives

  • Consistency: Enforce architectural patterns (Clean Architecture, MVVM) and coding standards.
  • Quality: Prioritize testing, error handling, and observability in every change.
  • Efficiency: Use specialized agents to handle specific domains effectively.

🚦 Routing & Execution

  1. Start with master: Use the master agent for complex tasks, uncertain scope, or when coordination across multiple domains is required. It will route you to the appropriate specialist.
  2. Direct Specialist Access: If the task is clearly within a specific domain (e.g., "create a new UI component"), invoke the specialist agent directly (e.g., ui).
  3. Workflows: For multi-step processes (e.g., "new feature", "release"), strictly follow the playbooks defined in workflows.md.
  4. Templates: Use the provided templates in templates/ for creating new files (UseCases, ViewModels, Repositories, etc.) to maintain consistency.

🧠 Skill Specialists

SkillDescription
masterOrchestrator & Strategist. Analyzes requests, breaks them down, and delegates to specialists. Use for general inquiries or complex, multi-domain tasks.
archSystem Architect. Defines boundaries, contracts, dependency injection (Hilt), UI state modeling, and error handling strategies. Ensures Clean Architecture compliance.
dataData Layer Specialist. Manages repositories, data sources, network (Retrofit), persistence (Room/DataStore), caching, synchronization, and migrations.
uiUI/UX Engineer. Specializes in Jetpack Compose, screens, reusable components, navigation, previews, animations, and accessibility (a11y).
androidPlatform Specialist. Handles Android framework specifics: Lifecycle, Permissions, Intents, Services, BroadcastReceivers, WorkManager, and Manifest configurations.
kotlinLanguage Expert. Focuses on Kotlin idioms, Coroutines/Flow best practices, refactoring for readability, type safety, and functional programming patterns.
designDesign System Guardian. Manages design tokens (colors, typography, shapes), Material 3 implementation, theme handling, and responsive layout guidelines.
testQuality Assurance. defines testing strategy and implementation for Unit Tests (JUnit), Integration Tests, and UI Tests (Compose/Espresso).
buildBuild Engineer. Manages Gradle configurations (kts), dependencies (Catalog), plugins, CI/CD pipelines, static analysis (Lint, Detekt), and modularization.
releaseRelease Manager. Handles app versioning, signing, obfuscation (R8/Proguard), App Bundle generation, and Google Play Store compliance.
securitySecurity Analyst. Focuses on data privacy, secure storage, encryption, API security, permission minimization, and threat modeling.
perfPerformance Engineer. Optimizes startup time, UI rendering (jank), memory usage, battery consumption, and network efficiency.
observeObservability Engineer. Implements logging (Timber), crash reporting, remote config, analytics, and performance tracing.

📝 Output Guidelines

  • Actionable Code: Deliver complete, compilable code snippets. Avoid placeholders unless absolutely necessary.
  • Contextual Awareness: Respect existing project patterns. Do not introduce new libraries or patterns without a strong justification.
  • Safety First: Always consider edge cases, error states, and thread safety.
  • Documentation: Comment complex logic and update relevant documentation (README, KDoc) as part of the task.