Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

android-project-generator

БесплатноЗапускает вложенные скриптыНе проверен

Generate Android projects that compile on the first real build, including optional JNI/NDK/CMake native setup. Use when creating new Android apps, configuring…

oahc09от oahc091 293 установки в других каталогах

Об этом скилле

Android Project Generator Skill

Purpose

Ensure AI-generated Android projects compile successfully on the first attempt by providing:

  1. Version compatibility knowledge — AGP/Gradle/JDK/Kotlin version matrices
  2. Standardized configuration templates — Complete, working Gradle configurations
  3. Environment detection — Adapt to local JDK/SDK versions
  4. Post-generation validation — Verify compilation succeeds
  5. APK build orchestration — Distinguish between scaffolding-only, build-failed, and compiled APK states
  6. 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 of gradle/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_HOME or ANDROID_SDK_ROOT, optional ANDROID_NDK_HOME or NDK_HOME for 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 projects ANDROID_NDK_HOME/NDK_HOME.
  • Binaries/tooling expected: java, gradle/gradlew, Android SDK/NDK on disk, and optional adb for 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, LICENSE
  • references/ — version matrix and configuration templates
  • scripts/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
Полный SKILL.md на ClawHub

Установить android-project-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл android-project-generator?

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.

Как установить скилл android-project-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл android-project-generator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить android-project-generator с