TCM Constitution Identification and Personalized Health Prescription Generator: Scoring based on National Standard Questionnaires and Outputting HTML Constitution Reports

Preface

When implementing “Constitution Tests” or “Wellness Advice” within an Agent, a common approach is to let the model guess the constitution type based on brief descriptions. This often leads to inconsistent results, lack of reproducibility, and difficulty in aligning with the definitions of the nine constitutions in national standards. If you require a verifiable process and retrievable outputs, you need to separate questionnaire collection, deterministic scoring, and report generation, rather than relying entirely on large language model improvisation.

Below is an introduction to the SkillHub community skill: “TCM Constitution Identification and Personalized Wellness Plan Generator” (Coordinate: @user_d54638a0/tcm-constitution-advisor). It ties together national standard algorithms, Python calculations, and HTML visual reports into a fixed pipeline, suitable for triggering constitution identification and wellness plan organization on-demand within conversations.

What is this

In one sentence: Based on the national standard “Classification and Determination of Constitutions in Traditional Chinese Medicine” (GB/T 30318-2013), this tool scores the nine constitutions. It collects symptom data via questionnaires, uses Python scripts for deterministic scoring, and generates HTML reports featuring radar charts and conditioning advice.

Core Features

The following capabilities are derived from the official description. Upon installation, the SKILL.md and accompanying scripts within the Skill drive the Agent’s execution.

  1. Nine Constitution Scoring
    Calculates scores for the nine constitutions according to GB/T 30318-2013 (including Peaceful/Yin-Yang Balance, Qi Deficiency, Yang Deficiency, Yin Deficiency, Phlegm-Wetness, Damp-Heat, Blood Stasis, Qi Stagnation, and Special Diathesis). It emphasizes “determinism”—the same set of questionnaire answers must yield consistent scoring results, rather than random variations in every conversation.

  2. Questionnaire Collection
    Guiding users through a conversation to answer questions regarding symptoms and lifestyle habits related to constitution, summarizing the data into input consumable by scripts.

  3. Python Script Calculation
    Runs the project’s internal Python scripts to complete constitution determination and score processing, decoupling the calculation phase from model generation.

  4. HTML Visualization Report
    Generates an openable HTML report. The official description includes modules such as: radar charts, detailed explanations of each constitution, four-season wellness plans, dietary therapy and medicated diet, and acupoint recommendations.

  5. Conversation Trigger Words
    The Agent can intervene based on this skill when users mention terms such as TCM constitution, constitution identification, constitution test, wellness plan, “what constitution do I have”, Yang deficiency/Yin deficiency, Damp-Heat/Phlegm-Wetness, Qi deficiency/Blood stasis, Qi stagnation, Special diathesis, Peaceful constitution, constitution conditioning, TCM wellness, four-season wellness, dietary therapy/medicated diet, acupoint recommendation, health conditioning, constitution improvement, etc.

Installation and Activation

The Skill follows the standard SKILL.md format. When installing on SkillHub, you must install the skill into the skills directory actually read by the current Agent; otherwise, the default path may not be recognized.

Method 1: Let AI Install via Official Prompt

The installation prompt provided on the SkillHub page is: First refer to SkillHub Installation and Priority Source Configuration, then install the coordinate @user_d54638a0/tcm-constitution-advisor. You can send the entire section below to an AI connected to Skill capabilities:

Please install `@user_d54638a0/tcm-constitution-advisor` based on https://skillhub.cn/install/skillhub.md.

Method 2: SkillHub CLI

First, check if skillhub is available on your machine:

command -v skillhub && skillhub --version

If not installed, follow the official documentation to perform a full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

When installing this skill, you must use --dir to point to the skills directory of the current environment. Common paths listed in the official documentation include:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example (replace <skills directory> with the path you actually use):

skillhub install user_d54638a0/tcm-constitution-advisor --dir <skills directory>

You can also search before installing:

skillhub search tcm-constitution-advisor
skillhub install user_d54638a0/tcm-constitution-advisor --dir <skills directory>

After installation, refresh or restart the Agent according to your client’s requirements to load the new Skill.

Typical Usage

The official documentation does not provide a separate step-by-step screenshot tutorial. The reproducible usage is consistent with the introduction; you can proceed in the conversation following the order below.

  1. Initiate the request in natural language, e.g., “Help me take a TCM constitution test and generate a wellness plan.” or “What constitution do I have? I want four-season wellness and dietary advice.”
  2. After loading this Skill, the Agent should guide you through the constitution-related questionnaire (covering the symptom and habit information required for determining the nine constitutions).
  3. The Skill calls the built-in Python script to calculate the scores and tendencies for each constitution according to GB/T 30318-2013 rules.
  4. Output the HTML constitution report: Open the file locally or in the workspace to view the radar chart, constitution descriptions, as well as sections on four-season wellness, dietary therapy/medicated diet, and acupoint recommendations.

If Python is not installed in the environment or script dependencies are missing, you need to fulfill the runtime conditions according to the instructions in the Skill package; specific dependencies are subject to the SKILL.md and script directory after installation.

Use Cases and Notes

Who it is for

  • Users who want to conduct standardized constitution self-assessment within Agent conversations and obtain HTML reports that can be saved and shared.
  • Teams or individuals who need to fix “scoring rules” to national standards and scripts to reduce arbitrary model generation.
  • Readers interested in wellness organization (seasons, diet, acupoints) but who want a constitution conclusion first before expanding on advice.

Limitations and Precautions

  • Constitution identification and wellness content are for health reference only and cannot replace medical institution diagnosis and treatment; please seek medical attention for physical discomfort.
  • Scoring depends on the completeness and honesty of questionnaire answers; missed answers or random selection will affect determination results.
  • SkillHub page statistics (as of data capture): Rating 100000, Downloads 3491; actual experience is subject to the 1.0.0 package you installed locally.
  • Installation path errors are a common pitfall: Be sure to use --dir to point to the current Agent’s skills directory to avoid installing to the default ./skills/ without being loaded by the client.

Conclusion

The “TCM Constitution Identification and Personalized Wellness Plan Generator” combines the national standard nine-constitution questionnaire, Python deterministic scoring, and HTML visual reports. It is suitable for completing a filing-ready constitution identification and wellness plan organization within a conversation. To install or view instructions, please open the official SkillHub page: https://www.skillhub.cn/skills/user_d54638a0/tcm-constitution-advisor.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye