Skip to content
Back to skills

Myopensupports

ASecurity

按序號列出本倉庫(agent-prompt-rules-system)open_supports/ 的支持包(OpenSpec、codegraph、gstack、pm-skills 等),產生安裝到目前專案的完整命令與安裝示例,移除專案中已安裝的支持包,並與倉庫索引同步清單。依賴環境變數 AGENT_RULES_REPO 指向本倉庫的本機克隆。

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add lamxy/agent-prompt-rules-system --skill myopensupports --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Myopensupports?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Myopensupports
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lamxy-myopensupports/badge)](https://www.skillsdirectory.com/skills/lamxy-myopensupports)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: myopensupports
description: 按序號列出本倉庫(agent-prompt-rules-system)open_supports/ 的支持包(OpenSpec、codegraph、gstack、pm-skills 等),產生安裝到目前專案的完整命令與安裝示例,移除專案中已安裝的支持包,並與倉庫索引同步清單。依賴環境變數 AGENT_RULES_REPO 指向本倉庫的本機克隆。
when_to_use: 使用者輸入 /myopensupports,或說「列出支持包」「安裝支持包 3」「這個專案裝 codegraph」「移除支持包」「同步支持包清單」時。整包場景配置用 myconfig;插件開關用 myplugins。
argument-hint: "[序號 | 序號 -- 參數… | remove 序號 | add Owner/Repo | sync] [--target 目錄]"
allowed-tools:
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports list)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports list *)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports install *)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports remove *)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports add *)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports sync)
  - Bash(python3 ~/.claude/skills/myopensupports/scripts/myopensupports sync *)
---

# 支持包管理

所有判斷交給腳本,不自己讀 INDEX 或拼命令。腳本命令要照字面單獨執行:寫成 `~/.claude/...`,不展開成絕對路徑、不加引號、不和其他命令串接、不重導向。

```sh
python3 ~/.claude/skills/myopensupports/scripts/myopensupports <子命令> [參數]
```

| 使用者輸入 | 執行 |
|---|---|
| 沒有內容,或要求列出 | `list` |
| 序號或包名(如 `3`、`codegraph` 對應的 `ost_…`) | `install <選擇>` |
| 序號加 `-- 參數…` | `install <選擇> -- <參數…>` |
| `remove <選擇>` | `remove <選擇>`(只印方案;實際刪除用 `remove-apply`,見下節) |
| `add`、`sync` | 先讀 `references/details.md` 再執行 |

- 目標專案預設為目前專案;使用者指定其他目錄時加 `--target <目錄>`。
- 自然語言描述(如「這個專案裝 codegraph」):先 `list` 找序號,再 `install`;對應不明確就問。
- 腳本輸出 `錯誤:` 且提到 `AGENT_RULES_REPO` 時,這是使用本技能的必要前提:把設定方法轉告使用者後停止,不自行設定環境變數或改用其他路徑。
- `注意:` 行照抄給使用者。

## 安裝與移除:給命令,由使用者執行

`install` 只印方案,不會安裝;`remove` 只印方案,不會刪除,真正刪除是方案裡給的 `remove-apply` 命令,只由使用者用 `!` 執行(全局 `autoAllowBashIfSandboxed: true` 讓沙箱內命令不跳權限提示,2026-11-05 實測,所以不能靠權限提示把關)。方案印出後:

1. 轉述重點:預設參數及其來源、其他可選參數、完整命令;安裝示例照錄腳本輸出的區塊。
2. install 用一次 AskUserQuestion 問參數(remove 不用問):
   - **參數**:「用預設參數(推薦)」或「自訂參數」。腳本顯示「無預設參數」時沒有命令,這題只給「自訂參數」。有「INDEX 標為不啟用/手動挑選」的 `注意:` 時,兩個選項都不標推薦,另加「取消(推薦)」並放在第一個。選自訂時請使用者輸入參數,再用 `install <選擇> -- <參數…>` 重跑腳本,取得新的完整命令。
3. 給出 `! <預演命令>` 與 `! <完整命令>`(照抄腳本輸出,不改引號),請使用者自己執行,建議先跑預演。Claude 不執行完整命令與 `remove-apply`:它們要寫入專案的 `.claude/skills/`,沙箱會擋,而全局設定 `allowUnsandboxedCommands: false` 讓 `dangerouslyDisableSandbox` 無效。
4. 使用者貼回失敗輸出時,原樣引用錯誤行與退出碼;只建議重跑失敗的那一條命令。

AskUserQuestion 不可用時,改用文字提問後停止。

上游工具本身的卸載命令(腳本輸出「上游工具本身的卸載」段)只轉述,不代為執行。

## 列出後的回覆

工具輸出已是完整清單,不要再轉成表格或重抄清單。回覆只含:

1. 有 `注意:` 行就照抄。
2. 下面的用法:

```
/myopensupports 3                 顯示第 3 個的安裝方案(預設參數、完整命令、安裝示例),不直接安裝
/myopensupports 3 -- <參數…>      用自訂參數產生命令;{PROJECT_DIR} 會換成專案路徑
/myopensupports 3 --target <目錄> 安裝到其他專案
/myopensupports remove 3          顯示移除方案;確認後才搬走專案中本倉庫產生的檔案(到備份目錄)
/myopensupports add Owner/Repo | sync    維護清單(從倉庫查找/與倉庫索引比對)
```

Files in this skill

  • SKILL.md4.7 KB
  • references/details.md5.1 KB
  • scripts/myopensupports25.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.