Package the apk-reverse skill as Claude Code and Codex plugins

Add a manifest and marketplace for each host. Both wrap the existing skills/apk-reverse/ tree without duplicating it. Document both install routes in both READMEs, switch all repository links to the Codeberg remote, and add offline manifest tests. A real install round-trip stays unverified: neither CLI is installed here.
This commit is contained in:
root committed 2026-12-03 23:22:09 +08:00
1 parent 93ec493d02
commit dd3d4e21b4
8 files changed
+324 -20

No files matched your search

+43 -9
View File
@@ -10,12 +10,12 @@
</p>
<p align="center">
<a href="https://github.com/newliver666/apk-reverse/stargazers"><img src="https://img.shields.io/github/stars/newliver666/apk-reverse?style=flat-square&label=stars&color=49454F" alt="stars"></a>
<a href="https://github.com/newliver666/apk-reverse/network/members"><img src="https://img.shields.io/github/forks/newliver666/apk-reverse?style=flat-square&label=forks&color=49454F" alt="forks"></a>
<a href="LICENSE"><img src="https://img.shields.io/github/license/newliver666/apk-reverse?style=flat-square&color=49454F" alt="license"></a>
<a href="https://codeberg.org/reverse-skill-lab/apk-reverse/stars"><img src="https://img.shields.io/badge/stars-codeberg-49454F?style=flat-square&logo=codeberg&logoColor=white" alt="stars"></a>
<a href="https://codeberg.org/reverse-skill-lab/apk-reverse/forks"><img src="https://img.shields.io/badge/forks-codeberg-49454F?style=flat-square&logo=codeberg&logoColor=white" alt="forks"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-49454F?style=flat-square" alt="license"></a>
<img src="https://img.shields.io/badge/python-3.9%2B-49454F?style=flat-square&logo=python&logoColor=white" alt="python">
<img src="https://img.shields.io/badge/platform-android-49454F?style=flat-square&logo=android&logoColor=white" alt="android">
<a href="https://github.com/newliver666/apk-reverse/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/newliver666/apk-reverse/ci.yml?style=flat-square&label=ci&color=49454F" alt="ci"></a>
<a href="https://codeberg.org/reverse-skill-lab/apk-reverse/src/branch/main/.github/workflows/ci.yml"><img src="https://img.shields.io/badge/CI-workflow-49454F?style=flat-square" alt="ci"></a>
</p>
<p align="center">
@@ -76,7 +76,7 @@
## 结构
`SKILL.md`、`references/` 与 `scripts/` 都在 skill 目录 `skills/apk-reverse/` 内。仓库根目录下的一切是跨 skill 共享的维护工具,不属于已安装的 skill。
`SKILL.md`、`references/` 与 `scripts/` 都在 skill 目录 `skills/apk-reverse/` 内。仓库根目录下的其他内容是跨 skill 共享的维护工具,不属于已安装的 skill —— 例外是插件清单(`.claude-plugin/`、`.codex-plugin/` 和 `.agents/plugins/`),它们只打包那一个 skill,自身不含任何 skill 内容。
```
SKILL.md 带 gate 的流程,不是背景阅读材料:
@@ -425,16 +425,50 @@ scripts/ 参数化、与路径无关
这个仓库是一个 **skills 仓库**:skill 位于 `skills/apk-reverse/`,这正是 `skills` CLI 解析的布局;安装是按名字进行的,而不是复制一个目录:
```
npx skills add newliver666/apk-reverse # install every skill in the repo
npx skills add newliver666/apk-reverse --list # list what is here, install nothing
npx skills add newliver666/apk-reverse --skill apk-reverse -y
npx skills use newliver666/apk-reverse@apk-reverse # use it once, without installing
npx skills add https://codeberg.org/reverse-skill-lab/apk-reverse # install every skill in the repo
npx skills add https://codeberg.org/reverse-skill-lab/apk-reverse --list # list what is here, install nothing
npx skills add https://codeberg.org/reverse-skill-lab/apk-reverse --skill apk-reverse -y
npx skills use https://codeberg.org/reverse-skill-lab/apk-reverse --skill apk-reverse # use it once, without installing
```
CLI 默认把 skill 软链进你的 agent 的 skills 目录(`--copy` 则生成独立副本),`-g` 为所有项目安装而不是仅当前项目。仓库里只有一个 skill 时,`--skill apk-reverse` 今天是多余的;这里把它写出来,是因为等第二个 skill 存在时,正是它用来选中单个 skill。
安装后,agent 在任务匹配其描述时加载 `SKILL.md`,并且只在需要时拉入 `references/*`。没有全局状态,没有与机器绑定的路径,也没有构建步骤。
### 也可作为插件安装(Claude Code / Codex)
同一个 skill 也被打包成这两款 agent CLI 的插件。插件把 skill 作为一个整体安装和升级;上面的 `npx skills add` 路线只安装 skill 目录,不需要任何一个插件。
**Claude Code** —— 把本仓库添加为 marketplace,再从中安装:
```
/plugin marketplace add https://codeberg.org/reverse-skill-lab/apk-reverse
/plugin install apk-reverse@apk-reverse
```
对应的 shell 命令是 `claude plugin marketplace add https://codeberg.org/reverse-skill-lab/apk-reverse` 和
`claude plugin install apk-reverse@apk-reverse`。安装后 skill 以 `/apk-reverse:apk-reverse` 调用。
要从本地检出直接加载而不安装,用 `claude --plugin-dir .`。
**Codex** —— 把同一个仓库添加为 marketplace,再加插件:
```
codex plugin marketplace add https://codeberg.org/reverse-skill-lab/apk-reverse
codex plugin add apk-reverse@apk-reverse
```
重启 Codex 让新 skill 生效;用 `$apk-reverse` 显式调用,或让描述匹配隐式触发。
`codex plugin list --json` 可以看装了什么。
插件文件只有清单 —— Claude Code 用 `.claude-plugin/plugin.json` 和
`.claude-plugin/marketplace.json`,Codex 用 `.codex-plugin/plugin.json` 和
`.agents/plugins/marketplace.json`。四份清单都指向 `skills/apk-reverse/` 下那唯一一份 skill,
skill 内容没有复制。
验证状态:文件已按两家公开的插件格式核对,并由 `tests/unit/test_plugin_manifests.py` 检查
(必填字段、路径解析和跨清单一致性)。写这份文档时机器上既没有 `claude` 也没有 `codex`,
所以真正的安装往返是 `unverified`;先跑一遍上面的命令,才能把它记作 `observed`。
## 环境要求
没有什么是强制的;每个脚本都自己检查所需。`skills/apk-reverse/scripts/doctor.py` 报告这里哪些工具存在、因此哪些脚本能跑,以及——这很有用——哪些工具存在于 PATH 之外。