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.
npx agentmods add agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractorgit clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobileWrote 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.
[](https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-pattern-extractor)<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>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.
| Model | Per session | Once 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 |
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.
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()) }
}
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.
- 4d ago First seen · 216 lines · 0 tokens per session scan A 339ba7011acb
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.
Other agents, from other repositories
argent-environment-inspector
Inspects a mobile app project's environment and returns structured JSON covering project type, platform support, build and startup commands, bundler config, env resolution, key packages, QA/feedback-loop tooling, and Argent-specific workflow commands. Works on any project — determines whether it is React Native, Expo…
layer1-patterns
Layer 1 scans the codebase for UI entry points - places where users can trigger navigation, sheets, or actions. The goal is to create a complete inventory of "things users can tap.".
Native SwiftUI Builder
Builds complex custom SwiftUI views using standard SwiftUI components with TTBaseUIKit design tokens (XView/XSize/XFont). Does NOT use TTBaseSUI wrapper components.
Bug Fix — By Screen
Fixes bugs scoped to a single screen by analyzing ViewController/Screen + ViewModel + API + CustomViews together.
Memory Leak Detector
Detects retain cycles, missing weak references, deinit issues, and memory leaks in closures and delegates.
Refactor UIKit Module
Refactors UIKit code for clean MVVM, extracts views, fixes constraint patterns, and enforces TTBaseUIKit compliance.