Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计异常

androidandroid 搜索

Agent Skill

android 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

420

周安装

17

GitHub Stars

4

下载量

132
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:android(android 搜索)
来源仓库:https://github.com/alphaonedev/openclaw-graph
仓库路径:skills/android
安装命令:
npx skills add https://github.com/alphaonedev/openclaw-graph --skill android
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alphaonedev/openclaw-graph --skill android

简介

android 技能覆盖 Android SDK 设置、生命周期管理和 Material Design 实现。

  • 适用于原生应用开发中的权限申请、UI 构建与 Google Play 发布准备。
  • 支持活动/片段生命周期调试与响应式界面设计。
  • 安装命令为 npx skills add https://github.com/alphaonedev/openclaw-graph --skill android。
  • 需确保本地已配置 Android Studio 或等效开发环境。

SKILL.md

android

Purpose

This skill equips the AI to handle core Android development tasks, including SDK setup, managing activity and fragment lifecycles, implementing the permissions model, applying Material Design principles, and preparing apps for Google Play Store distribution. It focuses on practical implementation for efficient app building.

When to Use

Use this skill for Android app development scenarios, such as initializing projects with SDK tools, debugging lifecycle events (e.g., onPause or onDestroy), requesting runtime permissions, designing responsive UIs with Material components, or automating Play Store uploads. Apply it when working on mobile apps in the "mobile" cluster, especially for Google ecosystem integrations.

Key Capabilities

  • Set up Android SDK: Download and configure via SDK Manager with commands like sdkmanager --list to view packages.
  • Manage activity/fragment lifecycles: Implement methods like onCreate() for activities or onViewCreated() for fragments to handle state changes.
  • Handle permissions model: Use runtime checks with ContextCompat.checkSelfPermission() and request via ActivityCompat.requestPermissions().
  • Apply Material Design: Integrate components like MaterialButton or BottomNavigationView from the Material library.
  • Manage Play Store: Prepare app bundles and use Google Play Console API for uploads, requiring authentication with $GOOGLE_API_KEY.

Usage Patterns

To set up a new Android project:

  1. Use Android Studio or CLI: Run gradle init --type android-library to create a basic project.
  2. Add dependencies in build.gradle: e.g., implementation 'com.android.support:appcompat-v7:28.0.0'. For handling fragment lifecycles:
  3. Extend Fragment and override onCreateView() to inflate layouts.
  4. Use getActivity() in fragments to access activity context for permission requests. When requesting permissions:
  5. Check status first: If not granted, call requestPermissions() with a request code.
  6. Handle results in onRequestPermissionsResult() to proceed or show errors. For Material Design: Wrap layouts with CoordinatorLayout and add behaviors like app:layout_behavior="@string/appbar_scrolling_view_behavior".

Common Commands/API

- Activity lifecycle example: @Override protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.activity_main);} - Permissions request: if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED) {ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);} - Material Design component: <com.google.android.material.button.MaterialButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Click Me" /> - Fragment lifecycle: @Override public void onViewCreated(View view, Bundle savedInstanceState) {super.onViewCreated(view, savedInstanceState); // Initialize views here}

Integration Notes

Integrate Android SDK by setting environment variables: export ANDROID_HOME=/path/to/sdk and add to PATH. For Google services, include Google Play Services in build.gradle: implementation 'com.google.android.gms:play-services-auth:20.1.0' and use $GOOGLE_API_KEY for API calls (e.g., in HTTP requests: Authorization: Bearer $GOOGLE_API_KEY). When combining with other skills, ensure compatibility: For mobile cluster integrations, align with iOS skill for cross-platform configs; use JSON config files like {"apiKey": "$GOOGLE_API_KEY"} for Play Store automation scripts.

Error Handling

Handle permission errors by checking results in onRequestPermissionsResult(): If request is denied, log with Log.e("Permission", "Denied") and prompt user via AlertDialog. For lifecycle issues (e.g., NullPointerException in onDestroy), use try-catch blocks around resource releases. Common SDK errors: If sdkmanager fails, verify internet connectivity or use --verbose flag for details. For Play Store API, catch HttpException for 401 errors by re-authenticating with $GOOGLE_API_KEY. Always wrap API calls in try {...} catch (Exception e) {Log.d("Error", e.getMessage());}.

Concrete Usage Examples

  1. Implementing an activity with permission check: Create an activity to request camera access: public class CameraActivity extends AppCompatActivity {@Override protected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); if (ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED) {ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CAMERA}, 100);}}} Then build and run: ./gradlew assembleDebug && adb install app/build/outputs/apk/debug/app-debug.apk.
  2. Using Material Design for a login screen: Design a fragment with Material components: <com.google.android.material.textfield.TextInputLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <com.google.android.material.textfield.TextInputEditText android:hint="Username" /> </com.google.android.material.textfield.TextInputLayout> In the fragment: Override onCreateView() to inflate and handle user input, ensuring compatibility with activity lifecycle.

Graph Relationships

  • Related to cluster: mobile (shares mobile development concepts).
  • Connected to skills: ios (for cross-platform mobile strategies), google (via shared tags like "google" for ecosystem tools).
  • Links: sdk (direct overlap in Android SDK usage), permissions (common with web skills for access control).

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.78%
按下载量换算46

Claude

34.1%
按下载量换算45

Cursor

18.34%
按下载量换算24

Gemini CLI

9.96%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills