Assistant Add Support logo

Assistant Add Support

Community
niki914
assistant-add-support

为语音助手宿主(如小布助手 Breeno 等)适配新版本 Xposed 接管支持。当用户要求支持新版本助手、适配助手应用更新、分析新版本 hook 点或解决宿主升级导致的接管失效时使用。

Overview

Publisherniki914
Repositoryzafiro
Skill nameassistant-add-support
Stars
305
Forks
50
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by niki914 on GitHub. Read the source before you install it.

Installation

Install the Assistant Add Support AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/niki914/zafiro/tree/main/.agents/skills/assistant-add-support
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/niki914/zafiro.git /tmp/zafiro
mkdir -p .claude/skills
cp -r /tmp/zafiro/.agents/skills/assistant-add-support .claude/skills/assistant-add-support
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Assistant Add Support in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Assistant Add Support on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Assistant Add Support is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

assistant-add-support

为语音助手宿主适配新版本 Xposed 接管支持:提取/分析 APK、比对 Hook 点变化、生成新版本配置并完成编译验证。

宿主分支

根据目标宿主查阅对应的核心类清单与指引:

  • Breeno(小布助手,com.heytap.speechassist):阅读 docs/BREENO.md
  • XiaoAi(小爱同学,com.miui.voiceassist):阅读 docs/XIAOAI.md(当前留空不支持)

前置环境与依赖门禁

1. REA (Reverse Engineer Anything) 门禁

优先使用 REA 分析引擎(MCP / CLI)审查 APK 内部类与方法签名。

  • 上游仓库:https://github.com/morluto/rea
  • 严格授权门禁:当且仅当 REA 不可用时,提示用户需先部署 REA,严禁私自自动安装或配置,由用户自主决定。

2. 提取与反编译工具

  • 使用项目内的 extract-apk 技能(.agents/skills/extract-apk/scripts/)定位并导出目标 APK。
  • 反编译按需进行:若需全局搜索则调用 decompile_apk.py,若只需针对性核对类结构可直接用 REA MCP 直连 APK。

适配流程

Phase 1: 确认目标版本

  1. 通过 adb -s <serial> shell dumpsys package <package_name> | grep -E "versionCode|versionName" 获取设备上的版本信息;
  2. 与用户确认目标版本号与 versionCode。

Phase 2: 提取 APK

运行 extract_apk.py 拉取当前版本 APK。根据分析需要决定是否执行全量反编译。

Phase 3: 调研现有 Hook 机理与签名比对

  1. 查阅宿主分支指引(如 docs/BREENO.md),了解宿主核心类角色;
  2. 以最近一个已支持版本的 app/src/main/res/raw/<package_name>_<prevVersion>_config.json 作为基准模板(配置结构即 Single Source of Truth);
  3. 在新版本中核对配置中涉及的每个类名、方法名与签名;
  4. 列出变动清单(未变 / 变动的具体点位)。

Phase 4: 实现新版本配置与编译验证

  1. 在 app/src/main/res/raw/ 新建 <package_name>_<versionCode>_config.json,填入新签名的配置;
  2. 在 app/src/main/res/raw/<package_name>_versions.json 追加新 <versionCode>;
  3. 在 app/src/main/java/a0/a0/a0/a0/a0/a0/Entrance.kt 的 configRawIdFor 中注册对应 raw 资源映射;
  4. 同步运行 ./gradlew :app:compileDebugKotlin 验证编译。

Phase 5: 交付与安装门禁(严格被动)

  • 严格被动原则:严禁主动向设备执行安装、推送或任何写操作!默认仅完成代码修改与编译验证,向用户汇报改动并等待代码审查(CR)。
  • 仅当用户明确要求安装时:
    1. 执行打包:./gradlew :app:assembleDebug
    2. 推送并使用 pm 安装:
      bash
      adb -s <serial> push app/build/outputs/apk/debug/app-debug.apk /data/local/tmp/app-debug.apk
      adb -s <serial> shell pm install -r -d -g /data/local/tmp/app-debug.apk
      adb -s <serial> shell rm -f /data/local/tmp/app-debug.apk
    3. 重启宿主使 Xposed 模块生效:adb -s <serial> shell am force-stop <package_name>

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Assistant Add Support AI skill do?

为语音助手宿主(如小布助手 Breeno 等)适配新版本 Xposed 接管支持。当用户要求支持新版本助手、适配助手应用更新、分析新版本 hook 点或解决宿主升级导致的接管失效时使用。

Why use Assistant Add Support on TypingMind?

Because you install it once and use it with any model. Assistant Add Support is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Assistant Add Support in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/niki914/zafiro/tree/main/.agents/skills/assistant-add-support. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Assistant Add Support?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Assistant Add Support?

As many as you like. As long as a model supports skills, you can use Assistant Add Support with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Assistant Add Support AI skill free?

Yes. It is published on GitHub by niki914 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