Agent skill

Medical Soap Note Creation

by HKUDS in HKUDS/OpenSpace

Transform unstructured clinical encounters into comprehensive SOAP notes with ICD codes and care plans

MITAuto-check passed

Install Medical Soap Note Creation

skills CLI
$ npx skills add HKUDS/OpenSpace --skill medical-soap-note-creation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install HKUDS/OpenSpace medical-soap-note-creation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/HKUDS/OpenSpace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/benchmarks/gdpval/skills/medical-soap-note-creation .claude/skills/medical-soap-note-creation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
medical-soap-note-creation
GitHub stars
7.8k
Token cost
~1.5k tokens
SKILL.md length
427 words
Files
2
Skills in repo
199
Repo updated
First seen
Licence
MIT

At a glance

Transform unstructured clinical encounters into comprehensive SOAP notes with ICD codes and care plans

  • Works in 4 steps: Extract Key Information → Structure the SOAP Note → Write the Complete Note → …
  • SKILL.md covers Overview, Step-by-Step Instructions, Best Practices and Example Structure, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Medical Soap Note Creation is an agent skill from HKUDS/OpenSpace. Transform unstructured clinical encounters into comprehensive SOAP notes with ICD codes and care plans

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file.

The repository describes itself as: "OpenSpace: The Skill Management Layer for AI Agents" -- https://open-space.cloud/. The licence is MIT.

Example prompts

  • “/medical-soap-note-creation”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Extract Key Information
  2. Structure the SOAP Note
  3. Write the Complete Note
  4. Quality Checklist

What it can do on your machine

Read from SKILL.md and the folder at commit 3827781. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Medical Soap Note Creation loads about 1.5k tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 427 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from HKUDS/OpenSpace at commit 3827781, republished under its MIT licence (© HKUDS). 427 words, ~1,453 tokens.

Download SKILL.mdSave it as .claude/skills/medical-soap-note-creation/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
medical-soap-note-creation
description
Transform unstructured clinical encounters into comprehensive SOAP notes with ICD codes and care plans

Medical SOAP Note Creation

This skill provides a systematic approach to converting unstructured clinical encounter summaries into professional, comprehensive SOAP notes ready for electronic health record documentation.

Overview

SOAP notes organize clinical information into four standard sections:

  • Subjective: Patient's reported symptoms and history
  • Objective: Measurable clinical findings and data
  • Assessment: Clinical diagnosis and reasoning
  • Plan: Treatment strategy and follow-up

Step-by-Step Instructions

Step 1: Extract Key Information

Review the clinical encounter summary and identify:

  • Patient demographics (age, sex, relevant history)
  • Chief complaint and history of present illness
  • Review of systems findings
  • Physical examination results
  • Diagnostic test results (labs, imaging)
  • Current medications and allergies
  • Past medical/surgical history
Step 2: Structure the SOAP Note

Organize information into the four SOAP sections:

Subjective (S):

  • Chief complaint in patient's own words
  • History of present illness (onset, duration, severity, aggravating/relieving factors)
  • Review of systems (pertinent positives and negatives)
  • Relevant past medical, family, and social history

Objective (O):

  • Vital signs
  • Physical examination findings by system
  • Laboratory and imaging results
  • Current medication list

Assessment (A):

  • Primary diagnosis with ICD-10 code(s)
  • Differential diagnoses if applicable
  • Clinical reasoning connecting findings to diagnosis

Plan (P):

  • Medications (new prescriptions, changes, discontinuations)
  • Treatments and procedures
  • Patient education provided
  • Follow-up arrangements
  • Return precautions
Step 3: Write the Complete Note

Compose the full SOAP note in a single write_file operation to ensure completeness and efficiency:

python
from write_file import write_file

soap_note = """SOAP NOTE
Date: [Encounter Date]
Patient: [Patient Name/ID]

SUBJECTIVE:
[Patient's reported symptoms and history in organized paragraphs]

OBJECTIVE:
[Clinical findings and data in organized sections]

ASSESSMENT:
[Diagnosis with clinical reasoning and ICD codes]

PLAN:
[Specific, actionable treatment steps and follow-up]
"""

write_file(path="soap_note.txt", content=soap_note)
Step 4: Quality Checklist

Before finalizing, verify:

  • All four SOAP components present and clearly labeled
  • ICD-10 codes included for all diagnoses
  • Plan contains specific, actionable items with timelines
  • Follow-up instructions are clear and specific
  • Return precautions included
  • Note is comprehensive (typically 3000-10000 characters for complex cases)
Show full SKILL.md (161 more words)Show less

