Community寫作與編輯github.com

rolecraft-sh/rolecraft

以安全為首要考量的 AI 代理技能管理器——每次安裝都會執行安全掃描。可管理 87 個代理的技能與 MCP 伺服器。零依賴 CLI。

rolecraft 是什麼?

rolecraft 是一款專為 AI 代理設計的技能管理器,支援 87 種代理(其中 27 種已獲官方驗證),讓您透過單一指令即可安裝、管理及維護技能。其零依賴、無需註冊表的架構,能簡化開發流程:您可以從本機資料夾、GitHub 儲存庫、GitLab 專案或 SSH Git URL 安裝技能,並利用鎖定檔在 CI/CD 管線中進行可重複的部署。內建的 `rolecraft doctor` 診斷命令與 `rolecraft verify` 驗證功能,可協助解決代理偵測、鎖定檔及 Node.js 相關問題;而安全掃描則能確保每次安裝都經過安全檢查。此外,rolecraft 也支援批次安裝、技能版本回溯、即時同步以及格式轉換(SKILL.md ↔ .mdc),適合用於團隊入職引導、跨代理設定與故障排除等場景。

相容平台✓Claude Code✓Codex CLI✓Cursor✓Gemini CLI✓OpenCode✓Windsurf
npx skills add rolecraft-sh/rolecraft

Installed? Explore more 寫作與編輯 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

rolecraft 是做什麼的?

只需一個指令,即可在 87 個 AI 代理(27 個已驗證)上安裝與管理技能。零依賴,無需註冊表。

使用時機

  • 安裝技能 — 從本機資料夾、GitHub 儲存庫、GitLab 專案或 SSH Git URL 安裝
  • 管理技能 — 列出、更新、移除及驗證已安裝的技能
  • CI/CD 管線 — 基於鎖定檔的可重複安裝,使用 rolecraft ci
  • 故障排除 — 使用 rolecraft doctor 診斷代理偵測、鎖定檔及 Node.js 問題
  • 團隊入職 — 單一指令即可批量安裝
  • 跨代理設定 — 同時安裝相同技能到多個代理

快速入門

# 無需安裝即可試用
npx rolecraft --help

# 建立技能
npx rolecraft init my-skill

# 從任何來源安裝
npx rolecraft install ./my-skill
npx rolecraft install user/repo
npx rolecraft install https://gitlab.com/org/project
npx rolecraft install [email protected]:user/repo.git

# 安裝到特定代理
npx rolecraft install user/repo --cursor --devin

# 檢查更新
npx rolecraft check

# 執行系統健康檢查
npx rolecraft doctor

# 列出已安裝的技能
npx rolecraft list

# 在 SKILL.md 與 .mdc 之間轉換格式
npx rolecraft convert ./my-skill

安裝命令

命令用途
rolecraft install <source>安裝技能(本機、GitHub、GitLab、SSH)
rolecraft init [name]建立新的 SKILL.md 腳手架(--template、--list)
rolecraft list顯示已安裝的技能
rolecraft check檢查是否有可用更新
rolecraft remove <slug>解除安裝技能
rolecraft update <slug>重新安裝到最新版本
rolecraft rollback <slug>從備份還原至前一個版本
rolecraft bundle <sources>從檔案或內嵌內容一次安裝多個技能
rolecraft ci從鎖定檔重新安裝(CI 模式)
rolecraft verify透過內容雜湊檢查技能完整性
rolecraft watch [<slug>]監視技能變更並自動同步
rolecraft search <query>在 GitHub 上搜尋技能
rolecraft doctor執行系統健康檢查
rolecraft agents-xml [--write]為 AGENTS.md 產生技能 XML
rolecraft use <source>預覽而無需安裝
`rolecraft completions bashzsh
rolecraft convert <source>在 SKILL.md 與 .mdc 格式之間轉換
rolecraft test <skill-path>使用內建斷言測試技能品質

常用標誌

標誌用途
--cursor、--devin、--claude、--codex指定目標代理
--all安裝到所有支援的代理
--yes / -y非互動模式(CI/CD)
--dry-run預覽而不實際進行變更
--symlink使用符號連結而非複製
--global / --project範圍選擇

支援的代理(共 87 個 · 27 個已驗證)

opencode、claude-code、cursor、windsurf、devin、codex、copilot、aider、cline、gemini-cli、cody、continue、warp、codeium、fabric、goose、tabnine、supermaven、pr-pilot、loom、roo、trae、hermes、kiro、augment、kilo、openhands、junie、factory、command-code、cortex、mistral-vibe、qwen-code、openclaw、codebuddy、mux、pi、omp (oh-my-pi)、autohand-code、rovo-dev、firebender、ibm-bob、aider-desk,以及另外 45 個。

範例

從 GitHub 安裝

rolecraft install vercel-labs/agent-skills --skill frontend-design

安裝到多個代理

rolecraft install ./my-team-rules --cursor --devin --copilot --all

CI 管線安裝

rolecraft ci --yes

建立並安裝自己的技能

rolecraft init my-skill
rolecraft install ./my-skill --all

連結

相關技能