基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ARM-software/lavatube --skill validate-hardcoded命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | validate-hardcoded |
| description | Validate our hardcoded commands against code generated variants |
| metadata | {"short-description":"Validate lavatube's hardcoded command implementations to see if we missed anything"} |
tmpdir=$(mktemp -d /tmp/validate_hardcoded.XXXXXX)
cp generated/read_auto.cpp generated/read_auto.h \
generated/write_auto.cpp generated/write_auto.h \
generated/struct_read_auto.cpp generated/struct_write_auto.cpp \
"$tmpdir"/
Code diffs can now be created with eg diff -u "$tmpdir/write_auto.cpp" generated/write_auto.cpp.
3. In scripts/vkconfig.py set the lists hardcoded, hardcoded_write, hardcoded_read to empty (or if
a specific command is requested for validation, simply remove this command from the list).
4. In scripts/util.py set the variable bypass_checks to True
5. Rerun the script scripts/lava.py. This will generate code generated variants of these hardcoded commands.
6. Revert the changes made to the above scripts.
7. In scripts/vkconfig.py, for each command in the lists hardcoded, hardcoded_write, hardcoded_read
compare their hardcoded implementation in src/hardcode_read.cpp and src/hardcode_write with their
autogenerated variants in the generated/ folder. Assume that the hardcoded variant is older, and look for
things it may be missing compared to generated variant. It is hardcoded because we want to deviate from the
behaviour of this particular command, but we want it still to be a well-behaved member of the same family of
commands. So behaviour common to all commands should still be present, such as callbacks for replay and thaw
calls for capture.
8. Rerun scripts/lava.py to restore everything back to normal.
Diagnose physical Android device USB link speed, USB 2 vs. USB 3 negotiation, udev permissions, and cable/port bottlenecks
Run or debug lavatube's Android emulator capture workflow, especially tests/android_emulator_trace.sh, emulator setup, Android layer ABI selection, and verifying android traces.
Validate the lavatube documentation