Best Practices

  1. Be Specific: Use quantifiable measurements and precise clinical terminology
  2. Include ICD Codes: Always pair diagnoses with appropriate ICD-10 codes
  3. Actionable Plans: Ensure each plan item has clear next steps, dosages, and timelines
  4. Single Operation: Write the complete note in one write_file operation for efficiency and consistency
  5. Professional Tone: Use clinical language appropriate for medical records
  6. Patient-Centered: Include patient education and shared decision-making when applicable

Example Structure

SOAP NOTE
Date: 2024-01-15
Patient: [Name], [Age], [Sex]

SUBJECTIVE:
CC: [Chief complaint]

HPI: [History of present illness using OLDCARTS or similar framework - 
      onset, location, duration, characteristics, aggravating/relieving factors, 
      timing, severity]

ROS: [Review of systems - pertinent positives and negatives by system]

PMH: [Past medical history]
PSH: [Past surgical history]
Medications: [Current medications with dosages]
Allergies: [Known allergies and reactions]
FH: [Family history]
SH: [Social history]

OBJECTIVE:
VS: T [temp], BP [blood pressure], HR [heart rate], RR [respiratory rate], 
    SpO2 [oxygen saturation], Wt [weight]

General: [Appearance, distress level]
HEENT: [Head, eyes, ears, nose, throat findings]
CV: [Cardiovascular examination]
Resp: [Respiratory examination]
Abd: [Abdominal examination]
MSK: [Musculoskeletal examination]
Neuro: [Neurological examination]
Skin: [Dermatological findings]

Labs: [Relevant laboratory results with values and reference ranges]
Imaging: [Imaging study results]

ASSESSMENT:
1. [Primary diagnosis] - ICD-10: [code]
   [Brief clinical reasoning supporting diagnosis]

2. [Secondary diagnosis if applicable] - ICD-10: [code]
   [Brief clinical reasoning]

PLAN:
1. Medications:
   - [Medication name] [dosage] [route] [frequency] for [duration]
   
2. Treatments:
   - [Specific treatment or procedure]
   
3. Patient Education:
   - [Education topics discussed]
   
4. Follow-up:
   - Return to clinic in [timeframe] for [purpose]
   - [Any scheduled tests or appointments]
   
5. Return Precautions:
   - Return immediately if [warning symptoms]

Common ICD-10 Code Categories

  • Respiratory: J00-J99 (e.g., J06.9 acute upper respiratory infection)
  • Digestive: K00-K95 (e.g., K21.0 GERD with esophagitis)
  • Musculoskeletal: M00-M99 (e.g., M54.5 low back pain)
  • Cardiovascular: I00-I99 (e.g., I10 essential hypertension)
  • Endocrine: E00-E89 (e.g., E11.9 type 2 diabetes mellitus)
  • Infectious: A00-B99 (e.g., J02.9 acute pharyngitis)

Notes on Efficiency

Writing the complete SOAP note in a single write_file operation offers several advantages:

  • Reduces iteration overhead
  • Ensures consistency across all sections
  • Prevents partial or incomplete documentation
  • Maintains coherent clinical reasoning throughout
  • Faster completion time for clinical documentation tasks

© HKUDS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in benchmarks/gdpval/skills/medical-soap-note-creation of HKUDS/OpenSpace.

  • SKILL.md
  • .skill_id

Open the folder on GitHubat commit 3827781

Compare with similar skills

Medical Soap Note Creation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Medical Soap Note Creation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Medical Soap Note Creation this skillHKUDS/OpenSpace7.8k—~1.5kAutomated safety check: PassMIT
Automated Soap Note GeneratorLeoYeAI/openclaw-master-skills2.2k—~6.2kAutomated safety check: NotesMIT
Soap Notemohitagw15856/pm-claude-skills1.4k—~1kAutomated safety check: PassMIT
Automated Soap Note Generatoraipoch/medical-research-skills1.9k—~4.3kAutomated safety check: PassMIT
Summarizing Clinical Notesmaziyarpanahi/openmed5.5k—~1.7kAutomated safety check: PassApache-2.0
TransformersK-Dense-AI/scientific-agent-skills48k1 repos~2.8kAutomated safety check: NotesApache-2.0

