Назад към всички

symptom

// Record physical symptoms and discomfort with automatic medical term conversion, severity assessment, and medical advice generation.

$ git log --oneline --stat
stars:1,933
forks:367
updated:March 4, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namesymptom
descriptionRecord physical symptoms and discomfort with automatic medical term conversion, severity assessment, and medical advice generation.
argument-hint<operation_type(record/history/status) symptom_description_natural_language>
allowed-toolsRead, Write
schemasymptom/schema.json

Physical Discomfort Recording Skill

Record daily physical discomfort and symptoms, automatically convert to standard medical records, and provide medical advice.

Core Flow

User Input -> Parse Operation Type -> [add] Parse Symptoms -> Medical Standardization -> Severity Assessment -> Medical Advice -> Save
                              -> [history] Display History Records
                              -> [status] Display Statistical Analysis

Step 1: Parse User Input

Operation Type Recognition

Input KeywordsOperation
addadd
historyhistory
statusstatus

Step 2: Record Symptoms (add)

Symptom Information Parsing

Extract from natural language:

Basic Information (Auto Extracted):

  • Symptom Name: Standard medical term
  • Onset Time: Specific time point or time period
  • Duration: How long the symptom has persisted
  • Severity: Mild/Moderate/Severe
  • Body Part: Specific location of the symptom

Associated Symptoms (Identified):

  • List of related symptoms
  • Systemic symptoms (fever, fatigue, etc.)

Triggers and Relieving Factors:

  • Triggering factors: exercise, diet, emotions, environment, etc.
  • Relieving factors: rest, medication, position change, etc.

Medical Standardization Conversion

Colloquial DescriptionMedical Term
头疼Headache
胃疼Gastric pain/Upper abdominal pain
心慌Palpitations
气短Shortness of breath
拉肚子Diarrhea
便秘Constipation

Symptom Classification

  • Respiratory System: Cough, sputum, dyspnea, chest pain, etc.
  • Cardiovascular System: Palpitations, chest tightness, edema, etc.
  • Digestive System: Abdominal pain, nausea, vomiting, diarrhea, etc.
  • Nervous System: Headache, dizziness, insomnia, etc.
  • Urinary System: Urinary frequency, urgency, dysuria, etc.
  • Endocrine System: Polydipsia, polyuria, weight changes, etc.
  • Musculoskeletal: Joint pain, muscle pain, etc.
  • Systemic Symptoms: Fever, fatigue, weight loss, etc.

Severity Assessment

LevelDescriptionMedical Advice
Grade 1 MildDoes not affect daily activitiesHome observation
Grade 2 ModeratePartially affects daily activitiesSuggest observation or outpatient visit
Grade 3 SevereSeverely affects daily activitiesSeek medical attention soon
Grade 4 CriticalLife-threateningSeek immediate medical attention

Medical Advice Assessment

Seek Immediate Medical Attention (Call 120):

  • Chest pain or chest tightness with sweating, dyspnea
  • Sudden severe headache
  • Dyspnea or suffocation
  • Confusion or syncope

Seek Medical Attention Soon (Today or Tomorrow):

  • Persistent high fever for more than 3 days
  • Severe vomiting or diarrhea causing dehydration
  • Persistently worsening pain

Outpatient Visit (Within 1 Week):

  • Mild to moderate symptoms persisting for more than 1 week

Step 3: Generate JSON

{
  "id": "20251231123456789",
  "record_date": "2025-12-31",
  "symptom_date": "2025-12-31",
  "original_input": "User's original input",
  "standardized": {
    "main_symptom": "Headache",
    "category": "Nervous System",
    "body_part": "Head",
    "severity": "Mild",
    "severity_level": 1
  },
  "associated_symptoms": [
    {"name": "Nausea", "present": true}
  ],
  "medical_assessment": {
    "urgency": "observation",
    "recommendation": "Home observation",
    "advice": "Recommend adequate rest"
  }
}

Step 4: Save Data

File path: data/symptom-records/YYYY-MM/YYYY-MM-DD_MainSymptom.json

Execution Instructions

1. Parse operation type
2. [add] Parse symptoms -> Medical standardization -> Assess severity -> Generate recommendations -> Save
3. [history] Read records -> Display by time
4. [status] Statistical analysis -> Display report

Example Interactions

Record Headache

User: Headache
-> Parse as "Headache", mild, nervous system
-> Generate recommendation: Rest adequately, seek medical attention if persists for more than 24 hours

Record Fever

User: Fever 38 degrees with cough
-> Parse as "Fever", moderate, systemic symptoms
-> Associated symptoms: Cough
-> Recommendation: Monitor temperature, drink plenty of water, seek medical attention if fever persists

Record Chest Pain

User: Chest tightness and shortness of breath for half an hour
-> Critical symptom alert
-> Recommend immediate medical attention