exploration
Guides AppAgent's autonomous exploration and human demonstration flows that generate UI documentation.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- exploration
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides AppAgent's autonomous exploration and human demonstration flows that generate UI documentation.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md1.8 KB
- 参考文档references/workflows.md2.3 KB
- 脚本scripts/start_exploration.py2.8 KB
03 SKILL.md 正文
Exploration
Use this sub-skill when the task is to create or refresh the documentation base that AppAgent uses later during deployment.
What this sub-skill covers
- Autonomous exploration of an Android app.
- Human demonstration capture of a similar task.
- Document generation for UI elements after a demo.
- Output structure under
apps/<app>/demos/,apps/<app>/auto_docs/, andapps/<app>/demo_docs/.
When to route here
- The user wants to "explore" an app.
- The user wants to "teach" AppAgent by demonstration.
- The user needs to regenerate docs for a specific app.
- The user is asking why AppAgent has no documentation base for a target app.
Read first
references/workflows.mdfor the autonomous versus human-demo flow.references/troubleshooting.mdfor capture, prompt, and doc-generation failures.../../references/configuration.mdwhen the model backend or output directories need adjustment.../../references/api-reference.mdwhen you need parser or controller details.
Bundled script
Use the launcher in this sub-skill instead of trying to reconstruct the source launch sequence yourself:
scripts/start_exploration.py
It accepts an explicit --mode, uses subprocess calls rather than shell-string execution, and takes --repo-root <AppAgent checkout> when you are not already inside the repository.
Typical workflow
- Validate the environment with
../../scripts/check_setup.py --repo-root <AppAgent checkout>if the host/device status is uncertain. - Choose an app name and a writable
root_dir. - Run the bundled exploration launcher in
autonomousmode orhumanmode. - Review the generated docs in
auto_docs/ordemo_docs/. - If the UI meaning is still wrong, rerun with
DOC_REFINE=trueor manually edit the docs.
What to keep in mind
- Exploration is interactive and requires a live device and adb.
- The model backend must understand images; text-only backends are not enough.
step_recorder.pyanddocument_generation.pyare internal steps of the human-demo path.self_explorer.pyis the internal autonomous loop.- The exact model response format matters because the action parser is strict.
Common failure signals
- No device found.
- Invalid device size.
- Screenshot/XML capture failure.
- Malformed exploration or reflection response.
- Existing doc entry skipped because the UID already has documentation.
Useful outputs
apps/<app>/demos/<demo_name>/record.txtapps/<app>/demos/<demo_name>/task_desc.txtapps/<app>/auto_docs/*.txtapps/<app>/demo_docs/*.txt
Cross-links
- Use
../deployment/SKILL.mdafter docs are ready. - Use
../../references/troubleshooting.mdwhen the failure is shared across both phases.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).