{
  "schemaVersion": "1.0",
  "item": {
    "slug": "claude-code-skill",
    "name": "Claude Code Agent",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Enderfga/claude-code-skill",
    "canonicalUrl": "https://clawhub.ai/Enderfga/claude-code-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/claude-code-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-code-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "examples/basic-mcp.ts",
      "examples/chat-store.ts",
      "mcp_config.example.json",
      "package.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "claude-code-skill",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T11:29:03.342Z",
      "expiresAt": "2026-05-08T11:29:03.342Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-code-skill",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=claude-code-skill",
        "contentDisposition": "attachment; filename=\"claude-code-skill-0.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "claude-code-skill"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/claude-code-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/claude-code-skill",
    "agentPageUrl": "https://openagent3.xyz/skills/claude-code-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claude-code-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claude-code-skill/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Description",
        "body": "MCP (Model Context Protocol) integration for OpenClaw/Clawdbot. Use when you need to:\n\nConnect and orchestrate MCP tool servers (filesystem, GitHub, etc.)\nPersist state across sessions with IndexedDB/localStorage\nSync sessions across multiple devices\n\nTriggers: \"MCP\", \"tool server\", \"sub-agent orchestration\", \"session sync\", \"state persistence\", \"Claude Code integration\""
      },
      {
        "title": "Installation",
        "body": "npm install openclaw-claude-code-skill"
      },
      {
        "title": "MCP Server Management",
        "body": "import { \n  initializeMcpSystem, \n  addMcpServer, \n  executeMcpAction, \n  getAllTools \n} from \"openclaw-claude-code-skill\";\n\n// 1. Initialize all configured servers\nawait initializeMcpSystem();\n\n// 2. Add a new MCP server\nawait addMcpServer(\"fs\", {\n  command: \"npx\",\n  args: [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"/tmp\"]\n});\n\n// 3. Get available tools\nconst tools = await getAllTools();\n\n// 4. Call a tool\nconst result = await executeMcpAction(\"fs\", {\n  method: \"tools/call\",\n  params: { name: \"read_file\", arguments: { path: \"/tmp/test.txt\" } }\n});"
      },
      {
        "title": "State Persistence",
        "body": "import { createPersistStore, indexedDBStorage } from \"openclaw-claude-code-skill\";\n\nconst useStore = createPersistStore(\n  { count: 0, items: [] },\n  (set, get) => ({\n    increment: () => set({ count: get().count + 1 }),\n    addItem: (item: string) => set({ items: [...get().items, item] })\n  }),\n  { name: \"my-store\" },\n  indexedDBStorage  // or omit for localStorage\n);\n\n// Check hydration status\nif (useStore.getState()._hasHydrated) {\n  console.log(\"State restored!\");\n}"
      },
      {
        "title": "Session Synchronization",
        "body": "import { mergeSessions, mergeWithUpdate, mergeKeyValueStore } from \"openclaw-claude-code-skill\";\n\n// Merge chat sessions from multiple sources\nconst mergedSessions = mergeSessions(localSessions, remoteSessions);\n\n// Merge configs with timestamp-based resolution\nconst mergedConfig = mergeWithUpdate(localConfig, remoteConfig);"
      },
      {
        "title": "Key Functions",
        "body": "FunctionPurposeinitializeMcpSystem()Start all MCP servers from configaddMcpServer(id, config)Add new server dynamicallyremoveMcpServer(id)Remove a serverpauseMcpServer(id)Pause a serverresumeMcpServer(id)Resume a paused serverexecuteMcpAction(id, req)Call a tool on specific servergetAllTools()List all available toolsgetClientsStatus()Get status of all MCP clientssetConfigPath(path)Set custom config file locationcreatePersistStore()Create Zustand store with persistencemergeSessions()Merge session arraysmergeWithUpdate()Merge with timestamp resolutionmergeKeyValueStore()Merge key-value stores"
      },
      {
        "title": "Configuration",
        "body": "Create mcp_config.json:\n\n{\n  \"mcpServers\": {\n    \"filesystem\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"/tmp\"],\n      \"status\": \"active\"\n    },\n    \"github\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-github\"],\n      \"env\": { \"GITHUB_TOKEN\": \"your-token\" },\n      \"status\": \"active\"\n    }\n  }\n}\n\nSet custom config path:\n\nimport { setConfigPath } from \"openclaw-claude-code-skill\";\nsetConfigPath(\"/path/to/mcp_config.json\");"
      },
      {
        "title": "Requirements",
        "body": "Node.js 18+\nTypeScript (optional but recommended)"
      },
      {
        "title": "Links",
        "body": "GitHub\nnpm\nMCP Specification"
      }
    ],
    "body": "OpenClaw Claude Code Skill\nDescription\n\nMCP (Model Context Protocol) integration for OpenClaw/Clawdbot. Use when you need to:\n\nConnect and orchestrate MCP tool servers (filesystem, GitHub, etc.)\nPersist state across sessions with IndexedDB/localStorage\nSync sessions across multiple devices\n\nTriggers: \"MCP\", \"tool server\", \"sub-agent orchestration\", \"session sync\", \"state persistence\", \"Claude Code integration\"\n\nInstallation\nnpm install openclaw-claude-code-skill\n\nCore APIs\nMCP Server Management\nimport { \n  initializeMcpSystem, \n  addMcpServer, \n  executeMcpAction, \n  getAllTools \n} from \"openclaw-claude-code-skill\";\n\n// 1. Initialize all configured servers\nawait initializeMcpSystem();\n\n// 2. Add a new MCP server\nawait addMcpServer(\"fs\", {\n  command: \"npx\",\n  args: [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"/tmp\"]\n});\n\n// 3. Get available tools\nconst tools = await getAllTools();\n\n// 4. Call a tool\nconst result = await executeMcpAction(\"fs\", {\n  method: \"tools/call\",\n  params: { name: \"read_file\", arguments: { path: \"/tmp/test.txt\" } }\n});\n\nState Persistence\nimport { createPersistStore, indexedDBStorage } from \"openclaw-claude-code-skill\";\n\nconst useStore = createPersistStore(\n  { count: 0, items: [] },\n  (set, get) => ({\n    increment: () => set({ count: get().count + 1 }),\n    addItem: (item: string) => set({ items: [...get().items, item] })\n  }),\n  { name: \"my-store\" },\n  indexedDBStorage  // or omit for localStorage\n);\n\n// Check hydration status\nif (useStore.getState()._hasHydrated) {\n  console.log(\"State restored!\");\n}\n\nSession Synchronization\nimport { mergeSessions, mergeWithUpdate, mergeKeyValueStore } from \"openclaw-claude-code-skill\";\n\n// Merge chat sessions from multiple sources\nconst mergedSessions = mergeSessions(localSessions, remoteSessions);\n\n// Merge configs with timestamp-based resolution\nconst mergedConfig = mergeWithUpdate(localConfig, remoteConfig);\n\nKey Functions\nFunction\tPurpose\ninitializeMcpSystem()\tStart all MCP servers from config\naddMcpServer(id, config)\tAdd new server dynamically\nremoveMcpServer(id)\tRemove a server\npauseMcpServer(id)\tPause a server\nresumeMcpServer(id)\tResume a paused server\nexecuteMcpAction(id, req)\tCall a tool on specific server\ngetAllTools()\tList all available tools\ngetClientsStatus()\tGet status of all MCP clients\nsetConfigPath(path)\tSet custom config file location\ncreatePersistStore()\tCreate Zustand store with persistence\nmergeSessions()\tMerge session arrays\nmergeWithUpdate()\tMerge with timestamp resolution\nmergeKeyValueStore()\tMerge key-value stores\nConfiguration\n\nCreate mcp_config.json:\n\n{\n  \"mcpServers\": {\n    \"filesystem\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-filesystem\", \"/tmp\"],\n      \"status\": \"active\"\n    },\n    \"github\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@modelcontextprotocol/server-github\"],\n      \"env\": { \"GITHUB_TOKEN\": \"your-token\" },\n      \"status\": \"active\"\n    }\n  }\n}\n\n\nSet custom config path:\n\nimport { setConfigPath } from \"openclaw-claude-code-skill\";\nsetConfigPath(\"/path/to/mcp_config.json\");\n\nRequirements\nNode.js 18+\nTypeScript (optional but recommended)\nLinks\nGitHub\nnpm\nMCP Specification"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Enderfga/claude-code-skill",
    "publisherUrl": "https://clawhub.ai/Enderfga/claude-code-skill",
    "owner": "Enderfga",
    "version": "0.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/claude-code-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/claude-code-skill",
    "agentUrl": "https://openagent3.xyz/skills/claude-code-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/claude-code-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/claude-code-skill/agent.md"
  }
}