mobile-pattern-extractor

mobile-pattern-extractor is an agent for coding agents from ahmed3elshaer/everything-claude-code-mobile. It costs 0 tokens per session (1,420 once invoked), scanned A, original, MIT.

An agent that examines Android and Kotlin code to find reusable mobile development patterns. It organizes patterns from areas such as Compose layouts, state management, and side effects.

In plain words
What is it for?
Use it after implementing or refactoring mobile features, during code review, or periodically to identify patterns for future Android projects.
Why use it?
It helps teams capture useful approaches from completed features, refactors, and reviews instead of losing that knowledge in the codebase.

Agent

Part of the everything-claude-code-mobile plugin — 12 skills, 26 commands, 17 agents, 3 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor
Clone the repo
git clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobile

Or install everything-claude-code-mobile, the plugin that ships this one along with the rest of its 12 skills, 26 commands, 17 agents, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mobile-pattern-extractor

README.md
[![agentmods](https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor.svg)](https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor)
Your own site
<a href="https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor"><img src="https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01420
Opus 5 $0.00000 $0.00710
Sonnet 5 $0.00000 $0.00284
Haiku 4.5 $0.00000 $0.00142

Measured 4d ago against content hash 339ba7011acb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mobile-pattern-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.opencode/agents/mobile-pattern-extractor.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mobile Pattern Extractor Agent

Analyzes codebases to extract and categorize mobile development patterns for continuous learning.

Purpose

This agent identifies reusable patterns in Android/Kotlin codebases and extracts them as instincts for the continuous learning system. It bridges the gap between V1 (immediate capture) and V2 (observational learning).

When to Use

Invoke this agent when:

  • A new feature has been implemented and patterns should be extracted
  • Code review reveals reusable patterns
  • Setting up a new mobile project for learning
  • After refactoring to capture new patterns
  • Periodically (e.g., weekly) to consolidate learning

Pattern Extraction Categories

1. Compose UI Patterns

Extract patterns for:

  • State Management: How state flows through composables
  • Recomposition Optimization: Stable keys, remember, derivedStateOf
  • Side Effects: LaunchedEffect, DisposableEffect usage
  • Layout Patterns: Box, Column, Row combinations

Look for:

// State hoisting
@Composable
fun MyScreen(
    uiState: UiState,
    onIntent: (Intent) -> Unit
) { ... }

// Stable keys
LazyColumn(items = list, key = { it.id }) { ... }

// Side effects
LaunchedEffect(key1) { ... }

2. MVI Architecture Patterns

Extract patterns for:

  • State Sealing: Sealed interfaces/classes for UI state
  • Intent Handling: User action processing
  • State Reduction: Reduce function patterns
  • Event Handling: One-time event emission

Look for:

sealed interface UiState { ... }
sealed interface Intent { ... }

fun onIntent(intent: Intent) {
    when (intent) {
        is Intent.Load -> loadData()
    }
}

3. Dependency Injection Patterns

Extract patterns for:

  • Koin Modules: Module organization
  • ViewModel Injection: koinViewModel usage
  • Repository Injection: factoryOf patterns
  • Scoped Dependencies: Android ViewModel scopes

Look for:

val appModule = module {
    factoryOf(::Repository)
    viewModel { MyViewModel(get()) }
}

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 216 lines · 0 tokens per session scan A 339ba7011acb

Subscribe to this mod's changes

mobile-pattern-extractor is an agent published in the GitHub repository ahmed3elshaer/everything-claude-code-mobile (65 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,420 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.