Skip to content
Agentmart
Submit a tool

android-static-analyzer

分析 Android 项目源码,用 LLM 从多维度生成 AI 自动化测试所需的先验知识文档,打包上报测试平台。核心价值:让 AI 测试 Agent 在运行前就知道「测什么、怎么断言、有哪些陷阱」。触发词:「分析我的 Android 项目」「生成测试画像」「理解这个 App 的业务」「提取测试先验知识」「帮我分析…

Skill by LeoYeAI

IndexedMIT★ 2,168
Write a review

Chalk Labs

Need help deploying android-static-analyzer?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/leoyeai-android-static-analyzer

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

分析 Android 项目源码,用 LLM 从多维度生成 AI 自动化测试所需的先验知识文档,打包上报测试平台。核心价值:让 AI 测试 Agent 在运行前就知道「测什么、怎么断言、有哪些陷阱」。触发词:「分析我的 Android 项目」「生成测试画像」「理解这个 App 的业务」「提取测试先验知识」「帮我分析 Android 源码」

Use cases: ml, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/android-static-analyzer

What's inside

Skill name
android-static-analyzer
Description
分析 Android 项目源码,用 LLM 从多维度生成 AI 自动化测试所需的先验知识文档,打包上报测试平台。核心价值:让 AI 测试 Agent 在运行前就知道「测什么、怎么断言、有哪些陷阱」。触发词:「分析我的 Android 项目」「生成测试画像」「理解这个 App 的业务」「提取测试先验知识」「帮我分析 Android 源码」
License
MIT
Instructions
511 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts
  • Instructions call the network

Agent Skills spec issues

  • body: 511 lines (spec recommends under 500)

Files (5)

  • SKILL.md
  • _meta.json
  • output_schema.json · references/
  • analyze.py · scripts/
  • extract_nav.py · scripts/

SKILL.md (first lines)

# Android Static Analyzer — AI 测试先验知识生成器

## 核心定位

AI 自动化测试要能"智能地"测试 App,需要知道以下 5 件事:
1. **测什么**(业务目标和范围)
2. **怎么走**(操作路径和前置状态)
3. **预期什么**(每一步操作后应该发生什么)
4. **如何断言**(怎么判断测试通过/失败)
5. **有哪些陷阱**(死路/外部依赖/不可逆操作)

本 Skill 从源码中提取上述所有信息,生成 **9 份文档**,打包成 static-profile。

**与 AITestSDK 分工**:
- AITestSDK(运行期)→ 控件树、NavEdge、Activity 清单、实时 UI 状态
- 本 Skill(编码期)→ 业务语义、断言依据、状态依赖、测试策略

**绝不重复** AITestSDK 已有的结构数据(Activity 数量、控件 ID 枚举等)。

---

## 执行步骤

### Step 1:获取项目路径

询问用户项目路径。也接受:APK、GitHub 链接、直接粘贴的代码。

### Step 2:读取核心源码

```bash
# 定位项目
find <path> -name "AndroidManifest.xml" -not -path "*/build/*" | head -3
find <path> -name "*Activity*.kt" -not -path "*/build/*"
find <path> -name "README*" -maxdepth 3 -not -path "*/build/*"
find <path> -name "build.gradle.kts" -not -path "*/build/*" | head -2
```

按优先级 `read` 每个文件前 300 行(优先读 Activity 源文件)。

**读取时重点关注:**
- `startActivity()` / `navigate()` → 页面跳转
- `Toast.makeText()` 的文本 → 操作反馈(成功/失败提示)
- `if/else + return` → 约束条件和阻断逻辑
- `isEnabled` / `isVisible` / `visibility = View.GONE/VISIBLE` → UI 状态变化
- 硬编码字符串(特殊校验码、账号、特定数值)
- `FLAG_ACTIVITY_CLEAR_TOP` → 清栈跳转(影响回退路径)
- 异步回调(网络请求完成后跳转等)

### Step 3:LLM 生成 8 份文档

拿到源码后,逐个生成以下文档。每份文档聚焦一个维度,独立分析。

---

#### 📋 文档1:业务全景(Business Overview)

```
分析维度:
- App 属于什么业务领域
- 核心功能模块有哪些
- 哪些功能已实现 vs 暂未开放(仅 Toast)
- 技术栈(从 build.gradle 推断导航框架/网络库/DI 框架)

输出 JSON:
{
  "businessType": "移动电商/工具/社交/...",
  "summary": "一句话描述这个 App 是干什么的",
  "modules": ["模块名: 功能描述"],
  "unimplemented": ["功能名: 现状描述(如:点击仅弹Toast)"],
  "techStack": {
    "navigation": "startActivity / Jetpack Navigation",
    "network": "Retrofit / 无网络",
    "di": "Hilt / 无"
  }
}
```

---

#### 🔄 文档2:用户旅程地图(User Journey Map)

```
分析维度:
- 用户从 Launcher Activity 开始的所有完整路径
- 每条路径的触发方式和前置条件
- 每个步骤的关键控件 ID
- 路径的终点和预期状态
- 是否存在快捷路径(绕过正常流程)

输出 JSON:
{
  "journeys": [
    {
      "name": "流程名(如:核心购买流程)",
      "priority": "P0必测/P1重要/P2可选",
      "steps": [
        {
          "step": 1,
          "page": "LoginFlowActivity",
          "action": "输入用户名和密码,点击登录",
          "keyControls": ["et_username", "et_password", "btn_login"],
          "waitCondition": "等待页面跳转或 Toast 出现"
        }
      ],
      "preconditions": ["前置状态:App 处于未登录状态"],
      "expectedFinalState": "页面跳转至 HomeFlowActivity"
    }
  ]
}
```

---

#### ✅ 文档3:验证点与断言(Assertions)

**这是最关键的文档。** AI 测试 Agent 需要知道每个操作后如何判断成功或失败。

```
分析维度:

From LeoYeAI/openclaw-master-skills, MIT.

More from LeoYeAI/openclaw-master-skills

Signals

Stars
2,168
Forks
325
Open issues
13
Last commit (this folder)
Jul 20, 2026 (3 months ago)
Last release
Jul 20, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
Website
myclaw.ai
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from LeoYeAI

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get android-static-analyzer running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying android-static-analyzer?

CallGet help
Cite this page

android-static-analyzer skill. Agent Mart. https://agentmart.dev/skills/leoyeai-android-static-analyzer (last updated 2026-10-24)