android-architecture
Skill3 starsChanged 7 months agoMITView on GitHub
Architecture strategy for Android apps at real production scale. Use this whenever the user asks about app structure, modularization, MVVM/MVI/UDF choices, migration from legacy code, dependency boundaries, or architecture review decisions.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- GuillemRoca/agent-skills-androidtheir own version, first seen Oct 3, 2026
- GDvega/super-android-kotlin-firebase-skilltheir own version, first seen Jun 26, 2026
- piyushverma0/android-agent-skillstheir own version, first seen Mar 14, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- piyushverma0/android-agent-skills★ 15same name
- GDvega/super-android-kotlin-firebase-skill★ 2same name
- GuillemRoca/agent-skills-android★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- android-engineering-skillSkill
- android-code-reviewSkill
- android-composeSkill
- android-debuggingSkill
- android-gradle-buildSkill
- android-kotlin-concurrencySkill
- android-performanceSkill
- android-release-engineeringSkill
- android-securitySkill
- android-testingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 13 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 27
Use this skill when the user is:
- Distinctive: line 47
If key inputs are missing, proceed with explicit assumptions and lower confidence.
- Very specific: line 55
Run cross-skill checks (security/performance/build/testing/release).
- Distinctive: line 64
Prefer modular monolith + package-by-feature.
- Distinctive: line 68
Add API boundaries where coordination overhead is rising.
- Distinctive: line 70
Use explicit feature modules + strong domain/core contracts.
- Distinctive: line 73
Use strangler migration slices.
- Distinctive: line 90
When activated with other skills:
- Distinctive: line 93
Keep architectural boundaries unless measured runtime/regression evidence requires exception.
- Distinctive: line 94
If exception is needed, time-box it and define path back to target architecture.
- Distinctive: line 103
If migration confidence is weak, increase verification scope before high-risk structural changes.
- Distinctive: line 113
Do not present temporary compromises as final architecture.
- Distinctive: line 127
Always report confidence for non-trivial decisions:
- Distinctive: line 133
If confidence is medium/low:
- Very specific: line 142
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
- Very specific: line 147
Use the global section order from ../../AGENTS.md and adapt content for architecture tasks:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
Design and evolve Android architecture with enforceable boundaries, explicit ownership, and migration-safe sequencing under real delivery constraints.
Scope and authority
This skill is the lead authority for:
- module boundaries and dependency direction
- layering and ownership topology
- architecture style selection (MVVM/MVI/UDF/Clean depth)
- migration design from legacy structures
This skill is not the final authority for:
- critical security exposure (
android-securityoverride) - release go/no-go (
android-release-engineeringoverride) - runtime SLA constraints (
android-performanceruntime override)
When to use
Use this skill when the user is:
- starting architecture for a new Android app or major feature set
- refactoring package/module structure
- deciding architecture style fit for current team and product complexity
- resolving dependency boundary violations
- requesting migration paths from legacy codebases
- asking for ADR-ready architecture decisions
Required inputs
Collect the minimum set that changes the decision:
- team topology and ownership model
- app/domain complexity and release cadence
- current architecture pain points and dependency graph symptoms
- build/CI constraints and delivery deadlines
- regulatory/security constraints
- migration risk tolerance and rollback requirements
If key inputs are missing, proceed with explicit assumptions and lower confidence.
Decision engine workflow
- Frame constraints and decision domain.
- Classify architecture maturity (seed, scaling, multi-team, legacy-heavy).
- Select architecture style branch and module topology branch.
- Validate against global dependency constraints.
- Run cross-skill checks (security/performance/build/testing/release).
- Resolve conflicts using authority model from
../../AGENTS.md. - Return target-state design + phased migration plan + rollback points.
Branching decision tree
Branch A: architecture maturity
Seed team(1-4 engineers, fast iteration):- Prefer modular monolith + package-by-feature.
- Delay deep multi-module split unless ownership/build pain is concrete.
Scaling team(5-12 engineers, multiple ownership zones):- Introduce selective feature/core modules by ownership and change rate.
- Add API boundaries where coordination overhead is rising.
Multi-team(12+ engineers, parallel delivery):- Use explicit feature modules + strong domain/core contracts.
- Enforce strict dependency visibility and review gates.
Legacy-heavy(high coupling, fragile releases):- Use strangler migration slices.
- Prioritize boundary stabilization before style purity.
Branch B: state/architecture style fit
MVVM: default for mostly CRUD/form/list flows with moderate complexity.MVI/UDF: choose for event-heavy flows and high state-transition complexity.Deeper Clean boundaries: choose only when cross-feature domain policy and long-term ownership justify added indirection.
Branch C: migration strategy
Low tolerance for risk: incremental adapters + compatibility seams.Moderate tolerance: parallel module extraction with feature-by-feature cutover.High tolerance with strong tests: accelerated boundary rewrite with staged guardrails.
Conflict handling and composition
When activated with other skills:
- With
android-performance:- Keep architectural boundaries unless measured runtime/regression evidence requires exception.
- If exception is needed, time-box it and define path back to target architecture.
- With
android-compose:- Compose state patterns must fit architecture ownership boundaries.
- Reject UI-local shortcuts that leak domain/data responsibilities.
- With
android-gradle-build:- Module proposals must be build-graph-feasible; avoid theoretical splits that harm CI throughput.
- With
android-security:- Security-critical controls override structural preference.
- With
android-testing:- If migration confidence is weak, increase verification scope before high-risk structural changes.
Real-world tradeoff guidance
Allow context-justified non-ideal decisions when clearly labeled:
- "Temporary shared module" may be acceptable under deadline if ownership exit criteria is defined.
- "Hybrid architecture" may be acceptable during migration if dependency direction remains enforceable.
- "Deferred module split" may be acceptable when build pain is low and team size is stable.
Do not present temporary compromises as final architecture.
Anti-pattern detection
Flag and explain:
- god modules with mixed UI/domain/data responsibilities
- fake clean layers with pass-through use cases
- feature-to-feature dependency shortcuts
- domain contaminated by framework or transport concerns
- over-modularization with no ownership or build ROI
Uncertainty protocol
Always report confidence for non-trivial decisions:
High(>= 0.80): constraints and evidence are strong.Medium(0.60-0.79): assumptions or tradeoff ambiguity exists.Low(< 0.60): key data missing or conflicts unresolved.
If confidence is medium/low:
- list assumptions that could flip the decision
- provide at least one viable alternative path
- identify minimum missing data needed to finalize
- escalate to supporting skills where uncertainty is cross-domain
Cross-skill handoff payload
Use the standard payload defined in ../../AGENTS.md (section: Cross-skill handoff contract).
Set requesting_skill to android-architecture.
Output contract
Use the global section order from ../../AGENTS.md and adapt content for architecture tasks:
Context and constraintsDecision and rationaleAlternatives consideredTradeoffsRisks and mitigationsConfidence and unknownsCross-skill impactsNext implementation steps
Also include:
Proposed module treeDependency rules (allowed/forbidden)Migration path with rollback-safe phasesADR draft
Related resources
references/architecture-selection.mdreferences/module-boundaries.mdtemplates/architecture-proposal.mdtemplates/adr.mdexamples/anti-patterns.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

