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 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
5,538
星标
-
全站下载量排名
#5,222
全站前 48% · 「AI 智能体」前 45%
平台累计下载星标评论
ClawHub ↗4,540--
SkillHub ↗5,538-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档展示添加 MCP 服务器、调用工具、使用浏览器存储保存状态,以及合并提供的会话记录;并未证实设备间自动传输。服务器命令可能访问文件或凭据,应审查包与权限,并保护持久化的聊天及工具数据。

资料发布于 2026-10-29

可以用来做什么

  • 审查 MCP 服务器配置与访问范围
  • 调用已授权服务器的工具
  • 规划本地状态保存或会话记录合并

什么时候用

  • MCP 命令与访问权限已经审查时
  • 持久化内容和会话合并范围已明确时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明 MCP 服务器接入和会话记录合并的方式及权限风险;不要启动服务器或读取会话。

月度数据趋势

累计下载5,538
3,3894,5435,6972026-05 · 累计下载 3,5482026-06 · 累计下载 3,7222026-07 · 累计下载 4,0842026-08 · 累计下载 4,2192026-09 · 累计下载 4,5172026-10 · 累计下载 5,53826-0526-0926-10
星标-
0112026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -2026-10 · 星标 -26-0526-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-105,538—-
2026-094,517—-
2026-084,219+3.3%-
2026-074,084+9.7%-
2026-063,722+4.9%-
2026-053,548—-

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),按月更新。口径说明见数据方法。