C

C — Moderate risk signals Graded October 16, 2026Several concerns worth a closer look before you install.Based on public adoption and transparency signals as of October 16, 2026. Our opinion, not a code audit or security guarantee.

AI agent skill · General

nihaixia

倪海厦视角的中医Agent Skill,基于倪海厦教学资料开发,蒸馏倪师伤寒论、金匮要略、黄帝内经、神农本草经、针灸篇等,人纪/医案/经方思维,六经辨证,八纲辨证,天机道,天纪,紫微斗数,易经,阴阳,八卦,五行,风水,地纪等,总结8个诊断公式+快速诊断流程图+脉舌速查+七步走思维模式,蒸馏129条伤寒论 · 23篇金匮 · 72篇黄帝内经 · 神农本草经374种本草(上137/中110/下127) · 1257 例结构化案例 + 243 例叙事医案 · 2,452页讲义。

Bottom line: Signal-based grade (3/7 points): well starred on GitHub, public source code. This reflects adoption and transparency, not a code review.

Popularity score
40/100
Rank
#328 of 500
GitHub stars
3.6k

What it does

Nihaixia is an AI agent skill that encodes classical Chinese medicine diagnostic frameworks from Ni Haixia's teachings, including Six Meridian Pattern Differentiation, Eight Principle Analysis, and structured herbal formulations. It distills over 2,400 pages of medical texts, 1,257 case studies, and 374 classical herbs into diagnostic formulas and rapid decision trees for TCM reasoning.

Who it’s for

Builders integrating TCM diagnostic logic into AI agents, and healthcare practitioners or researchers exploring structured traditional Chinese medicine frameworks. Not intended for clinical diagnosis without qualified medical oversight.

Copy-paste setup

Check these steps against the project’s own instructions before running anything.

Verify against the repo README at https://github.com/jangviktor-web/nihaixia (opens external site) for current integration instructions. Likely integration as a custom agent skill or knowledge base; check for Claude Desktop mcpServers JSON configuration or Python/Node.js module installation details.

Risks

  • Medical liability: Diagnostic outputs could be misapplied for clinical decisions without qualified TCM practitioner review; may enable harm if used as primary diagnostic tool.
  • Data specificity: Distills copyrighted teachings and classical texts; verify licensing compliance before commercial deployment.
  • Prompt injection: TCM pattern language (meridian names, herb combinations) could be vulnerable to adversarial input attempting to override diagnostic logic.
  • No visible maintenance signals: 0 weekly npm downloads and archived-looking GitHub activity suggest limited active maintenance or real-world production use.
  • Localization risk: Chinese-language source material and domain-specific terminology may degrade in translation or cross-cultural application.

How to stay secure

Hardening Guide: Nihaixia TCM Agent Skill

Least-privilege permissions

  • Restrict output scope: Configure the skill to provide pattern analysis and educational references only—never allow it to generate prescriptions, dosages, or standalone treatment recommendations without explicit user confirmation and licensed practitioner review built into the workflow.
  • Limit data access: Prevent the skill from accessing patient records, historical medical data, or personally identifiable health information unless absolutely required; use anonymized case examples for training and reference only.
  • Gate integrations carefully: If connecting to pharmacy systems, appointment scheduling, or EHR platforms, require manual handoff steps (a human reviews and approves before data flows) rather than direct system integration.
  • Audit API keys and credentials: Rotate authentication tokens monthly; never embed API keys in code or logs; use role-based access so the skill can only call permitted backend services.

Network isolation

  • Segregate from production systems: Run the skill in a sandboxed environment separate from patient data systems, payment processing, and critical infrastructure.
  • Whitelist external calls only: If the skill needs to fetch reference materials or validate herb databases, explicitly allow only known trusted endpoints; block all other outbound connections by default.
  • Encrypt data in transit: Use TLS 1.2+ for all communications; require HTTPS-only for any web-facing endpoints that serve the skill.
  • Implement request rate limits: Throttle API calls to prevent abuse (e.g., attackers flooding the system with false symptom patterns to bypass logic or extract training data).

Monitoring

  • Log all diagnostic outputs: Record what pattern analysis the skill generates for each query, who triggered it, and timestamp; retain logs for compliance and incident investigation.
  • Alert on anomalies: Set up automated warnings if the skill receives unusual input (e.g., injection attempts using meridian or herb names as commands, requests for contraindicated combinations, repeated identical queries from different users).
  • Track usage metrics: Monitor query frequency, response times, and which diagnostic formulas are being invoked most often; sudden spikes may indicate misuse or a misconfigured integration.
  • Version control training data: Document which edition of teachings, case files, and classical texts are embedded in the skill; flag if outputs diverge from expected patterns (sign of tampering or model drift).

Red flags to watch for

  • Users bypassing practitioner review: If customers begin citing the skill's output as standalone medical advice in forums, social media, or clinical notes, immediately escalate and reinforce disclaimers.
  • Requests for prescription details: Watch for attempts to extract specific dosages, preparation methods, or treatment timelines; these should always be referred to a licensed TCM provider, not generated by the skill.
  • Mixing incompatible frameworks: Alert if users ask the skill to blend nihaixia methodology with unrelated diagnostic systems (Western medicine labs, ChatGPT medical advice); this degrades reliability and creates liability.
  • Licensing and IP concerns: Monitor for unauthorized commercial use, republication of copyrighted teachings, or integration into third-party products without proper licensing agreements in place.

Alternatives

  • Claude or GPT-4 with custom TCM knowledge base – general LLMs with fine-tuned TCM training data, no specialized agent skill required.
  • AIMA (Artificial Intelligence in Medicine Archive) frameworks – academic biomedical reasoning systems with Western medicine focus.
  • Custom domain-specific language (DSL) – build your own TCM decision tree in rules engine (e.g., Drools, OPA) for reproducible diagnostics.
  • TCMLS (Traditional Chinese Medicine Learning System) or similar open-source medical AI – if available and actively maintained.

Sources