Enderfga

Claude Code Agent

AI 智慧體v0.2.0
作者:Enderfga更新於 2026-05-18共 2 個版本 · 最新版本釋出於 2026-02-01claude-code-skill@clawhub_enderfga/claude-code-skill
Agent 框架記憶增強工具呼叫#GitHub#Orchestrate#Sync

據 AlphaMoat 統計,截至 2026-10,Claude Code Agent 累計下載 5,538 次、獲 0 個星標,按累計下載量在本次參與排名的 10,914 個 AI 技能中排名第 5,222 位,在「AI 智慧體」分類(1,632 個)中排名第 730 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
5538
星標
-
全站下載量排名
#5,222
全站前 48% · 「AI 智慧體」前 45%
平台累計下載星標評論
ClawHub ↗4540--
SkillHub ↗5538-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件展示新增 MCP 伺服器、呼叫工具、使用瀏覽器儲存儲存狀態,以及合併提供的會話記錄;並未證實裝置間自動傳輸。伺服器命令可能訪問檔案或憑據,應審查包與許可權,並保護持久化的聊天及工具資料。

資料釋出於 2026-10-29

可以用來做什麼

  • 審查 MCP 伺服器配置與訪問範圍
  • 呼叫已授權伺服器的工具
  • 規劃本地狀態儲存或會話記錄合併

什麼時候用

  • MCP 命令與訪問許可權已經審查時
  • 持久化內容和會話合併範圍已明確時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明 MCP 伺服器接入和會話記錄合併的方式及許可權風險;不要啟動伺服器或讀取會話。

月度資料趨勢

累計下載5538
3389454356972026-05 · 累計下載 35482026-06 · 累計下載 37222026-07 · 累計下載 40842026-08 · 累計下載 42192026-09 · 累計下載 45172026-10 · 累計下載 553826-0526-0926-10
星標-
0112026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -2026-10 · 星標 -26-0526-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-105538—-
2026-094517—-
2026-084219+3.3%-
2026-074084+9.7%-
2026-063722+4.9%-
2026-053548—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.5 KB · ClawHub v0.2.0
# OpenClaw Claude Code Skill

## Description

MCP (Model Context Protocol) integration for OpenClaw/Clawdbot. Use when you need to:
- Connect and orchestrate MCP tool servers (filesystem, GitHub, etc.)
- Persist state across sessions with IndexedDB/localStorage
- Sync sessions across multiple devices

Triggers: "MCP", "tool server", "sub-agent orchestration", "session sync", "state persistence", "Claude Code integration"
展開全部(共 139 行)

## Installation

```bash
npm install openclaw-claude-code-skill
```

## Core APIs

### MCP Server Management

```typescript
import { 
  initializeMcpSystem, 
  addMcpServer, 
  executeMcpAction, 
  getAllTools 
} from "openclaw-claude-code-skill";

// 1. Initialize all configured servers
await initializeMcpSystem();

// 2. Add a new MCP server
await addMcpServer("fs", {
  command: "npx",
  args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"]
});

// 3. Get available tools
const tools = await getAllTools();

// 4. Call a tool
const result = await executeMcpAction("fs", {
  method: "tools/call",
  params: { name: "read_file", arguments: { path: "/tmp/test.txt" } }
});
```

### State Persistence

```typescript
import { createPersistStore, indexedDBStorage } from "openclaw-claude-code-skill";

const useStore = createPersistStore(
  { count: 0, items: [] },
  (set, get) => ({
    increment: () => set({ count: get().count + 1 }),
    addItem: (item: string) => set({ items: [...get().items, item] })
  }),
  { name: "my-store" },
  indexedDBStorage  // or omit for localStorage
);

// Check hydration status
if (useStore.getState()._hasHydrated) {
  console.log("State restored!");
}
```

### Session Synchronization

```typescript
import { mergeSessions, mergeWithUpdate, mergeKeyValueStore } from "openclaw-claude-code-skill";

// Merge chat sessions from multiple sources
const mergedSessions = mergeSessions(localSessions, remoteSessions);

// Merge configs with timestamp-based resolution
const mergedConfig = mergeWithUpdate(localConfig, remoteConfig);
```

## Key Functions

| Function | Purpose |
|----------|---------|
| `initializeMcpSystem()` | Start all MCP servers from config |
| `addMcpServer(id, config)` | Add new server dynamically |
| `removeMcpServer(id)` | Remove a server |
| `pauseMcpServer(id)` | Pause a server |
| `resumeMcpServer(id)` | Resume a paused server |
| `executeMcpAction(id, req)` | Call a tool on specific server |
| `getAllTools()` | List all available tools |
| `getClientsStatus()` | Get status of all MCP clients |
| `setConfigPath(path)` | Set custom config file location |
| `createPersistStore()` | Create Zustand store with persistence |
| `mergeSessions()` | Merge session arrays |
| `mergeWithUpdate()` | Merge with timestamp resolution |
| `mergeKeyValueStore()` | Merge key-value stores |

## Configuration

Create `mcp_config.json`:

```json
{
  "mcpServers": {
    "filesystem": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
      "status": "active"
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": { "GITHUB_TOKEN": "your-token" },
      "status": "active"
    }
  }
}
```

Set custom config path:

```typescript
import { setConfigPath } from "openclaw-claude-code-skill";
setConfigPath("/path/to/mcp_config.json");
```

## Requirements

- Node.js 18+
- TypeScript (optional but recommended)

## Links

- [GitHub](https://github.com/Enderfga/openclaw-claude-code-skill)
- [npm](https://www.npmjs.com/package/openclaw-claude-code-skill)
- [MCP Specification](https://spec.modelcontextprotocol.io/)

「AI 智慧體」分類下的熱門技能

Enderfga 的其他技能

資料月份:2026-10 · 下載/星標數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。