搜索

PythonReactSEOPDF
OpenClaw

Claude Code Skill

OpenClaw Claude Code Skill

enderfga0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install enderfga/claude-code-skill

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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"

Installation

npm install openclaw-claude-code-skill

Core APIs

MCP Server Management
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
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
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, remoteConfi...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/enderfga/claude-code-skill
Version
—
Commit
2558af717acb58614fac69405649d09daee86512
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

OpenClaw Claude Code Skill

A skill package for OpenClaw / Claude Code that enables:

  • MCP (Model Context Protocol) integration for sub-agent orchestration
  • State persistence and context recovery across sessions
  • Session synchronization for multi-device support

Features

🔌 MCP Integration

Full implementation of the Model Context Protocol for managing AI tool servers:

  • Create and manage MCP client connections
  • Execute tool calls across multiple servers
  • Server lifecycle management (pause/resume/restart)
💾 State Persistence

Robust state management with automatic recovery:

  • IndexedDB storage with localStorage fallback
  • Hydration tracking to prevent data loss
  • Timestamp-based merge conflict resolution
🔄 Session Sync

Smart synchronization utilities:

  • Merge sessions from multiple sources
  • Preserve message history across devices
  • Key-value store merging

Installation

npm install openclaw-claude-code-skill
# or
yarn add openclaw-claude-code-skill

Quick Start

MCP Server Management
import {
  initializeMcpSystem,
  addMcpServer,
  executeMcpAction,
  getAllTools,
} from "openclaw-claude-code-skill";

// Initialize the MCP system
await initializeMcpSystem();

// Add a new MCP server
await addMcpServer("my-server", {
  command: "npx",
  args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
});

// Get all available tools
const tools = await getAllTools();
console.log(tools);

// Execute a tool call
const result = await executeMcpAction("my-server", {
  method: "tools/call",
  params: {
    name: "read_file",
    arguments: { path: "/path/to/file.txt" },
  },
});
State Persistence
import { createPersistStore, indexedDBStorage } from "openclaw-claude-code-skill";

// Create a persistent store
const useMyStore = createPersistStore(
  // Initial state
  { count: 0, ite...

来源内容

SKILL.md
# 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"

## 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, remoteConfi...
README
# OpenClaw Claude Code Skill

A skill package for [OpenClaw](https://github.com/openclaw/openclaw) / Claude Code that enables:

- **MCP (Model Context Protocol)** integration for sub-agent orchestration
- **State persistence** and context recovery across sessions
- **Session synchronization** for multi-device support

## Features

### 🔌 MCP Integration

Full implementation of the [Model Context Protocol](https://spec.modelcontextprotocol.io/) for managing AI tool servers:

- Create and manage MCP client connections
- Execute tool calls across multiple servers
- Server lifecycle management (pause/resume/restart)

### 💾 State Persistence

Robust state management with automatic recovery:

- IndexedDB storage with localStorage fallback
- Hydration tracking to prevent data loss
- Timestamp-based merge conflict resolution

### 🔄 Session Sync

Smart synchronization utilities:

- Merge sessions from multiple sources
- Preserve message history across devices
- Key-value store merging

## Installation

```bash
npm install openclaw-claude-code-skill
# or
yarn add openclaw-claude-code-skill
```

## Quick Start

### MCP Server Management

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

// Initialize the MCP system
await initializeMcpSystem();

// Add a new MCP server
await addMcpServer("my-server", {
  command: "npx",
  args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/dir"],
});

// Get all available tools
const tools = await getAllTools();
console.log(tools);

// Execute a tool call
const result = await executeMcpAction("my-server", {
  method: "tools/call",
  params: {
    name: "read_file",
    arguments: { path: "/path/to/file.txt" },
  },
});
```

### State Persistence

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

// Create a persistent store
const useMyStore = createPersistStore(
  // Initial state
  { count: 0, ite...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.