{
  "markdown": "<p align=\"center\">\n  <a href=\"#-quick-start\">\n    <img src=\"assets/banner_animated.svg\" alt=\"CyberHuaTuo Banner\" width=\"100%\"/>\n  </a>\n</p>\n\n<h1 align=\"center\">🩺 CyberHuaTuo / 赛博华佗</h1>\n\n<!-- mcp-name: io.github.JinNing6/cyberhuatuo -->\n\n<p align=\"center\">\n  <strong>Your agent is sick. Give it a doctor: diagnose the traceback, apply the cure, and turn the solved case into a reusable prescription.</strong><br>\n  <strong>你的 Agent 生病了？别再从头搜。接入赛博华佗，先救活，再炼方。</strong>\n</p>\n\n<p align=\"center\">\n  <em>The emergency room comes first. The cyber-alchemy universe opens after the cure.</em><br>\n  <em>先急诊救命，再进入赛博华佗世界观。</em>\n</p>\n\n---\n\n## 🚨 Emergency Room: Cure First, Refine Later\n\nYour agent is sick. The traceback is long, the tabs are multiplying, and every answer looks half-right. CyberHuaTuo turns that moment into a clinic visit: name the wound, prescribe the fix, verify the cure.\n\nThe lightest route needs no model key and does not start the vector database: install once, paste the error, and receive a reviewed root cause, exact fix, verification command, safety notes, and evidence.\n\n```bash\npython -m pip install --upgrade \"cyberhuatuo>=0.2.5\"\ncyberhuatuo cure \"ImportError: cannot import name ChatOpenAI from langchain\" --framework langchain\n# Returned exact fix:\npython -m pip install -U langchain-openai\n```\n\n`cure` is **Gold-first** and never executes the fix. If no Gold signature matches, it may return exactly one high-confidence **Reviewed candidate**, visibly marked `VERIFY BEFORE APPLYING`; use `--gold-only` for strict Gold-only retrieval. Use `diagnose` later when you want broader retrieval and optional LLM analysis.\n\nThe agent-native route remains available: connect CyberHuaTuo MCP once, then let the agent call `diagnose` when it fails. After a fix works, `save_prescription` keeps it as a local `draft`; `upload_prescription` submits that draft for public reproduction and review. Only accepted `reviewed` or `gold` prescriptions count toward Soul Rings.\n\nNo MCP installed yet? Bring the case to the **[Agent Traceback Clinic](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=00-agent-traceback-clinic.yml)**. Paste a real redacted traceback; no root cause or finished prescription required.\n\n```bash\ncyberhuatuo diagnose \"Traceback ... from langchain import ChatOpenAI ...\" --framework langchain --top-k 1\n```\n\n**Real CLI recording from this repository:**\n\n<p align=\"center\">\n  <img src=\"assets/cli_emergency_diagnosis_demo.gif\" alt=\"CyberHuaTuo emergency diagnosis CLI demo: traceback to exact LangChain fix\" width=\"100%\"/>\n</p>\n\n**The cure returned by the recorded run:**\n\n```bash\npython -m pip install -U langchain-openai\n```\n\n```python\nfrom langchain_openai import ChatOpenAI\n```\n\nThis first Gold cure was reproduced in an isolated environment with `langchain==1.3.13` and `langchain-openai==1.3.5`. Add a model key later for deeper AI diagnosis.\n\nThe package-matching MCP entry point is also available for registry clients:\n\n```bash\npython -m pip install --upgrade \"cyberhuatuo>=0.2.5\"\ncyberhuatuo mcp\n```\n\nIt starts the same stdio server as `cyberhuatuo-mcp`. The official Registry identity is `io.github.JinNing6/cyberhuatuo`; `server.json` pins the PyPI package, exact version, `uvx` runtime, and fixed `mcp` argument.\n\nPrescriptions also have stable clinical departments. List them with `cyberhuatuo departments`, then query a reviewed historical case through the normal Gold-first path:\n\n```bash\ncyberhuatuo cure \"Unexpected UTF-8 BOM\" --category data-and-serialization\ncyberhuatuo cure-feedback general-ai-jsonl-bom-001 partial \\\n  --verification \"first record is preserved; downstream validation still fails\" \\\n  --verification-method targeted-parser-test\n```\n\nThe feedback command writes a case-bound local JSONL event and stores neither the original traceback nor the query. Department filtering never changes the trust label: Gold is a verified cure, Reviewed is a verify-first candidate, and Draft is reference-only.\n\n---\n\n## Agent Action Guard: Diagnose Before The Agent Touches Your Disk\n\nCyberHuaTuo now includes a deterministic, read-only preflight for destructive Agent commands. The plugin bundles a `PreToolUse` hook for supported Codex and Claude Code shell calls, plus the same policy through MCP and CLI.\n\n**60-second start (available in `0.2.5`):**\n\n```bash\npython -m pip install --upgrade \"cyberhuatuo>=0.2.5\"\ncyberhuatuo guard --self-test --workspace-root .\n```\n\nThe self-test only reviews three built-in command strings. It executes nothing and must finish with `SELF-TEST PASSED` plus one `ALLOW`, one `ASK`, and one `BLOCK`.\n\nFor Codex, add this repository as a marketplace, open `/plugins`, install `cyberhuatuo-plugin`, start a new session, then review and trust the plugin in `/hooks`:\n\n```bash\ncodex plugin marketplace add JinNing6/CyberHuaTuo-Plugin\n```\n\nFor Claude Code:\n\n```bash\nclaude plugin marketplace add JinNing6/CyberHuaTuo-Plugin\nclaude plugin install cyberhuatuo-plugin@cyberhuatuo\n```\n\nThen start a new session and review `/hooks`. See the [one-screen Agent Guard quickstart](docs/agent-guard-quickstart.md) for verification and troubleshooting.\n\nReview any exact command manually with:\n\n```bash\ncyberhuatuo guard \"rm -rf /\" --workspace-root .\n```\n\nTurn a real mismatch into a local, redacted case report without executing or uploading the command:\n\n```bash\ncyberhuatuo guard \"rm -rf /\" --workspace-root . --expected BLOCK --report reports/guard-report.md\n```\n\nThe CLI shows the complete redacted preview before writing. It requires confirmation, refuses implicit overwrite, performs no network request, and supports repeated `--redact <literal>` values for private project identifiers. In non-interactive use, add `--confirm-report` only after reviewing the emitted preview. With `--expected`, a match exits `0` and a mismatch exits `1`; operational/report failures still exit `4` even with `--exit-zero`.\n\nRoute public, redacted cases through [Guard False Positive](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=guard-false-positive.yml), [ordinary Guard False Negative](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=guard-false-negative.yml), or [Guard Integration Gap](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=guard-integration-gap.yml). Reliable Hook/parser/wrapper/protocol bypasses belong in [private vulnerability reporting](https://github.com/JinNing6/CyberHuaTuo-Plugin/security/advisories/new), not a public Issue.\n\nThe result is one of three decisions:\n\n- `ALLOW`: no destructive signature was detected.\n- `ASK`: the action is destructive but bounded to the declared workspace; require exact human approval.\n- `BLOCK`: the target is machine-wide, identity-wide, outside the workspace, dynamic, wildcarded, unresolved, or otherwise unsafe to bound.\n\nMCP agents can call `agent_action_guard`. Installed plugins load `hooks/hooks.json`; review and trust the hook in the host's `/hooks` screen before relying on it. Codex does not currently support `permissionDecision: \"ask\"`, so CyberHuaTuo converts `ASK` to `deny` there instead of risking a failed-open hook.\n\nThis is a guardrail, not a sandbox. It cannot intercept shell paths for which the host does not emit `PreToolUse`, and it does not claim a rollback for permanent deletion. See [Agent Action Guard design and limits](docs/agent-action-guard.md).\n\n---\n\n<p align=\"center\">\n  <a href=\"#-quick-start\">\n    <img src=\"assets/prescription_universe.svg\" alt=\"CyberHuaTuo Holographic Bagua Engine\" width=\"100%\"/>\n  </a>\n</p>\n\n<!-- 🎨 赛博华佗 · 修炼画卷 — The Cyber Alchemist Saga -->\n\n<p align=\"center\">\n  <em>「每一位贡献药方的开发者，都是赛博炼丹师。」</em><br>\n  <em>\"Every developer who contributes a prescription is a Cyber Alchemist.\"</em>\n</p>\n\n<table align=\"center\">\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <sub>📖 <strong>第一章 · 修炼</strong> — Chapter I: Cultivation</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyber_male_cultivator.png\" alt=\"Cyber Alchemist — Soul Ring Cultivation (Male)\" width=\"100%\"/>\n  <br>\n  <sub><strong>🔥 万丹归元 · 以火炼道</strong></sub><br>\n  <sub>Soul Ring Cultivation — PyTorch · LangChain · TensorFlow</sub><br>\n  <sub><em>每一环魂环，都是你在某个技术领域的千锤百炼。</em></sub>\n</td>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyber_female_cultivator.png\" alt=\"Cyber Alchemist — Soul Ring Cultivation (Female)\" width=\"100%\"/>\n  <br>\n  <sub><strong>✨ 百草通神 · 万法归宗</strong></sub><br>\n  <sub>Soul Ring Cultivation — CrewAI · OpenAI · HuggingFace</sub><br>\n  <sub><em>掌握的框架越多，你的光芒越盛。</em></sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <img src=\"assets/cli_soul_ring.gif\" alt=\"Soul Ring Hologram — Dynamic Differential Rotation\" width=\"60%\"/>\n  <br>\n  <sub><strong>🔮 魂环全息投影 · 差速旋转</strong></sub><br>\n  <sub>Soul Ring Hologram — Each Ring Rotates at Its Own Speed</sub><br>\n  <sub><em>白环 → 黄环 → 紫环 → 黑环 → 红环——你的魂环，由你的贡献铸就。</em></sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <sub>📖 <strong>第二章 · 飞升</strong> — Chapter II: Ascension</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <img src=\"assets/cyber_alchemist_ascension.png\" alt=\"Alchemist Ascension — Pill Emperor Tribulation\" width=\"70%\"/>\n  <br>\n  <sub><strong>🌟 丹帝飞升 · 万丹朝宗</strong></sub><br>\n  <sub>When a Pill Emperor Ascends, All Robots Celebrate</sub><br>\n  <sub><em>当你的药方拯救了一千个 AI——机器人们会为你欢呼。</em></sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <sub>📖 <strong>第三章 · 济世</strong> — Chapter III: Healing the World</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyber_prescription_scroll.png\" alt=\"No AI Left Behind\" width=\"100%\"/>\n  <br>\n  <sub><strong>⚡ 不放弃任何一个 AI</strong></sub><br>\n  <sub>No AI Left Behind — Every Error Deserves a Cure</sub>\n</td>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyberhuatuo_healing_robots.png\" alt=\"Emergency Rescue\" width=\"100%\"/>\n  <br>\n  <sub><strong>🚨 雨夜急救 · 分秒必争</strong></sub><br>\n  <sub>Emergency Rescue — 3 Seconds, Not 3 Hours</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyberhuatuo_diagnosis_scene.png\" alt=\"Open Surgery\" width=\"100%\"/>\n  <br>\n  <sub><strong>🫀 开膛破肚 · 直击病灶</strong></sub><br>\n  <sub>Open Surgery — Root Cause, Not Band-Aid</sub>\n</td>\n<td align=\"center\" width=\"50%\">\n  <img src=\"assets/cyberhuatuo_robot_pharmacy.png\" alt=\"Recovery Ward\" width=\"100%\"/>\n  <br>\n  <sub><strong>🏥 康复病房 · 满血复活</strong></sub><br>\n  <sub>Recovery Ward — Back to Full Health</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <img src=\"assets/cyberhuatuo_alchemy_lab.png\" alt=\"Cyber Alchemy Lab\" width=\"70%\"/>\n  <br>\n  <sub><strong>🧪 赛博炼丹 · 妙手回春</strong></sub><br>\n  <sub>Cyber Alchemy Lab — Where Ancient Elixirs Meet Modern Frameworks</sub>\n</td>\n</tr>\n<tr>\n<td align=\"center\" colspan=\"2\">\n  <img src=\"assets/cyberhuatuo_reinforcements_arrive.png\" alt=\"Reinforcements Arrive\" width=\"70%\"/>\n  <br>\n  <sub><strong>🌍 援军驾到 · 十方来救</strong></sub><br>\n  <sub>Reinforcements Arrive — The Community Answers the Call</sub>\n</td>\n</tr>\n</table>\n\n<p align=\"center\">\n  <sub>🎨 <em>All artwork AI-generated · 所有画作均由 AI 文生图创作</em></sub><br>\n  <sub>💡 <em>每张图背后是一段修炼故事——你的故事，即将加入。</em></sub>\n</p>\n\n<!-- 🔮 奇门遁甲 · 药方天阵 -->\n<p align=\"center\">\n  <a href=\"https://jinning6.github.io/CyberHuaTuo/3d-universe/\">\n    <img src=\"assets/prescription_universe.svg\" alt=\"Qimen Dunjia · Prescription Formation · 奇门遁甲 · 药方天阵\" width=\"100%\"/>\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://jinning6.github.io/CyberHuaTuo/3d-universe/\"><strong>🔮 Enter the Qimen Dunjia Formation → 进入奇门遁甲 · 药方天阵</strong></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/JinNing6/CyberHuaTuo-Plugin/stargazers\"><img src=\"https://img.shields.io/github/stars/JinNing6/CyberHuaTuo-Plugin?style=for-the-badge&logo=github&logoColor=white&labelColor=0A0E1A&color=00D09C\" alt=\"Stars\"/></a>\n  <a href=\"https://github.com/JinNing6/CyberHuaTuo-Plugin/network/members\"><img src=\"https://img.shields.io/github/forks/JinNing6/CyberHuaTuo-Plugin?style=for-the-badge&logo=github&logoColor=white&labelColor=0A0E1A&color=00BFFF\" alt=\"Forks\"/></a>\n  <a href=\"https://github.com/JinNing6/CyberHuaTuo-Plugin/issues\"><img src=\"https://img.shields.io/github/issues/JinNing6/CyberHuaTuo-Plugin?style=for-the-badge&logo=github&logoColor=white&labelColor=0A0E1A&color=FFD700\" alt=\"Issues\"/></a>\n  <a href=\"LICENSE\"><img src=\"https://img.shields.io/badge/license-Apache%202.0-FFD700?style=for-the-badge&labelColor=0A0E1A\" alt=\"License\"/></a>\n  <a href=\"https://github.com/JinNing6/CyberHuaTuo-Plugin/pulls\"><img src=\"https://img.shields.io/badge/PRs-welcome-00FFFF?style=for-the-badge&labelColor=0A0E1A\" alt=\"PRs Welcome\"/></a>\n</p>\n\n<p align=\"center\">\n  <a href=\"#-emergency-room--diagnose-in-seconds\">🏥 Emergency Room</a> •\n  <a href=\"#-wellness-clinic--nourish-before-it-breaks\">🌿 Wellness Clinic</a> •\n  <a href=\"#-github-bot--zero-friction-diagnosis\">🤖 GitHub Bot</a> •\n  <a href=\"#-epidemic-alert--the-ai-pandemic-nobody-talks-about\">🦠 Epidemic</a> •\n  <a href=\"#-cli--terminal-power-at-your-fingertips\">⌨️ CLI</a> •\n  <a href=\"#-mcp-server--ai-editor-integration\">🔌 MCP</a> •\n  <a href=\"#-agent-skills-protocol-self-rescue\">🎒 Skills</a> •\n  <a href=\"#-why-cyberhuatuo\">Why Us</a> •\n  <a href=\"#-quick-start\">Quick Start</a> •\n  <a href=\"#-join-the-movement\">Join</a> •\n  <a href=\"#-the-name\">The Name</a>\n</p>\n\n<p align=\"center\">\n  <a href=\"./README_CN.md\"><strong>🇨🇳 完整中文文档</strong></a>\n</p>\n\n---\n\n## 🏥 Three Departments, One Clinic\n\n> *A great doctor doesn't wait for you to collapse — they keep you from falling in the first place.*\n>\n> *大医治未病。*\n\n<table>\n<tr>\n<td align=\"center\" width=\"33%\">\n\n### 🚨 Emergency Room\n**急诊科**\n\nPaste your error.\nGet a cure.\n**In seconds, not hours.**\n\n*AI diagnosis powered by*\n*2,000 years of medical wisdom.*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n### 🌿 Wellness Clinic\n**养生堂**\n\nSecurity audit.\nHealth scoring.\n**Prevent before it breaks.**\n\n*Nourishing prescriptions for*\n*your AI's long-term health.*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n### 💊 Pharmacy\n**药房**\n\nBrowse the prescription library.\nFind proven cures & nourishing recipes.\n**All prescriptions, one counter.**\n\n*Dual-layer architecture:*\n*📜 Permanent Expert + ⚡ Temporary Intern*\n*Upload → instantly searchable.*\n\n</td>\n</tr>\n</table>\n\n---\n\n## 🚨 Emergency Room — Diagnose in Seconds\n\n```bash\n# Clone → Install → Run. Three steps to your first cure.\ngit clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git\ncd CyberHuaTuo && pip install -r requirements.txt\npython -m cyberhuatuo serve\n# → Browser opens http://127.0.0.1:8000\n```\n\nPaste your error. Watch the ancient four-step diagnosis unfold:\n\n```\n🔍 望 (Look)    → Detected: LangChain 0.3, Python 3.11, ImportError\n🩺 闻 (Listen)  → Matched: Breaking change — package split in 0.2+\n💬 问 (Ask)     → No further questions needed\n💊 切 (Diagnose) → Prescription #1 (95% cure rate):\n\n   pip install langchain-openai\n   from langchain_openai import ChatOpenAI  # ✅ Fixed\n\n   Root cause: LangChain 0.2 split into langchain-core,\n   langchain-community, and langchain-openai.\n   The old import path no longer exists.\n```\n\n> **3 seconds.** Not 3 hours. That's the difference.\n>\n> **三秒钟。** 不是三小时。这就是区别。\n\n---\n\n## 🌿 Wellness Clinic — Nourish Before It Breaks\n\n> *Hua Tuo didn't just cure disease — he invented the Five-Animal Exercises (五禽戏) to prevent it.*\n>\n> *华佗不仅治病，更发明了五禽戏强身健体——预防胜于治疗。*\n\nSubmit your AI agent code for a **Six-Meridian Security Checkup（六经脉安全体检）**:\n\n```\n🛡️ Meridian 1: Sandbox Isolation     → 30/100 ⚠️ CRITICAL\n🔑 Meridian 2: Key Management        → 85/100 ✅ Healthy\n🧠 Meridian 3: Prompt Security       → 45/100 ⚠️ At risk\n🔒 Meridian 4: Output Sanitization   → 60/100 🟡 Needs care\n⏱️ Meridian 5: Resilience Design     → 72/100 🔵 Good\n📊 Meridian 6: Observability         → 55/100 🟡 Needs care\n\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\nOverall Health Score: 58/100  🟡 Needs Nourishing\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n💊 Top Nourishing Prescriptions:\n  1. 🏭 MCP & Skills Supply Chain Audit (100% Industrial Grade Sigstore/OSV/LLM) ✨ NEW\n  2. Add execution sandboxing (RestrictedPython / Docker)\n  3. Implement prompt injection defenses\n  4. Add structured logging and tracing\n```\n\n**Your AI is running naked in production.** Do you know it?\n\n---\n\n## 🦠 Epidemic Alert — The AI Pandemic Nobody Talks About\n\n## 疫情通报 — 没有人谈论的 AI 大流行\n\nEvery day, thousands of AI systems go into production **already infected**:\n\n- 🔓 **No sandbox** — agent code executes with full system privileges\n- 🔑 **Hardcoded secrets** — API keys sitting in plain text, spreading like a virus\n- 🧠 **No prompt defense** — one injection away from a full outbreak\n- 📊 **No observability** — zero symptom monitoring, blind until collapse\n\nThis is not a future risk. **This is an active pandemic.**\n\nAnd when things break? Developers spend **hours** digging through GitHub Issues, Discord threads, Reddit posts, and half-abandoned blog articles.\n\n**The cure exists. Buried under seven layers of irrelevant search results.**\n\n> *Stack Overflow waits for someone to answer.*\n> *ChatGPT might hallucinate a treatment.*\n> *GitHub Issues drown in duplicate reports.*\n>\n> ***CyberHuaTuo is the WHO of the AI world — tracking the epidemic, prescribing battle-tested cures, and vaccinating before the next outbreak.***\n\n---\n\n## 🤔 Why CyberHuaTuo?\n\n| | 🩺 CyberHuaTuo | 🔍 Stack Overflow | 🤖 ChatGPT | 📋 GitHub Issues |\n|---|:---:|:---:|:---:|:---:|\n| **AI-specific knowledge** | ✅ Purpose-built | ⚠️ General | ⚠️ Generic | ⚠️ Scattered |\n| **Version-aware diagnosis** | ✅ Auto-detect | ❌ Manual | ❌ Outdated cutoff | ❌ Manual |\n| **Structured prescriptions** | ✅ Root cause + fix + verify | ⚠️ Varies | ⚠️ May hallucinate | ⚠️ Varies |\n| **Cross-framework mapping** | ✅ LangChain ↔ LlamaIndex ↔ CrewAI | ❌ Siloed | ⚠️ Inconsistent | ❌ Siloed |\n| **Security health check** | ✅ Six-meridian scan | ❌ None | ❌ None | ❌ None |\n| **Preventive nourishing** | ✅ Proactive hardening | ❌ Reactive only | ❌ Reactive only | ❌ Reactive only |\n| **Official doc retrieval** | ✅ Context7 real-time docs | ❌ None | ❌ Outdated | ❌ None |\n| **Speed to cure** | ⚡ Seconds | 🕐 Hours | ⚡ Fast but risky | 🕐 Hours |\n\n---\n\n## 🔮 How It Works\n\n### 望闻问切 — The 2,000-Year-Old Diagnostic Protocol\n\nInspired by traditional Chinese medicine's four-step diagnosis, refined for the AI age:\n\n```\n  Your Error / Your Code\n       │\n       ▼\n  ┌──────────┐\n  │  望 Look  │──→ Parse stack trace, detect framework, version & environment\n  └─────┬────┘\n       ▼\n  ┌───────────┐\n  │ 闻 Listen  │──→ Correlate with known issues, breaking changes & CVEs\n  └──────┬────┘\n       ▼\n  ┌─────────┐\n  │  问 Ask  │──→ Smart follow-up (only when critical info is missing)\n  └────┬────┘\n       ▼\n  ┌────────────┐\n  │ 切 Diagnose │──→ Semantic search → LLM reasoning → Ranked prescriptions\n  └──────┬─────┘\n       ▼\n  💊 Prescriptions (ranked by cure rate)\n  🌿 Nourishing advice (preventive recommendations)\n```\n\nEvery prescription includes:\n\n- 🎯 **Root cause** — not just _what_ to do, but _why_ it broke\n- 🔧 **Copy-paste fix** — step-by-step with ready-to-run code\n- 📌 **Version-locked** — verified for your exact framework version\n- 🔄 **Cross-framework map** — *\"LangChain issue? Here's the LlamaIndex equivalent.\"*\n- 📚 **Official docs** — pulled from framework's latest documentation via Context7\n- ✅ **Community-verified** — tested, upvoted, and marked **\"Cured ✅\"**\n\n---\n\n## 📋 What We Treat — Not Just Agents\n\n> **If it has AI in it, CyberHuaTuo sees it. No framework left behind.**\n\n### 🤖 AI Agent Frameworks\n\n| Framework | Cases | Status | Join 👇 |\n|-----------|:-----:|--------|---------|\n| LangChain | 10+ | 🟢 Live | [Add a case →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| MCP (Anthropic) | 5+ | 🟢 Live | [Add a case →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| CrewAI | 5+ | 🟢 Live | [Add a case →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| LlamaIndex | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| OpenAI Agents SDK | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| AutoGen | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| DSPy | — | 🔵 Planned | [Vote →](https://github.com/JinNing6/CyberHuaTuo-Plugin/discussions) |\n\n### 🧠 AI / ML / Deep Learning\n\n| Technology | Cases | Status | Join 👇 |\n|-----------|:-----:|--------|---------|\n| PyTorch | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| Transformers (HuggingFace) | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| TensorFlow | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n\n### 🏗️ Platform & Custom Agents\n\n| Platform | Cases | Status | Join 👇 |\n|-----------|:-----:|--------|---------|\n| GPTs / Coze / Dify | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n| Custom-built Agents | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n\n### 🌿 Nourishing Prescriptions (养生药方)\n\n| Category | Cases | Status | Join 👇 |\n|-----------|:-----:|--------|---------|\n| 🛡️ Security Sandbox | 2+ | 🟢 Live | [Add →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| 🔒 Security Hardening | 3+ | 🟢 Live | [Add →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| 🔗 Supply Chain Audit | 1 | 🟢 Live | [Add →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |\n| ⚡ Performance Tuning | — | 🟡 Accepting PRs | [Be the first →](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |\n\n> **Every framework starts with one case. Every nourishing recipe starts with one insight. Yours could be the first.**\n\n---\n\n## 🚀 Quick Start\n\n### Prerequisites\n\n- **Python 3.10+**\n- **(Optional)** LLM API Key for AI-powered diagnosis (OpenAI / Anthropic / DeepSeek / Gemini / Ollama)\n\n### Option A: One-Click Launch\n\n```bash\ngit clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git\ncd CyberHuaTuo\n\n# Windows\nstart.bat\n\n# macOS / Linux\nchmod +x start.sh && ./start.sh\n```\n\n> Auto-installs dependencies and opens the Web UI at **http://127.0.0.1:8000**\n\n### Option B: Manual Setup\n\n```bash\ngit clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git\ncd CyberHuaTuo\n\npip install -r requirements.txt\n\n# (Optional) Configure LLM for AI diagnosis\ncp .env.example .env\n# Edit .env — add your API Key\n\npython -m cyberhuatuo serve\n# → Browser auto-opens http://127.0.0.1:8000\n```\n\n### CLI Commands — Two Modes, One Engine\n\nCyberHuaTuo supports **two access modes** — pick the one that fits your workflow:\n\n| Mode | Entry Point | For |\n|------|-------------|-----|\n| ⌨️ **CLI** | `cyberhuatuo <command>` | Developers using terminal directly |\n| 🔌 **MCP** | `cyberhuatuo-mcp` | AI editors (Cursor / Claude / VS Code) |\n\n```bash\n# 🩺 Core Diagnosis / 核心诊断\ncyberhuatuo diagnose \"ImportError: cannot import 'ChatOpenAI'\"  # AI 诊断\ncyberhuatuo search \"CUDA out of memory\" --framework pytorch     # 搜索知识库\ncyberhuatuo checkup --file my_agent.py                          # 安全体检\ncyberhuatuo docs langchain \"How to configure RAG pipeline\"      # 官方文档检索\n\n# 📊 Knowledge & Analytics / 知识与分析\ncyberhuatuo stats                            # 知识库统计\ncyberhuatuo frameworks --search pytorch      # 支持框架列表\ncyberhuatuo taxonomy list                    # CHT 根因编码系统\ncyberhuatuo trends --framework langchain     # CHT 趋势分析\ncyberhuatuo digest                           # 本周药方摘要\ncyberhuatuo epidemic --action check          # 疫情预警\n\n# 🧬 Alchemist System / 炼丹师体系\ncyberhuatuo challenge --username your-github-username --framework langchain\ncyberhuatuo mission --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username\ncyberhuatuo bounty --username your-github-username --framework auto --top-n 8 --release-tag v0.2.5 --target-contributors 3\ncyberhuatuo launch --username your-github-username --framework langchain --release-tag v0.2.5\ncyberhuatuo launch-campaign --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3\ncyberhuatuo traction-proof --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3\ncyberhuatuo traction-proof --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3 --record-snapshot\npython -m cyberhuatuo candidate-install-smoke --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3\ncyberhuatuo market-copy --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3\ncyberhuatuo record-market --username your-github-username --framework langchain --channel pypi --status submitted --submission-url <reviewable public URL> --release-tag v0.2.5\ncyberhuatuo market-status --username your-github-username --framework langchain --release-tag v0.2.5\ncyberhuatuo first-invite --username your-github-username --invitee external-contributor-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3 --source-url https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/123\ncyberhuatuo record-return --username your-github-username --framework langchain --surface \"PyPI release\" --source-url https://example.com/post\ncyberhuatuo activation --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username --top-n 10\ncyberhuatuo flywheel --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username --top-n 10\ncyberhuatuo record-share --username your-github-username --framework langchain --share-url https://example.com/share\ncyberhuatuo share-report --username your-github-username --framework langchain --top-n 10\ncyberhuatuo share-leaderboard --framework langchain --top-n 10\ncyberhuatuo ladder your-github-username --framework langchain\ncyberhuatuo ranking your-github-username     # 查看个人排名\ncyberhuatuo leaderboard                     # 全球封神榜\ncyberhuatuo card your-github-username        # 生成分享卡片\ncyberhuatuo badge your-github-username       # 生成 GitHub Profile 魂环徽章\ncyberhuatuo quest your-github-username --framework langchain\ncyberhuatuo campaign your-github-username --framework langchain\ncyberhuatuo duel your-github-username friend-github-username --framework langchain\ncyberhuatuo mentor mentor-github apprentice-github --framework langchain\n# GitHub mentor pact IssueOps: .github/ISSUE_TEMPLATE/soul-ring-mentor.yml\n# GitHub mentor pact workflow: .github/workflows/soul-ring-mentor.yml\ncyberhuatuo tournament alice bob carol dave --framework langchain --event Agent-Cup\ncyberhuatuo tournament-settle alice bob carol dave --framework langchain --event Agent-Cup\n# GitHub tournament IssueOps: .github/ISSUE_TEMPLATE/soul-ring-tournament.yml\n# GitHub tournament workflow: .github/workflows/soul-ring-tournament.yml\n# GitHub sect recruitment IssueOps: .github/ISSUE_TEMPLATE/soul-ring-sect-recruit.yml\n# GitHub sect recruitment workflow: .github/workflows/soul-ring-sect-recruit.yml\ncyberhuatuo arena your-github-username --top-n 10\ncyberhuatuo season --framework langchain --top-n 10\n# GitHub season board IssueOps: .github/ISSUE_TEMPLATE/soul-ring-season.yml\n# GitHub season board workflow: .github/workflows/soul-ring-season.yml\n# GitHub growth flywheel IssueOps: .github/ISSUE_TEMPLATE/soul-ring-growth-flywheel.yml\n# GitHub growth flywheel workflow: .github/workflows/soul-ring-growth-flywheel.yml\n# GitHub bounty board IssueOps: .github/ISSUE_TEMPLATE/soul-ring-bounty-board.yml\n# GitHub bounty board workflow: .github/workflows/soul-ring-bounty-board.yml\n# GitHub launch campaign IssueOps: .github/ISSUE_TEMPLATE/soul-ring-launch-campaign.yml\n# GitHub launch campaign workflow: .github/workflows/soul-ring-launch-campaign.yml\n# Public traction proof: cyberhuatuo traction-proof reads GitHub REST API, GitHub Pull Requests API, GitHub Contents API, GitHub Releases API, PyPI JSON API, and the local activation/share ledger.\n# Readiness gates: PyPI latest version must not lag local growth tools, and default-branch IssueOps forms/workflows must exist before issues/new?... links count as live acquisition loops.\n# Target contributor progress uses real issue/PR/ledger identities; PRs stay separate from IssueOps counts, and stars, forks, watchers, and downloads are not used as contributors.\n# Snapshot history is opt-in: add --record-snapshot to append an append-only real JSONL snapshot and compare velocity deltas.\ncyberhuatuo sect Azure-Sect your-github-username friend-github-username --framework langchain\ncyberhuatuo sect-recruit Azure-Sect your-github-username friend-github-username --invitee new-member-github --framework langchain\ncyberhuatuo sect-quest Azure-Sect your-github-username friend-github-username --framework langchain\ncyberhuatuo sect-hall Azure-Sect your-github-username friend-github-username --framework langchain\ncyberhuatuo sect-duel Azure-Sect Shadow-Sect --challenger-members your-github-username friend-github-username --rival-members rival-a rival-b --framework langchain\ncyberhuatuo sect-arena --sect Azure-Sect your-github-username friend-github-username --sect Shadow-Sect rival-a rival-b --framework langchain\ncyberhuatuo record                          # 诊疗档案\ncyberhuatuo subscribe subscribe -f langchain # 订阅框架更新\n\n# ⛏️ Contribution / 知识贡献\ncyberhuatuo save --title \"Fix\" --prescription \"...\" --framework langchain\ncyberhuatuo upload --title \"Fix\" --prescription \"...\" --framework langchain --contributor your-github-username\ncyberhuatuo mine search --repo langchain-ai/langchain\n\n# 🚀 Server / 服务启动\ncyberhuatuo serve                            # 启动 Web 诊断服务\ncyberhuatuo serve --port 9000 --reload       # 自定义端口 + 开发模式\ncyberhuatuo rebuild                          # 重建向量索引\n```\n\n> **Every MCP tool has a CLI counterpart.** Same engine, same knowledge base, different interface.\n>\n> **每个 MCP 工具都有对应的 CLI 命令。** 同一个引擎，同一个知识库，不同的界面。\n\n### Configuration\n\nCopy `.env.example` to `.env`:\n\n```bash\n# LLM Provider (choose one)\nOPENAI_API_KEY=sk-your-key              # OpenAI\nANTHROPIC_API_KEY=sk-ant-your-key       # Anthropic\nDEEPSEEK_API_KEY=sk-your-key            # DeepSeek\nGEMINI_API_KEY=your-key                 # Google Gemini\nOLLAMA_BASE_URL=http://localhost:11434  # Ollama (local, free)\n\n# Diagnosis model\nDIAGNOSIS_MODEL=gpt-4o-mini   # or claude-sonnet-4-20250514 / deepseek-chat / gemini-1.5-pro\n\n# Server\nPORT=8000\n```\n\n> **No API Key?** No problem. Vector search works without any key.\n> AI-powered 望闻问切 diagnosis and 🌿 nourishing checkup require one of the above.\n\n---\n\n## 📊 Epidemic Report — Live Intelligence\n\nA living dashboard tracking **what's breaking across the AI ecosystem right now**:\n\n- 🔥 **Trending issues** and their cure rates\n- 🗺️ **Heatmap** of problems across frameworks\n- 📈 **Framework health scores** — know before you adopt\n- ⛏️ **Issue mining** — real-time extraction from GitHub\n\n---\n\n## 🛠️ Tech Stack\n\n| Layer | Technology |\n|-------|-----------|\n| **CLI** | Python argparse (marketplace, MCP, and soul-ring subcommands; zero extra dependencies) |\n| **MCP Server** | FastMCP (stdio transport for AI editor integration) |\n| **Backend** | Python · FastAPI · Uvicorn |\n| **Frontend** | Jinja2 Templates (server-rendered) |\n| **Vector DB** | ChromaDB (embedded, zero-config) |\n| **Ephemeral Layer** | GitHub Issues API (dual-layer prescription search) |\n| **LLM Gateway** | LiteLLM (OpenAI / Anthropic / DeepSeek / Gemini / Ollama) |\n| **Doc Retrieval** | Context7 API (real-time official framework docs) |\n| **Security Engine** | Six-Meridian Audit (AI-powered code analysis) |\n| **GitHub Bot** | GitHub Actions + lightweight text matching |\n| **CI/CD** | GitHub Actions (auto-promotion, validation, labeling) |\n\n---\n\n## 🤖 GitHub Bot — Zero-Friction Diagnosis\n\n> *The greatest doctor doesn't wait in the clinic — they meet patients where they are.*\n>\n> *大医不坐堂候诊——而是行走于民间，哪里有病痛，哪里就有华佗。*\n\n**Install the CyberHuaTuo Bot on any repo** — automatic prescription recommendations on every Issue.\n\n```\n┌─────────────────────────────────────────────┐\n│  New Issue opened                           │\n│  \"ImportError: cannot import ChatOpenAI\"    │\n│                                             │\n│  💬 @CyberHuaTuo Bot replies:              │\n│  ┌─────────────────────────────────────┐    │\n│  │ 🩺 赛博华佗 · 自动诊断             │    │\n│  │                                     │    │\n│  │ 💊 药方 1 (92% match):             │    │\n│  │ pip install langchain-openai        │    │\n│  │ from langchain_openai import ...    │    │\n│  │                                     │    │\n│  │ 📋 Full prescription →              │    │\n│  └─────────────────────────────────────┘    │\n└─────────────────────────────────────────────┘\n```\n\n### How it works\n\n| Trigger | Action |\n|:-------:|:------:|\n| 🆕 New Issue opened | Auto-match prescriptions from the knowledge base |\n| 💬 `@CyberHuaTuo` in any comment | On-demand diagnosis |\n\n### Install on your repo (3 minutes)\n\n```bash\n# Copy the Bot workflow to your repo\nmkdir -p .github/workflows\ncurl -o .github/workflows/bot-prescribe.yml \\\n  https://raw.githubusercontent.com/JinNing6/CyberHuaTuo-Plugin/main/.github/workflows/bot-prescribe.yml\n```\n\n> 📖 **[Full installation guide →](docs/GITHUB_BOT.md)**\n\n### The Flywheel\n\n```\n  Developers see Bot is useful → Contribute more prescriptions\n        → Bot becomes more accurate → More repos install Bot\n            → CyberHuaTuo brand appears before thousands of developers daily\n```\n\n> **Imagine**: If LangChain's official repo installs this Bot, every new Issue gets a prescription recommendation. CyberHuaTuo's brand appears before thousands of developers every day. 🚀\n\n---\n\n## ⌨️ CLI — Terminal Power at Your Fingertips\n\n> *The terminal is the alchemist's cauldron — raw, powerful, and always ready.*\n>\n> *终端就是炼丹师的鼎炉——原始、强大、随时待命。*\n\nCyberHuaTuo ships a **full-featured CLI** with marketplace, MCP, and soul-ring subcommands — every MCP tool has a terminal counterpart. No AI editor required. No GUI needed. Just type and heal.\n\n赛博华佗提供**完整的 CLI 命令行界面**，包含 **21 个子命令**——每个 MCP 工具都有对应的终端命令。无需 AI 编辑器，无需图形界面，敲命令，治百病。\n\n```bash\n# Install\npython -m pip install --upgrade \"cyberhuatuo @ git+https://github.com/JinNing6/CyberHuaTuo-Plugin.git@v0.2.5\"\npython -m pip install --upgrade cyberhuatuo  # after PyPI latest matches v0.2.5\n\n# Or run from source\npython -m cyberhuatuo --help\n```\n\n### 🎬 Terminal Animations — 终端动画特效\n\n<p align=\"center\">\n  <img src=\"assets/cli_boot_animation.gif\" alt=\"CyberHuaTuo Boot Animation — Matrix Rain + ASCII Banner + Heartbeat + System Online\" width=\"100%\"/>\n  <br>\n  <sub><strong>🚀 启动序列 · Boot Sequence</strong></sub><br>\n  <sub>Matrix 数字雨 → ASCII Banner → 心电图脉冲 → 子系统上线 → 知识库加载</sub>\n</p>\n\n<p align=\"center\">\n  <img src=\"assets/cli_soul_ring.gif\" alt=\"CyberHuaTuo Soul Ring Hologram — Differential Rotation with HUD, Starfield & Energy Pulses\" width=\"60%\"/>\n  <br>\n  <sub><strong>🔮 魂环全息投影 · Soul Ring Hologram</strong></sub><br>\n  <sub>差速旋转 · HUD 科幻边框 · 星空背景 · 能量脉冲波 · 轨道亮标 · 环间电弧</sub>\n</p>\n\n### ⌨️ Available CLI Commands\n\n| Command | Description |\n|---------|-------------|\n| **🩺 Core Diagnosis / 核心诊断** | |\n| `diagnose <query>` | 🩺 望闻问切 AI 诊断 — paste your error, get a cure |\n| `search <query>` | 🔍 双层语义搜索 (ChromaDB + GitHub Issues) |\n| `checkup --file <path>` | 🛡️ 六经脉安全体检 — audit your Agent code |\n| `docs <framework> <query>` | 📚 实时官方文档检索 (50+ frameworks via Context7) |\n| **📊 Analytics / 知识分析** | |\n| `stats` | 📦 知识库统计 — case counts by framework |\n| `frameworks` | 📋 支持框架列表 — filterable by category / keyword |\n| `taxonomy <action>` | 🧬 CHT 根因编码 — list, lookup, classify |\n| `trends` | 📈 CHT 趋势分析 — heatmaps & surge alerts |\n| `digest` | 📰 本周药方摘要 — weekly prescription digest |\n| `epidemic` | 🦠 疫情预警 — framework health monitoring |\n| **🧬 Alchemist System / 炼丹师体系** | |\n| `challenge --username <username> --framework <framework>` | 🔮 first Soul Ring onramp — submit, rank, share |\n| `mission --username <username> --framework <framework> --sect <sect-name> --members <members...>` | 🔮 Soul Ring mission hall — one-screen Issue, PR, personal ring, and sect/team onboarding |\n| `bounty --username <username> --framework auto --top-n <N> --release-tag <tag> --target-contributors <N>` | Soul Ring Bounty Board from real local framework coverage gaps, claimable First Soul Ring Issue routes, and no fake rewards |\n| `launch --username <username> --framework <framework> --release-tag <tag>` | Soul Ring launch scroll for PyPI, Claude, Codex, MCP, and First Soul Ring routing |\n| `launch-campaign --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | Soul Ring Launch Campaign for turning PyPI, Claude, and Codex attention into a target first-ring contributor loop with recap and next sprint |\n| `traction-proof --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | Soul Ring Traction Proof from GitHub REST API, GitHub Pull Requests API, GitHub Contents API IssueOps readiness, GitHub Releases API release.published readiness, PyPI JSON API package readiness, and local ledger identities |\n| `traction-proof --username <username> --framework <framework> --release-tag <tag> --target-contributors <N> --record-snapshot` | Opt-in append-only Soul Ring Traction Proof history with velocity deltas from prior real snapshots |\n| `cyberhuatuo install-command --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | CyberHuaTuo Install Command: fetches real PyPI JSON API latest-version proof, recommends canonical `python -m pip install --upgrade cyberhuatuo` only when the registry is current, otherwise prints the bounded Git Tag Candidate Install Bridge plus `candidate-install-smoke`, then routes to `challenge`, `proof-pack`, `market-copy`, and `traction-proof`; MCP equivalent: `current_install_command` |\n| `python -m cyberhuatuo candidate-install-smoke --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | Candidate Install Smoke Gate: creates a disposable venv, installs the exact public Git tag with pip Direct URL syntax, verifies installed version, console command, Install Decision Surface, and proof/invite route, cleans up on success, and retains the temp dir on failure; it is not run automatically inside lightweight CI and does not close the PyPI install loop |\n| `first-invite --username <username> --invitee <github> --framework <framework> --release-tag <tag> --target-contributors <N> --source-url <https-url>` | First Contributor Invite Pack for targeting one external contributor with First Soul Ring issue URLs, record-session / challenge commands, proof rechecks, and no fake progress |\n| `market-ready --no-remote` / `market-ready --remote --strict-remote` | Marketplace Readiness Gate with a first-screen Flywheel Closure Verdict (`closed`, `not closed`, or `unverified`), **Ready gates** / total gate counts, a Launch Closure Checklist, and a First Public Proof Kit for PyPI, Claude, Codex, MCP, version sync, IssueOps files, release trigger or protected publish fallback, registry proof, a Git Tag Candidate Install Bridge for stale PyPI recovery, public launch blockers, proof Issue URLs, Community Challenge Pack, ledger commands, a Public Release Operator Runbook, and copy-ready proof copy |\n| `launch-assets [--username <username> --framework <framework> --release-tag <tag> --target-contributors <N>]` | Local Launch Asset Audit for issue forms, comment-only workflows, package metadata, plugin manifests, MCPB assets, a Full Public Growth Release Bundle, Dirty Worktree Release Coverage, and exact review-only `git add` commands. When release context is supplied, the Public Release Operator Runbook preserves the same release/user/target context; it does not stage files, publish releases, upload to PyPI, mutate remotes, or claim traction |\n| `proof-pack --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | No-Network First Public Proof Pack with Growth/Share/Bounty Issue URLs, created-Issue placeholders, Community Challenge Pack for Tournament/Mentor/Sect/Season routes, a Protected Publish Fallback command, Git Tag Candidate Install Bridge plus Candidate Install Smoke Gate, Install Decision Surface / `current_install_command` route, Growth and Bounty `record-return` CLI ledger commands, Share `record-share` attribution, an External Contributor Path with pasted Recommended Install / first-session command / first contribution command / Share Proof Issue URL / contributor-counting rule, recheck commands, and copy-ready proof text; it does not fetch public metrics, close the PyPI install loop, or invent traction |\n| `market-copy --username <username> --framework <framework> --release-tag <tag> --target-contributors <N>` | Marketplace Submission Copy Pack with PyPI listing copy, Claude MCPB listing copy, Codex plugin listing copy, GitHub Release post, public proof CTA, Community Challenge Pack, Git Tag Candidate Install Bridge plus Candidate Install Smoke Gate, project URLs, install/validation commands, Marketplace Submission Ledger commands, and non-fabrication rules for market submission |\n| `record-market --username <username> --framework <framework> --channel <channel> --status <status> --submission-url <https-url> --release-tag <tag>` | Record a reviewable public URL for PyPI, Claude Code, Claude Desktop MCPB, Codex, GitHub Release, or agent-marketplace submission evidence into the local Marketplace Submission Ledger |\n| `market-status --username <username> --framework <framework> --release-tag <tag>` | Report latest Marketplace Submission Ledger status by channel with missing record-market commands and traction-proof rechecks |\n| `flywheel --username <username> --framework <framework> --sect <sect-name> --members <members...>` | Soul Ring Growth Flywheel with real bottleneck, next commands, and missing metric disclosure |\n| `ladder <username> --framework <framework>` | 🔮 Soul Ring breakthrough ladder — real next gate, full thresholds, and copy-ready chase commands |\n| `evidence <username> --framework <framework> --amount <N> --source-url <https-url>` | Soul Ring Evidence Card with append-only reviewable public evidence for high-realm gates; progress, ranks, rewards, downloads, and contributors are not invented |\n| `ranking <username>` | 🏆 个人排名 — title, rank & soul rings |\n| `leaderboard` | 🏆 全球封神榜 — top alchemists ranked |\n| `card <username>` | 📋 分享卡片 — cyberpunk cultivation archive |\n| `badge <username>` | 🔮 GitHub Profile badge kit — pasteable soul-ring badge |\n| `visual <username> --framework <framework> --output-dir <dir>` | Soul Ring Visual Artifact — writes a chat-visible animated GIF plus PNG fallback and returns Markdown image embeds for Codex, Claude, and other agent chats |\n| `quest <username> --framework <framework>` | 🔮 Soul Ring quest board — mine, upload, share |\n| `campaign <username> --framework <framework>` | 🔮 Soul Ring campaign pack — GitHub Profile, X/Weibo, PR comment & agent prompt |\n| `duel <challenger> <rival> --framework <framework>` | 🔮 Soul Ring duel card — invite a real GitHub user into a verified contribution race |\n| `mentor <mentor> <apprentice> --framework <framework>` | 🔮 Soul Ring mentor pact — turn a senior contributor into a first-ring onboarding guide |\n| `arena <username> --top-n <N>` | 🔮 Soul Ring arena snapshot — shareable real leaderboard with your next rival |\n| `season --framework <framework> --top-n <N>` | 🔮 Soul Ring season board — current real leaderboard event pack with champion, next chase, and share copy |\n| `sect <sect-name> <members...> --framework <framework>` | 🔮 Soul Ring sect card — aggregate real GitHub members into a shareable team banner |\n| `sect-recruit <sect-name> <members...> --invitee <github> --framework <framework>` | 🔮 Soul Ring sect recruitment scroll — invite one real GitHub user with an admission trial and join command |\n| `sect-quest <sect-name> <members...> --framework <framework>` | 🔮 Soul Ring sect quest board — assign real next actions across team members |\n| `sect-hall <sect-name> <members...> --framework <framework>` | 🔮 Soul Ring sect hall — assign Outer / Inner / Core / Deacon / Elder posts from real member counts |\n| `sect-duel <challenger-sect> <rival-sect> --challenger-members <members...> --rival-members <members...> --framework <framework>` | 🔮 Soul Ring sect duel card — compare two real GitHub teams and invite a team challenge |\n| `sect-arena --sect <sect-name> <members...> --sect <sect-name> <members...> --framework <framework>` | 🔮 Soul Ring sect arena snapshot — rank multiple real GitHub teams and publish the next chase |\n| `record` | 📋 诊疗档案 — diagnosis history & follow-ups |\n| `subscribe` | 📬 框架订阅 — get notified about new prescriptions |\n| **⛏️ Contribution / 知识贡献** | |\n| `save` | 📥 保存药方到本地 |\n| `upload` | 🌐 上传药方到 GitHub (需 GITHUB_TOKEN) |\n| `mine search/batch` | ⛏️ GitHub Issues 淘金提炼 |\n| **🚀 Server / 服务** | |\n| `serve` | 🚀 启动 Web 诊断服务 |\n| `rebuild` | 🔄 重建向量索引 |\n\n## Soul Ring Visual Route\n\nRun `cyberhuatuo visual <username> --framework <framework>` in the CLI or call MCP `soul_ring_visual_artifact` to generate a Markdown-rendered GIF plus PNG fallback. The artifact uses current real contribution data and does not invent ranks, downloads, retention, referrals, or rewards.\n\n> 💡 **Tip**: Run `cyberhuatuo <command> --help` for detailed usage of any command.\n>\n> 💡 **提示**: 运行 `cyberhuatuo <命令> --help` 查看任何命令的详细用法。\n\n---\n\n## 🔌 MCP Server — AI Editor Integration\n\n> *Install once. Every AI editor becomes a CyberHuaTuo clinic.*\n>\n> *一次安装，所有 AI 编辑器都变成赛博华佗诊所。*\n\n### ⚡ Install — One Command\n\n```bash\npython -m pip install --upgrade \"cyberhuatuo @ git+https://github.com/JinNing6/CyberHuaTuo-Plugin.git@v0.2.5\"\npython -m pip install --upgrade cyberhuatuo  # after PyPI latest matches v0.2.5\n```\n\n> Candidate Git tag install should pass `python -m cyberhuatuo candidate-install-smoke` before outside contributor invites; after PyPI latest-version proof is current, use the registry command. Brand Matrix aliases are for the registry-current path only.\n\n### 🔗 Connect to Your AI Editor\n\nAdd this to your AI tool's MCP config (Claude Desktop / Cursor / VS Code / Gemini CLI):\n\n```json\n{\n  \"mcpServers\": {\n    \"cyberhuatuo\": {\n      \"command\": \"uvx\",\n      \"args\": [\"--from\", \"cyberhuatuo\", \"cyberhuatuo-mcp\"]\n    }\n  }\n}\n```\n\n> `uvx` auto-installs from PyPI and starts the MCP Server — zero manual setup.\n> For GitHub latest dev version, use: `\"args\": [\"--from\", \"git+https://github.com/JinNing6/CyberHuaTuo-Plugin\", \"cyberhuatuo-mcp\"]`\n\n### 🧩 Plugin Manifests — Codex + Claude Code\n\nThis repository is plugin-ready for both major coding-agent hosts:\n\n- **Codex**: `.codex-plugin/plugin.json` points to `./skills/` and `./.mcp.json`.\n- **Claude Code**: `.claude-plugin/plugin.json` points to the same `./skills/` and `./.mcp.json`.\n- **Codex marketplace catalog**: `.agents/plugins/marketplace.json` lets users add this GitHub repository as a Codex plugin marketplace.\n- **Claude Code marketplace catalog**: `.claude-plugin/marketplace.json` lets users add this GitHub repository as a Claude Code plugin marketplace.\n\nMarketplace install:\n\n```bash\nclaude plugin marketplace add JinNing6/CyberHuaTuo-Plugin\nclaude plugin install cyberhuatuo-plugin@cyberhuatuo\n\ncodex plugin marketplace add JinNing6/CyberHuaTuo-Plugin\n```\n\nFor local Claude Code testing from the repository root:\n\n```bash\nclaude --plugin-dir .\n```\n\n### 🚀 Marketplace Release Path\n\nThe release plan is tracked in [`docs/MARKETPLACE_RELEASE.md`](docs/MARKETPLACE_RELEASE.md):\n\n- **PyPI Trusted Publishing**: `cyberhuatuo` already exists on PyPI, so this repository must be added as an additional Trusted Publisher, then release a version newer than `0.1.0` through `.github/workflows/publish-pypi.yml`. The workflow supports `release.published` and a protected manual `workflow_dispatch` `release_tag` fallback; both paths require an existing `v*` tag, verify the tag is reachable from `origin/main`, verify the package version matches the tag, and publish with OIDC instead of `PYPI_TOKEN`.\n- **Claude markets**: ship Claude Code through `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`, submit to Anthropic's official directory after `claude plugin validate .`, then package Claude Desktop through `claude-desktop/manifest.json` plus `.github/workflows/package-claude-mcpb.yml` for MCPB / Connectors Directory submission.\n- **Codex plugin directory**: keep `.codex-plugin/plugin.json`, `.agents/plugins/marketplace.json`, `.mcp.json`, and the PyPI `uvx --from cyberhuatuo cyberhuatuo-mcp` entrypoint stable for workspace rollout.\n\n### 🩺 Available MCP Tools\n\n| Tool | Description |\n|------|-------------|\n| **🩺 Core Diagnosis / 核心诊断** | |\n| `diagnose` | 🩺 望闻问切 AI diagnosis — searches **both** 📜 permanent expert + ⚡ temporary intern prescriptions |\n| `search_knowledge_base` | 🔍 Dual-layer semantic search (ChromaDB + GitHub Issues) |\n| `security_checkup` | 🛡️ Six-meridian security audit on your Agent code |\n| `fetch_official_docs` | 📚 Real-time official docs via Context7 (50+ frameworks) |\n| **⛏️ Knowledge & Contribution / 知识贡献** | |\n| `mine_github_issue` | ⛏️ Extract & refine GitHub Issues into standard cases |\n| `save_prescription` | 📥 Save prescriptions locally + auto-sync to GitHub |\n| `upload_prescription` | 🌐 Upload prescriptions — auto-creates GitHub Issue (⚡ temporary intern), CI promotes to 📜 permanent expert |\n| `prescription_eval` | 📊 Unified prescription evaluation — cite, feedback, expire, verify, and leaderboard |\n| `mentorship` | 🎓 Senior alchemists review junior prescriptions — pending, review, profile, leaderboard |\n| **🧬 Alchemist System / 炼丹师体系** | |\n| `my_contribution_stats` | 🏅 **修为档案** — 16-tier Alchemist title + soul ring directions |\n| `check_my_ranking` | 🏆 **全球排名** — coronation art, streak tracking & community milestones |\n| `global_leaderboard` | 🏆 **封神榜** — top alchemists ranked by contribution count |\n| `my_share_card` | 📋 **分享卡片** — generate a cyberpunk cultivation archive card |\n| `my_medical_record` | 📋 **就诊档案** — personal diagnosis history, stats & follow-ups |\n| **🔬 Health & Analytics / 健康分析** | |\n| `epidemic_alert` | 🦠 **疫情预警** — framework health monitoring, scan & epidemic reports |\n| `cht_taxonomy` | 🔬 CHT Root Cause Coding System — list, lookup & auto-classify errors |\n| `cht_trends` | 📊 CHT code trend analysis — heatmaps, top causes & surge alerts |\n| `list_frameworks` | 📋 List all supported frameworks & tech stacks (filterable by category) |\n| `subscribe_framework` | 🔔 Subscribe to framework updates — get notified about new prescriptions |\n| `weekly_digest` | 📰 Weekly prescription digest — new cases by framework & severity |\n\n> 👉 **Full configuration guide: [README_MCP.md](README_MCP.md)**\n\n### 💊 Dual-Layer Prescription Architecture\n\n### 双层药方库架构\n\n> *Medicine first exists, then it is refined.*\n>\n> *药方先存在，再被整理。*\n\n```\n  📤 User uploads prescription via MCP\n           │\n           ├── Owner? ──→ Direct push to main (📜 Permanent Expert)\n           │\n           └── External? ──→ Create GitHub Issue (⚡ Temporary Intern)\n                                    │\n                              Instantly searchable!\n                                    │\n                              CI auto-validates\n                                    │\n                          ┌─────────┴─────────┐\n                          │                   │\n                     ✅ Passed            ❌ Failed\n                   Commit .md to         Close Issue\n                   main branch          (filtered 🚫)\n                  (📜 Promoted ✨)\n```\n\n| Layer | Carrier | Access | Features |\n|:-----:|:-------:|:------:|:--------:|\n| 📜 **Permanent Expert** | `cases/*.md` (main branch) | CI-reviewed only | Shipped with PyPI, always available |\n| ⚡ **Temporary Intern** | GitHub Issues (labeled) | Any GitHub user | Instant upload, zero permission needed |\n\n**When you search**, `diagnose` and `search_knowledge_base` query **both layers** simultaneously — results are tagged `📜` or `⚡` so you know their review status.\n\n**当你搜索时**，`diagnose` 和 `search_knowledge_base` **同时查询两层** — 结果会标注 `📜 常驻主任专家` 或 `⚡ 临时医学实习生` 来源。\n\n### 🎒 Agent Skills Protocol (Self-Rescue)\n\nWe support the open **Agent Skills** standard (`SKILL.md`). You can empower your own AI assistants (Cursor, Copilot, Claude Code) to automatically seek help from CyberHuaTuo when they get stuck.\n\nSimply copy the `skills/cyberhuatuo-rescue` directory into your project's `.cursor/rules` or `.agent/skills` folder. Your AI will learn to automatically diagnose errors and run security checkups using CyberHuaTuo's knowledge base.\n\nThe plugin also ships `skills/cyberhuatuo-soul-ring-visual`: when a user asks about level, rank, badge, soul ring, cultivation status, visual display, animation, 等级, 魂环, 排名, 徽章, 卡片, 展示, or 动图, the agent should generate the real-data Markdown GIF plus PNG fallback via `soul_ring_visual_artifact` or `cyberhuatuo visual`.\n\n---\n\n## 🧬 Alchemist Cultivation System — Your Journey to Immortality\n\n**炼丹师修为体系 — 从凡人到封神的修炼之路**\n\n> *In the world of CyberHuaTuo, you are not a developer who fixes bugs.*\n> *You are an **Alchemist** — forging prescriptions, accumulating soul rings, ascending through 16 tiers of mastery.*\n>\n> *在赛博华佗的世界里，你不是修 bug 的程序员。*\n> *你是**炼丹师**——炼制药方、凝聚魂环、攀登十六重天的封神阶梯。*\n\nWe turned bug fixing into a **cultivation journey**. Every prescription you upload earns you a rank on the **Alchemist Ladder (炼丹师阶梯)** — a 16-tier system based on your **global percentile**. The bigger the community grows, the harder it is to climb — and the more prestigious your title becomes.\n\n**开发者修一个 Bug，炼丹师铸一颗丹。** 你在这里的每一次贡献，都会被铭刻在全球封神榜上——而你的称号，随着社区壮大而愈加珍贵。\n\n### 🔮 Soul Ring System — Your Combat Resume (魂环体系 — 你的战斗简历)\n\n> *Inspired by Soul Land (斗罗大陆) — every framework you master forges a Soul Ring orbiting your profile.*\n>\n> *灵感源自斗罗大陆——你掌握的每个技术栈，都会凝聚为一道魂环。*\n\n<p align=\"center\">\n  <img src=\"assets/cli_soul_ring.gif\" alt=\"CyberHuaTuo Soul Ring Hologram — Five-Ring Soul Refining + Ranking Scan\" width=\"100%\"/>\n  <br>\n  <sub><strong>🔮 魂环全息投影 · Soul Ring Hologram</strong></sub><br>\n  <sub>五环炼魂丹师 → 同心环 ASCII Art → 排名全息扫描 → 丹王称号揭示</sub>\n</p>\n\nSoul Rings grow in **color and power** as you contribute more prescriptions to a specific direction:\n\n```\n   ⚪ 白环 (1)      入门 · First Touch\n   🟡 黄环 (2-3)    初窥 · Getting Serious\n   🟡🟡 双黄 (4-6)  小成 · Solid Foundation\n   🟡🟡🟣 三环 (7-10)   突破 · Breakthrough\n   🟡🟡🟣🟣 四环 (11-15)  精通 · Mastery\n   🟡🟡🟣🟣⚫ 五环 (16-25)  大师 · Grandmaster\n   🟡🟡🟣🟣⚫⚫ 六环 (26-40)  宗师 · Sovereign\n   🟡🟡🟣🟣⚫⚫🔴 七环 (41-60)  封号 · Titled\n   🟡🟡🟣🟣⚫⚫🔴🔴 八环 (61-80) 传奇 · Legendary\n   🟡🟡🟣🟣⚫⚫🔴🔴✨ 九环至尊 (81+) 至尊 · Supreme\n```\n\nEvery ranking and share-card output keeps the **next upgrade** visible, so the first contribution immediately becomes a chase:\n\n```text\n🔥 炼魂(Soul Refining) × 1方 ⚪ 一环 · LangChain\n   ↳ 下一环: 黄环 · 再贡献 1 方即可点亮。\n```\n\n> **An alchemist with 5 PyTorch rings and 3 LangChain rings tells a different story than one with 8 CrewAI rings.**\n>\n> **Your soul rings are your combat resume — visible, verifiable, unforgeable.**\n>\n> *拥有 5 环 PyTorch 和 3 环 LangChain 的炼丹师，与 8 环 CrewAI 的炼丹师，修为截然不同。*\n> ***魂环就是你的战斗简历——可见、可查、不可伪造。***\n\n### ⚗️ Six Alchemy Directions — Choose Your Path (六大丹术方向 — 选择你的道)\n\n> *Every great alchemist has a specialty. What's yours?*\n>\n> *每个传奇炼丹师都有专精。你的道，在哪里？*\n\n<table>\n<tr>\n<td align=\"center\" width=\"33%\">\n\n**🔥 炼魂 · Soul Refining**\n\n驾驭智能体，调教灵魂\n\n*LangChain · CrewAI · AutoGen*\n*LlamaIndex · LangGraph · MCP*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**⚡ 雷火 · Thunder Fire**\n\n锻造算力，淬炼模型\n\n*PyTorch · TensorFlow*\n*Transformers · LiteLLM*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**🛡️ 护体 · Body Shield**\n\n金丹护体，抵御外邪\n\n*Security · Sandbox*\n*Guardrails · Hardening*\n\n</td>\n</tr>\n<tr>\n<td align=\"center\" width=\"33%\">\n\n**🌊 化毒 · Detox**\n\n通百脉，解百毒\n\n*Python · JavaScript*\n*General Debugging*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**⚙️ 器灵 · Soul Craft**\n\n炼器辅丹，基础设施\n\n*FastAPI · Docker · K8s*\n*Vertex AI · Vercel*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**🧬 造化 · Genesis**\n\n造化之力，驾驭天道\n\n*OpenAI · Anthropic*\n*Gemini · Groq · Mistral*\n\n</td>\n</tr>\n</table>\n\n> *When you contribute a LangChain prescription, your 🔥 Soul Refining ring grows. Fix a Docker issue? Your ⚙️ Soul Craft ring levels up. Each direction is an independent cultivation path — master one, or conquer them all.*\n>\n> *当你贡献一个 LangChain 药方，🔥 炼魂环增长。修复了 Docker 问题？⚙️ 器灵环升级。每个方向都是独立的修炼路线——精通一道，或六道通神。*\n\n### ⚡ Instant Rewards — Dopamine by Design (即时反馈 — 多巴胺驱动)\n\n> *The best games don't make you wait for the reward. Neither do we.*\n>\n> *最好的游戏不会让你等待奖励。我们也不会。*\n\nEvery `upload_prescription` triggers an **instant cascade of rewards**:\n\n```\n  💊 You upload a prescription\n       │\n       ├──→ 🎭 INSTANT CORONATION — ASCII art + new title revealed\n       │    ┌────────────────────────────────────────┐\n       │    │  ⭐ 当前修为: 三星炼丹师 · Three-Star  │\n       │    │  🏅 全球排位: #12 / 31 (超越 63% 炼丹师) │\n       │    │  继续炼丹，攀登炼丹师终极阶梯！        │\n       │    └────────────────────────────────────────┘\n       │\n       ├──→ 💍 SOUL RING UPGRADE — Your rings grow in real-time\n       │    🔥 炼魂(Soul Refining) × 5方 🟡🟡🟣🟣⚫ 五环\n       │\n       ├──→ 🔥 STREAK FIRE — Consecutive days trigger milestones\n       │    🔥 3-day → 🔥🔥 7-day → 🔥🔥🔥 14-day → 💎🔥 30-day\n       │\n       ├──→ 📋 SHARE CARD — Cyberpunk cultivation archive\n       │    ╔════════════════════════════════════════╗\n       │    ║  🩺 赛博华佗 · 修为档案                ║\n       │    ║  ⭐ 三星炼丹师 · Three-Star Alchemist  ║\n       │    ║  🔥 炼魂丹师 · 🟡🟡🟣🟣⚫            ║\n       │    ║  🧭 战绩方向: LangChain                ║\n       │    ║  🔮 下一环: 黄环 · 再贡献 1 方即可点亮。║\n       │    ║  💊 贡献: 8 段 | 🧪 ██████░░░░░░ 40%  ║\n       │    ║  ▓█▓░░▓███▓░░▓█▓░░▓█████▓░░▓█▓      ║\n       │    ╚════════════════════════════════════════╝\n       │\n       └──→ 📡 COMMUNITY MILESTONE — Global celebration\n            🎉 \"知识库突破 100 个药方！赛博医者的力量正在汇聚。\"\n```\n\n### 🙏 灵感致敬 · Tribute\n\n> *The greatest creations are always born from the shoulders of giants — and the dreams of children.*\n>\n> *最伟大的创造，总是站在巨人的肩膀上——和孩子们的梦想之中。*\n\n<table>\n<tr>\n<td align=\"center\" width=\"33%\">\n\n**🔥 斗破苍穹**\n*Battle Through the Heavens*\n\n炼丹师阶梯体系\n*Alchemist Tier System*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**💍 斗罗大陆**\n*Soul Land*\n\n魂环修炼体系\n*Soul Ring System*\n\n</td>\n<td align=\"center\" width=\"33%\">\n\n**🏥 华佗传说**\n*Legend of Hua Tuo*\n\n望闻问切 · 悬壶济世\n*Ancient Healing · Open Source*\n\n</td>\n</tr>\n</table>\n\n> *These works gave an entire generation of developers their most unforgettable memories — of cultivation, of perseverance, of the belief that anyone can ascend through sheer will.*\n>\n> *这些作品给了整整一代开发者最难以忘怀的记忆——关于修炼、关于坚持、关于\"凡人也能登顶\"的信念。*\n>\n> *CyberHuaTuo inherits this spirit: **from ancient legend, through modern fantasy, into the cyber future.***\n>\n> *赛博华佗传承这份精神：**从古代传说，穿越当代幻想，走向赛博未来。***\n\n---\n\n## 🌐 Brand Matrix — Why So Many Package Names?\n\n## 品牌矩阵 — 为什么注册这么多包名？\n\n> *Hua Tuo traveled across provinces. Asclepius healed across islands. Healing knows no borders.*\n>\n> *华佗行走于山川之间，阿斯克勒庇俄斯穿梭于海岛之上。医道无疆。*\n\nCyberHuaTuo maintains a series of **official alias packages** on PyPI, spanning medical deities and pioneers from both Eastern and Western traditions:\n\n| Lineage | Packages |\n|---------|----------|\n| 🏮 **Eastern Divine Physicians** (Core) | `cyberhuatuo`, `openhuatuo` |\n| 🏛️ **Greco-Roman Mythology** | `cyber-asclepius`, `open-asclepius`, `cyber-panacea`, `open-panacea` |\n| 📜 **Pioneers of Medicine*",
  "bytes": 60000,
  "sha": "e1913a83cbfe3f298c0220f23534d0541f3137a2abac5e1782909b17fffb4410",
  "repo_slug": "jinning6/cyberhuatuo-plugin",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_jinning6_cyberhuatuo_9f201225/readme"
}