From d61ab433953d94776b4469db06c2775b10c76dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Thu, 5 Nov 2026 15:07:35 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=93=9D=20scriptcat-userscript=20Skill?= =?UTF-8?q?=20=E6=94=B9=E4=B8=BA=E9=80=9A=E8=BF=87=20scriptscat/skills=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=B8=82=E5=9C=BA=E5=AE=89=E8=A3=85=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=20Codex=20=E6=8F=92=E4=BB=B6=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/agent/README.md | 2 +- skills/.codex-plugin/plugin.json | 8 ++++++++ skills/scriptcat-userscript/README.md | 18 ++++++++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 skills/.codex-plugin/plugin.json diff --git a/example/agent/README.md b/example/agent/README.md index 7031b8fdf..ed95094ca 100644 --- a/example/agent/README.md +++ b/example/agent/README.md @@ -2,4 +2,4 @@ Agent 相关的 Skills、Skill Scripts 和使用示例已迁移到独立仓库: -- **GitHub**: https://github.com/scriptscat/skills +- **GitHub**: https://github.com/scriptscat/scriptcat-skills diff --git a/skills/.codex-plugin/plugin.json b/skills/.codex-plugin/plugin.json new file mode 100644 index 000000000..80275bb3a --- /dev/null +++ b/skills/.codex-plugin/plugin.json @@ -0,0 +1,8 @@ +{ + "name": "scriptcat-userscript", + "description": "Write, fix and debug ScriptCat / Tampermonkey userscripts (page, background and scheduled scripts), then install and verify them in the user's browser through sctl.", + "homepage": "https://github.com/scriptscat/scriptcat/tree/main/skills/scriptcat-userscript", + "repository": "https://github.com/scriptscat/scriptcat", + "license": "GPL-3.0", + "skills": "./scriptcat-userscript" +} diff --git a/skills/scriptcat-userscript/README.md b/skills/scriptcat-userscript/README.md index 49bb66d6f..60abd3072 100644 --- a/skills/scriptcat-userscript/README.md +++ b/skills/scriptcat-userscript/README.md @@ -23,6 +23,24 @@ API 以 `src/types/scriptcat.d.ts` 和 `src/pkg/utils/script_compat.ts`(支持 ## 安装 +通过 [scriptscat/skills](https://github.com/scriptscat/skills) 插件市场安装,之后可以检查更新(更新方式见该仓库的 README)。 +建议同时安装 `sctl`。 + +```text +# Claude Code +/plugin marketplace add scriptscat/skills +/plugin install scriptcat-userscript@scriptcat + +# Codex +codex plugin marketplace add scriptscat/skills +codex plugin add scriptcat-userscript@scriptcat +``` + +插件市场从本仓库 `main` 分支的 `skills/` 目录取文件。Codex 要求插件根下有清单,所以 `skills/.codex-plugin/plugin.json` +指向本目录;目录改名或移动时同步修改它和插件市场的目录文件。 + +开发本 Skill 时改用软链,改动立即生效: + ```sh ln -s "$(pwd)/skills/scriptcat-userscript" ~/.claude/skills/scriptcat-userscript ln -s "$(pwd)/skills/scriptcat-userscript" ~/.codex/skills/scriptcat-userscript From 684fee93470055246330bd9ca1d7c7009e1e4d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Thu, 5 Nov 2026 15:36:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9D=20scriptcat-userscript=20Skill?= =?UTF-8?q?=20README=20=E8=A1=A5=E5=85=85=20npx=20skills=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/scriptcat-userscript/README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/skills/scriptcat-userscript/README.md b/skills/scriptcat-userscript/README.md index 60abd3072..fad870abd 100644 --- a/skills/scriptcat-userscript/README.md +++ b/skills/scriptcat-userscript/README.md @@ -23,8 +23,16 @@ API 以 `src/types/scriptcat.d.ts` 和 `src/pkg/utils/script_compat.ts`(支持 ## 安装 -通过 [scriptscat/skills](https://github.com/scriptscat/skills) 插件市场安装,之后可以检查更新(更新方式见该仓库的 README)。 -建议同时安装 `sctl`。 +下面两种方式任选一种,都可以检查更新,不要两种都装。建议同时安装 `sctl`。 + +用 [`npx skills`](https://skills.sh/)(可装进 Claude Code、Codex、Cursor 等多个代理;`npx skills check -g` 检查更新, +`npx skills update -g` 更新): + +```sh +npx skills add scriptscat/scriptcat -g +``` + +或者用 [scriptscat/skills](https://github.com/scriptscat/skills) 插件市场(更新方式见该仓库的 README): ```text # Claude Code From ca3355bcd0f3597e9a13d821972d950500f08e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=B8=80=E4=B9=8B?= Date: Thu, 5 Nov 2026 15:42:51 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=93=9D=20=E6=94=B9=E4=B8=BA=E5=8F=AA?= =?UTF-8?q?=E7=94=A8=20npx=20skills=20=E5=AE=89=E8=A3=85=20scriptcat-users?= =?UTF-8?q?cript=20Skill=EF=BC=8C=E7=A7=BB=E9=99=A4=20Codex=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/.codex-plugin/plugin.json | 8 -------- skills/scriptcat-userscript/README.md | 21 +++------------------ 2 files changed, 3 insertions(+), 26 deletions(-) delete mode 100644 skills/.codex-plugin/plugin.json diff --git a/skills/.codex-plugin/plugin.json b/skills/.codex-plugin/plugin.json deleted file mode 100644 index 80275bb3a..000000000 --- a/skills/.codex-plugin/plugin.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "scriptcat-userscript", - "description": "Write, fix and debug ScriptCat / Tampermonkey userscripts (page, background and scheduled scripts), then install and verify them in the user's browser through sctl.", - "homepage": "https://github.com/scriptscat/scriptcat/tree/main/skills/scriptcat-userscript", - "repository": "https://github.com/scriptscat/scriptcat", - "license": "GPL-3.0", - "skills": "./scriptcat-userscript" -} diff --git a/skills/scriptcat-userscript/README.md b/skills/scriptcat-userscript/README.md index fad870abd..9bf895adc 100644 --- a/skills/scriptcat-userscript/README.md +++ b/skills/scriptcat-userscript/README.md @@ -23,29 +23,14 @@ API 以 `src/types/scriptcat.d.ts` 和 `src/pkg/utils/script_compat.ts`(支持 ## 安装 -下面两种方式任选一种,都可以检查更新,不要两种都装。建议同时安装 `sctl`。 - -用 [`npx skills`](https://skills.sh/)(可装进 Claude Code、Codex、Cursor 等多个代理;`npx skills check -g` 检查更新, -`npx skills update -g` 更新): +用 [`npx skills`](https://skills.sh/) 安装,可以装进 Claude Code、Codex、Cursor 等多个代理。建议同时安装 `sctl`。 ```sh npx skills add scriptscat/scriptcat -g ``` -或者用 [scriptscat/skills](https://github.com/scriptscat/skills) 插件市场(更新方式见该仓库的 README): - -```text -# Claude Code -/plugin marketplace add scriptscat/skills -/plugin install scriptcat-userscript@scriptcat - -# Codex -codex plugin marketplace add scriptscat/skills -codex plugin add scriptcat-userscript@scriptcat -``` - -插件市场从本仓库 `main` 分支的 `skills/` 目录取文件。Codex 要求插件根下有清单,所以 `skills/.codex-plugin/plugin.json` -指向本目录;目录改名或移动时同步修改它和插件市场的目录文件。 +`npx skills check -g` 检查更新,`npx skills update -g` 更新。它按本目录的内容哈希判断有没有更新,所以本目录合入 `main` +的改动就会推给用户。 开发本 Skill 时改用软链,改动立即生效: