Skip to main content

Agent skills and xfq CLI for private xfQTrace kits

Project description

xfqtrace-skills(技能仓库)

用于私有 xfQTrace kit 的 xfq CLI 和智能体技能。

安装

pipx install xfqtrace-skills

首次使用

# xfqtrace-kit zip 和密码请进入 x1a0f3n9 知识星球自取,公开 pip 包不内置私有 kit
xfq init ./xfqtrace-kit-<version>.zip -p <password>
# Windows 如果不想把 kit 放 C 盘,可以指定:
# xfq init ./xfqtrace-kit-<version>.zip -p <password> --dir D:\xfqtrace
xfq doctor --serial <device-serial>
xfq run test --serial <device-serial>                # 默认 xfinject;lite kit 需要设备已预装 com.shopee.vn

可选:

xfq set auto-update-check off
xfq run test --serial <device-serial> --inject-backend frida-server

常用命令

命令 作用
xfq paths 查看 kit 安装目录、配置文件路径
xfq doctor --serial <device> 只检查环境,不做清理
xfq doctor --serial <device> --install-kpm --kpm-superkey <key> 检查并按需加载 kit/bin/xfvmahide.kpm
xfq run test --serial <device> --dry-run 用当前真实 kit 检查将执行的命令;lite kit 不含 APK,Shopee 需预装
xfq clean --traces -y 清理本机 kit/examples 下的 trace/logcat 产物
xfq clean --all-versions -y 删除非当前版本的旧 kit
xfq update 更新 xfqtrace-skills 包并刷新技能
xfq skill install --target both --force 安装/刷新技能

安装目录

kit 安装在用户数据目录。Linux/macOS 默认走 XDG 风格目录,Windows 默认走 %LOCALAPPDATA%。具体以 xfq paths 实际输出为准。

$HOME/.local/share/xfqtrace/versions/<version>/   # Linux/macOS
%LOCALAPPDATA%/xfqtrace/versions/<version>/        # Windows

Windows 想改到 D 盘:

xfq init .\xfqtrace-kit-<version>.zip -p <password> --dir D:\xfqtrace

技能目录不受 --dir 影响,仍然是用户目录下的 .codex/skills / .claude/skills

关于 Shopee smoke

当前默认发布的是 lite kit,不内置 Shopee APK。xfq run test 仍然指向 com.shopee.vn 的 smoke 脚本,但要求设备上已经预装对应 app;只有 full kit 或手动放入 APK/XAPK 时,xfq run 才可能自动安装 APK。

智能体技能

xfq skill install --target both
xfq skill status

查看日志

xfq run 会把本轮产物放到:

<kit>/examples/<package>/xfqtrace_logs/<N>/

控制台会打印 Session dir 和最终 Output。重点看:

sed -n '1,200p' <output>/logcat.txt
cat <output>/crash_summary.txt
ls <output>/*.log.lz4

实时看设备日志:

adb -s <device-serial> logcat -v threadtime -s xfQTrace

更新

xfq 默认会检查 xfqtrace-skills 更新。检测到 CLI / skill 有新版本时,会提示输入 y/n

  • 输入 y:自动更新本地 pip 包,并刷新 Codex / Claude 已安装技能。
  • 输入 n:跳过本次更新。

也可以手动执行:

xfq update
xfq update -y

这个公开仓库不包含私有 kit、APK、辅助脚本或密码;kit/libxfqtrace 更新需要重新去知识星球下载 zip,然后再 xfq init <new-kit.zip> -p <password> --force

kit/bin 工具检查

xfq init 会显示 kit/bin 里的工具状态;xfq doctor --json 里也有 bundle.bundled_tools

  • 必须:libxfqtrace.soxfinjectd
  • 建议:lz4lz4.exepidcatpidcat.exe7z7z.exe
  • 可选:xfvmahide.kpm

默认后端是 xfinject,所以 kit 里缺 bin/xfinjectd 就不是“可选缺失”,而是这个 kit 不能正常跑默认链路,需要重新获取/安装完整 kit。

xj3 / frida-server 不打包进 kit。选择 --inject-backend frida-server 时,推荐设备侧 server 为 16.5.7,Python 侧推荐 frida==16.2.1frida-tools==12.0.0

样本反馈

如果一个样本跑不通,按最小材料格式反馈。尽量包含:

apk: <package / version / source>
json: <recipe.json or CONFIG snippet>
target: libxxx.so!0xoffset
sig: <optional JNI/RegisterNatives name/signature>
steps: <trigger steps + whether clear data/login needed>
backend: <xfinject | frida-server>
logs: <logcat/crash/trace dir>

sig 是 Java native 方法签名,例如 (Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xfqtrace_skills-0.1.2.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xfqtrace_skills-0.1.2-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file xfqtrace_skills-0.1.2.tar.gz.

File metadata

  • Download URL: xfqtrace_skills-0.1.2.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xfqtrace_skills-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dfabd20f5da4c3ab4c4148affbc7274ccaf0c6d98164fcd9d8da4f1a9daa21d8
MD5 5864041974cf83b208ff96c86b5800da
BLAKE2b-256 05c6b026e2bf483bfa7908743bc798e083d80909da3141a3204c1d90c0cc0110

See more details on using hashes here.

Provenance

The following attestation bundles were made for xfqtrace_skills-0.1.2.tar.gz:

Publisher: publish.yml on LunFengChen/xfqtrace-skills

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xfqtrace_skills-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: xfqtrace_skills-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 29.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for xfqtrace_skills-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 764cca1494bb47f16babe9ce8739db84f736a76223b88f38b8a621ad7f9de6e0
MD5 c90e2fb3ffec124f3e5ac4dc7f2acd44
BLAKE2b-256 6e13659cb50d87a97cf3c3072d5eb22e8cc24038564c830e357be1d7233737df

See more details on using hashes here.

Provenance

The following attestation bundles were made for xfqtrace_skills-0.1.2-py3-none-any.whl:

Publisher: publish.yml on LunFengChen/xfqtrace-skills

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page