Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2.9 KiB
2.9 KiB
name, description
| name | description |
|---|---|
| deploy | Batch install, update, or uninstall the whole jsc skill set on every installed AI CLI. Detect CLIs via detect-clis.sh, ask the user for the mode via decision tree, then run each CLI's native plugin commands with the unified jsc marketplace (token jsc-{domain}@jsc). Domain list comes from the plugins/meta marketplace.json, never hardcoded. Use for rollout or removal of the jsc plugins; not for a single skill. |
deploy — batch install, update, or uninstall the skill set
Steps
- Run
tools/detect-clis.shto find the installed CLIs and their executable paths. - Ask the user for the mode per the
jsc-ask:askrules:install/update/uninstall. Every option states its impact scope: which CLIs it touches and which configs it writes. - Get the domain list (never hardcode it; this skill follows automatically when domains are added or removed): read
plugins[].namefrom the unified marketplace viajsc-gitea/tools/gitea.sh api GET /repos/plugins/meta/raw/.claude-plugin/marketplace.json. The marketplace is unified asjsc({MKT}=https://gitea.jsc.idv.tw/plugins/meta.git); the install token isjsc-{domain}@jsc. - Run the matching commands for each CLI (add the marketplace once per CLI, then install per domain). This step MUST run as a sub agent (one sub agent per CLI):
| CLI | install | update | uninstall |
|---|---|---|---|
| claude | claude plugin marketplace add {MKT}, then per domain claude plugin install jsc-{domain}@jsc |
claude plugin marketplace update jsc, then per domain claude plugin update jsc-{domain}@jsc |
per domain claude plugin uninstall jsc-{domain}@jsc, finally claude plugin marketplace remove jsc |
| codex | codex plugin marketplace add {MKT}, then per domain codex plugin add jsc-{domain}@jsc |
codex plugin marketplace upgrade jsc |
per domain codex plugin remove jsc-{domain}@jsc, finally codex plugin marketplace remove jsc |
| copilot | copilot plugin marketplace add {MKT}, then per domain copilot plugin install jsc-{domain}@jsc |
copilot plugin marketplace update jsc, then per domain copilot plugin update jsc-{domain}@jsc |
per domain copilot plugin uninstall jsc-{domain}@jsc, finally copilot plugin marketplace remove jsc |
| antigravity | per domain git clone https://gitea.jsc.idv.tw/plugins/{domain}.git ~/plugins/{domain}, then agy plugin install ~/plugins/{domain} (agy cannot install from a gitea URL) |
git -C ~/plugins/{domain} pull, then agy plugin uninstall jsc-{domain} and install again |
agy plugin uninstall jsc-{domain} |
| kiro | same plugin commands as copilot (executable kiro-cli); if unsupported, copy each repo's skills/ into the kiro skills directory |
pull again, then copy again | delete the matching skills directories |
- After install or update, call
jsc-hooks:hooks-installto rewire the hooks. - Report the result and any failure reason for every CLI × mode.