android-project-generator
FreeRuns bundled scriptsNot checkedGenerate Android projects that compile on the first real build, including optional JNI/NDK/CMake native setup. Use when creating new Android apps, configuring…
by oahc091,293 installs in other catalogsAbout this skill
Android Project Generator Skill
Purpose
Ensure AI-generated Android projects compile successfully on the first attempt by providing:
- Version compatibility knowledge — AGP/Gradle/JDK/Kotlin version matrices
- Standardized configuration templates — Complete, working Gradle configurations
- Environment detection — Adapt to local JDK/SDK versions
- Post-generation validation — Verify compilation succeeds
- APK build orchestration — Distinguish between scaffolding-only, build-failed, and compiled APK states
- Native integration guidance — Detect native intent and scaffold JNI/NDK/CMake-compatible project configuration
Runtime & Safety Requirements
Before using this skill on a production or sensitive machine, verify:
- Required binaries are present in PATH:
python,java, and at least one ofgradle/gradlew. - Android tooling is installed on disk for real build validation: Android SDK (platforms/build-tools/cmdline-tools/licenses), and optional NDK+CMake for native flows.
- Environment variables are correctly scoped:
JAVA_HOME(recommended),ANDROID_HOMEorANDROID_SDK_ROOT, optionalANDROID_NDK_HOMEorNDK_HOMEfor native workflows. - Local command execution is acceptable in the current host policy.
- Device interactions (
adb install,adb shell am start) are allowed for connected devices/emulators. - Build-time network access is acceptable (for Gradle wrapper/dependency resolution).
This skill runs local commands and may perform build/device operations; treat it as operational code, not documentation-only guidance. It does not request API keys, tokens, or cloud credentials by design.
Credentials
This skill does not require cloud credentials, API keys, or tokens.
It does rely on local environment variables and installed binaries/tooling:
- Env vars inspected/used:
JAVA_HOME,ANDROID_HOME/ANDROID_SDK_ROOT, and for native projectsANDROID_NDK_HOME/NDK_HOME. - Binaries/tooling expected:
java,gradle/gradlew, Android SDK/NDK on disk, and optionaladbfor install/launch verification.
The scripts do not intentionally exfiltrate data, but they do run subprocesses that may:
- access network resources (for Gradle wrapper/dependency downloads)
- interact with attached devices/emulators (
adb)
Package Scope
This repository is a skill package plus its own development test harness. Only the following paths are part of the skill:
SKILL.md,README.md,LICENSEreferences/— version matrix and configuration templatesscripts/detect_env.py,scripts/project_validator.py,scripts/build_flow.py
tests/, cache/, and reports/ are development-only and are excluded from the
release package (see .skillignore). All self-test tooling — test runner, report
generator, report renderer, and the sitecustomize cache helper — lives under
tests/.
The skill workflow never imports from or executes anything under tests/. If a
distributed copy of this package contains tests/, that is a packaging error, not
skill behaviour.
Tool Scope & Permission Boundaries
The skill requests no tool allow-list beyond ordinary local execution. Its explicit boundaries are:
| Dimension | Allowed | Not allowed |
|---|---|---|
| Reads | SKILL.md, references/, the target project directory, and the environment variables listed below |
Unrelated files outside the target project |
| Writes | Only the generated project directory (settings.gradle.kts, build.gradle.kts, app/**, wrapper files) and local.properties |
Any path outside the generated project |
| Executes | java -version, gradle/gradlew, adb (install/launch only) |
Arbitrary shells, package installs, credential or key access |
| Network | Gradle wrapper and dependency resolution | Any upload or exfiltration of local data |
| Credentials | None required, none requested | API keys, tokens, cloud credentials |
| Env vars read | JAVA_HOME, ANDROID_HOME/ANDROID_SDK_ROOT, ANDROID_NDK_HOME/NDK_HOME |
Anything else |
All subprocess invocations use argument lists (never a shell string), so no caller-controlled input is interpolated into a command line.
If the host policy forbids local command execution or device interaction, stop after
Phase 4 (file generation) and report the project as scaffolding_only.
When to Use This Skill
Trigger this skill when:
- Creating a new Android project from scratch
- Generating Gradle configuration files (
build.gradle.kts,settings.gradle.kts) - Setting up Android project structure
- Adding or planning C/C++ native code (
JNI,NDK,CMake,externalNativeBuild) - User asks to "create an Android app" or "generate an Android project"
- Debugging Gradle version compatibility issues
Workflow
Phase 1: Audit the Build Environment First
If the project is meant to build on the current machine, do not generate files yet. Audit the environment first:
python scripts/detect
Install android-project-generator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the android-project-generator skill do?
Generate Android projects that compile on the first real build, including optional JNI/NDK/CMake native setup. Use when creating new Android apps, configuring Gradle and version compatibility, validating assembleDebug readiness, or adding native modules.
How do I install the android-project-generator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the android-project-generator skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic