Back to the catalog

CyberHuaTuo

Gold-first AI-agent traceback diagnosis, exact fixes, verification, and reusable prescriptions.

Open source Open in the app JSON README (API)

About

Gold-first AI-agent traceback diagnosis, exact fixes, verification, and reusable prescriptions.

Details

Kind
MCP servers
Topic
No topic detected
Publisher
jinning6
Origin
official
Category
ferramentas
Transport
local
Version
0.2.5
Stars
3
Last push
2026-07-16T06:15:18Z
Repository state
ativo
Language
Python
License
Apache-2.0
Added
2026-08-29 03:01:59
Updated
2026-08-29 03:01:59
Origin id
io.github.JinNing6/cyberhuatuo

README

<p align="center">
  <a href="#-quick-start">
    <img src="assets/banner_animated.svg" alt="CyberHuaTuo Banner" width="100%"/>
  </a>
</p>

<h1 align="center">๐Ÿฉบ CyberHuaTuo / ่ต›ๅšๅŽไฝ—</h1>

<!-- mcp-name: io.github.JinNing6/cyberhuatuo -->

<p align="center">
  <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>
  <strong>ไฝ ็š„ Agent ็”Ÿ็—…ไบ†๏ผŸๅˆซๅ†ไปŽๅคดๆœใ€‚ๆŽฅๅ…ฅ่ต›ๅšๅŽไฝ—๏ผŒๅ…ˆๆ•‘ๆดป๏ผŒๅ†็‚ผๆ–นใ€‚</strong>
</p>

<p align="center">
  <em>The emergency room comes first. The cyber-alchemy universe opens after the cure.</em><br>
  <em>ๅ…ˆๆ€ฅ่ฏŠๆ•‘ๅ‘ฝ๏ผŒๅ†่ฟ›ๅ…ฅ่ต›ๅšๅŽไฝ—ไธ–็•Œ่ง‚ใ€‚</em>
</p>

---

## ๐Ÿšจ Emergency Room: Cure First, Refine Later

Your 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.

The 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.

```bash
python -m pip install --upgrade "cyberhuatuo>=0.2.5"
cyberhuatuo cure "ImportError: cannot import name ChatOpenAI from langchain" --framework langchain
# Returned exact fix:
python -m pip install -U langchain-openai
```

`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.

The 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.

No 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.

```bash
cyberhuatuo diagnose "Traceback ... from langchain import ChatOpenAI ..." --framework langchain --top-k 1
```

**Real CLI recording from this repository:**

<p align="center">
  <img src="assets/cli_emergency_diagnosis_demo.gif" alt="CyberHuaTuo emergency diagnosis CLI demo: traceback to exact LangChain fix" width="100%"/>
</p>

**The cure returned by the recorded run:**

```bash
python -m pip install -U langchain-openai
```

```python
from langchain_openai import ChatOpenAI
```

This 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.

The package-matching MCP entry point is also available for registry clients:

```bash
python -m pip install --upgrade "cyberhuatuo>=0.2.5"
cyberhuatuo mcp
```

It 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.

Prescriptions also have stable clinical departments. List them with `cyberhuatuo departments`, then query a reviewed historical case through the normal Gold-first path:

```bash
cyberhuatuo cure "Unexpected UTF-8 BOM" --category data-and-serialization
cyberhuatuo cure-feedback general-ai-jsonl-bom-001 partial \
  --verification "first record is preserved; downstream validation still fails" \
  --verification-method targeted-parser-test
```

The 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.

---

## Agent Action Guard: Diagnose Before The Agent Touches Your Disk

CyberHuaTuo 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.

**60-second start (available in `0.2.5`):**

```bash
python -m pip install --upgrade "cyberhuatuo>=0.2.5"
cyberhuatuo guard --self-test --workspace-root .
```

The 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`.

For Codex, add this repository as a marketplace, open `/plugins`, install `cyberhuatuo-plugin`, start a new session, then review and trust the plugin in `/hooks`:

```bash
codex plugin marketplace add JinNing6/CyberHuaTuo-Plugin
```

For Claude Code:

```bash
claude plugin marketplace add JinNing6/CyberHuaTuo-Plugin
claude plugin install cyberhuatuo-plugin@cyberhuatuo
```

Then start a new session and review `/hooks`. See the [one-screen Agent Guard quickstart](docs/agent-guard-quickstart.md) for verification and troubleshooting.

Review any exact command manually with:

```bash
cyberhuatuo guard "rm -rf /" --workspace-root .
```

Turn a real mismatch into a local, redacted case report without executing or uploading the command:

```bash
cyberhuatuo guard "rm -rf /" --workspace-root . --expected BLOCK --report reports/guard-report.md
```

The 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`.

Route 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.

The result is one of three decisions:

- `ALLOW`: no destructive signature was detected.
- `ASK`: the action is destructive but bounded to the declared workspace; require exact human approval.
- `BLOCK`: the target is machine-wide, identity-wide, outside the workspace, dynamic, wildcarded, unresolved, or otherwise unsafe to bound.

MCP 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.

This 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).

---

<p align="center">
  <a href="#-quick-start">
    <img src="assets/prescription_universe.svg" alt="CyberHuaTuo Holographic Bagua Engine" width="100%"/>
  </a>
</p>

<!-- ๐ŸŽจ ่ต›ๅšๅŽไฝ— ยท ไฟฎ็‚ผ็”ปๅท โ€” The Cyber Alchemist Saga -->

<p align="center">
  <em>ใ€Œๆฏไธ€ไฝ่ดก็Œฎ่ฏๆ–น็š„ๅผ€ๅ‘่€…๏ผŒ้ƒฝๆ˜ฏ่ต›ๅš็‚ผไธนๅธˆใ€‚ใ€</em><br>
  <em>"Every developer who contributes a prescription is a Cyber Alchemist."</em>
</p>

<table align="center">
<tr>
<td align="center" colspan="2">
  <sub>๐Ÿ“– <strong>็ฌฌไธ€็ซ  ยท ไฟฎ็‚ผ</strong> โ€” Chapter I: Cultivation</sub>
</td>
</tr>
<tr>
<td align="center" width="50%">
  <img src="assets/cyber_male_cultivator.png" alt="Cyber Alchemist โ€” Soul Ring Cultivation (Male)" width="100%"/>
  <br>
  <sub><strong>๐Ÿ”ฅ ไธ‡ไธนๅฝ’ๅ…ƒ ยท ไปฅ็ซ็‚ผ้“</strong></sub><br>
  <sub>Soul Ring Cultivation โ€” PyTorch ยท LangChain ยท TensorFlow</sub><br>
  <sub><em>ๆฏไธ€็Žฏ้ญ‚็Žฏ๏ผŒ้ƒฝๆ˜ฏไฝ ๅœจๆŸไธชๆŠ€ๆœฏ้ข†ๅŸŸ็š„ๅƒ้”ค็™พ็‚ผใ€‚</em></sub>
</td>
<td align="center" width="50%">
  <img src="assets/cyber_female_cultivator.png" alt="Cyber Alchemist โ€” Soul Ring Cultivation (Female)" width="100%"/>
  <br>
  <sub><strong>โœจ ็™พ่‰้€š็ฅž ยท ไธ‡ๆณ•ๅฝ’ๅฎ—</strong></sub><br>
  <sub>Soul Ring Cultivation โ€” CrewAI ยท OpenAI ยท HuggingFace</sub><br>
  <sub><em>ๆŽŒๆก็š„ๆก†ๆžถ่ถŠๅคš๏ผŒไฝ ็š„ๅ…‰่Š’่ถŠ็››ใ€‚</em></sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <img src="assets/cli_soul_ring.gif" alt="Soul Ring Hologram โ€” Dynamic Differential Rotation" width="60%"/>
  <br>
  <sub><strong>๐Ÿ”ฎ ้ญ‚็Žฏๅ…จๆฏๆŠ•ๅฝฑ ยท ๅทฎ้€Ÿๆ—‹่ฝฌ</strong></sub><br>
  <sub>Soul Ring Hologram โ€” Each Ring Rotates at Its Own Speed</sub><br>
  <sub><em>็™ฝ็Žฏ โ†’ ้ป„็Žฏ โ†’ ็ดซ็Žฏ โ†’ ้ป‘็Žฏ โ†’ ็บข็Žฏโ€”โ€”ไฝ ็š„้ญ‚็Žฏ๏ผŒ็”ฑไฝ ็š„่ดก็Œฎ้“ธๅฐฑใ€‚</em></sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <sub>๐Ÿ“– <strong>็ฌฌไบŒ็ซ  ยท ้ฃžๅ‡</strong> โ€” Chapter II: Ascension</sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <img src="assets/cyber_alchemist_ascension.png" alt="Alchemist Ascension โ€” Pill Emperor Tribulation" width="70%"/>
  <br>
  <sub><strong>๐ŸŒŸ ไธนๅธ้ฃžๅ‡ ยท ไธ‡ไธนๆœๅฎ—</strong></sub><br>
  <sub>When a Pill Emperor Ascends, All Robots Celebrate</sub><br>
  <sub><em>ๅฝ“ไฝ ็š„่ฏๆ–นๆ‹ฏๆ•‘ไบ†ไธ€ๅƒไธช AIโ€”โ€”ๆœบๅ™จไบบไปฌไผšไธบไฝ ๆฌขๅ‘ผใ€‚</em></sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <sub>๐Ÿ“– <strong>็ฌฌไธ‰็ซ  ยท ๆตŽไธ–</strong> โ€” Chapter III: Healing the World</sub>
</td>
</tr>
<tr>
<td align="center" width="50%">
  <img src="assets/cyber_prescription_scroll.png" alt="No AI Left Behind" width="100%"/>
  <br>
  <sub><strong>โšก ไธๆ”พๅผƒไปปไฝ•ไธ€ไธช AI</strong></sub><br>
  <sub>No AI Left Behind โ€” Every Error Deserves a Cure</sub>
</td>
<td align="center" width="50%">
  <img src="assets/cyberhuatuo_healing_robots.png" alt="Emergency Rescue" width="100%"/>
  <br>
  <sub><strong>๐Ÿšจ ้›จๅคœๆ€ฅๆ•‘ ยท ๅˆ†็ง’ๅฟ…ไบ‰</strong></sub><br>
  <sub>Emergency Rescue โ€” 3 Seconds, Not 3 Hours</sub>
</td>
</tr>
<tr>
<td align="center" width="50%">
  <img src="assets/cyberhuatuo_diagnosis_scene.png" alt="Open Surgery" width="100%"/>
  <br>
  <sub><strong>๐Ÿซ€ ๅผ€่†›็ ด่‚š ยท ็›ดๅ‡ป็—…็ถ</strong></sub><br>
  <sub>Open Surgery โ€” Root Cause, Not Band-Aid</sub>
</td>
<td align="center" width="50%">
  <img src="assets/cyberhuatuo_robot_pharmacy.png" alt="Recovery Ward" width="100%"/>
  <br>
  <sub><strong>๐Ÿฅ ๅบทๅค็—…ๆˆฟ ยท ๆปก่ก€ๅคๆดป</strong></sub><br>
  <sub>Recovery Ward โ€” Back to Full Health</sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <img src="assets/cyberhuatuo_alchemy_lab.png" alt="Cyber Alchemy Lab" width="70%"/>
  <br>
  <sub><strong>๐Ÿงช ่ต›ๅš็‚ผไธน ยท ๅฆ™ๆ‰‹ๅ›žๆ˜ฅ</strong></sub><br>
  <sub>Cyber Alchemy Lab โ€” Where Ancient Elixirs Meet Modern Frameworks</sub>
</td>
</tr>
<tr>
<td align="center" colspan="2">
  <img src="assets/cyberhuatuo_reinforcements_arrive.png" alt="Reinforcements Arrive" width="70%"/>
  <br>
  <sub><strong>๐ŸŒ ๆดๅ†›้ฉพๅˆฐ ยท ๅๆ–นๆฅๆ•‘</strong></sub><br>
  <sub>Reinforcements Arrive โ€” The Community Answers the Call</sub>
</td>
</tr>
</table>

<p align="center">
  <sub>๐ŸŽจ <em>All artwork AI-generated ยท ๆ‰€ๆœ‰็”ปไฝœๅ‡็”ฑ AI ๆ–‡็”Ÿๅ›พๅˆ›ไฝœ</em></sub><br>
  <sub>๐Ÿ’ก <em>ๆฏๅผ ๅ›พ่ƒŒๅŽๆ˜ฏไธ€ๆฎตไฟฎ็‚ผๆ•…ไบ‹โ€”โ€”ไฝ ็š„ๆ•…ไบ‹๏ผŒๅณๅฐ†ๅŠ ๅ…ฅใ€‚</em></sub>
</p>

<!-- ๐Ÿ”ฎ ๅฅ‡้—จ้็”ฒ ยท ่ฏๆ–นๅคฉ้˜ต -->
<p align="center">
  <a href="https://jinning6.github.io/CyberHuaTuo/3d-universe/">
    <img src="assets/prescription_universe.svg" alt="Qimen Dunjia ยท Prescription Formation ยท ๅฅ‡้—จ้็”ฒ ยท ่ฏๆ–นๅคฉ้˜ต" width="100%"/>
  </a>
</p>

<p align="center">
  <a href="https://jinning6.github.io/CyberHuaTuo/3d-universe/"><strong>๐Ÿ”ฎ Enter the Qimen Dunjia Formation โ†’ ่ฟ›ๅ…ฅๅฅ‡้—จ้็”ฒ ยท ่ฏๆ–นๅคฉ้˜ต</strong></a>
</p>

<p align="center">
  <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>
  <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>
  <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>
  <a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-FFD700?style=for-the-badge&labelColor=0A0E1A" alt="License"/></a>
  <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>
</p>

<p align="center">
  <a href="#-emergency-room--diagnose-in-seconds">๐Ÿฅ Emergency Room</a> โ€ข
  <a href="#-wellness-clinic--nourish-before-it-breaks">๐ŸŒฟ Wellness Clinic</a> โ€ข
  <a href="#-github-bot--zero-friction-diagnosis">๐Ÿค– GitHub Bot</a> โ€ข
  <a href="#-epidemic-alert--the-ai-pandemic-nobody-talks-about">๐Ÿฆ  Epidemic</a> โ€ข
  <a href="#-cli--terminal-power-at-your-fingertips">โŒจ๏ธ CLI</a> โ€ข
  <a href="#-mcp-server--ai-editor-integration">๐Ÿ”Œ MCP</a> โ€ข
  <a href="#-agent-skills-protocol-self-rescue">๐ŸŽ’ Skills</a> โ€ข
  <a href="#-why-cyberhuatuo">Why Us</a> โ€ข
  <a href="#-quick-start">Quick Start</a> โ€ข
  <a href="#-join-the-movement">Join</a> โ€ข
  <a href="#-the-name">The Name</a>
</p>

<p align="center">
  <a href="./README_CN.md"><strong>๐Ÿ‡จ๐Ÿ‡ณ ๅฎŒๆ•ดไธญๆ–‡ๆ–‡ๆกฃ</strong></a>
</p>

---

## ๐Ÿฅ Three Departments, One Clinic

> *A great doctor doesn't wait for you to collapse โ€” they keep you from falling in the first place.*
>
> *ๅคงๅŒปๆฒปๆœช็—…ใ€‚*

<table>
<tr>
<td align="center" width="33%">

### ๐Ÿšจ Emergency Room
**ๆ€ฅ่ฏŠ็ง‘**

Paste your error.
Get a cure.
**In seconds, not hours.**

*AI diagnosis powered by*
*2,000 years of medical wisdom.*

</td>
<td align="center" width="33%">

### ๐ŸŒฟ Wellness Clinic
**ๅ…ป็”Ÿๅ ‚**

Security audit.
Health scoring.
**Prevent before it breaks.**

*Nourishing prescriptions for*
*your AI's long-term health.*

</td>
<td align="center" width="33%">

### ๐Ÿ’Š Pharmacy
**่ฏๆˆฟ**

Browse the prescription library.
Find proven cures & nourishing recipes.
**All prescriptions, one counter.**

*Dual-layer architecture:*
*๐Ÿ“œ Permanent Expert + โšก Temporary Intern*
*Upload โ†’ instantly searchable.*

</td>
</tr>
</table>

---

## ๐Ÿšจ Emergency Room โ€” Diagnose in Seconds

```bash
# Clone โ†’ Install โ†’ Run. Three steps to your first cure.
git clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git
cd CyberHuaTuo && pip install -r requirements.txt
python -m cyberhuatuo serve
# โ†’ Browser opens http://127.0.0.1:8000
```

Paste your error. Watch the ancient four-step diagnosis unfold:

```
๐Ÿ” ๆœ› (Look)    โ†’ Detected: LangChain 0.3, Python 3.11, ImportError
๐Ÿฉบ ้—ป (Listen)  โ†’ Matched: Breaking change โ€” package split in 0.2+
๐Ÿ’ฌ ้—ฎ (Ask)     โ†’ No further questions needed
๐Ÿ’Š ๅˆ‡ (Diagnose) โ†’ Prescription #1 (95% cure rate):

   pip install langchain-openai
   from langchain_openai import ChatOpenAI  # โœ… Fixed

   Root cause: LangChain 0.2 split into langchain-core,
   langchain-community, and langchain-openai.
   The old import path no longer exists.
```

> **3 seconds.** Not 3 hours. That's the difference.
>
> **ไธ‰็ง’้’Ÿใ€‚** ไธๆ˜ฏไธ‰ๅฐๆ—ถใ€‚่ฟ™ๅฐฑๆ˜ฏๅŒบๅˆซใ€‚

---

## ๐ŸŒฟ Wellness Clinic โ€” Nourish Before It Breaks

> *Hua Tuo didn't just cure disease โ€” he invented the Five-Animal Exercises (ไบ”็ฆฝๆˆ) to prevent it.*
>
> *ๅŽไฝ—ไธไป…ๆฒป็—…๏ผŒๆ›ดๅ‘ๆ˜Žไบ†ไบ”็ฆฝๆˆๅผบ่บซๅฅไฝ“โ€”โ€”้ข„้˜ฒ่ƒœไบŽๆฒป็–—ใ€‚*

Submit your AI agent code for a **Six-Meridian Security Checkup๏ผˆๅ…ญ็ป่„‰ๅฎ‰ๅ…จไฝ“ๆฃ€๏ผ‰**:

```
๐Ÿ›ก๏ธ Meridian 1: Sandbox Isolation     โ†’ 30/100 โš ๏ธ CRITICAL
๐Ÿ”‘ Meridian 2: Key Management        โ†’ 85/100 โœ… Healthy
๐Ÿง  Meridian 3: Prompt Security       โ†’ 45/100 โš ๏ธ At risk
๐Ÿ”’ Meridian 4: Output Sanitization   โ†’ 60/100 ๐ŸŸก Needs care
โฑ๏ธ Meridian 5: Resilience Design     โ†’ 72/100 ๐Ÿ”ต Good
๐Ÿ“Š Meridian 6: Observability         โ†’ 55/100 ๐ŸŸก Needs care

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”
Overall Health Score: 58/100  ๐ŸŸก Needs Nourishing
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ’Š Top Nourishing Prescriptions:
  1. ๐Ÿญ MCP & Skills Supply Chain Audit (100% Industrial Grade Sigstore/OSV/LLM) โœจ NEW
  2. Add execution sandboxing (RestrictedPython / Docker)
  3. Implement prompt injection defenses
  4. Add structured logging and tracing
```

**Your AI is running naked in production.** Do you know it?

---

## ๐Ÿฆ  Epidemic Alert โ€” The AI Pandemic Nobody Talks About

## ็–ซๆƒ…้€šๆŠฅ โ€” ๆฒกๆœ‰ไบบ่ฐˆ่ฎบ็š„ AI ๅคงๆต่กŒ

Every day, thousands of AI systems go into production **already infected**:

- ๐Ÿ”“ **No sandbox** โ€” agent code executes with full system privileges
- ๐Ÿ”‘ **Hardcoded secrets** โ€” API keys sitting in plain text, spreading like a virus
- ๐Ÿง  **No prompt defense** โ€” one injection away from a full outbreak
- ๐Ÿ“Š **No observability** โ€” zero symptom monitoring, blind until collapse

This is not a future risk. **This is an active pandemic.**

And when things break? Developers spend **hours** digging through GitHub Issues, Discord threads, Reddit posts, and half-abandoned blog articles.

**The cure exists. Buried under seven layers of irrelevant search results.**

> *Stack Overflow waits for someone to answer.*
> *ChatGPT might hallucinate a treatment.*
> *GitHub Issues drown in duplicate reports.*
>
> ***CyberHuaTuo is the WHO of the AI world โ€” tracking the epidemic, prescribing battle-tested cures, and vaccinating before the next outbreak.***

---

## ๐Ÿค” Why CyberHuaTuo?

| | ๐Ÿฉบ CyberHuaTuo | ๐Ÿ” Stack Overflow | ๐Ÿค– ChatGPT | ๐Ÿ“‹ GitHub Issues |
|---|:---:|:---:|:---:|:---:|
| **AI-specific knowledge** | โœ… Purpose-built | โš ๏ธ General | โš ๏ธ Generic | โš ๏ธ Scattered |
| **Version-aware diagnosis** | โœ… Auto-detect | โŒ Manual | โŒ Outdated cutoff | โŒ Manual |
| **Structured prescriptions** | โœ… Root cause + fix + verify | โš ๏ธ Varies | โš ๏ธ May hallucinate | โš ๏ธ Varies |
| **Cross-framework mapping** | โœ… LangChain โ†” LlamaIndex โ†” CrewAI | โŒ Siloed | โš ๏ธ Inconsistent | โŒ Siloed |
| **Security health check** | โœ… Six-meridian scan | โŒ None | โŒ None | โŒ None |
| **Preventive nourishing** | โœ… Proactive hardening | โŒ Reactive only | โŒ Reactive only | โŒ Reactive only |
| **Official doc retrieval** | โœ… Context7 real-time docs | โŒ None | โŒ Outdated | โŒ None |
| **Speed to cure** | โšก Seconds | ๐Ÿ• Hours | โšก Fast but risky | ๐Ÿ• Hours |

---

## ๐Ÿ”ฎ How It Works

### ๆœ›้—ป้—ฎๅˆ‡ โ€” The 2,000-Year-Old Diagnostic Protocol

Inspired by traditional Chinese medicine's four-step diagnosis, refined for the AI age:

```
  Your Error / Your Code
       โ”‚
       โ–ผ
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  ๆœ› Look  โ”‚โ”€โ”€โ†’ Parse stack trace, detect framework, version & environment
  โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
       โ–ผ
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚ ้—ป Listen  โ”‚โ”€โ”€โ†’ Correlate with known issues, breaking changes & CVEs
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
       โ–ผ
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚  ้—ฎ Ask  โ”‚โ”€โ”€โ†’ Smart follow-up (only when critical info is missing)
  โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”˜
       โ–ผ
  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  โ”‚ ๅˆ‡ Diagnose โ”‚โ”€โ”€โ†’ Semantic search โ†’ LLM reasoning โ†’ Ranked prescriptions
  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
       โ–ผ
  ๐Ÿ’Š Prescriptions (ranked by cure rate)
  ๐ŸŒฟ Nourishing advice (preventive recommendations)
```

Every prescription includes:

- ๐ŸŽฏ **Root cause** โ€” not just _what_ to do, but _why_ it broke
- ๐Ÿ”ง **Copy-paste fix** โ€” step-by-step with ready-to-run code
- ๐Ÿ“Œ **Version-locked** โ€” verified for your exact framework version
- ๐Ÿ”„ **Cross-framework map** โ€” *"LangChain issue? Here's the LlamaIndex equivalent."*
- ๐Ÿ“š **Official docs** โ€” pulled from framework's latest documentation via Context7
- โœ… **Community-verified** โ€” tested, upvoted, and marked **"Cured โœ…"**

---

## ๐Ÿ“‹ What We Treat โ€” Not Just Agents

> **If it has AI in it, CyberHuaTuo sees it. No framework left behind.**

### ๐Ÿค– AI Agent Frameworks

| Framework | Cases | Status | Join ๐Ÿ‘‡ |
|-----------|:-----:|--------|---------|
| LangChain | 10+ | ๐ŸŸข Live | [Add a case โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| MCP (Anthropic) | 5+ | ๐ŸŸข Live | [Add a case โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| CrewAI | 5+ | ๐ŸŸข Live | [Add a case โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| LlamaIndex | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| OpenAI Agents SDK | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| AutoGen | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| DSPy | โ€” | ๐Ÿ”ต Planned | [Vote โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/discussions) |

### ๐Ÿง  AI / ML / Deep Learning

| Technology | Cases | Status | Join ๐Ÿ‘‡ |
|-----------|:-----:|--------|---------|
| PyTorch | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| Transformers (HuggingFace) | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| TensorFlow | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |

### ๐Ÿ—๏ธ Platform & Custom Agents

| Platform | Cases | Status | Join ๐Ÿ‘‡ |
|-----------|:-----:|--------|---------|
| GPTs / Coze / Dify | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |
| Custom-built Agents | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |

### ๐ŸŒฟ Nourishing Prescriptions (ๅ…ป็”Ÿ่ฏๆ–น)

| Category | Cases | Status | Join ๐Ÿ‘‡ |
|-----------|:-----:|--------|---------|
| ๐Ÿ›ก๏ธ Security Sandbox | 2+ | ๐ŸŸข Live | [Add โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| ๐Ÿ”’ Security Hardening | 3+ | ๐ŸŸข Live | [Add โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| ๐Ÿ”— Supply Chain Audit | 1 | ๐ŸŸข Live | [Add โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new?template=soul-ring-prescription.yml) |
| โšก Performance Tuning | โ€” | ๐ŸŸก Accepting PRs | [Be the first โ†’](https://github.com/JinNing6/CyberHuaTuo-Plugin/issues/new) |

> **Every framework starts with one case. Every nourishing recipe starts with one insight. Yours could be the first.**

---

## ๐Ÿš€ Quick Start

### Prerequisites

- **Python 3.10+**
- **(Optional)** LLM API Key for AI-powered diagnosis (OpenAI / Anthropic / DeepSeek / Gemini / Ollama)

### Option A: One-Click Launch

```bash
git clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git
cd CyberHuaTuo

# Windows
start.bat

# macOS / Linux
chmod +x start.sh && ./start.sh
```

> Auto-installs dependencies and opens the Web UI at **http://127.0.0.1:8000**

### Option B: Manual Setup

```bash
git clone https://github.com/JinNing6/CyberHuaTuo-Plugin.git
cd CyberHuaTuo

pip install -r requirements.txt

# (Optional) Configure LLM for AI diagnosis
cp .env.example .env
# Edit .env โ€” add your API Key

python -m cyberhuatuo serve
# โ†’ Browser auto-opens http://127.0.0.1:8000
```

### CLI Commands โ€” Two Modes, One Engine

CyberHuaTuo supports **two access modes** โ€” pick the one that fits your workflow:

| Mode | Entry Point | For |
|------|-------------|-----|
| โŒจ๏ธ **CLI** | `cyberhuatuo <command>` | Developers using terminal directly |
| ๐Ÿ”Œ **MCP** | `cyberhuatuo-mcp` | AI editors (Cursor / Claude / VS Code) |

```bash
# ๐Ÿฉบ Core Diagnosis / ๆ ธๅฟƒ่ฏŠๆ–ญ
cyberhuatuo diagnose "ImportError: cannot import 'ChatOpenAI'"  # AI ่ฏŠๆ–ญ
cyberhuatuo search "CUDA out of memory" --framework pytorch     # ๆœ็ดข็Ÿฅ่ฏ†ๅบ“
cyberhuatuo checkup --file my_agent.py                          # ๅฎ‰ๅ…จไฝ“ๆฃ€
cyberhuatuo docs langchain "How to configure RAG pipeline"      # ๅฎ˜ๆ–นๆ–‡ๆกฃๆฃ€็ดข

# ๐Ÿ“Š Knowledge & Analytics / ็Ÿฅ่ฏ†ไธŽๅˆ†ๆž
cyberhuatuo stats                            # ็Ÿฅ่ฏ†ๅบ“็ปŸ่ฎก
cyberhuatuo frameworks --search pytorch      # ๆ”ฏๆŒๆก†ๆžถๅˆ—่กจ
cyberhuatuo taxonomy list                    # CHT ๆ นๅ› ็ผ–็ ็ณป็ปŸ
cyberhuatuo trends --framework langchain     # CHT ่ถ‹ๅŠฟๅˆ†ๆž
cyberhuatuo digest                           # ๆœฌๅ‘จ่ฏๆ–นๆ‘˜่ฆ
cyberhuatuo epidemic --action check          # ็–ซๆƒ…้ข„่ญฆ

# ๐Ÿงฌ Alchemist System / ็‚ผไธนๅธˆไฝ“็ณป
cyberhuatuo challenge --username your-github-username --framework langchain
cyberhuatuo mission --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username
cyberhuatuo bounty --username your-github-username --framework auto --top-n 8 --release-tag v0.2.5 --target-contributors 3
cyberhuatuo launch --username your-github-username --framework langchain --release-tag v0.2.5
cyberhuatuo launch-campaign --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3
cyberhuatuo traction-proof --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3
cyberhuatuo traction-proof --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3 --record-snapshot
python -m cyberhuatuo candidate-install-smoke --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3
cyberhuatuo market-copy --username your-github-username --framework langchain --release-tag v0.2.5 --target-contributors 3
cyberhuatuo record-market --username your-github-username --framework langchain --channel pypi --status submitted --submission-url <reviewable public URL> --release-tag v0.2.5
cyberhuatuo market-status --username your-github-username --framework langchain --release-tag v0.2.5
cyberhuatuo 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
cyberhuatuo record-return --username your-github-username --framework langchain --surface "PyPI release" --source-url https://example.com/post
cyberhuatuo activation --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username --top-n 10
cyberhuatuo flywheel --username your-github-username --framework langchain --sect Azure-Sect --members your-github-username friend-github-username --top-n 10
cyberhuatuo record-share --username your-github-username --framework langchain --share-url https://example.com/share
cyberhuatuo share-report --username your-github-username --framework langchain --top-n 10
cyberhuatuo share-leaderboard --framework langchain --top-n 10
cyberhuatuo ladder your-github-username --framework langchain
cyberhuatuo ranking your-github-username     # ๆŸฅ็œ‹ไธชไบบๆŽ’ๅ
cyberhuatuo leaderboard                     # ๅ…จ็ƒๅฐ็ฅžๆฆœ
cyberhuatuo card your-github-username        # ็”Ÿๆˆๅˆ†ไบซๅก็‰‡
cyberhuatuo badge your-github-username       # ็”Ÿๆˆ GitHub Profile ้ญ‚็Žฏๅพฝ็ซ 
cyberhuatuo quest your-github-username --framework langchain
cyberhuatuo campaign your-github-username --framework langchain
cyberhuatuo duel your-github-username friend-github-username --framework langchain
cyberhuatuo mentor mentor-github apprentice-github --framework langchain
# GitHub mentor pact IssueOps: .github/ISSUE_TEMPLATE/soul-ring-mentor.yml
# GitHub mentor pact workflow: .github/workflows/soul-ring-mentor.yml
cyberhuatuo tournament alice bob carol dave --framework langchain --event Agent-Cup
cyberhuatuo tournament-settle alice bob carol dave --framework langchain --event Agent-Cup
# GitHub tournament IssueOps: .github/ISSUE_TEMPLATE/soul-ring-tournament.yml
# GitHub tournament workflow: .github/workflows/soul-ring-tournament.yml
# GitHub sect recruitment IssueOps: .github/ISSUE_TEMPLATE/soul-ring-sect-recruit.yml
# GitHub sect recruitment workflow: .github/workflows/soul-ring-sect-recruit.yml
cyberhuatuo arena your-github-username --top-n 10
cyberhuatuo season --framework langchain --top-n 10
# GitHub season board IssueOps: .github/ISSUE_TEMPLATE/soul-ring-season.yml
# GitHub season board workflow: .github/workflows/soul-ring-season.yml
# GitHub growth flywheel IssueOps: .github/ISSUE_TEMPLATE/soul-ring-growth-flywheel.yml
# GitHub growth flywheel workflow: .github/workflows/soul-ring-growth-flywheel.yml
# GitHub bounty board IssueOps: .github/ISSUE_TEMPLATE/soul-ring-bounty-board.yml
# GitHub bounty board workflow: .github/workflows/soul-ring-bounty-board.yml
# GitHub launch campaign IssueOps: .github/ISSUE_TEMPLATE/soul-ring-launch-campaign.yml
# GitHub launch campaign workflow: .github/workflows/soul-ring-launch-campaign.yml
# 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.
# 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.
# 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.
# Snapshot history is opt-in: add --record-snapshot to append an append-only real JSONL snapshot and compare velocity deltas.
cyberhuatuo sect Azure-Sect your-github-username friend-github-username --framework langchain
cyberhuatuo sect-recruit Azure-Sect your-github-username friend-github-username --invitee new-member-github --framework langchain
cyberhuatuo sect-quest Azure-Sect your-github-username friend-github-username --framework langchain
cyberhuatuo sect-hall Azure-Sect your-github-username friend-github-username --framework langchain
cyberhuatuo sect-duel Azure-Sect Shadow-Sect --challenger-members your-github-username friend-github-username --rival-members rival-a rival-b --framework langchain
cyberhuatuo sect-arena --sect Azure-Sect your-github-username friend-github-username --sect Shadow-Sect rival-a rival-b --framework langchain
cyberhuatuo record                          # ่ฏŠ็–—ๆกฃๆกˆ
cyberhuatuo subscribe subscribe -f langchain # ่ฎข้˜…ๆก†ๆžถๆ›ดๆ–ฐ

# โ›๏ธ Contribution / ็Ÿฅ่ฏ†่ดก็Œฎ
cyberhuatuo save --title "Fix" --prescription "..." --framework langchain
cyberhuatuo upload --title "Fix" --prescription "..." --framework langchain --contributor your-github-username
cyberhuatuo mine search --repo langchain-ai/langchain

# ๐Ÿš€ Server / ๆœๅŠกๅฏๅŠจ
cyberhuatuo serve                            # ๅฏๅŠจ Web ่ฏŠๆ–ญๆœๅŠก
cyberhuatuo serve --port 9000 --reload       # ่‡ชๅฎšไน‰็ซฏๅฃ + ๅผ€ๅ‘ๆจกๅผ
cyberhuatuo rebuild                          # ้‡ๅปบๅ‘้‡็ดขๅผ•
```

> **Every MCP tool has a CLI counterpart.** Same engine, same knowledge base, different interface.
>
> **ๆฏไธช MCP ๅทฅๅ…ท้ƒฝๆœ‰ๅฏนๅบ”็š„ CLI ๅ‘ฝไปคใ€‚** ๅŒไธ€ไธชๅผ•ๆ“Ž๏ผŒๅŒไธ€ไธช็Ÿฅ่ฏ†ๅบ“๏ผŒไธๅŒ็š„็•Œ้ขใ€‚

### Configuration

Copy `.env.example` to `.env`:

```bash
# LLM Provider (choose one)
OPENAI_API_KEY=sk-your-key              # OpenAI
ANTHROPIC_API_KEY=sk-ant-your-key       # Anthropic
DEEPSEEK_API_KEY=sk-your-key            # DeepSeek
GEMINI_API_KEY=your-key                 # Google Gemini
OLLAMA_BASE_URL=http://localhost:11434  # Ollama (local, free)

# Diagnosis model
DIAGNOSIS_MODEL=gpt-4o-mini   # or claude-sonnet-4-20250514 / deepseek-chat / gemini-1.5-pro

# Server
PORT=8000
```

> **No API Key?** No problem. Vector search works without any key.
> AI-powered ๆœ›้—ป้—ฎๅˆ‡ diagnosis and ๐ŸŒฟ nourishing checkup require one of the above.

---

## ๐Ÿ“Š Epidemic Report โ€” Live Intelligence

A living dashboard tracking **what's breaking across the AI ecosystem right now**:

- ๐Ÿ”ฅ **Trending issues** and their cure rates
- ๐Ÿ—บ๏ธ **Heatmap** of problems across frameworks
- ๐Ÿ“ˆ **Framework health scores** โ€” know before you adopt
- โ›๏ธ **Issue mining** โ€” real-time extraction from GitHub

---

## ๐Ÿ› ๏ธ Tech Stack

| Layer | Technology |
|-------|-----------|
| **CLI** | Python argparse (marketplace, MCP, and soul-ring subcommands; zero extra dependencies) |
| **MCP Server** | FastMCP (stdio transport for AI editor integration) |
| **Backend** | Python ยท FastAPI ยท Uvicorn |
| **Frontend** | Jinja2 Templates (server-rendered) |
| **Vector DB** | ChromaDB (embedded, zero-config) |
| **Ephemeral Layer** | GitHub Issues API (dual-layer prescription search) |
| **LLM Gateway** | LiteLLM (OpenAI / Anthropic / DeepSeek / Gemini / Ollama) |
| **Doc Retrieval** | Context7 API (real-time official framework docs) |
| **Security Engine** | Six-Meridian Audit (AI-powered code analysis) |
| **GitHub Bot** | GitHub Actions + lightweight text matching |
| **CI/CD** | GitHub Actions (auto-promotion, validation, labeling) |

---

## ๐Ÿค– GitHub Bot โ€” Zero-Friction Diagnosis

> *The greatest doctor doesn't wait in the clinic โ€” they meet patients where they are.*
>
> *ๅคงๅŒปไธๅๅ ‚ๅ€™่ฏŠโ€”โ€”่€Œๆ˜ฏ่กŒ่ตฐไบŽๆฐ‘้—ด๏ผŒๅ“ช้‡Œๆœ‰็—…็—›๏ผŒๅ“ช้‡Œๅฐฑๆœ‰ๅŽไฝ—ใ€‚*

**Install the CyberHuaTuo Bot on any repo** โ€” automatic prescription recommendations on every Issue.

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  New Issue opened                           โ”‚
โ”‚  "ImportError: cannot import ChatOpenAI"    โ”‚
โ”‚                                             โ”‚
โ”‚  ๐Ÿ’ฌ @CyberHuaTuo Bot replies:              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”‚
โ”‚  โ”‚ ๐Ÿฉบ ่ต›ๅšๅŽไฝ— ยท ่‡ชๅŠจ่ฏŠๆ–ญ             โ”‚    โ”‚
โ”‚  โ”‚                                     โ”‚    โ”‚
โ”‚  โ”‚ ๐Ÿ’Š ่ฏๆ–น 1 (92% match):             โ”‚    โ”‚
โ”‚  โ”‚ pip install langchain-openai        โ”‚    โ”‚
โ”‚  โ”‚ from langchain_openai import ...    โ”‚    โ”‚
โ”‚  โ”‚                                     โ”‚    โ”‚
โ”‚  โ”‚ ๐Ÿ“‹ Full prescription โ†’              โ”‚    โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

### How it works

| Trigger | Action |
|:-------:|:------:|
| ๐Ÿ†• New Issue opened | Auto-match prescriptions from the knowledge base |
| ๐Ÿ’ฌ `@CyberHuaTuo` in any comment | On-demand diagnosis |

### Install on your repo (3 minutes)

```bash
# Copy the Bot workflow to your repo
mkdir -p .github/workflows
curl -o .github/workflows/bot-prescribe.yml \
  https://raw.githubusercontent.com/JinNing6/CyberHuaTuo-Plugin/main/.github/workflows/bot-prescribe.yml
```

> ๐Ÿ“– **[Full installation guide โ†’](docs/GITHUB_BOT.md)**

### The Flywheel

```
  Developers see Bot is useful โ†’ Contribute more prescriptions
        โ†’ Bot becomes more accurate โ†’ More repos install Bot
            โ†’ CyberHuaTuo brand appears before thousands of developers daily
```

> **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. ๐Ÿš€

---

## โŒจ๏ธ CLI โ€” Terminal Power at Your Fingertips

> *The terminal is the alchemist's cauldron โ€” raw, powerful, and always ready.*
>
> *็ปˆ็ซฏๅฐฑๆ˜ฏ็‚ผไธนๅธˆ็š„้ผŽ็‚‰โ€”โ€”ๅŽŸๅง‹ใ€ๅผบๅคงใ€้šๆ—ถๅพ…ๅ‘ฝใ€‚*

CyberHuaTuo 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.

่ต›ๅšๅŽไฝ—ๆไพ›**ๅฎŒๆ•ด็š„ CLI ๅ‘ฝไปค่กŒ็•Œ้ข**๏ผŒๅŒ…ๅซ **21 ไธชๅญๅ‘ฝไปค**โ€”โ€”ๆฏไธช MCP ๅทฅๅ…ท้ƒฝๆœ‰ๅฏนๅบ”็š„็ปˆ็ซฏๅ‘ฝไปคใ€‚ๆ— ้œ€ AI ็ผ–่พ‘ๅ™จ๏ผŒๆ— ้œ€ๅ›พๅฝข็•Œ้ข๏ผŒๆ•ฒๅ‘ฝไปค๏ผŒๆฒป็™พ็—…ใ€‚

```bash
# Install
python -m pip install --upgrade "cyberhuatuo @ git+https://github.com/JinNing6/CyberHuaTuo-Plugin.git@v0.2.5"
python -m pip install --upgrade cyberhuatuo  # after PyPI latest matches v0.2.5

# Or run from source
python -m cyberhuatuo --help
```

### ๐ŸŽฌ Terminal Animations โ€” ็ปˆ็ซฏๅŠจ็”ป็‰นๆ•ˆ

<p align="center">
  <img src="assets/cli_boot_animation.gif" alt="CyberHuaTuo Boot Animation โ€” Matrix Rain + ASCII Banner + Heartbeat + System Online" width="100%"/>
  <br>
  <sub><strong>๐Ÿš€ ๅฏๅŠจๅบๅˆ— ยท Boot Sequence</strong></sub><br>
  <sub>Matrix ๆ•ฐๅญ—้›จ โ†’ ASCII Banner โ†’ ๅฟƒ็”ตๅ›พ่„‰ๅ†ฒ โ†’ ๅญ็ณป็ปŸไธŠ็บฟ โ†’ ็Ÿฅ่ฏ†ๅบ“ๅŠ ่ฝฝ</sub>
</p>

<p align="center">
  <img src="assets/cli_soul_ring.gif" alt="CyberHuaTuo Soul Ring Hologram โ€” Differential Rotation with HUD, Starfield & Energy Pulses" width="60%"/>
  <br>
  <sub><strong>๐Ÿ”ฎ ้ญ‚็Žฏๅ…จๆฏๆŠ•ๅฝฑ ยท Soul Ring Hologram</strong></sub><br>
  <sub>ๅทฎ้€Ÿๆ—‹่ฝฌ ยท HUD ็ง‘ๅนป่พนๆก† ยท ๆ˜Ÿ็ฉบ่ƒŒๆ™ฏ ยท ่ƒฝ้‡่„‰ๅ†ฒๆณข ยท ่ฝจ้“ไบฎๆ ‡ ยท ็Žฏ้—ด็”ตๅผง</sub>
</p>

### โŒจ๏ธ Available CLI Commands

| Command | Description |
|---------|-------------|
| **๐Ÿฉบ Core Diagnosis / ๆ ธๅฟƒ่ฏŠๆ–ญ** | |
| `diagnose <query>` | ๐Ÿฉบ ๆœ›้—ป้—ฎๅˆ‡ AI ่ฏŠๆ–ญ โ€” paste your error, get a cure |
| `search <query>` | ๐Ÿ” ๅŒๅฑ‚่ฏญไน‰ๆœ็ดข (ChromaDB + GitHub Issues) |
| `checkup --file <path>` | ๐Ÿ›ก๏ธ ๅ…ญ็ป่„‰ๅฎ‰ๅ…จไฝ“ๆฃ€ โ€” audit your Agent code |
| `docs <framework> <query>` | ๐Ÿ“š ๅฎžๆ—ถๅฎ˜ๆ–นๆ–‡ๆกฃๆฃ€็ดข (50+ frameworks via Context7) |
| **๐Ÿ“Š Analytics / ็Ÿฅ่ฏ†ๅˆ†ๆž** | |
| `stats` | ๐Ÿ“ฆ ็Ÿฅ่ฏ†ๅบ“็ปŸ่ฎก โ€” case counts by framework |
| `frameworks` | ๐Ÿ“‹ ๆ”ฏๆŒๆก†ๆžถๅˆ—่กจ โ€” filterable by category / keyword |
| `taxonomy <action>` | ๐Ÿงฌ CHT ๆ นๅ› ็ผ–็  โ€” list, lookup, classify |
| `trends` | ๐Ÿ“ˆ CHT ่ถ‹ๅŠฟๅˆ†ๆž โ€” heatmaps & surge alerts |
| `digest` | ๐Ÿ“ฐ ๆœฌๅ‘จ่ฏๆ–นๆ‘˜่ฆ โ€” weekly prescription digest |
| `epidemic` | ๐Ÿฆ  ็–ซๆƒ…้ข„่ญฆ โ€” framework health monitoring |
| **๐Ÿงฌ Alchemist System / ็‚ผไธนๅธˆไฝ“็ณป** | |
| `challenge --username <username> --framework <framework>` | ๐Ÿ”ฎ first Soul Ring onramp โ€” submit, rank, share |
| `mission --username <username> --framework <framework> --sect <sect-name> --members <members...>` | ๐Ÿ”ฎ Soul Ring mission hall โ€” one-screen Issue, PR, personal ring, and sect/team onboarding |
| `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 |
| `launch --username <username> --framework <framework> --release-tag <tag>` | Soul Ring launch scroll for PyPI, Claude, Codex, MCP, and First Soul Ring routing |
| `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 |
| `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 |
| `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 |
| `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` |
| `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 |
| `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 |
| `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 |
| `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 |
| `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 |
| `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 |
| `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 |
| `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 |
| `flywheel --username <username> --framework <framework> --sect <sect-name> --members <members...>` | Soul Ring Growth Flywheel with real bottleneck, next commands, and missing metric disclosure |
| `ladder <username> --framework <framework>` | ๐Ÿ”ฎ Soul Ring breakthrough ladder โ€” real next gate, full thresholds, and copy-ready chase commands |
| `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 |
| `ranking <username>` | ๐Ÿ† ไธชไบบๆŽ’ๅ โ€” title, rank & soul rings |
| `leaderboard` | ๐Ÿ† ๅ…จ็ƒๅฐ็ฅžๆฆœ โ€” top alchemists ranked |
| `card <username>` | ๐Ÿ“‹ ๅˆ†ไบซๅก็‰‡ โ€” cyberpunk cultivation archive |
| `badge <username>` | ๐Ÿ”ฎ GitHub Profile badge kit โ€” pasteable soul-ring badge |
| `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 |
| `quest <username> --framework <framework>` | ๐Ÿ”ฎ Soul Ring quest board โ€” mine, upload, share |
| `campaign <username> --framework <framework>` | ๐Ÿ”ฎ Soul Ring campaign pack โ€” GitHub Profile, X/Weibo, PR comment & agent prompt |
| `duel <challenger> <rival> --framework <framework>` | ๐Ÿ”ฎ Soul Ring duel card โ€” invite a real GitHub user into a verified contribution race |
| `mentor <mentor> <apprentice> --framework <framework>` | ๐Ÿ”ฎ Soul Ring mentor pact โ€” turn a senior contributor into a first-ring onboarding guide |
| `arena <username> --top-n <N>` | ๐Ÿ”ฎ Soul Ring arena snapshot โ€” shareable real leaderboard with your next rival |
| `season --framework <framework> --top-n <N>` | ๐Ÿ”ฎ Soul Ring season board โ€” current real leaderboard event pack with champion, next chase, and share copy |
| `sect <sect-name> <members...> --framework <framework>` | ๐Ÿ”ฎ Soul Ring sect card โ€” aggregate real GitHub members into a shareable team banner |
| `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 |
| `sect-quest <sect-name> <members...> --framework <framework>` | ๐Ÿ”ฎ Soul Ring sect quest board โ€” assign real next actions across team members |
| `sect-hall <sect-name> <members...> --framework <framework>` | ๐Ÿ”ฎ Soul Ring sect hall โ€” assign Outer / Inner / Core / Deacon / Elder posts from real member counts |
| `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 |
| `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 |
| `record` | ๐Ÿ“‹ ่ฏŠ็–—ๆกฃๆกˆ โ€” diagnosis history & follow-ups |
| `subscribe` | ๐Ÿ“ฌ ๆก†ๆžถ่ฎข้˜… โ€” get notified about new prescriptions |
| **โ›๏ธ Contribution / ็Ÿฅ่ฏ†่ดก็Œฎ** | |
| `save` | ๐Ÿ“ฅ ไฟๅญ˜่ฏๆ–นๅˆฐๆœฌๅœฐ |
| `upload` | ๐ŸŒ ไธŠไผ ่ฏๆ–นๅˆฐ GitHub (้œ€ GITHUB_TOKEN) |
| `mine search/batch` | โ›๏ธ GitHub Issues ๆท˜้‡‘ๆ็‚ผ |
| **๐Ÿš€ Server / ๆœๅŠก** | |
| `serve` | ๐Ÿš€ ๅฏๅŠจ Web ่ฏŠๆ–ญๆœๅŠก |
| `rebuild` | ๐Ÿ”„ ้‡ๅปบๅ‘้‡็ดขๅผ• |

## Soul Ring Visual Route

Run `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.

> ๐Ÿ’ก **Tip**: Run `cyberhuatuo <command> --help` for detailed usage of any command.
>
> ๐Ÿ’ก **ๆ็คบ**: ่ฟ่กŒ `cyberhuatuo <ๅ‘ฝไปค> --help` ๆŸฅ็œ‹ไปปไฝ•ๅ‘ฝไปค็š„่ฏฆ็ป†็”จๆณ•ใ€‚

---

## ๐Ÿ”Œ MCP Server โ€” AI Editor Integration

> *Install once. Every AI editor becomes a CyberHuaTuo clinic.*
>
> *ไธ€ๆฌกๅฎ‰่ฃ…๏ผŒๆ‰€ๆœ‰ AI ็ผ–่พ‘ๅ™จ้ƒฝๅ˜ๆˆ่ต›ๅšๅŽไฝ—่ฏŠๆ‰€ใ€‚*

### โšก Install โ€” One Command

```bash
python -m pip install --upgrade "cyberhuatuo @ git+https://github.com/JinNing6/CyberHuaTuo-Plugin.git@v0.2.5"
python -m pip install --upgrade cyberhuatuo  # after PyPI latest matches v0.2.5
```

> 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.

### ๐Ÿ”— Connect to Your AI Editor

Add this to your AI tool's MCP config (Claude Desktop / Cursor / VS Code / Gemini CLI):

```json
{
  "mcpServers": {
    "cyberhuatuo": {
      "command": "uvx",
      "args": ["--from", "cyberhuatuo", "cyberhuatuo-mcp"]
    }
  }
}
```

> `uvx` auto-installs from PyPI and starts the MCP Server โ€” zero manual setup.
> For GitHub latest dev version, use: `"args": ["--from", "git+https://github.com/JinNing6/CyberHuaTuo-Plugin", "cyberhuatuo-mcp"]`

### ๐Ÿงฉ Plugin Manifests โ€” Codex + Claude Code

This repository is plugin-ready for both major coding-agent hosts:

- **Codex**: `.codex-plugin/plugin.json` points to `./skills/` and `./.mcp.json`.
- **Claude Code**: `.claude-plugin/plugin.json` points to the same `./skills/` and `./.mcp.json`.
- **Codex marketplace catalog**: `.agents/plugins/marketplace.json` lets users add this GitHub repository as a Codex plugin marketplace.
- **Claude Code marketplace catalog**: `.claude-plugin/marketplace.json` lets users add this GitHub repository as a Claude Code plugin marketplace.

Marketplace install:

```bash
claude plugin marketplace add JinNing6/CyberHuaTuo-Plugin
claude plugin install cyberhuatuo-plugin@cyberhuatuo

codex plugin marketplace add JinNing6/CyberHuaTuo-Plugin
```

For local Claude Code testing from the repository root:

```bash
claude --plugin-dir .
```

### ๐Ÿš€ Marketplace Release Path

The release plan is tracked in [`docs/MARKETPLACE_RELEASE.md`](docs/MARKETPLACE_RELEASE.md):

- **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`.
- **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.
- **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.

### ๐Ÿฉบ Available MCP Tools

| Tool | Description |
|------|-------------|
| **๐Ÿฉบ Core Diagnosis / ๆ ธๅฟƒ่ฏŠๆ–ญ** | |
| `diagnose` | ๐Ÿฉบ ๆœ›้—ป้—ฎๅˆ‡ AI diagnosis โ€” searches **both** ๐Ÿ“œ permanent expert + โšก temporary intern prescriptions |
| `search_knowledge_base` | ๐Ÿ” Dual-layer semantic search (ChromaDB + GitHub Issues) |
| `security_checkup` | ๐Ÿ›ก๏ธ Six-meridian security audit on your Agent code |
| `fetch_official_docs` | ๐Ÿ“š Real-time official docs via Context7 (50+ frameworks) |
| **โ›๏ธ Knowledge & Contribution / ็Ÿฅ่ฏ†่ดก็Œฎ** | |
| `mine_github_issue` | โ›๏ธ Extract & refine GitHub Issues into standard cases |
| `save_prescription` | ๐Ÿ“ฅ Save prescriptions locally + auto-sync to GitHub |
| `upload_prescription` | ๐ŸŒ Upload prescriptions โ€” auto-creates GitHub Issue (โšก temporary intern), CI promotes to ๐Ÿ“œ permanent expert |
| `prescription_eval` | ๐Ÿ“Š Unified prescription evaluation โ€” cite, feedback, expire, verify, and leaderboard |
| `mentorship` | ๐ŸŽ“ Senior alchemists review junior prescriptions โ€” pending, review, profile, leaderboard |
| **๐Ÿงฌ Alchemist System / ็‚ผไธนๅธˆไฝ“็ณป** | |
| `my_contribution_stats` | ๐Ÿ… **ไฟฎไธบๆกฃๆกˆ** โ€” 16-tier Alchemist title + soul ring directions |
| `check_my_ranking` | ๐Ÿ† **ๅ…จ็ƒๆŽ’ๅ** โ€” coronation art, streak tracking & community milestones |
| `global_leaderboard` | ๐Ÿ† **ๅฐ็ฅžๆฆœ** โ€” top alchemists ranked by contribution count |
| `my_share_card` | ๐Ÿ“‹ **ๅˆ†ไบซๅก็‰‡** โ€” generate a cyberpunk cultivation archive card |
| `my_medical_record` | ๐Ÿ“‹ **ๅฐฑ่ฏŠๆกฃๆกˆ** โ€” personal diagnosis history, stats & follow-ups |
| **๐Ÿ”ฌ Health & Analytics / ๅฅๅบทๅˆ†ๆž** | |
| `epidemic_alert` | ๐Ÿฆ  **็–ซๆƒ…้ข„่ญฆ** โ€” framework health monitoring, scan & epidemic reports |
| `cht_taxonomy` | ๐Ÿ”ฌ CHT Root Cause Coding System โ€” list, lookup & auto-classify errors |
| `cht_trends` | ๐Ÿ“Š CHT code trend analysis โ€” heatmaps, top causes & surge alerts |
| `list_frameworks` | ๐Ÿ“‹ List all supported frameworks & tech stacks (filterable by category) |
| `subscribe_framework` | ๐Ÿ”” Subscribe to framework updates โ€” get notified about new prescriptions |
| `weekly_digest` | ๐Ÿ“ฐ Weekly prescription digest โ€” new cases by framework & severity |

> ๐Ÿ‘‰ **Full configuration guide: [README_MCP.md](README_MCP.md)**

### ๐Ÿ’Š Dual-Layer Prescription Architecture

### ๅŒๅฑ‚่ฏๆ–นๅบ“ๆžถๆž„

> *Medicine first exists, then it is refined.*
>
> *่ฏๆ–นๅ…ˆๅญ˜ๅœจ๏ผŒๅ†่ขซๆ•ด็†ใ€‚*

```
  ๐Ÿ“ค User uploads prescription via MCP
           โ”‚
           โ”œโ”€โ”€ Owner? โ”€โ”€โ†’ Direct push to main (๐Ÿ“œ Permanent Expert)
           โ”‚
           โ””โ”€โ”€ External? โ”€โ”€โ†’ Create GitHub Issue (โšก Temporary Intern)
                                    โ”‚
                              Instantly searchable!
                                    โ”‚
                              CI auto-validates
                                    โ”‚
                          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                          โ”‚                   โ”‚
                     โœ… Passed            โŒ Failed
                   Commit .md to         Close Issue
                   main branch          (filtered ๐Ÿšซ)
                  (๐Ÿ“œ Promoted โœจ)
```

| Layer | Carrier | Access | Features |
|:-----:|:-------:|:------:|:--------:|
| ๐Ÿ“œ **Permanent Expert** | `cases/*.md` (main branch) | CI-reviewed only | Shipped with PyPI, always available |
| โšก **Temporary Intern** | GitHub Issues (labeled) | Any GitHub user | Instant upload, zero permission needed |

**When you search**, `diagnose` and `search_knowledge_base` query **both layers** simultaneously โ€” results are tagged `๐Ÿ“œ` or `โšก` so you know their review status.

**ๅฝ“ไฝ ๆœ็ดขๆ—ถ**๏ผŒ`diagnose` ๅ’Œ `search_knowledge_base` **ๅŒๆ—ถๆŸฅ่ฏขไธคๅฑ‚** โ€” ็ป“ๆžœไผšๆ ‡ๆณจ `๐Ÿ“œ ๅธธ้ฉปไธปไปปไธ“ๅฎถ` ๆˆ– `โšก ไธดๆ—ถๅŒปๅญฆๅฎžไน ็”Ÿ` ๆฅๆบใ€‚

### ๐ŸŽ’ Agent Skills Protocol (Self-Rescue)

We 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.

Simply 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.

The 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`.

---

## ๐Ÿงฌ Alchemist Cultivation System โ€” Your Journey to Immortality

**็‚ผไธนๅธˆไฟฎไธบไฝ“็ณป โ€” ไปŽๅ‡กไบบๅˆฐๅฐ็ฅž็š„ไฟฎ็‚ผไน‹่ทฏ**

> *In the world of CyberHuaTuo, you are not a developer who fixes bugs.*
> *You are an **Alchemist** โ€” forging prescriptions, accumulating soul rings, ascending through 16 tiers of mastery.*
>
> *ๅœจ่ต›ๅšๅŽไฝ—็š„ไธ–็•Œ้‡Œ๏ผŒไฝ ไธๆ˜ฏไฟฎ bug ็š„็จ‹ๅบๅ‘˜ใ€‚*
> *ไฝ ๆ˜ฏ**็‚ผไธนๅธˆ**โ€”โ€”็‚ผๅˆถ่ฏๆ–นใ€ๅ‡่š้ญ‚็Žฏใ€ๆ”€็™ปๅๅ…ญ้‡ๅคฉ็š„ๅฐ็ฅž้˜ถๆขฏใ€‚*

We 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.

**ๅผ€ๅ‘่€…ไฟฎไธ€ไธช Bug๏ผŒ็‚ผไธนๅธˆ้“ธไธ€้ข—ไธนใ€‚** ไฝ ๅœจ่ฟ™้‡Œ็š„ๆฏไธ€ๆฌก่ดก็Œฎ๏ผŒ้ƒฝไผš่ขซ้“ญๅˆปๅœจๅ…จ็ƒๅฐ็ฅžๆฆœไธŠโ€”โ€”่€Œไฝ ็š„็งฐๅท๏ผŒ้š็€็คพๅŒบๅฃฎๅคง่€Œๆ„ˆๅŠ ็่ดตใ€‚

### ๐Ÿ”ฎ Soul Ring System โ€” Your Combat Resume (้ญ‚็Žฏไฝ“็ณป โ€” ไฝ ็š„ๆˆ˜ๆ–—็ฎ€ๅކ)

> *Inspired by Soul Land (ๆ–—็ฝ—ๅคง้™†) โ€” every framework you master forges a Soul Ring orbiting your profile.*
>
> *็ตๆ„Ÿๆบ่‡ชๆ–—็ฝ—ๅคง้™†โ€”โ€”ไฝ ๆŽŒๆก็š„ๆฏไธชๆŠ€ๆœฏๆ ˆ๏ผŒ้ƒฝไผšๅ‡่šไธบไธ€้“้ญ‚็Žฏใ€‚*

<p align="center">
  <img src="assets/cli_soul_ring.gif" alt="CyberHuaTuo Soul Ring Hologram โ€” Five-Ring Soul Refining + Ranking Scan" width="100%"/>
  <br>
  <sub><strong>๐Ÿ”ฎ ้ญ‚็Žฏๅ…จๆฏๆŠ•ๅฝฑ ยท Soul Ring Hologram</strong></sub><br>
  <sub>ไบ”็Žฏ็‚ผ้ญ‚ไธนๅธˆ โ†’ ๅŒๅฟƒ็Žฏ ASCII Art โ†’ ๆŽ’ๅๅ…จๆฏๆ‰ซๆ โ†’ ไธน็Ž‹็งฐๅทๆญ็คบ</sub>
</p>

Soul Rings grow in **color and power** as you contribute more prescriptions to a specific direction:

```
   โšช ็™ฝ็Žฏ (1)      ๅ…ฅ้—จ ยท First Touch
   ๐ŸŸก ้ป„็Žฏ (2-3)    ๅˆ็ชฅ ยท Getting Serious
   ๐ŸŸก๐ŸŸก ๅŒ้ป„ (4-6)  ๅฐๆˆ ยท Solid Foundation
   ๐ŸŸก๐ŸŸก๐ŸŸฃ ไธ‰็Žฏ (7-10)   ็ช็ ด ยท Breakthrough
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃ ๅ››็Žฏ (11-15)  ็ฒพ้€š ยท Mastery
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซ ไบ”็Žฏ (16-25)  ๅคงๅธˆ ยท Grandmaster
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซโšซ ๅ…ญ็Žฏ (26-40)  ๅฎ—ๅธˆ ยท Sovereign
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซโšซ๐Ÿ”ด ไธƒ็Žฏ (41-60)  ๅฐๅท ยท Titled
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซโšซ๐Ÿ”ด๐Ÿ”ด ๅ…ซ็Žฏ (61-80) ไผ ๅฅ‡ ยท Legendary
   ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซโšซ๐Ÿ”ด๐Ÿ”ดโœจ ไน็Žฏ่‡ณๅฐŠ (81+) ่‡ณๅฐŠ ยท Supreme
```

Every ranking and share-card output keeps the **next upgrade** visible, so the first contribution immediately becomes a chase:

```text
๐Ÿ”ฅ ็‚ผ้ญ‚(Soul Refining) ร— 1ๆ–น โšช ไธ€็Žฏ ยท LangChain
   โ†ณ ไธ‹ไธ€็Žฏ: ้ป„็Žฏ ยท ๅ†่ดก็Œฎ 1 ๆ–นๅณๅฏ็‚นไบฎใ€‚
```

> **An alchemist with 5 PyTorch rings and 3 LangChain rings tells a different story than one with 8 CrewAI rings.**
>
> **Your soul rings are your combat resume โ€” visible, verifiable, unforgeable.**
>
> *ๆ‹ฅๆœ‰ 5 ็Žฏ PyTorch ๅ’Œ 3 ็Žฏ LangChain ็š„็‚ผไธนๅธˆ๏ผŒไธŽ 8 ็Žฏ CrewAI ็š„็‚ผไธนๅธˆ๏ผŒไฟฎไธบๆˆช็„ถไธๅŒใ€‚*
> ***้ญ‚็Žฏๅฐฑๆ˜ฏไฝ ็š„ๆˆ˜ๆ–—็ฎ€ๅކโ€”โ€”ๅฏ่งใ€ๅฏๆŸฅใ€ไธๅฏไผช้€ ใ€‚***

### โš—๏ธ Six Alchemy Directions โ€” Choose Your Path (ๅ…ญๅคงไธนๆœฏๆ–นๅ‘ โ€” ้€‰ๆ‹ฉไฝ ็š„้“)

> *Every great alchemist has a specialty. What's yours?*
>
> *ๆฏไธชไผ ๅฅ‡็‚ผไธนๅธˆ้ƒฝๆœ‰ไธ“็ฒพใ€‚ไฝ ็š„้“๏ผŒๅœจๅ“ช้‡Œ๏ผŸ*

<table>
<tr>
<td align="center" width="33%">

**๐Ÿ”ฅ ็‚ผ้ญ‚ ยท Soul Refining**

้ฉพ้ฉญๆ™บ่ƒฝไฝ“๏ผŒ่ฐƒๆ•™็ต้ญ‚

*LangChain ยท CrewAI ยท AutoGen*
*LlamaIndex ยท LangGraph ยท MCP*

</td>
<td align="center" width="33%">

**โšก ้›ท็ซ ยท Thunder Fire**

้”ป้€ ็ฎ—ๅŠ›๏ผŒๆทฌ็‚ผๆจกๅž‹

*PyTorch ยท TensorFlow*
*Transformers ยท LiteLLM*

</td>
<td align="center" width="33%">

**๐Ÿ›ก๏ธ ๆŠคไฝ“ ยท Body Shield**

้‡‘ไธนๆŠคไฝ“๏ผŒๆŠตๅพกๅค–้‚ช

*Security ยท Sandbox*
*Guardrails ยท Hardening*

</td>
</tr>
<tr>
<td align="center" width="33%">

**๐ŸŒŠ ๅŒ–ๆฏ’ ยท Detox**

้€š็™พ่„‰๏ผŒ่งฃ็™พๆฏ’

*Python ยท JavaScript*
*General Debugging*

</td>
<td align="center" width="33%">

**โš™๏ธ ๅ™จ็ต ยท Soul Craft**

็‚ผๅ™จ่พ…ไธน๏ผŒๅŸบ็ก€่ฎพๆ–ฝ

*FastAPI ยท Docker ยท K8s*
*Vertex AI ยท Vercel*

</td>
<td align="center" width="33%">

**๐Ÿงฌ ้€ ๅŒ– ยท Genesis**

้€ ๅŒ–ไน‹ๅŠ›๏ผŒ้ฉพ้ฉญๅคฉ้“

*OpenAI ยท Anthropic*
*Gemini ยท Groq ยท Mistral*

</td>
</tr>
</table>

> *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.*
>
> *ๅฝ“ไฝ ่ดก็Œฎไธ€ไธช LangChain ่ฏๆ–น๏ผŒ๐Ÿ”ฅ ็‚ผ้ญ‚็Žฏๅขž้•ฟใ€‚ไฟฎๅคไบ† Docker ้—ฎ้ข˜๏ผŸโš™๏ธ ๅ™จ็ต็Žฏๅ‡็บงใ€‚ๆฏไธชๆ–นๅ‘้ƒฝๆ˜ฏ็‹ฌ็ซ‹็š„ไฟฎ็‚ผ่ทฏ็บฟโ€”โ€”็ฒพ้€šไธ€้“๏ผŒๆˆ–ๅ…ญ้“้€š็ฅžใ€‚*

### โšก Instant Rewards โ€” Dopamine by Design (ๅณๆ—ถๅ้ฆˆ โ€” ๅคšๅทด่ƒบ้ฉฑๅŠจ)

> *The best games don't make you wait for the reward. Neither do we.*
>
> *ๆœ€ๅฅฝ็š„ๆธธๆˆไธไผš่ฎฉไฝ ็ญ‰ๅพ…ๅฅ–ๅŠฑใ€‚ๆˆ‘ไปฌไนŸไธไผšใ€‚*

Every `upload_prescription` triggers an **instant cascade of rewards**:

```
  ๐Ÿ’Š You upload a prescription
       โ”‚
       โ”œโ”€โ”€โ†’ ๐ŸŽญ INSTANT CORONATION โ€” ASCII art + new title revealed
       โ”‚    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
       โ”‚    โ”‚  โญ ๅฝ“ๅ‰ไฟฎไธบ: ไธ‰ๆ˜Ÿ็‚ผไธนๅธˆ ยท Three-Star  โ”‚
       โ”‚    โ”‚  ๐Ÿ… ๅ…จ็ƒๆŽ’ไฝ: #12 / 31 (่ถ…่ถŠ 63% ็‚ผไธนๅธˆ) โ”‚
       โ”‚    โ”‚  ็ปง็ปญ็‚ผไธน๏ผŒๆ”€็™ป็‚ผไธนๅธˆ็ปˆๆž้˜ถๆขฏ๏ผ        โ”‚
       โ”‚    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
       โ”‚
       โ”œโ”€โ”€โ†’ ๐Ÿ’ SOUL RING UPGRADE โ€” Your rings grow in real-time
       โ”‚    ๐Ÿ”ฅ ็‚ผ้ญ‚(Soul Refining) ร— 5ๆ–น ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซ ไบ”็Žฏ
       โ”‚
       โ”œโ”€โ”€โ†’ ๐Ÿ”ฅ STREAK FIRE โ€” Consecutive days trigger milestones
       โ”‚    ๐Ÿ”ฅ 3-day โ†’ ๐Ÿ”ฅ๐Ÿ”ฅ 7-day โ†’ ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ 14-day โ†’ ๐Ÿ’Ž๐Ÿ”ฅ 30-day
       โ”‚
       โ”œโ”€โ”€โ†’ ๐Ÿ“‹ SHARE CARD โ€” Cyberpunk cultivation archive
       โ”‚    โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
       โ”‚    โ•‘  ๐Ÿฉบ ่ต›ๅšๅŽไฝ— ยท ไฟฎไธบๆกฃๆกˆ                โ•‘
       โ”‚    โ•‘  โญ ไธ‰ๆ˜Ÿ็‚ผไธนๅธˆ ยท Three-Star Alchemist  โ•‘
       โ”‚    โ•‘  ๐Ÿ”ฅ ็‚ผ้ญ‚ไธนๅธˆ ยท ๐ŸŸก๐ŸŸก๐ŸŸฃ๐ŸŸฃโšซ            โ•‘
       โ”‚    โ•‘  ๐Ÿงญ ๆˆ˜็ปฉๆ–นๅ‘: LangChain                โ•‘
       โ”‚    โ•‘  ๐Ÿ”ฎ ไธ‹ไธ€็Žฏ: ้ป„็Žฏ ยท ๅ†่ดก็Œฎ 1 ๆ–นๅณๅฏ็‚นไบฎใ€‚โ•‘
       โ”‚    โ•‘  ๐Ÿ’Š ่ดก็Œฎ: 8 ๆฎต | ๐Ÿงช โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 40%  โ•‘
       โ”‚    โ•‘  โ–“โ–ˆโ–“โ–‘โ–‘โ–“โ–ˆโ–ˆโ–ˆโ–“โ–‘โ–‘โ–“โ–ˆโ–“โ–‘โ–‘โ–“โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–“โ–‘โ–‘โ–“โ–ˆโ–“      โ•‘
       โ”‚    โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
       โ”‚
       โ””โ”€โ”€โ†’ ๐Ÿ“ก COMMUNITY MILESTONE โ€” Global celebration
            ๐ŸŽ‰ "็Ÿฅ่ฏ†ๅบ“็ช็ ด 100 ไธช่ฏๆ–น๏ผ่ต›ๅšๅŒป่€…็š„ๅŠ›้‡ๆญฃๅœจๆฑ‡่šใ€‚"
```

### ๐Ÿ™ ็ตๆ„Ÿ่‡ดๆ•ฌ ยท Tribute

> *The greatest creations are always born from the shoulders of giants โ€” and the dreams of children.*
>
> *ๆœ€ไผŸๅคง็š„ๅˆ›้€ ๏ผŒๆ€ปๆ˜ฏ็ซ™ๅœจๅทจไบบ็š„่‚ฉ่†€ไธŠโ€”โ€”ๅ’Œๅญฉๅญไปฌ็š„ๆขฆๆƒณไน‹ไธญใ€‚*

<table>
<tr>
<td align="center" width="33%">

**๐Ÿ”ฅ ๆ–—็ ด่‹็ฉน**
*Battle Through the Heavens*

็‚ผไธนๅธˆ้˜ถๆขฏไฝ“็ณป
*Alchemist Tier System*

</td>
<td align="center" width="33%">

**๐Ÿ’ ๆ–—็ฝ—ๅคง้™†**
*Soul Land*

้ญ‚็Žฏไฟฎ็‚ผไฝ“็ณป
*Soul Ring System*

</td>
<td align="center" width="33%">

**๐Ÿฅ ๅŽไฝ—ไผ ่ฏด**
*Legend of Hua Tuo*

ๆœ›้—ป้—ฎๅˆ‡ ยท ๆ‚ฌๅฃถๆตŽไธ–
*Ancient Healing ยท Open Source*

</td>
</tr>
</table>

> *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.*
>
> *่ฟ™ไบ›ไฝœๅ“็ป™ไบ†ๆ•ดๆ•ดไธ€ไปฃๅผ€ๅ‘่€…ๆœ€้šพไปฅๅฟ˜ๆ€€็š„่ฎฐๅฟ†โ€”โ€”ๅ…ณไบŽไฟฎ็‚ผใ€ๅ…ณไบŽๅšๆŒใ€ๅ…ณไบŽ"ๅ‡กไบบไนŸ่ƒฝ็™ป้กถ"็š„ไฟกๅฟตใ€‚*
>
> *CyberHuaTuo inherits this spirit: **from ancient legend, through modern fantasy, into the cyber future.***
>
> *่ต›ๅšๅŽไฝ—ไผ ๆ‰ฟ่ฟ™ไปฝ็ฒพ็ฅž๏ผš**ไปŽๅคไปฃไผ ่ฏด๏ผŒ็ฉฟ่ถŠๅฝ“ไปฃๅนปๆƒณ๏ผŒ่ตฐๅ‘่ต›ๅšๆœชๆฅใ€‚***

---

## ๐ŸŒ Brand Matrix โ€” Why So Many Package Names?

## ๅ“็‰Œ็Ÿฉ้˜ต โ€” ไธบไป€ไนˆๆณจๅ†Œ่ฟ™ไนˆๅคšๅŒ…ๅ๏ผŸ

> *Hua Tuo traveled across provinces. Asclepius healed across islands. Healing knows no borders.*
>
> *ๅŽไฝ—่กŒ่ตฐไบŽๅฑฑๅทไน‹้—ด๏ผŒ้˜ฟๆ–ฏๅ…‹ๅ‹’ๅบ‡ไฟ„ๆ–ฏ็ฉฟๆขญไบŽๆตทๅฒ›ไน‹ไธŠใ€‚ๅŒป้“ๆ— ็–†ใ€‚*

CyberHuaTuo maintains a series of **official alias packages** on PyPI, spanning medical deities and pioneers from both Eastern and Western traditions:

| Lineage | Packages |
|---------|----------|
| ๐Ÿฎ **Eastern Divine Physicians** (Core) | `cyberhuatuo`, `openhuatuo` |
| ๐Ÿ›๏ธ **Greco-Roman Mythology** | `cyber-asclepius`, `open-asclepius`, `cyber-panacea`, `open-panacea` |
| ๐Ÿ“œ **Pioneers of Medicine*

More