Token导航 LogoToken导航

Agent Skill · 效率

android-project-generator(Android 项目生成器)

android-project-generator 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

android-project-generator 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 14,580。

总安装 3,352周安装 144GitHub Stars 公开资料未说明下载 1,175核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.3.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:android-project-generator(Android 项目生成器)
来源仓库:https://github.com/oahc09/android-project-generator
安装命令:
openclaw skills install android-project-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install android-project-generator

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

用于辅助前端页面、组件、样式和交互逻辑开发。适合在 OpenClaw 中维护前端项目、生成组件或检查界面实现。安装命令:openclaw skills install android-project-generator,适用于 OpenClaw 宿主。建议结合来源仓库和原始 README 继续核验具体用法。

安装前应确认权限范围和维护状态,避免触发不必要的联网或文件操作。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install android-project-generator;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

android-project-generator 怎么安装?

在终端执行 openclaw skills install android-project-generator。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

android-project-generator 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

android-project-generator 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

android-project-generator 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

android-project-generator 用的人多吗?

公开数据是累计安装 3,352 次,近一周安装 144 次,下载 1,175 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

android-project-generator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
android-project-generator

Android 项目生成器 · 本页

3,352—接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
android-project-generator
description
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.
description_en
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.
description_zh
生成以首次真实构建通过为目标的 Android 工程,并支持可选的 JNI/NDK/CMake Native 集成。当你需要创建新 Android 应用、配置 Gradle 与版本兼容性、验证 assembleDebug 可构建性,或接入 Native 模块时使用此技能。
license
MIT
metadata
author
oahcfly
version
1.3.0
category
mobile

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)

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_env.py

Treat this phase as mandatory for local project generation because most "AI generated Android project won't compile" failures are environment mismatches, not template mistakes.

This outputs:

  • JDK version → determines AGP version range
  • JAVA_HOME configuration and version
  • PATH java executable and version
  • Gradle CLI JDK source (JAVA_HOME vs PATH)
  • Android SDK path and build-tools versions
  • Installed Android platforms
  • cmdline-tools / licenses readiness
  • NDK version (if present)
  • Recommended configuration for the detected environment
  • Environment assessment with blocking issues and warnings

If ready_for_build is false:

  • Explain the blocking issues clearly
  • Prefer fixing the environment before generating a "build-ready" project
  • If the user still wants files generated, say the project is scaffolding-only until the environment issues are fixed

If the environment status is degraded:

  • Explain why the build is risky rather than blocked
  • Most commonly this means JDK 17 exists but JAVA_HOME is missing, so Gradle is falling back to PATH
  • Recommend aligning Android Studio, CLI Gradle, and project-level JDK configuration before claiming the build setup is stable

Phase 2: Select Configuration Profile

Base the profile on audited environment data, not guesswork:

ProfileAGPGradleJDKUse Case
stable8.7.08.917+Recommended for most projects
latest9.1.09.3.117+New features, Android 16+
legacy7.4.27.511+Older environments

Default to "stable" profile only when the environment is ready for it.

Use this decision order:

  1. If JDK 17+, platforms/android-35, and build-tools are present → use stable
  2. If user explicitly wants Android 16 / newest APIs and the environment supports it → use latest
  3. If JDK is 11-16 → use legacy
  4. If the environment is incomplete → stop and surface what is missing before claiming the project is build-ready

Native 触发策略(native_enabled):

  • 默认 native_enabled = false
  • 如果提示词命中强信号(如 JNI、NDK、CMake、externalNativeBuild、C++、native library、原生模块)→ 自动切到 native_enabled = true
  • 如果只命中弱信号(如 native、底层、性能优化)→ 先标记候选并二次确认,再决定是否开启
  • 若用户显式指定(例如 native_enabled=true/false),显式配置优先于关键词推断

Additional JDK rules:

  • Prefer a clearly configured JAVA_HOME over an accidental PATH java
  • If JAVA_HOME and PATH java disagree, treat that as a reproducibility risk and explain it
  • Prefer a project-level Gradle JDK setting for long-term consistency

Phase 3: Generate Project Structure

Always create the complete file structure:

