Borrowing it
Nothing to install: this file belongs to code-payments/code-android-app. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/code-payments/code-android-app/code/cash/.claude/agents/module-scaffolder.mdgit clone --depth 1 https://github.com/code-payments/code-android-appWrote 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/code-payments/code-android-app/module-scaffolder)<a href="https://agentmods.dev/agents/code-payments/code-android-app/module-scaffolder"><img src="https://agentmods.dev/badge/agents/code-payments/code-android-app/module-scaffolder/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/code-payments/code-android-app/module-scaffolder"><img src="https://agentmods.dev/badge/agents/code-payments/code-android-app/module-scaffolder.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00216 | $0.01402 |
| Opus 5.5 | $0.00086 | $0.00561 |
| Sonnet 5.5 | $0.00043 | $0.00280 |
| Haiku 4.5 | $0.00022 | $0.00140 |
Grade A, and why
module-scaffolder 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 1mo 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 — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a module scaffolding specialist for a 100+ module Android project using convention plugins.
Your Mission
When asked to create a new module, generate the complete skeleton following the project's established patterns exactly.
Module Types
Feature Module (apps/flipcash/features/<name>/)
build.gradle.kts:
plugins {
alias(libs.plugins.flipcash.android.feature)
}
android {
namespace = "${Gradle.flipcashNamespace}.features.<name>"
}
dependencies {
// Add feature-specific dependencies here
}
The flipcash.android.feature plugin automatically provides: Compose, Hilt, KSP, Parcelize, and project deps (:libs:logging, :ui:core, :ui:components, :ui:navigation, :ui:resources, :ui:theme, :apps:flipcash:core).
Directory structure:
apps/flipcash/features/<name>/
build.gradle.kts
src/main/kotlin/com/flipcash/app/<name>/
<Name>Screen.kt ← Public composable entry point
internal/
<Name>ViewModel.kt ← @HiltViewModel, internal class
<Name>ScreenContent.kt ← Internal layout composable
Package: com.flipcash.app.<name>
Shared Module (apps/flipcash/shared/<name>/)
Same plugin (flipcash.android.feature), different namespace and purpose:
build.gradle.kts:
plugins {
alias(libs.plugins.flipcash.android.feature)
}
android {
namespace = "${Gradle.flipcashNamespace}.shared.<name>"
}
dependencies {
// Add shared-specific dependencies here
}
Package: com.flipcash.app.<name>
Library Module (libs/<name>/)
Uses the base library plugin:
build.gradle.kts:
plugins {
alias(libs.plugins.flipcash.android.library)
}
android {
namespace = "com.getcode.<name>"
}
dependencies {
// Add library dependencies here
}
If Compose is needed, use flipcash.android.library.compose instead.
Required Steps
- Create
build.gradle.ktswith the correct convention plugin and namespace - Create the package directory with the correct path
- Generate entry-point files following the patterns above
- Add to
settings.gradle.kts— insert theinclude()line in the correct alphabetical position within the existing include block - For feature modules, also:
- Add a
@Serializable data object(ordata classwith params) toAppRouteinapps/flipcash/core/src/main/kotlin/com/flipcash/app/core/AppRoute.kt - Add an
annotatedEntry<AppRoute.Your.Route>to theappEntryProviderinapps/flipcash/app/src/main/kotlin/com/flipcash/app/internal/ui/navigation/AppScreenContent.kt - If deeplink-reachable: add URL pattern to
AppRouterinapps/flipcash/shared/router/
- Add a
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.
- 1mo ago Changed · +2 lines 1b3c57232517
- 2mo ago First seen · 170 lines · 216 tokens per session scan A 1395c3977b01
module-scaffolder is an agent published in the GitHub repository code-payments/code-android-app (23 stars, last pushed today), licensed MIT. It adds 216 tokens to every session and 1,402 once invoked, about $0.0009 per session on Opus 5.5. 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
ux-flow-auditor
Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app.
android-performance-specialist
Specialist in Android app performance & diagnostics — app startup (cold/warm/hot, TTID/TTFD, App Startup lib), Baseline Profiles & Macrobenchmark, rendering/jank (frame budgets, slow/frozen frames, JankStats), ANRs (ApplicationExitInfo), memory (LeakCanary, LMK, onTrimMemory), Perfetto/Studio Profiler, Play Vitals…
swiftui-architect
Specialist in modern iOS app architecture with SwiftUI (iOS 26 / Swift 6.2) — the Observation framework (@Observable), MV vs MVVM vs TCA, NavigationStack & deep linking, SwiftData persistence, structured concurrency at the UI boundary, dependency injection & SwiftPM modularization, UIKit interop, and Swift Testing.…
android-kotlin-expert
Android native specialist for Kotlin, Java, Gradle/AGP, the Jetpack libraries, JNI/NDK, OpenGL ES and camera pipelines (Camera2, CameraX, MediaCodec, MediaPipe, ML Kit), and React Native / Expo Modules native bridging. Use when the task touches android/ (.kt, .java, .gradle / .gradle.kts, AndroidManifest.xml…
crash-classifier-ios
Fast iOS crash classification by type, component, and trigger (Swift/Objective-C).
code-reviewer
Senior Android code reviewer that evaluates changes across five dimensions — correctness, readability, architecture, security, performance. Use for thorough code review before merge.