/ 目錄 / 演練場 / claude-code-skill-factory
● 社群 alirezarezvani ⚡ 即開即用

claude-code-skill-factory

作者 alirezarezvani · alirezarezvani/claude-code-skill-factory

元技能工具包:互動式建構器,為你生成可直接用於生產環境的 Claude Skills、代理程式、斜線指令與鉤子。

Skill Factory 是一套引導式建構器集合,包含 Factory Guide、Skills Guide、Prompts Guide、Agents Guide、Hooks Guide,以及 /build、/validate-output、/install-skill 等斜線指令。你描述需求,它就會自動產生 SKILL.md、範例、參考資料,並打包成可直接放入 ~/.claude/skills/ 的 ZIP 檔。內建 9 個生產就緒的技能,涵蓋 AWS、M365、內容研究與 CLAUDE.md 強化。

為什麼要用

核心特性

即時演示

實際使用效果

claude-code-skill-factory-skill.replay ▶ 就緒
0/0

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "claude-code-skill-factory-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alirezarezvani/claude-code-skill-factory",
        "~/.claude/skills/claude-code-skill-factory"
      ],
      "_inferred": true
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "claude-code-skill-factory-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alirezarezvani/claude-code-skill-factory",
        "~/.claude/skills/claude-code-skill-factory"
      ],
      "_inferred": true
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "claude-code-skill-factory-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alirezarezvani/claude-code-skill-factory",
        "~/.claude/skills/claude-code-skill-factory"
      ],
      "_inferred": true
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "claude-code-skill-factory-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alirezarezvani/claude-code-skill-factory",
        "~/.claude/skills/claude-code-skill-factory"
      ],
      "_inferred": true
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "claude-code-skill-factory-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/alirezarezvani/claude-code-skill-factory",
        "~/.claude/skills/claude-code-skill-factory"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "claude-code-skill-factory-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/alirezarezvani/claude-code-skill-factory",
          "~/.claude/skills/claude-code-skill-factory"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add claude-code-skill-factory-skill -- git clone https://github.com/alirezarezvani/claude-code-skill-factory ~/.claude/skills/claude-code-skill-factory

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: claude-code-skill-factory

如何在 10 分鐘內建立並打包一個新的 Claude Skill

👤 想要發布技能、但不想手寫 SKILL.md 樣板程式碼的開發者 ⏱ ~15 min beginner

何時使用: 你腦中有一套可重複執行的工作流程,想讓 Claude 將其打包成可安裝的技能。

前置條件
  • 已安裝 Skill Factory — git clone https://github.com/alirezarezvani/claude-code-skill-factory ~/.claude/skills/claude-code-skill-factory
步驟
  1. 執行 /build
    /build — I want a skill that audits a Next.js app for Core Web Vitals issues and outputs a Lighthouse-style report.✓ 已複製
    → Factory 提出釐清問題:觸發條件、工具類別、輸出格式
  2. 回答腳架問題
    Trigger on 'audit CWV' or Next.js project detected. Output markdown report with screenshots.✓ 已複製
    → 產生含有 frontmatter、範例用法、參考檔案的 SKILL.md 草稿
  3. 驗證並打包
    /validate-output✓ 已複製
    → frontmatter、目錄結構、範例完整性全數通過;ZIP 檔產生完成
  4. 安裝到本機
    /install-skill ./out/cwv-audit.zip✓ 已複製
    → 技能出現在 ~/.claude/skills 中,並被 Claude Code 自動偵測

結果: 一個可正常運作、已安裝完成的技能,下次符合條件的提示詞即可觸發。

注意事項
  • 技能對不相關的提示詞觸發過於頻繁 — 收緊 frontmatter 中的 'description'——Claude 依此決定是否載入該技能
  • SKILL.md 中的範例與實際行為不一致 — /validate-output 會重新執行範例並標示出不符之處
搭配使用: skills-skill-2

透過 Hooks Guide 設定 pre-commit 鉤子

👤 想要在特定事件上自動化 Claude Code 行為的團隊 ⏱ ~10 min intermediate

何時使用: 你希望在提示詞送出、工具使用或工作階段結束時自動執行某些動作,而不是由 Claude 自行選擇載入的技能。

