refactor(plugin 命名空間): generic 改名 shared
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
# jsc-generic — 跨 AI 助理共用規範 Plugin
|
||||
# jsc-shared — 跨 AI 助理共用規範 Plugin
|
||||
|
||||
一個可同時被 **Claude Code、Codex、Antigravity、OpenCode、GitHub Copilot** 使用的共用規範 plugin。
|
||||
核心是以 [Agent Skills(`SKILL.md`)](https://agentskills.io) 標準撰寫的共用 skills(唯一真實來源放在 `skills/`),
|
||||
搭配各助理各自的 plugin manifest,讓**同一個 repo** 可用各家**原生 plugin CLI** 安裝。
|
||||
在 Claude Code 與 Antigravity 中,skill 以 **`/jsc-generic:` 前綴**呼叫(例如 `/jsc-generic:spec-output`)。
|
||||
在 Claude Code 與 Antigravity 中,skill 以 **`/jsc-shared:` 前綴**呼叫(例如 `/jsc-shared:spec-output`)。
|
||||
|
||||
---
|
||||
|
||||
## 前綴與呼叫方式
|
||||
|
||||
| 助理 | 安裝方式 | 呼叫 | `/jsc-generic:` 前綴 |
|
||||
| 助理 | 安裝方式 | 呼叫 | `/jsc-shared:` 前綴 |
|
||||
| --- | --- | --- | --- |
|
||||
| Claude Code | `claude plugin`(marketplace) | `/jsc-generic:<name>` 或自動觸發 | ✅ |
|
||||
| Claude Code | `claude plugin`(marketplace) | `/jsc-shared:<name>` 或自動觸發 | ✅ |
|
||||
| Codex | `codex plugin`(marketplace) | `$<name>` 或 `/skills` 選單 | ❌(用 `$name`) |
|
||||
| Antigravity | `agy plugin install` | `/jsc-generic:<name>` 或自動觸發 | ✅ |
|
||||
| Antigravity | `agy plugin install` | `/jsc-shared:<name>` 或自動觸發 | ✅ |
|
||||
| OpenCode | skills 目錄(複製/clone) | 描述需求自動觸發 | ❌(依名稱) |
|
||||
| GitHub Copilot CLI | `copilot plugin`(marketplace) | 自然語言或 plugin skills | ❌(無 `/jsc-generic:` 前綴) |
|
||||
| GitHub Copilot CLI | `copilot plugin`(marketplace) | 自然語言或 plugin skills | ❌(無 `/jsc-shared:` 前綴) |
|
||||
|
||||
> Codex 不支援自訂前綴(skill 以 `$name` 呼叫);OpenCode 由模型依描述自動呼叫;Copilot CLI 透過原生 plugin 安裝後以自然語言或 plugin skills 使用。三者皆**不強制**前綴。
|
||||
|
||||
@@ -26,15 +26,15 @@
|
||||
同一個 repo 同時帶四種 manifest,彼此以路徑隔離、互不干擾;各助理都讀同一份 `skills/`。
|
||||
|
||||
```
|
||||
generic/
|
||||
shared/
|
||||
├── .claude-plugin/
|
||||
│ ├── plugin.json # Claude 外掛定義(name: "jsc-generic")
|
||||
│ └── marketplace.json # Claude marketplace(name: "generic",source 指向本 repo)
|
||||
│ ├── plugin.json # Claude 外掛定義(name: "jsc-shared")
|
||||
│ └── marketplace.json # Claude marketplace(name: "shared",source 指向本 repo)
|
||||
├── .codex-plugin/
|
||||
│ └── plugin.json # Codex 外掛定義(name: "jsc-generic",skills: "./skills")
|
||||
│ └── plugin.json # Codex 外掛定義(name: "jsc-shared",skills: "./skills")
|
||||
├── .agents/plugins/
|
||||
│ └── marketplace.json # Codex marketplace(name: "generic",url source 指向本 repo)
|
||||
├── plugin.json # Antigravity 外掛定義(name: "jsc-generic",skills: "./skills/")
|
||||
│ └── marketplace.json # Codex marketplace(name: "shared",url source 指向本 repo)
|
||||
├── plugin.json # Antigravity 外掛定義(name: "jsc-shared",skills: "./skills/")
|
||||
├── hooks/
|
||||
│ └── hooks.json # hook 定義(SessionStart 載入角色並提示問候、UserPromptSubmit 點名載入切換角色、Stop 記錄記憶、SessionEnd 釋放角色鎖)
|
||||
├── scripts/
|
||||
@@ -42,13 +42,13 @@ generic/
|
||||
├── skills/ # ★ 唯一真實來源:所有 skills
|
||||
│ ├── spec-*/SKILL.md # 共用規範 skills(一規範一目錄)
|
||||
│ ├── plugins-install/ # 一次安裝/更新 jsc-code、jsc-doc、jsc-persona
|
||||
│ ├── plugins-uninstall/ # 一次移除 jsc-code、jsc-doc、jsc-persona、jsc-generic
|
||||
│ ├── plugins-uninstall/ # 一次移除 jsc-code、jsc-doc、jsc-persona、jsc-shared
|
||||
│ └── role/SKILL.md # 角色人格與長期記憶
|
||||
├── AGENTS.md # 跨助理共用指引
|
||||
└── README.md
|
||||
```
|
||||
|
||||
> generic 的定位是「**共用規範**」:`skills/spec-*` 是 code/doc plugins 共用的流程與安全規範。工作紀錄自動化 `worklog` 已移到 `doc` plugin。
|
||||
> shared 的定位是「**共用規範**」:`skills/spec-*` 是 code/doc plugins 共用的流程與安全規範。工作紀錄自動化 `worklog` 已移到 `doc` plugin。
|
||||
> 例外有兩類:`role` 是跨助理共用的**角色與記憶**能力,帶 `hooks/` 與 `scripts/`,適用範圍見下方「元件對各助理的適用範圍」;
|
||||
> `plugins-install`/`plugins-uninstall` 是**整組 plugin 的安裝管理**,一次處理所有 JSC plugin,不必逐個 repo 翻 README。
|
||||
|
||||
@@ -56,7 +56,7 @@ generic/
|
||||
|
||||
## 安裝 / 更新 / 移除(各助理)
|
||||
|
||||
> 指令中的 repo 網址換成你的:`https://gitea.jsc.idv.tw/plugins/generic.git`
|
||||
> 指令中的 repo 網址換成你的:`https://gitea.jsc.idv.tw/plugins/shared.git`
|
||||
>
|
||||
> **Claude / Codex 從 git URL 安裝(會 clone 遠端),請先把本 repo `push` 到 gitea。**
|
||||
> **Antigravity 的 `agy plugin install <url>` 目前只支援 github.com**;gitea 請改用「clone + 本地路徑」(見 Antigravity 節)。
|
||||
@@ -66,38 +66,38 @@ generic/
|
||||
|
||||
```bash
|
||||
# 安裝
|
||||
claude plugin marketplace add https://gitea.jsc.idv.tw/plugins/generic.git
|
||||
claude plugin install jsc-generic@generic
|
||||
claude plugin marketplace add https://gitea.jsc.idv.tw/plugins/shared.git
|
||||
claude plugin install jsc-shared@shared
|
||||
|
||||
# 更新
|
||||
claude plugin marketplace update generic
|
||||
claude plugin update jsc-generic@generic
|
||||
claude plugin marketplace update shared
|
||||
claude plugin update jsc-shared@shared
|
||||
|
||||
# 移除
|
||||
claude plugin uninstall jsc-generic@generic
|
||||
claude plugin marketplace remove generic
|
||||
claude plugin uninstall jsc-shared@shared
|
||||
claude plugin marketplace remove shared
|
||||
```
|
||||
|
||||
- 工作階段內 slash 版(等價):把 `claude plugin` 換成 `/plugin`。
|
||||
- 本機開發(免 push):`claude plugin marketplace add C:\Users\h3285\source\repos.plugins\generic`(本地路徑)後再 install。
|
||||
- **呼叫**:`/jsc-generic:<name>`(例 `/jsc-generic:spec-output`)。
|
||||
- 本機開發(免 push):`claude plugin marketplace add C:\Users\h3285\source\repos.plugins\shared`(本地路徑)後再 install。
|
||||
- **呼叫**:`/jsc-shared:<name>`(例 `/jsc-shared:spec-output`)。
|
||||
|
||||
### Codex
|
||||
|
||||
```bash
|
||||
# 安裝
|
||||
codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/generic.git
|
||||
codex plugin add jsc-generic@generic
|
||||
codex plugin marketplace add https://gitea.jsc.idv.tw/plugins/shared.git
|
||||
codex plugin add jsc-shared@shared
|
||||
|
||||
# 更新(重新抓取 marketplace 的 git 快照)
|
||||
codex plugin marketplace upgrade generic
|
||||
codex plugin marketplace upgrade shared
|
||||
|
||||
# 移除
|
||||
codex plugin remove jsc-generic@generic
|
||||
codex plugin marketplace remove generic
|
||||
codex plugin remove jsc-shared@shared
|
||||
codex plugin marketplace remove shared
|
||||
```
|
||||
|
||||
- 安裝 token `jsc-generic@generic` = plugin 名(`.codex-plugin/plugin.json` 的 `name`)@ marketplace 名(`.agents/plugins/marketplace.json` 的 `name`)。
|
||||
- 安裝 token `jsc-shared@shared` = plugin 名(`.codex-plugin/plugin.json` 的 `name`)@ marketplace 名(`.agents/plugins/marketplace.json` 的 `name`)。
|
||||
- 本 repo 的 Codex marketplace 以 `url` 來源指向自己,故 Codex **一律從 gitea 安裝**(需先 push);安裝後重啟 Codex。
|
||||
- **呼叫**:`$<name>`(例 `$spec-output`),或用 `/skills` 選單。
|
||||
|
||||
@@ -107,21 +107,21 @@ codex plugin marketplace remove generic
|
||||
|
||||
```bash
|
||||
# 安裝:clone 後用本地路徑
|
||||
git clone https://gitea.jsc.idv.tw/plugins/generic.git ~/plugins/generic
|
||||
agy plugin install ~/plugins/generic
|
||||
git clone https://gitea.jsc.idv.tw/plugins/shared.git ~/plugins/shared
|
||||
agy plugin install ~/plugins/shared
|
||||
|
||||
# 更新(agy 無 update 子指令 → git pull 後重裝)
|
||||
git -C ~/plugins/generic pull
|
||||
agy plugin uninstall jsc-generic
|
||||
agy plugin install ~/plugins/generic
|
||||
git -C ~/plugins/shared pull
|
||||
agy plugin uninstall jsc-shared
|
||||
agy plugin install ~/plugins/shared
|
||||
|
||||
# 移除
|
||||
agy plugin uninstall jsc-generic
|
||||
agy plugin uninstall jsc-shared
|
||||
```
|
||||
|
||||
- 若把 skills 放到 GitHub,則可直接 `agy plugin install https://github.com/<owner>/<repo>`。
|
||||
- 其他:`agy plugin list`、`agy plugin enable jsc-generic` / `disable jsc-generic`、`agy plugin validate <path>`。安裝後重啟工作階段。
|
||||
- **呼叫**:`/jsc-generic:<name>`(例 `/jsc-generic:spec-output`)或依描述自動觸發。
|
||||
- 其他:`agy plugin list`、`agy plugin enable jsc-shared` / `disable jsc-shared`、`agy plugin validate <path>`。安裝後重啟工作階段。
|
||||
- **呼叫**:`/jsc-shared:<name>`(例 `/jsc-shared:spec-output`)或依描述自動觸發。
|
||||
|
||||
### OpenCode
|
||||
|
||||
@@ -130,16 +130,16 @@ OpenCode 會讀 `~/.config/opencode/skills/`(也會讀 `~/.claude/skills/`、`
|
||||
|
||||
```bash
|
||||
# 安裝
|
||||
git clone https://gitea.jsc.idv.tw/plugins/generic.git ~/plugins/generic
|
||||
git clone https://gitea.jsc.idv.tw/plugins/shared.git ~/plugins/shared
|
||||
mkdir -p ~/.config/opencode/skills
|
||||
cp -r ~/plugins/generic/skills/* ~/.config/opencode/skills/
|
||||
cp -r ~/plugins/shared/skills/* ~/.config/opencode/skills/
|
||||
|
||||
# 更新
|
||||
git -C ~/plugins/generic pull
|
||||
cp -r ~/plugins/generic/skills/* ~/.config/opencode/skills/
|
||||
git -C ~/plugins/shared pull
|
||||
cp -r ~/plugins/shared/skills/* ~/.config/opencode/skills/
|
||||
|
||||
# 移除(逐一移除本 plugin 帶入的 skill 目錄;勿只清 spec-*,否則其他 skill 會殘留)
|
||||
for s in ~/plugins/generic/skills/*/; do rm -rf "$HOME/.config/opencode/skills/$(basename "$s")"; done
|
||||
for s in ~/plugins/shared/skills/*/; do rm -rf "$HOME/.config/opencode/skills/$(basename "$s")"; done
|
||||
```
|
||||
|
||||
> **Windows PowerShell**:`cp -r A B` → `Copy-Item A B -Recurse -Force`、`rm -rf X` → `Remove-Item X -Recurse -Force`、`~` → `$HOME`。
|
||||
@@ -152,19 +152,19 @@ Copilot CLI 支援與 Claude Code 類似的原生 plugin / marketplace 指令,
|
||||
|
||||
```bash
|
||||
# 安裝
|
||||
copilot plugin marketplace add https://gitea.jsc.idv.tw/plugins/generic.git
|
||||
copilot plugin install jsc-generic@generic
|
||||
copilot plugin marketplace add https://gitea.jsc.idv.tw/plugins/shared.git
|
||||
copilot plugin install jsc-shared@shared
|
||||
|
||||
# 更新
|
||||
copilot plugin marketplace update generic
|
||||
copilot plugin update jsc-generic@generic
|
||||
copilot plugin marketplace update shared
|
||||
copilot plugin update jsc-shared@shared
|
||||
|
||||
# 移除
|
||||
copilot plugin uninstall jsc-generic@generic
|
||||
copilot plugin marketplace remove generic
|
||||
copilot plugin uninstall jsc-shared@shared
|
||||
copilot plugin marketplace remove shared
|
||||
```
|
||||
|
||||
- 安裝 token `jsc-generic@generic` = plugin 名(plugin manifest 的 `name`)@ marketplace 名。
|
||||
- 安裝 token `jsc-shared@shared` = plugin 名(plugin manifest 的 `name`)@ marketplace 名。
|
||||
- `copilot plugin marketplace add` 支援 GitHub `owner/repo`、git URL 與本地路徑;Gitea repo 可用上方 HTTPS URL。
|
||||
- **呼叫**:在 Copilot CLI 中用自然語言描述需求,例如 `copilot -i "請使用 spec-output 說明輸出規範"`。
|
||||
|
||||
@@ -176,16 +176,16 @@ copilot plugin marketplace remove generic
|
||||
|
||||
| 助理 | headless 指令 | 執行 `spec-output` skill |
|
||||
| --- | --- | --- |
|
||||
| Claude Code | `claude -p "<prompt>"` | `claude -p "/jsc-generic:spec-output"` |
|
||||
| Claude Code | `claude -p "<prompt>"` | `claude -p "/jsc-shared:spec-output"` |
|
||||
| Codex | `codex exec "<prompt>"` | `codex exec '$spec-output'` |
|
||||
| Antigravity | `agy -p "<prompt>"` | `agy -p "/jsc-generic:spec-output"` |
|
||||
| Antigravity | `agy -p "<prompt>"` | `agy -p "/jsc-shared:spec-output"` |
|
||||
| OpenCode | `opencode run "<message>"` | `opencode run "說明 JSC 共用輸出規範的內容"` |
|
||||
| GitHub Copilot CLI | `copilot -p "<message>"` | `copilot -p "說明 JSC 共用輸出規範的內容"` |
|
||||
|
||||
- Claude / Antigravity 支援 `/jsc-generic:` 前綴,直接 `-p "/jsc-generic:<name>"` 即可。
|
||||
- Claude / Antigravity 支援 `/jsc-shared:` 前綴,直接 `-p "/jsc-shared:<name>"` 即可。
|
||||
- Codex 以 `$<name>` 觸發;在 shell 請用**單引號**避免 `$` 被展開:`codex exec '$spec-output'`。
|
||||
- OpenCode 與 Copilot 沒有前綴,用自然語言描述需求;Copilot CLI 會讀取已安裝 plugin 提供的 skills。
|
||||
- 帶引數就接在後面,例如 `claude -p "/jsc-generic:spec-output 參數"`、`codex exec '$spec-output 參數'`。
|
||||
- 帶引數就接在後面,例如 `claude -p "/jsc-shared:spec-output 參數"`、`codex exec '$spec-output 參數'`。
|
||||
|
||||
---
|
||||
|
||||
@@ -198,7 +198,7 @@ copilot plugin marketplace remove generic
|
||||
|
||||
### 共用規範(spec-*)
|
||||
|
||||
以下 skills 是 **code/doc plugins 各 skill 引用的共用規範**:其他 skill 內文以 `/jsc-generic:spec-<name>` 引用時載入;也可單獨呼叫查看規範內容。
|
||||
以下 skills 是 **code/doc plugins 各 skill 引用的共用規範**:其他 skill 內文以 `/jsc-shared:spec-<name>` 引用時載入;也可單獨呼叫查看規範內容。
|
||||
|
||||
| Skill | 類型 | 內容 |
|
||||
| --- | --- | --- |
|
||||
@@ -219,16 +219,16 @@ copilot plugin marketplace remove generic
|
||||
|
||||
| Skill | 用途 | 使用方法 |
|
||||
| --- | --- | --- |
|
||||
| `plugins-install` | 一次**安裝或更新** `jsc-code`、`jsc-doc`、`jsc-persona`:先盤點每個 plugin 已安裝或未安裝,未安裝就安裝、已安裝就更新到最新,最後以表格回報動作、結果與版本。Antigravity 走「clone + 本地路徑」,OpenCode 走複製 `skills/` | `/jsc-generic:plugins-install`;可帶 `--assistant claude\|codex\|copilot\|agy\|opencode`、`--plugins code,doc,persona`、`--host <gitea 主機>`、`--clone-dir <目錄>`、`--yes` |
|
||||
| `plugins-uninstall` | 一次**移除** `jsc-code`、`jsc-doc`、`jsc-persona`、`jsc-generic`:動手前先列出將被移除的項目與不會被碰的資料請使用者確認,移除順序固定把 `jsc-generic` 放最後(本 skill 就住在裡面)。人格倉庫與記憶目錄一律不刪 | `/jsc-generic:plugins-uninstall`;可帶 `--assistant …`、`--plugins code,doc,persona,generic`、`--keep-marketplace`、`--keep-clone`、`--yes` |
|
||||
| `plugins-install` | 一次**安裝或更新** `jsc-code`、`jsc-doc`、`jsc-persona`:先盤點每個 plugin 已安裝或未安裝,未安裝就安裝、已安裝就更新到最新,最後以表格回報動作、結果與版本。Antigravity 走「clone + 本地路徑」,OpenCode 走複製 `skills/` | `/jsc-shared:plugins-install`;可帶 `--assistant claude\|codex\|copilot\|agy\|opencode`、`--plugins code,doc,persona`、`--host <gitea 主機>`、`--clone-dir <目錄>`、`--yes` |
|
||||
| `plugins-uninstall` | 一次**移除** `jsc-code`、`jsc-doc`、`jsc-persona`、`jsc-shared`:動手前先列出將被移除的項目與不會被碰的資料請使用者確認,移除順序固定把 `jsc-shared` 放最後(本 skill 就住在裡面)。人格倉庫與記憶目錄一律不刪 | `/jsc-shared:plugins-uninstall`;可帶 `--assistant …`、`--plugins code,doc,persona,shared`、`--keep-marketplace`、`--keep-clone`、`--yes` |
|
||||
|
||||
> `plugins-install` **不處理 `jsc-generic` 自己**(它是這兩個 skill 的所在地);`plugins-uninstall` 則會,而且放在最後一步。
|
||||
> `plugins-install` **不處理 `jsc-shared` 自己**(它是這兩個 skill 的所在地);`plugins-uninstall` 則會,而且放在最後一步。
|
||||
|
||||
### 角色與記憶
|
||||
|
||||
| Skill | 用途 | 使用方法 |
|
||||
| --- | --- | --- |
|
||||
| `role` | 讓 CLI 以固定角色(name/nature/vibe/簽名 emoji)回覆,並把每輪對話累積成長期記憶:啟動時依字元預算載入高價值記憶,Stop hook 先本地過濾低價值回合以節省額度,睡眠時段(預設 22:00–06:00)由 NREM 鞏固與 REM 整合兩階段整理、去重、標籤化、建立關聯,並標記 semantic/episodic/procedural/emotional/preference/rule 與 explicit/implicit 後壓縮歸檔;新建角色時可只給角色名稱,必要時詢問來源/作品並推斷四欄描述,也可匯出角色定義、資產與記憶壓縮檔;角色檔名與記憶目錄使用英文大寫 ID | `/jsc-generic:role --new` 建立或更新角色、`--use <角色 ID>` 切換、`--list` 查角色與 ID、`--export <路徑>` 匯出角色、`--sleep` 立即整理、`--status` 診斷、`--install-cron` 安裝排程;對話中直接以名字點名(「西莉卡,…」/「@SILICA01 …」)可即時換角色 |
|
||||
| `role` | 讓 CLI 以固定角色(name/nature/vibe/簽名 emoji)回覆,並把每輪對話累積成長期記憶:啟動時依字元預算載入高價值記憶,Stop hook 先本地過濾低價值回合以節省額度,睡眠時段(預設 22:00–06:00)由 NREM 鞏固與 REM 整合兩階段整理、去重、標籤化、建立關聯,並標記 semantic/episodic/procedural/emotional/preference/rule 與 explicit/implicit 後壓縮歸檔;新建角色時可只給角色名稱,必要時詢問來源/作品並推斷四欄描述,也可匯出角色定義、資產與記憶壓縮檔;角色檔名與記憶目錄使用英文大寫 ID | `/jsc-shared:role --new` 建立或更新角色、`--use <角色 ID>` 切換、`--list` 查角色與 ID、`--export <路徑>` 匯出角色、`--sleep` 立即整理、`--status` 診斷、`--install-cron` 安裝排程;對話中直接以名字點名(「西莉卡,…」/「@SILICA01 …」)可即時換角色 |
|
||||
|
||||
`role` 的自動路徑由 hook 與 cron 完成,**建立角色後重開工作階段即生效**;非睡眠時段載入角色後,角色會在本工作階段第一則回覆開頭主動簡短問候一次。載入方式參考 OpenClaw 的分層概念:從角色檔抽出人格作為 `SOUL`,由 hook 產生固定操作邊界作為 `AGENTS`,再把同意狀態與高價值記憶作為 `USER/MEMORY` 注入,避免整份人格檔污染工程規則。感覺記憶不落檔,`inbox/` 作為工作記憶,睡眠整理後才進長期記憶;個人記憶保存同意狀態寫在 `~/.memory/<角色 ID>/state.json`,同意後不會每次重問。角色檔、記憶目錄、`.active` 與 `ROLE_NAME` 一律使用角色 ID(例如 `ENGINEER01`),`--list` 可查每個顯示名稱對應的 ID。沒有建立過角色的人完全不受影響(`~/.roles/.active` 不存在時 hook 立即結束)。同一個終端要臨時換角色不必改設定或重開 CLI:訊息開頭以名字點名即可由該角色接手(`UserPromptSubmit` hook),本階段之後的對話會記進被點名角色的記憶;真的要同時跟兩個角色對話則各開一個終端並設不同的 `ROLE_NAME`。細節見 `skills/role/SKILL.md`。
|
||||
|
||||
@@ -259,17 +259,17 @@ copilot plugin marketplace remove generic
|
||||
|
||||
1. 複製既有 skill 作範本:`cp -r skills/spec-output skills/<your-skill-name>`
|
||||
2. 編輯 `skills/<your-skill-name>/SKILL.md` 的 frontmatter:
|
||||
- `name`:小寫、數字、連字號(`-`),最長 64 字元。**這就是 Claude Code / Antigravity 的 `/jsc-generic:<name>`**。
|
||||
- `name`:小寫、數字、連字號(`-`),最長 64 字元。**這就是 Claude Code / Antigravity 的 `/jsc-shared:<name>`**。
|
||||
- `description`:第三人稱,寫清楚「何時用、何時不用」與觸發關鍵字 — 這是各助理自動載入的唯一依據。
|
||||
3. 在內文寫下 skill 的具體步驟。
|
||||
4. 手動把這個 skill 補進上方「Skills 目錄」區塊。
|
||||
5. **bump 版本並 push**:各助理都以 git 內容/版本判斷更新,請把 `.claude-plugin/plugin.json`、`.codex-plugin/plugin.json`、`plugin.json` 三個 manifest 的 `version` 一起 bump(規則見 `skills/spec-plugin-version/`),commit 後 push 到 gitea。
|
||||
6. 讓各助理更新:
|
||||
- Claude:`claude plugin update jsc-generic@generic`
|
||||
- Codex:`codex plugin marketplace upgrade generic`
|
||||
- Antigravity:`git -C ~/plugins/generic pull && agy plugin uninstall jsc-generic && agy plugin install ~/plugins/generic`(路徑與上方 Antigravity 安裝節一致)
|
||||
- Claude:`claude plugin update jsc-shared@shared`
|
||||
- Codex:`codex plugin marketplace upgrade shared`
|
||||
- Antigravity:`git -C ~/plugins/shared pull && agy plugin uninstall jsc-shared && agy plugin install ~/plugins/shared`(路徑與上方 Antigravity 安裝節一致)
|
||||
- OpenCode:`git pull` 後重新複製 `skills/`
|
||||
- Copilot:`copilot plugin marketplace update generic && copilot plugin update jsc-generic@generic`
|
||||
- Copilot:`copilot plugin marketplace update shared && copilot plugin update jsc-shared@shared`
|
||||
|
||||
> **skill 帶可執行元件時**(腳本、hook)額外注意:
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user