Agent skill
section-detection
Detect clinical note sections (HPI, ROS, Assessment, Plan) using regex patterns and LLM topic segmentation. Generates ToC with accurate byte offsets.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/section-detection-rooseveltadvisors-clinicalnoteagent
SKILL.md
Section Detection Skill
Overview
Detects sections in clinical notes using hybrid approach: regex for explicit headers + LLM for inferred sections. Generates navigable Table of Contents with precise offsets.
When to Use
- Generate Table of Contents for clinical notes
- Detect section boundaries for navigation
- Identify explicit and inferred sections
Installation
IMPORTANT: This skill has its own isolated virtual environment (.venv) managed by uv. Do NOT use system Python.
Initialize the skill's environment:
# From the skill directory
cd .agent/skills/section-detection
uv sync # Creates .venv (no external dependencies, uses Python stdlib)
Usage
CRITICAL: Always use uv run to execute code with this skill's .venv, NOT system Python.
# From .agent/skills/section-detection/ directory
# Run with: uv run python -c "..."
from section_detection import SectionDetector
detector = SectionDetector(ollama_client)
sections = detector.detect_sections(clinical_note_text)
for section in sections:
print(f"{section['title']}: {section['start_offset']}-{section['end_offset']}")
print(f" Explicit: {section['is_explicit']}, Confidence: {section['confidence']}")
Implementation
See section_detection.py.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?