Agent Skill Loader

io.github.back1ply由 GitHub 帳號 back1ply 發布v1.2.1更新於 Oct 25, 2026

Dynamically load Claude Code skills into AI agents without copying files.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,把 Claude Code 技能資料夾以提示詞和工具形式提供給 AI 代理,無需複製檔案即可載入技能。

可以做什麼
在設定的資料夾中探索技能,可依名稱或描述篩選,並視需要讀取技能的 Markdown 說明,或在支援 MCP Prompts 的用戶端中作為斜線命令提示詞注入。把技能永久複製到專案的 .agent/skills 資料夾。在執行時新增、移除或列出技能搜尋路徑,並寫入專案設定檔。診斷掃描路徑、可讀性與警告資訊。透過檔案監看器在技能新增或移除時通知用戶端。
適用情境
當你維護一套 Claude Code 技能庫,並希望 Claude Desktop、Cursor 或其他 MCP 用戶端即時看到它們(作為斜線命令或由代理自行呼叫的工具)時使用。
執行需求
本機程序;需要 Node.js 18 或更新版本,可從 npm 全域安裝或從原始碼建置。技能資料夾會從預設的 Claude 外掛快取和專案層級 skill-paths.json 自動辨識;選用環境變數 MCP_SKILL_PATHS、MCP_WORKSPACE_ROOT 和 MCP_NO_WATCH 可調整路徑與關閉監看器。未宣告身分驗證。
安裝前請注意
install_skill 會把技能資料夾複製到工作區,manage_search_paths 會寫入 skill-paths.json,兩者都會變更磁碟檔案;目標路徑限制在目前工作區內。伺服器會讀取並掃描所設定的資料夾,請只指向你信任的資料夾。在 CI 中可用 MCP_NO_WATCH 關閉檔案監看器。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agent Skill Loader,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Agent Skill Loader 🧠

[npm version] [MCP Registry] [License: MIT] [Node.js Version] [TypeScript] [MCP]

Agent Skill Loader is a Model Context Protocol (MCP) server that acts as a bridge between your static Claude Code Skills library and dynamic AI agents (like Claude Desktop, Cursor, or any MCP client).

It exposes skills both as MCP Prompts (slash commands, zero tool calls needed) and as MCP Tools (for programmatic use). Skills are auto-discovered from configured directories and stay live — add a new SKILL.md and the client is notified automatically.

🚀 Features

  • MCP Prompts: Skills appear as slash commands in clients. No tool call needed to inject them.
  • Live updates: listChanged notification fires when skills are added or removed (via file watcher).
  • Discovery: list_skills — scans configured skill directories, with optional search filter.
  • Dynamic Learning: read_skill — fetches the SKILL.md content.
  • Persistence: install_skill — copies a skill permanently to your project.
  • Configuration: manage_search_paths — add/remove skill directories at runtime.
  • Troubleshooting: debug_info — diagnose configuration and path issues.

🛠️ Setup

Prerequisites

  • Node.js >= 18

Option A: Install from npm (Recommended)

bash
npm install -g agent-skill-loader

Then register in .mcp.json:

json
"agent-skill-loader": {  "command": "agent-skill-loader"}

Option B: Build from Source

bash
git clone https://github.com/back1ply/agent-skill-loader.gitcd agent-skill-loadernpm installnpm run build

Then register in .mcp.json:

json
"agent-skill-loader": {  "command": "node",  "args": ["<path-to-repo>/build/index.js"]}

📂 Configuration

The server automatically detects its workspace and aggregates skill paths from:

  1. Default: %USERPROFILE%\.claude\plugins\cache (Standard location)
  2. Dynamic Config: skill-paths.json (Located in the project root)

Environment Variables

VariableDescription
MCP_SKILL_PATHSJSON array or semicolon/comma-separated list of additional skill paths
MCP_WORKSPACE_ROOTOverride auto-detected workspace root
MCP_NO_WATCHSet to 1 to disable the file watcher (useful in CI)

Dynamic Path Management

You do not need to manually edit config files. Use the tool to manage paths at runtime:

  • Add: manage_search_paths(operation="add", path="F:\\My\\Deep\\Skills")
  • Remove: manage_search_paths(operation="remove", path="...")
  • List: manage_search_paths(operation="list") creates/updates skill-paths.json.

🤖 Usage

MCP Prompts (Slash Commands)

If your client supports MCP Prompts (Claude Desktop, Cursor, etc.), skills appear automatically as slash commands. Select a skill from the slash command menu to inject its content directly — no tool calls needed.

Tools

The agent has access to five tools:

  • list_skills(query?): Returns a JSON list of available skills. Optional query filters by name/description substring (case-insensitive).
  • read_skill(skill_name): Returns the markdown instructions for a skill.
  • install_skill(skill_name, target_path?): Copies the skill folder to .agent/skills/<name>. For security, target_path must be within the current workspace.
  • manage_search_paths(operation, path?): Add, remove, or list skill search paths.
  • debug_info(): Returns diagnostic information (paths, status, warnings).

Example Agent Prompt

"I need to write a DAX measure but I'm not sure about the best practices."

The agent will automatically call list_skills, find writing-dax-measures, call read_skill, and answer with expert knowledge. Or the user can invoke the skill directly as a slash command.

🔧 Troubleshooting

If skills aren't being discovered, use debug_info() to see:

  • search_paths: Which directories are being scanned
  • path_status: Whether each path exists and is readable
  • warnings: Any errors encountered during scanning (permission denied, empty files, etc.)

Example output:

json
{  "workspace_root": "C:/projects/agent-skill-loader",  "search_paths": {    "base": ["C:/Users/pc/.claude/plugins/cache"],    "dynamic": ["F:/My/Skills"],    "effective": ["C:/Users/pc/.claude/plugins/cache", "F:/My/Skills"]  },  "path_status": [    { "path": "C:/Users/pc/.claude/plugins/cache", "exists": true, "readable": true },    { "path": "F:/My/Skills", "exists": false, "readable": false }  ],  "skills_found": 12,  "warnings": [    { "path": "F:/My/Skills", "reason": "Directory does not exist" }  ]}

📦 Project Structure

  • src/index.ts: Main server logic (tools + prompts + watcher).
  • src/utils.ts: Skill scanning, description extraction, prompt helpers, debounce.
  • build/: Compiled JavaScript output.
  • package.json: Dependencies (@modelcontextprotocol/sdk, chokidar, zod).

🤝 Contributing

To add new skills, add a folder with a SKILL.md file to one of the watched directories. The server picks them up automatically and sends a listChanged notification — no restart required.

來源:README.md,提交 8e19c6b

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.2.1最新Oct 15, 2026
  2. v1.0.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分