ProjectName/
├── settings.gradle.kts
├── build.gradle.kts
├── gradle.properties
├── gradle/
│   └── wrapper/
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── app/
│   ├── build.gradle.kts
│   ├── src/
│   │   └── main/
│   │       ├── AndroidManifest.xml
│   │       ├── java/com/example/project/
│   │       │   └── MainActivity.kt
│   │       └── res/
│   │           ├── layout/
│   │           │   └── activity_main.xml
│   │           ├── values/
│   │           │   ├── strings.xml
│   │           │   └── themes.xml
│   │           └── mipmap-*/
│   │               ├── ic_launcher.png
│   │               └── ic_launcher_round.png
│   └── proguard-rules.pro
└── local.properties (create when sdk path is known and immediate CLI build is expected)

Important:

  • Do not stop at "mostly complete"
  • The generated project is not considered ready until wrapper files and validation are in place
  • If SDK path is known and the goal is immediate command-line build, create local.properties with sdk.dir=... to reduce local environment ambiguity
  • If the machine has JDK 17 but no stable project-level JDK selection, recommend GRADLE_LOCAL_JAVA_HOME or equivalent project-scoped JDK binding

Phase 4: Use Configuration Templates

Load templates from references/config-templates.md:

  • Use the "Golden Configuration: Stable" section for the "stable" profile
  • Use the "China Mirror" variant for users in China (detected by locale or explicit request)
  • Replace placeholders: MyApp, com.example.myapp, com.example.myapp.MainActivity
  • Keep namespace, applicationId, source package path, and theme names aligned
  • If generating a project that must build immediately, prefer the template path that includes local.properties

Phase 5: Make Gradle Wrapper Real, Not Placeholder

Before reporting the project as buildable, ensure the wrapper is genuinely usable:

  • Required files:

- gradlew - gradlew.bat - gradle/wrapper/gradle-wrapper.properties - gradle/wrapper/gradle-wrapper.jar

  • A gradle-wrapper.properties file alone is not enough
  • Placeholder scripts are not acceptable for a claimed "first build succeeds" result

Use one of these approaches:

  1. Copy wrapper files from a known-good template project
  2. Generate them with gradle wrapper --gradle-version <target-version> if Gradle is installed
  3. If neither is possible, explicitly say wrapper generation is incomplete and do not claim the project is ready for assembleDebug

You can use scripts/project_validator.py logic as the acceptance bar:

  • invalid package name => block
  • missing wrapper jar => block
  • placeholder wrapper scripts => block

Phase 6: Validate Compilation with a Real Build Loop

After generating all files, MUST run:

./gradlew assembleDebug

If compilation fails:

  1. Read the error message carefully
  2. Check version compatibility in references/version-matrix.md
  3. Check whether the failure is really caused by environment readiness, wrapper incompleteness, or template/config mismatch
  4. Fix one root cause at a time and retry
  5. Do not report success until assembleDebug passes with the generated project

If the wrapper is unavailable or the environment is missing mandatory SDK components:

  • Do not present the project as "verified buildable"
  • Say exactly which prerequisite prevented real verification

Phase 7: Confirm APK Output and Runtime Readiness

After assembleDebug, verify that the debug APK really exists:

app/build/outputs/apk/debug/app-debug.apk

Use scripts/build_flow.py concepts as the final status model:

  • scaffolding_only

- Files were generated - Build was not attempted because the environment was blocked

  • build_failed

- Gradle ran, but assembleDebug failed or no APK was produced

  • compiled

- assembleDebug succeeded and the debug APK exists

If a device or emulator is available, continue one more step:

  • install the debug APK
  • launch the main activity
  • only then classify the project as runnable

Additional final states:

  • install_failed

- APK exists - installation to device/emulator failed

  • launch_failed

- APK installed - main activity launch failed

  • runnable

- APK built - APK installed - main activity launched successfully

Only the compiled state should be described as:

  • environment normal
  • project buildable
  • APK produced

Only the runnable state should be described as:

  • environment normal
  • project buildable
  • app installable
  • app launch verified on device or emulator

Reference Files

Version Compatibility Matrix

See references/version-matrix.md for:

  • AGP 9.x / 8.x / 7.x version requirements
  • Kotlin compatibility with AGP
  • Gradle Wrapper configuration

Key rules:

  • AGP 8.0+ requires JDK 17 (non-negotiable)
  • AGP 9.x requires Gradle 9.1+
  • Always check the matrix when in doubt

Configuration Templates

See references/config-templates.md for:

  • Complete settings.gradle.kts template
  • Project-level and module-level build.gradle.kts
  • gradle.properties defaults
  • gradle-wrapper.properties format
  • Minimal MainActivity.kt and AndroidManifest.xml
  • China mirror configuration

Environment Detection Script

scripts/detect_env.py provides:

  • JDK version detection (parses java -version output)
  • Android SDK path discovery (ANDROID_HOME, ANDROID_SDK_ROOT, common paths)
  • Build-tools version listing
  • NDK version detection
  • Recommended configuration based on detected JDK

Run this script to adapt the generated project to the user's actual environment.

Critical Rules

  1. Never skip the validation step — Always run ./gradlew assembleDebug
  2. JDK 17 is mandatory for AGP 8.x+ — Do not generate AGP 8.x config if JDK < 17
  3. Use Kotlin DSL (.kts) — Groovy DSL is legacy, prefer build.gradle.kts
  4. Set correct namespace — AGP 8.0+ requires namespace in build.gradle, not manifest
  5. A real wrapper is mandatory for build claims — Do not rely on placeholder scripts
  6. Create local.properties when immediate local CLI build is required and sdk path is known
  7. Prefer explicit JDK selection — Align JAVA_HOME, Android Studio Gradle JDK, and project-level Gradle JDK settings
  8. Use Java toolchains — Declare the required Java toolchain instead of relying only on machine defaults
  9. Use Version Catalog for complex projects — Consider gradle/libs.versions.toml for larger projects

Common Mistakes to Avoid

MistakeFix
Missing namespace in app/build.gradle.ktsAdd namespace = "com.example.myapp" in android {} block
Wrong JDK version for AGP 8.xUse AGP 7.x if JDK < 17, or instruct user to install JDK 17
Inconsistent AGP/Gradle versionsCheck version-matrix.md, use recommended pairs
Missing or fake Gradle Wrapper filesAlways include gradlew, gradlew.bat, gradle-wrapper.properties, and gradle-wrapper.jar
Wrong compileSdk for AGP versionAGP 8.7+ requires compileSdk = 35, AGP 9.x requires compileSdk = 36
Missing SDK platform or build-toolsCheck environment audit before generation; install missing SDK components first
Build verified only in theoryDo not claim success without a real assembleDebug run
JAVA_HOME missing but PATH java existsTreat as degraded, not fully stable; recommend explicit JDK configuration
JAVA_HOME and PATH java point to different JDKsExplain that Gradle CLI will prefer JAVA_HOME, which can differ from shell expectations
assembleDebug succeeded but no APK foundTreat as build verification failure until app-debug.apk is confirmed
APK exists but install failsTreat as install_failed; do not claim the app is runnable
Install succeeds but launch failsTreat as launch_failed; do not claim runtime verification passed

Example Usage

User: "Create a new Android project called TodoApp"

AI Response:

  1. Load this skill
  2. Run detect_env.py (if possible)
  3. Check the environment assessment and confirm it is ready for a stable build
  4. Select "stable" profile (AGP 8.7.0, Gradle 8.9)
  5. Generate complete project structure from templates
  6. Replace placeholders: MyApp → TodoApp, com.example.myapp → com.example.todoapp
  7. Ensure real wrapper files exist, not placeholders
  8. Run ./gradlew assembleDebug
  9. Confirm app/build/outputs/apk/debug/app-debug.apk exists
  10. If a device or emulator is available, install the APK and launch the main activity
  11. Report compiled only if build + APK verification pass
  12. Report runnable only if build + install + launch all pass

This skill transforms Android project generation from a guessing game into an audited, verifiable build process.

平台分布

OpenClaw

87.69%
按下载量换算1,030

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills