Skip to content
Skill

Architecture

Guides an agent to structure Android apps with Clean Architecture, MVVM/MVI and Hilt

Architecture is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
21
Last commit
License
MIT
Listing updated

Similar skills

About Architecture

This skill sets out architecture standards for Android Kotlin apps built around a three-layer Clean Architecture split into presentation, domain and data, with MVVM or MVI patterns on the UI side. It gives the agent a package layout to follow, rules for how ViewModels, use cases, repositories and mappers should relate, and guidance on keeping the domain layer free of Android dependencies.

Beyond design guidance, the skill defines a review process where findings are reported with an ARCH identifier, a severity from critical to low, a location and a concrete fix. It also points to separate reference files covering presentation, domain, data, Hilt dependency injection, modularization and error handling, which the agent loads when a given layer is under review. It includes checklists for each area.

The skill is documentation-driven and includes no scripts. It expects a Kotlin Android codebase and works with Hilt for dependency injection, Room, Retrofit and Kotlin coroutines or Flow as referenced in its rules.

When your agent uses it

Android application architecture standards using Clean Architecture, MVVM/MVI patterns, Hilt dependency injection, and modularization. Use when: designing app structure, creating ViewModel/Repository/UseCase classes, setting up Hilt DI modules, planning module boundaries, reviewing layer dependencies, implementing offline-first data patterns, defining error handling strategy, or starting a new Android feature module.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 7 files (21 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the android-review plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add liuyi0808/android-review
/plugin install android-review@android-review

Or copy only this skill to ~/.claude/skills/architecture:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/architecture &&
cp -R "$tmp/skills/architecture" ~/.claude/skills/architecture &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/architecture inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/architecture to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/architecture &&
cp -R "$tmp/skills/architecture" ~/.agents/skills/architecture &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/architecture inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/architecture to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/architecture &&
cp -R "$tmp/skills/architecture" ~/.cursor/skills/architecture &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/architecture inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/liuyi0808/android-review.git --path skills/architecture

Or copy the folder to ~/.gemini/skills/architecture yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/architecture:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/liuyi0808/android-review.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/architecture &&
cp -R "$tmp/skills/architecture" ~/.copilot/skills/architecture &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/architecture inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/liuyi0808/android-review.git

Then copy android-review/skills/architecture into your agent's skills folder as architecture. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Layered Architecture Rules
Defines the presentation, domain and data layers and the allowed dependency direction between them.
Package Structure Template
Provides a recommended Android package layout for di, data, domain and ui folders.
Architecture Review Format
Specifies a structured finding format with severity levels, file locations and refactoring fixes.
Hilt Dependency Injection Rules
Covers scopes, @Binds usage and which Android classes must not be injected into non-UI code.
Offline-First Data Patterns
Describes Room as the source of truth with background network refresh and separate DTO, entity and domain models.
Error Handling Strategy
Sets out Result-based error handling, exception mapping and sealed error hierarchies.
Modularization Guidance
Lists rules for feature modules, core modules and keeping the app module thin.

Good for

  • Design the package structure for a new Android app
  • Create a ViewModel, UseCase and Repository for a feature
  • Set up Hilt modules and scopes for an Android project
  • Review an Android codebase for layer dependency violations
  • Plan module boundaries for a multi-module Android app
  • Define an error handling approach for network and database failures

Architecture FAQ

What does Architecture need to run?

It has no scripts. It is a set of Markdown instructions and reference files for an agent working on a Kotlin Android codebase, and it uses Hilt, Room and Retrofit as its reference stack.

When does the agent load Architecture?

It loads when a task involves designing app structure, creating ViewModel, Repository or UseCase classes, setting up Hilt modules, planning module boundaries, reviewing layer dependencies, implementing offline-first data, defining error handling, or starting a new feature module.

Does Architecture change any files?

The skill itself only provides guidance and a review output format. It does not include scripts that modify code.

Which clients can use Architecture?

It is published in the android-review Claude Code plugin marketplace. It is a SKILL.md folder, so it can be used by agents that load that format.

How do I install Architecture in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/architecture to use it in all your projects, or to .claude/skills/architecture in one project. Or install the android-review plugin, which includes it: /plugin marketplace add liuyi0808/android-review, then /plugin install android-review@android-review.

Does Architecture run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Architecture?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Architecture?

The closest alternatives to Architecture are Android clean architecture, Architecture foundation, Improve architecture, Hexagonal architecture and Architecture review.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from liuyi0808/android-review

  1. Guides and reviews Jetpack Compose UI code with Material 3 patterns and accessibility

    • Open source
    • 21 GitHub stars
    • Developer tools
  2. Reviews Android Kotlin code for coroutines, Flow, null safety, type design and collections

    • Open source
    • 21 GitHub stars
    • Developer tools
  3. Audits Android Kotlin/Compose apps for performance problems and reports prioritized fixes

    • Open source
    • 21 GitHub stars
    • Developer tools
  4. Audits an Android app's Google Play submission for personal loan compliance and privacy

    • Open source
    • 21 GitHub stars
    • Legal and government
  5. Audits Android app code for security flaws against the OWASP MASVS v2.0 standard

    • Open source
    • 21 GitHub stars
    • Security