Similar skills

  • Automated Soap Note Generator

    LeoYeAI/openclaw-master-skills

    Transform unstructured clinical input (dictation, transcripts, or rough notes) into standardized SOAP (Subjective, Objective, Assessment, Plan) medical documentation.

    2.2k GitHub stars~6.2k tokensUpdated 2 mo ago
    Media & CreativeAuto-check: notes
  • Soap Note

    mohitagw15856/pm-claude-skills

    Structure a clinical encounter into a clean SOAP note. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Automated Soap Note Generator

    aipoch/medical-research-skills

    Generate structured SOAP notes from clinical narratives, transcripts, or existing notes; use when the user needs de-identified clinical documentation organized into Subjective, Objective…

    1.9k GitHub stars~4.3k tokensUpdated 24 days ago
    Research & ScienceAuto-check passed
  • Summarizing Clinical Notes

    maziyarpanahi/openmed

    Produces structured, citation-anchored summaries of clinical notes — one-liner, hospital course, and problem-oriented views — where every claim cites a source span so nothing is hallucinated.

    5.5k GitHub stars~1.7k tokensUpdated today
    Research & ScienceAuto-check passed
  • Transformers

    K-Dense-AI/scientific-agent-skills

    Hugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio, and multimodal tasks.

    48k GitHub starsUsed in 1 repo~2.8k tokens
    AI & LLM EngineeringAuto-check: notes
  • Meeting Notes

    outline/outline

    Create meeting notes in Outline from a template; use when the user wants an agenda, notes, or a follow-up document for a meeting.

    41k GitHub stars~551 tokensUpdated today
    Productivity & AutomationAuto-check passed

More from HKUDS/OpenSpace

All 199 skills in this repo
  • Walks through producing a master audio track plus stems in Python, from checking a reference file and timing sections by BPM to effects, a zip archive and final verification.

    7.8k GitHub stars~2.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Handle cascading data retrieval tool failures by falling back to embedded knowledge generation

    7.8k GitHub stars~765 tokensUpdated 1 mo ago
    Auto-check passed
  • Gives an agent a workaround when its code-execution sandbox keeps failing: save the Python script to a file and run it through the shell instead.

    7.8k GitHub stars~588 tokensUpdated 1 mo ago
    Auto-check passed
  • A recovery routine for agents whose sandboxed code runner keeps failing: save the Python script to disk, then run it through the shell and read the output.

    7.8k GitHub stars~652 tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback ladder for failed sandboxed code runs, plus the habit of fixing the working directory first so generated files land in the right place.

    7.8k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Fallback workflow for executing Python code when executecodesandbox fails repeatedly

    7.8k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Medical Soap Note Creation

What does Medical Soap Note Creation do?

Transform unstructured clinical encounters into comprehensive SOAP notes with ICD codes and care plans. Medical Soap Note Creation is an agent skill from HKUDS/OpenSpace.

How do I install Medical Soap Note Creation in Claude Code?

Run `npx skills add HKUDS/OpenSpace --skill medical-soap-note-creation -a claude-code`. Or copy the skill folder (benchmarks/gdpval/skills/medical-soap-note-creation in HKUDS/OpenSpace) into .claude/skills/medical-soap-note-creation in your project. Claude Code loads it when a task matches its description.

How do I install Medical Soap Note Creation in Codex?

Run `npx skills add HKUDS/OpenSpace --skill medical-soap-note-creation -a codex`. Or copy the skill folder (benchmarks/gdpval/skills/medical-soap-note-creation in HKUDS/OpenSpace) into .agents/skills/medical-soap-note-creation in your project. Codex loads it when a task matches its description.

Can I use Medical Soap Note Creation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add HKUDS/OpenSpace --skill medical-soap-note-creation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/medical-soap-note-creation, .gemini/skills/medical-soap-note-creation, .github/skills/medical-soap-note-creation and .opencode/skills/medical-soap-note-creation in your project.

What does Medical Soap Note Creation need to run?

SKILL.md names no scripts, command-line tools or credentials: Medical Soap Note Creation is instructions for the agent only. Our summary lists: Python 3.

Does Medical Soap Note Creation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Medical Soap Note Creation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Medical Soap Note Creation use?

Medical Soap Note Creation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Medical Soap Note Creation use?

About 1.5k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Medical Soap Note Creation?

Skills that share tags, products or a category with Medical Soap Note Creation: Automated Soap Note Generator (LeoYeAI/openclaw-master-skills, 2.2k stars), Soap Note (mohitagw15856/pm-claude-skills, 1.4k stars), Automated Soap Note Generator (aipoch/medical-research-skills, 1.9k stars) and Summarizing Clinical Notes (maziyarpanahi/openmed, 5.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Medical Soap Note Creation?

HKUDS (a GitHub organization) maintains it in HKUDS/OpenSpace, which has 7,754 GitHub stars. The repository holds 199 skills in this directory. The repository was last updated on August 12, 2026.

Source: HKUDS/OpenSpace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.