# Architecture

> Architecture is an open-source agent skill for developer tools. Guides an agent to structure Android apps with Clean Architecture, MVVM/MVI and Hilt. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/liuyi0808/android-review/tree/main/skills/architecture
- **Repository:** https://github.com/liuyi0808/android-review
- **GitHub stars:** 21
- **License:** MIT
- **Skill name:** architecture
- **Collection:** https://github.com/liuyi0808/android-review
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/liuyi0808/android-review/tree/HEAD/skills/architecture)
- [License: MIT](https://github.com/liuyi0808/android-review/tree/HEAD/skills/architecture)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Android clean architecture](https://ai-powered.com/skills/android-clean-architecture): Android clean architecture is an open-source agent skill for developer tools.
- [Architecture foundation](https://ai-powered.com/skills/architecture-foundation): Architecture foundation is an open-source agent skill for developer tools.
- [Improve architecture](https://ai-powered.com/skills/improve-architecture): Improve architecture is an open-source agent skill for developer tools.
- [Hexagonal architecture](https://ai-powered.com/skills/hexagonal-architecture-zerotechdebt): Hexagonal architecture is an open-source agent skill for developer tools.
- [Architecture review](https://ai-powered.com/skills/architecture-review): Architecture review is an open-source agent skill for developer tools.
- [Go architecture review](https://ai-powered.com/skills/go-architecture-review): Go architecture review is an open-source agent skill for developer tools.
- [Architecture reasoning](https://ai-powered.com/skills/architecture-reasoning): Architecture reasoning is an open-source agent skill for developer tools.
- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs): Documentation and adrs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/architecture
