# Android Architecture

> >

- **Type:** Skill
- **Install:** `agentstack add skill-felixgraeber-claude-android-audit-skill-android-architecture`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [FelixGraeber](https://agentstack.voostack.com/s/felixgraeber)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [FelixGraeber](https://github.com/FelixGraeber)
- **Source:** https://github.com/FelixGraeber/claude-android-audit-skill/tree/main/skills/android-architecture

## Install

```sh
agentstack add skill-felixgraeber-claude-android-audit-skill-android-architecture
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Android Architecture Assessment

Analyze an Android project's architecture patterns and score structural health.

## What This Checks

1. **Compose Adoption** — Ratio of Compose files to XML layouts; new screens in Compose
2. **UDF Pattern** — ViewModel + StateFlow/MutableStateFlow usage; `collectAsStateWithLifecycle`
3. **Dependency Injection** — Hilt (`@HiltViewModel`, `@Inject`, `@AndroidEntryPoint`) or Koin (`koinModule`, `viewModel()`)
4. **Navigation** — Type-safe Navigation 2.8+ with `@Serializable` routes vs legacy string-based
5. **Repository Pattern** — Data layer abstraction; Repository interfaces with implementations
6. **Module Structure** — Feature modules, core modules, UI/domain/data layering
7. **Single-Activity** — One Activity in manifest (or minimal), navigation via Compose/Fragments

## How to Run

```
/android architecture [path]
```

If no path provided, uses current working directory.

## Process

1. Run `scripts/scan_project.py` to discover project structure
2. Grep for architecture patterns in source files
3. Analyze module dependency graph from build files
4. Score each factor and produce findings

## Scoring

| Factor | Weight |
|--------|--------|
| Compose adoption | 20% |
| UDF pattern | 20% |
| Dependency injection | 15% |
| Navigation | 15% |
| Module structure | 15% |
| Repository pattern | 15% |

## Key Patterns to Grep

```
# Compose adoption
@Composable
setContent {

# UDF
: ViewModel()
StateFlow
MutableStateFlow
collectAsStateWithLifecycle

# DI
@HiltViewModel
@AndroidEntryPoint
@Inject
koinModule

# Navigation
@Serializable
NavHost
composable(

# Repository
: Repository
interface.*Repository
```

## Output

Produces findings with severity levels and actionable recommendations for each factor.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [FelixGraeber](https://github.com/FelixGraeber)
- **Source:** [FelixGraeber/claude-android-audit-skill](https://github.com/FelixGraeber/claude-android-audit-skill)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-felixgraeber-claude-android-audit-skill-android-architecture
- Seller: https://agentstack.voostack.com/s/felixgraeber
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
