AgentSkillsCN

android-workflow

为 Kotlin/Compose 项目编排 Android 开发工作流。 将任务路由到适当的工作流:功能、快速修复、重构、调查、热修复。 当用户请求:实现(实现、添加、新功能、创建、开发、应用)、 修复 bug(bug、修正、错误、修复)、重构(重构、改进、整理)、 调试(分析、原因、为什么、调试、不行)、或热修复(紧急、生产、热补丁)时使用。 提供实现任务的自检协议和质量门。

SKILL.md
--- frontmatter
name: android-workflow
description: |
  Orchestrates Android development workflows for Kotlin/Compose projects.
  Routes tasks to appropriate workflow: feature, quick-fix, refactor, investigate, hotfix.
  Use when user requests: implementation (구현, 추가, 새 기능, 만들어, 개발, 적용),
  bug fixes (버그, 수정, 오류, 고쳐), refactoring (리팩토링, 개선, 정리),
  debugging (분석, 원인, 왜, 디버깅, 안돼), or hotfix (긴급, 프로덕션, 핫픽스).
  Provides Self-Check Protocol and Quality Gates for implementation tasks.

Android Workflow Orchestrator

Routes Android development tasks to appropriate workflows and manages quality gates.

Self-Check Protocol (MUST DO)

Before starting implementation tasks, verify:

#QuestionAction if No
1Is this an implementation task?Handle directly
2Has the workflow been classified?Call task-router first
3Following the correct sequence?Re-check workflow
4Trying to skip an agent?Never allowed, follow sequence

Quick Classification

Classification Criteria

ConditionWorkflow
Files ≤2, single layer, no UI/API/DBquick-fix
New feature, new screenfeature
Structure change, behavior preservedrefactor
Unknown bug cause, error analysisinvestigate
Production emergencyhotfix

Auto-Upgrade Rules

TriggerFromTo
UI changes detectedquick-fixfeature
Files 3+quick-fixfeature
API/DB changesquick-fixfeature
Build fails 2xanyinvestigate

Workflow Sequences

Agent execution order for each workflow:

WorkflowSequence
quick-fixcode-writer → code-critic
featureplanner → [ux-engineer] → [ui-builder] → code-writer → test-engineer → code-critic
refactorplanner → code-writer → test-engineer → code-critic
investigateinvestigator → (route based on findings)
hotfixcode-writer → test-engineer(smoke) → code-critic

Detailed Guides:

Quality Gates

GateCheckpointCriteria
Gate 0task-routerClassification complete
Gate 1plannerRequirements clear, tasks defined
Gate 2code-writerBuild succeeds
Gate 3code-critic0 critical, ≤2 major issues

Detailed Criteria: gates/quality-gates.md

MCP Tool Requirements

Workflowsequential-thinkingcontext7codex-cli
quick-fixSkipOptional1 round
feature3+ stepsRequired2+ rounds
refactor3+ stepsOptional2+ rounds
investigate5+ stepsOptionalOptional
hotfixSkipOptional1 round

Build Commands

bash
# Full build
./gradlew build

# Module build
./gradlew :feature:home:build

# Run tests
./gradlew test
./gradlew :feature:home:testDebugUnitTest

# Clean build
./gradlew clean build

Failure Recovery

On build or gate failure:

  1. Record: Log error messages and environment info
  2. Retry: Auto-retry once
  3. Escalate: If still failing, present options
    • A: Manual fix then retry
    • B: Call investigator
    • C: Abort task