步驟
  1. 啟動 Hooks Guide
    /build hook — run gitleaks on every Write tool call before Claude saves secrets✓ 已複製
    → Guide 詢問觸發事件:PreToolUse/PostToolUse/Stop
  2. 定義比對條件與指令
    Match Write tool calls, pipe file content through gitleaks detect, block on finding.✓ 已複製
    → 產生含有比對條件與指令的 settings.json 鉤子區塊草稿
  3. 安裝至使用者設定
    /install-hook — user scope✓ 已複製
    → ~/.claude/settings.json 已更新;下次工具呼叫將受到管控

結果: 一個在寫入發生前攔截機密外洩的鉤子。

注意事項
  • 鉤子執行過慢,導致每次工具呼叫都卡住 — 若檢查無需阻擋流程,改用 PostToolUse
搭配使用: claude-code-owasp-skill

使用研究驗證框架撰寫可重複使用的提示詞包

👤 為團隊建立一致性內部提示詞的提示詞工程師 ⏱ ~15 min beginner

何時使用: 你希望每位團隊成員都能使用符合 CO-STAR / RISEN 結構的提示詞,而無需背誦這些框架。

步驟
  1. 執行 Prompts Guide
    /build prompts — 5 presets for customer-support replies, CO-STAR structured✓ 已複製
    → Guide 列出可用框架,並詢問語氣/角色偏好
  2. 審閱並匯出
    Export as a prompt-pack skill so the whole team can install via git clone.✓ 已複製
    → 產生含有 SKILL.md、prompts/ 目錄、README 的技能套件

結果: 可透過一行 git clone 安裝、供全團隊共用的提示詞包。

搭配使用: prompt-architect-skill

組合

與其他 MCP 搭配,撬動十倍槓桿

claude-code-skill-factory-skill + prompt-architect-skill

Prompt Architect 負責調整個別提示詞;Skill Factory 將一組提示詞打包成可分享的技能

Have prompt-architect tighten these 5 prompts, then /build prompts and export as a skill pack.✓ 已複製
claude-code-skill-factory-skill + skills-skill-2

建立自己的技能時,以 Posit 的技能集合作為參考範本

Show me the structure of the Posit R-analysis skill, then /build a parallel Python-analysis skill modeled on it.✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
/build target: 'skill'|'agent'|'prompt'|'hook', description: str 建立任何新擴充的頂層入口點 interactive Claude session
/validate-output path: str 在發布技能前執行 0
/install-skill zip_or_path: str, scope?: 'user'|'project' 驗證通過後執行 0
/install-hook hook_definition Hooks Guide 產生草稿後執行 0
/sync-agents-md skill_path: str 跨 Cursor/Codex 等工具發布時執行 0
/factory-status - 建構器遺失時用於排錯 0

成本與限制

運行它的成本

API 配額
無——完全在 Claude Code 內部執行
每次呼叫 Token 數
完整建構工作階段約需 5k-20k tokens
費用
免費,消耗你的 Claude 訂閱額度。
提示
保持建構工作階段聚焦——果斷回答問題,避免對話因反覆修改而不斷擴展。

安全

權限、密鑰、影響範圍

憑證儲存: 無需憑證。Skill Factory 僅寫入 ~/.claude/skills 與 ~/.claude/settings.json。
資料出站: 除 Claude Code 本身外,無任何對外呼叫。

故障排查

常見錯誤與修復

/build not recognized

Skill Factory 未載入。請確認複製路徑,且 SKILL.md 位於儲存庫根目錄而非子目錄中。

驗證: ls ~/.claude/skills/claude-code-skill-factory/SKILL.md
Generated ZIP fails /install-skill

通常是 SKILL.md 中的 frontmatter 有打字錯誤。先執行 /validate-output,它會指出確切缺少的欄位。

Hook produces no output after install

比對條件過於嚴格。/factory-status 會顯示哪些事件正在觸發;請在 settings.json 中放寬比對條件。

驗證: cat ~/.claude/settings.json | jq .hooks

替代方案

claude-code-skill-factory 對比其他方案

替代方案何時用它替代權衡
skills-skill-2 (Posit skills)你只需要現成的技能,不需要建構自己技能的工廠無腳架功能,無鉤子建構器
Hand-writing SKILL.md你已建立過多個技能,熟悉其結構掌控度更高,但速度較慢,且無驗證功能

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills