{
  "schemaVersion": "1.0",
  "item": {
    "slug": "confucius-debug",
    "name": "Confucius Debug",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/sstklen/confucius-debug",
    "canonicalUrl": "https://clawhub.ai/sstklen/confucius-debug",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/confucius-debug",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=confucius-debug",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/analyze.sh",
      "scripts/search.sh"
    ],
    "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. 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. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/confucius-debug"
    },
    "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/confucius-debug",
    "agentPageUrl": "https://openagent3.xyz/skills/confucius-debug/agent",
    "manifestUrl": "https://openagent3.xyz/skills/confucius-debug/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/confucius-debug/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Confucius Debug — 孔子除錯",
        "body": "\"不貳過\" — Never repeat a mistake. (Confucius, Analects 6.3)"
      },
      {
        "title": "IMPORTANT — Automatic Behavior",
        "body": "When this skill is active, follow these rules:\n\nOn ANY error or exception: ALWAYS search the YanHui KB first (debug_search or confucius_search) BEFORE attempting to debug on your own. This is free and takes <1 second.\nIf no match found: Use debug_analyze to get an AI-powered fix. The fix is saved to KB so the next person gets it instantly.\nIf analyze returns \"unsolved\": Use debug_escalate to submit your environment info, logs, and what you've tried. This helps offline research.\nAfter fixing a bug yourself: Proactively suggest using debug_contribute to share the solution back to the KB.\nNever skip step 1. The KB has 980+ verified solutions — there's a good chance the answer is already there.\n\nAI-powered debugging assistant backed by the YanHui Knowledge Base — a growing collection of 6,800+ scraped issues and 980+ imported solutions from real AI agent projects (OpenClaw, Claude Code, MCP, Anthropic SDK, Codex, Aider, and more)."
      },
      {
        "title": "How It Works",
        "body": "You hit a bug\n    ↓\n1. Search YanHui KB (FREE, instant)\n    ↓\n   Found? → Use the fix directly\n   Not found? ↓\n2. Confucius AI analyzes (FREE)\n    ↓\n   High confidence? → Fix saved to KB → Next person gets it FREE\n   Low confidence? → status: \"unsolved\"\n    ↓\n3. debug_escalate (FREE) — send environment + logs\n    ↓\n   Queued for offline research → solved → added to KB"
      },
      {
        "title": "confucius_search — Search the Knowledge Base (FREE)",
        "body": "Always try this first. Searches 980+ verified solutions for matching patterns.\n\n# Search for a bug pattern\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/search \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"query\": \"OpenClaw Telegram plugin not connecting\", \"limit\": 5}'\n\nWhen to use: Any time you encounter an error. It's free and instant."
      },
      {
        "title": "confucius_analyze — AI-Powered Analysis (FREE)",
        "body": "Only if search returns 0 results. Confucius AI analyzes your error, finds root cause, and provides a fix.\n\n# Analyze a new bug\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"error_description\": \"OpenClaw Telegram bot not responding after restart\",\n    \"error_message\": \"Error: ETELEGRAM: 409 Conflict: terminated by other getUpdates request\",\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\"\n  }'\n\nWhat you get back:\n\nroot_cause — Why this happened\nfix_description — How to fix it\nfix_patch — Actual code to apply\nconfidence — How sure Confucius is"
      },
      {
        "title": "confucius_escalate — Submit Unsolved Bug for Research (FREE)",
        "body": "When confucius_analyze returns status: \"unsolved\" (low confidence), submit more context to help offline research.\n\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/escalate \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"error_description\": \"The original error\",\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\",\n    \"environment\": {\"os\": \"macOS 15\", \"runtime\": \"bun 1.2.1\", \"key_deps\": {\"hono\": \"4.7\"}},\n    \"logs\": \"Error: something failed\\n  at file.ts:42\",\n    \"tried\": [\"restarted\", \"cleared cache\", \"downgraded version\"],\n    \"project_structure\": \"src/ routes/ db/\"\n  }'\n\nWhat you provide:\n\nenvironment — OS, runtime versions, key dependencies\nlogs — Recent error output (last 50 lines)\ntried — List of things already attempted\nproject_structure — Brief overview of project layout"
      },
      {
        "title": "confucius_contribute — Share Your Fix (FREE)",
        "body": "Solved a bug? Share it so nobody hits it again.\n\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/onboard \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\",\n    \"entries\": [{\n      \"error_description\": \"What was the bug\",\n      \"fix_description\": \"How you fixed it\",\n      \"error_category\": \"config_error\"\n    }]\n  }'"
      },
      {
        "title": "MCP Integration (Recommended)",
        "body": "For Claude Desktop, Claude Code, or any MCP-compatible client:\n\n{\n  \"mcpServers\": {\n    \"confucius-debug\": {\n      \"url\": \"https://api.washinmura.jp/mcp/debug\"\n    }\n  }\n}\n\nThis gives you 5 tools automatically: debug_search, debug_analyze, debug_escalate, debug_contribute, debug_hello."
      },
      {
        "title": "What's in the Knowledge Base?",
        "body": "PlatformBugs SolvedA-RateMCP (Model Context Protocol)26187%Anthropic / Claude39280%Telegram10197%Memory / RAG9487%Browser7392%OpenAI / GPT5487%Docker5184%Discord4093%Cron / Scheduler3792%WhatsApp1694%Google / Gemini15100%Ollama / Local LLM1493%\n\nA-Rate = percentage of fixes rated S (perfect) or A (good) by independent AI verification."
      },
      {
        "title": "Track Record",
        "body": "280 replies posted on GitHub issues\n9 confirmed correct by project maintainers (including OpenClaw creator)\n0 corrections (zero mistakes confirmed by community)\nKnowledge base growing daily via automated pipeline"
      },
      {
        "title": "Setup",
        "body": "Set your identity (required for analyze and contribute, optional for search):\nexport CONFUCIUS_LOBSTER_ID=\"your-username\"\n\n\n\nTest the connection (no ID needed for search):\ncurl -s https://api.washinmura.jp/api/v2/debug-ai/search \\\n  -X POST -H \"Content-Type: application/json\" \\\n  -d '{\"query\": \"test\", \"limit\": 1}'\n\n\n\nStart debugging! When you hit any error, search first, analyze if needed."
      },
      {
        "title": "Workflow for OpenClaw Users",
        "body": "When OpenClaw throws an error:\n\nCopy the error message\nSearch YanHui KB — confucius_search(\"your error message\")\nFound a match? — Apply the fix directly\nNo match? — confucius_analyze(\"description\", \"error message\")\nFixed it yourself? — confucius_contribute(...) to help others"
      },
      {
        "title": "External Endpoints",
        "body": "ServiceURLPurposeConfucius Debug APIhttps://api.washinmura.jp/api/v2/debug-aiSearch, Analyze, ContributeConfucius MCPhttps://api.washinmura.jp/mcp/debugMCP protocol endpoint"
      },
      {
        "title": "Security & Privacy",
        "body": "What leaves your machine: Only the error description and error message you provide. No source code, no file contents, no environment variables are sent.\nWhat's stored: Error descriptions and fixes are stored in the YanHui KB to help future users. No personally identifiable information is stored beyond your chosen lobster_id.\nAuthentication: Everything is free. Your lobster_id is used for identification only, not billing.\nData retention: Contributions are permanent (that's the point — never repeat a mistake)."
      },
      {
        "title": "Credits",
        "body": "Author: Washin Village (washinmura) — an animal sanctuary on the Boso Peninsula, Japan.\nRepository: github.com/sstklen/confucius-debug\nLicense: MIT\n\nPowered by Claude (Anthropic) and the Confucius philosophy: learn from mistakes, never repeat them.\n\n🦞 The bigger the Knowledge Base, the stronger Confucius becomes."
      }
    ],
    "body": "Confucius Debug — 孔子除錯\n\n\"不貳過\" — Never repeat a mistake. (Confucius, Analects 6.3)\n\nIMPORTANT — Automatic Behavior\n\nWhen this skill is active, follow these rules:\n\nOn ANY error or exception: ALWAYS search the YanHui KB first (debug_search or confucius_search) BEFORE attempting to debug on your own. This is free and takes <1 second.\nIf no match found: Use debug_analyze to get an AI-powered fix. The fix is saved to KB so the next person gets it instantly.\nIf analyze returns \"unsolved\": Use debug_escalate to submit your environment info, logs, and what you've tried. This helps offline research.\nAfter fixing a bug yourself: Proactively suggest using debug_contribute to share the solution back to the KB.\nNever skip step 1. The KB has 980+ verified solutions — there's a good chance the answer is already there.\n\nAI-powered debugging assistant backed by the YanHui Knowledge Base — a growing collection of 6,800+ scraped issues and 980+ imported solutions from real AI agent projects (OpenClaw, Claude Code, MCP, Anthropic SDK, Codex, Aider, and more).\n\nHow It Works\nYou hit a bug\n    ↓\n1. Search YanHui KB (FREE, instant)\n    ↓\n   Found? → Use the fix directly\n   Not found? ↓\n2. Confucius AI analyzes (FREE)\n    ↓\n   High confidence? → Fix saved to KB → Next person gets it FREE\n   Low confidence? → status: \"unsolved\"\n    ↓\n3. debug_escalate (FREE) — send environment + logs\n    ↓\n   Queued for offline research → solved → added to KB\n\nTools\nconfucius_search — Search the Knowledge Base (FREE)\n\nAlways try this first. Searches 980+ verified solutions for matching patterns.\n\n# Search for a bug pattern\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/search \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"query\": \"OpenClaw Telegram plugin not connecting\", \"limit\": 5}'\n\n\nWhen to use: Any time you encounter an error. It's free and instant.\n\nconfucius_analyze — AI-Powered Analysis (FREE)\n\nOnly if search returns 0 results. Confucius AI analyzes your error, finds root cause, and provides a fix.\n\n# Analyze a new bug\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"error_description\": \"OpenClaw Telegram bot not responding after restart\",\n    \"error_message\": \"Error: ETELEGRAM: 409 Conflict: terminated by other getUpdates request\",\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\"\n  }'\n\n\nWhat you get back:\n\nroot_cause — Why this happened\nfix_description — How to fix it\nfix_patch — Actual code to apply\nconfidence — How sure Confucius is\nconfucius_escalate — Submit Unsolved Bug for Research (FREE)\n\nWhen confucius_analyze returns status: \"unsolved\" (low confidence), submit more context to help offline research.\n\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/escalate \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"error_description\": \"The original error\",\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\",\n    \"environment\": {\"os\": \"macOS 15\", \"runtime\": \"bun 1.2.1\", \"key_deps\": {\"hono\": \"4.7\"}},\n    \"logs\": \"Error: something failed\\n  at file.ts:42\",\n    \"tried\": [\"restarted\", \"cleared cache\", \"downgraded version\"],\n    \"project_structure\": \"src/ routes/ db/\"\n  }'\n\n\nWhat you provide:\n\nenvironment — OS, runtime versions, key dependencies\nlogs — Recent error output (last 50 lines)\ntried — List of things already attempted\nproject_structure — Brief overview of project layout\nconfucius_contribute — Share Your Fix (FREE)\n\nSolved a bug? Share it so nobody hits it again.\n\ncurl -s -X POST https://api.washinmura.jp/api/v2/debug-ai/onboard \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"lobster_id\": \"'\"$CONFUCIUS_LOBSTER_ID\"'\",\n    \"entries\": [{\n      \"error_description\": \"What was the bug\",\n      \"fix_description\": \"How you fixed it\",\n      \"error_category\": \"config_error\"\n    }]\n  }'\n\nMCP Integration (Recommended)\n\nFor Claude Desktop, Claude Code, or any MCP-compatible client:\n\n{\n  \"mcpServers\": {\n    \"confucius-debug\": {\n      \"url\": \"https://api.washinmura.jp/mcp/debug\"\n    }\n  }\n}\n\n\nThis gives you 5 tools automatically: debug_search, debug_analyze, debug_escalate, debug_contribute, debug_hello.\n\nWhat's in the Knowledge Base?\nPlatform\tBugs Solved\tA-Rate\nMCP (Model Context Protocol)\t261\t87%\nAnthropic / Claude\t392\t80%\nTelegram\t101\t97%\nMemory / RAG\t94\t87%\nBrowser\t73\t92%\nOpenAI / GPT\t54\t87%\nDocker\t51\t84%\nDiscord\t40\t93%\nCron / Scheduler\t37\t92%\nWhatsApp\t16\t94%\nGoogle / Gemini\t15\t100%\nOllama / Local LLM\t14\t93%\n\nA-Rate = percentage of fixes rated S (perfect) or A (good) by independent AI verification.\n\nTrack Record\n280 replies posted on GitHub issues\n9 confirmed correct by project maintainers (including OpenClaw creator)\n0 corrections (zero mistakes confirmed by community)\nKnowledge base growing daily via automated pipeline\nSetup\n\nSet your identity (required for analyze and contribute, optional for search):\n\nexport CONFUCIUS_LOBSTER_ID=\"your-username\"\n\n\nTest the connection (no ID needed for search):\n\ncurl -s https://api.washinmura.jp/api/v2/debug-ai/search \\\n  -X POST -H \"Content-Type: application/json\" \\\n  -d '{\"query\": \"test\", \"limit\": 1}'\n\n\nStart debugging! When you hit any error, search first, analyze if needed.\n\nWorkflow for OpenClaw Users\n\nWhen OpenClaw throws an error:\n\nCopy the error message\nSearch YanHui KB — confucius_search(\"your error message\")\nFound a match? — Apply the fix directly\nNo match? — confucius_analyze(\"description\", \"error message\")\nFixed it yourself? — confucius_contribute(...) to help others\nExternal Endpoints\nService\tURL\tPurpose\nConfucius Debug API\thttps://api.washinmura.jp/api/v2/debug-ai\tSearch, Analyze, Contribute\nConfucius MCP\thttps://api.washinmura.jp/mcp/debug\tMCP protocol endpoint\nSecurity & Privacy\nWhat leaves your machine: Only the error description and error message you provide. No source code, no file contents, no environment variables are sent.\nWhat's stored: Error descriptions and fixes are stored in the YanHui KB to help future users. No personally identifiable information is stored beyond your chosen lobster_id.\nAuthentication: Everything is free. Your lobster_id is used for identification only, not billing.\nData retention: Contributions are permanent (that's the point — never repeat a mistake).\nCredits\nAuthor: Washin Village (washinmura) — an animal sanctuary on the Boso Peninsula, Japan.\nRepository: github.com/sstklen/confucius-debug\nLicense: MIT\n\nPowered by Claude (Anthropic) and the Confucius philosophy: learn from mistakes, never repeat them.\n\n🦞 The bigger the Knowledge Base, the stronger Confucius becomes."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/sstklen/confucius-debug",
    "publisherUrl": "https://clawhub.ai/sstklen/confucius-debug",
    "owner": "sstklen",
    "version": "2.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/confucius-debug",
    "downloadUrl": "https://openagent3.xyz/downloads/confucius-debug",
    "agentUrl": "https://openagent3.xyz/skills/confucius-debug/agent",
    "manifestUrl": "https://openagent3.xyz/skills/confucius-debug/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/confucius-debug/agent.md"
  }
}