forge-android-app
Skill2 starsChanged 2 days agoMITView on GitHub
Use when building an Android .apk from a web UI with Vite + Capacitor and proving it in the emulator (apk maken, telefoon app, android app bouwen, apk testen).
In this repository133 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- audio-designSkill
- brainstormingSkill
- camera-systemsSkill
- claude-md-improverSkill
- create-game-assetsSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- forge-a11ySkill
- forge-agent-reportSkill
- forge-agentSkill
- forge-apiSkill
- forge-audit-setupSkill
- forge-authSkill
- forge-autoresearchSkill
- forge-botsSkill
- forge-brainstormSkill
- forge-cliSkill
- forge-cmsSkill
- forge-code-reviewSkill
- forge-conductSkill
- forge-contextSkill
- forge-councilSkill
- forge-craftSkill
- forge-databaseSkill
- forge-dataSkill
- forge-debugSkill
- forge-deeplearnSkill
- forge-devopsSkill
- forge-docdriftSkill
- forge-doctorSkill
- forge-ecc-adapterSkill
- forge-ecommerceSkill
- forge-electronSkill
- forge-extensionSkill
- forge-figmaSkill
- forge-fullstackSkill
- forge-gameSkill
- forge-glass-uiSkill
- forge-graded-verifySkill
- forge-guardianSkill
- forge-heartbeatSkill
- forge-i18n-docsSkill
- forge-intakeSkill
- forge-integrationSkill
- forge-long-form-writingSkill
- forge-mcp-clientsSkill
- forge-memorySkill
- forge-migrationSkill
- forge-mindmapSkill
- forge-mlopsSkill
- forge-mobileSkill
- forge-model-routingSkill
- forge-n8nSkill
- forge-nightshiftSkill
- forge-observabilitySkill
- forge-paymentsSkill
- forge-plan-largeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Not for: React Native / Expo / Flutter / native Kotlin (forge-mobile), styling (forge-glass-ui), the network side (forge-remote-access).
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
forge-android-app: web UI to a real .apk (Vite + Capacitor 6)
Forge-native. Complements forge-mobile (general mobile gates); this is the concrete wrap-a-web-UI path with proof on this machine.
When to use
- The owner wants a phone app of an existing web UI (dashboard, Forge remote).
- Not for: React Native / Expo / Flutter / native Kotlin (
forge-mobile), styling (forge-glass-ui), the network side (forge-remote-access).
Steps (each ends on evidence)
- Pick versions. Capacitor 6 builds with JDK 17. Capacitor 7 needs JDK 21: do not use it unless JDK 21 is installed. Done when:
@capacitor/coremajor is 6. - Layout. The web app builds with Vite to
dist/;capacitor.confighasappId,appName,webDir: "dist". Local fonts and assets only (offline). Done when:dist/index.htmlexists and references no remote URL. - Add and sync.
npx cap add androidonce, thennpx cap syncafter every web build. Done when:android/exists and holds the newdistcopy. - Build. Run
node .claude/forge-bin/forge-device-env.cjsfirst and use what it prints: itsJavaline (the JDK folder is the one abovebin/java.exe; the version must be 17) and itsAndroid SDKline. Never copy a JDK patch folder or SDK path from another machine or an older note. Fromandroid/:gradlew assembleDebugwithJAVA_HOMEset to that JDK folder andANDROID_HOMEto that SDK. The apk lands inandroid/app/build/outputs/apk/debug/app-debug.apk. Done when: that file exists; quote its size. - Signing. Debug builds use the debug keystore, fine for the emulator. A release keystore and its passwords are an owner-gated secret: agents never create, read or print them. Without it, label release signing not-run.
- Network config. Android blocks cleartext
http://by default. Pick the narrowest rule that works: (a) best, serve https (for example a Tailscale*.ts.netcertificate) and keep cleartext off; (b) when the host is fixed at build time, anetwork-security-configdomain-configthat allows cleartext for that one host only; (c) only when the host is typed in at runtime (a Tailscale or LAN IP known at pairing, and Android cannot scope cleartext by IP range or CIDR), app-widecleartextTrafficPermitted="true"is allowed, and then all of these must hold: the app talks only to the one paired address, every call carries a per-device bearer token, the link is Tailscale (WireGuard-encrypted) or the owner's own LAN, and the reason plus the switch-off condition is written in the config file's comment and the app README. The WebView origin ishttps://localhost, so (c) also needsandroid.allowMixedContentincapacitor.config. Auth and pairing:forge-remote-access. Done when: the config file names which of (a), (b) or (c) applies and why. - Emulator proof. Use the output of
node .claude/forge-bin/forge-device-env.cjs(step 4): it prints the exact commands and the AVDs on this machine. Then: boot one of those AVDs,adb wait-for-device, wait forsys.boot_completed,adb install -r <apk>,aapt2 dump badging <apk>(package, version), launch withadb shell monkey -p <package> -c android.intent.category.LAUNCHER 1, screenshot withadb exec-out screencap -p > shot.pngfrom Git Bash (PowerShell redirection corrupts PNGs). Read the PNG. Done when: a launch screenshot shows the real first screen. - Stop.
adb -s <serial> emu kill. Never stop by process name; only an exact PID you own oremu kill.
Pitfalls
- A built apk is not a played apk: install and launch it.
- Forgetting
cap syncships the old UI. - WebView ignores
prefers-color-schemesurprises: test dark and light on the emulator. - Gradle first run downloads dependencies; give it time, do not assume a hang.
Verification
Quote: apk path and size, badging line, the screenshot path, and the emu kill result. Name any step not run.
See also
forge-mobile, forge-glass-ui, forge-remote-access.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

