Skip to content

Latest commit

Β 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Med Mentor Banner

med-mentor

A stateful workspace and Agent Harness skill for medical education & clinical reasoning

License: GPL v3 GitHub version Skills Registry

med-mentor is a custom agent skill and structured workspace environment designed for medical students, residents, physicians, nurses, and other healthcare trainees. It enables AI coding agents (like Claude Code or Antigravity) to guide users through structured, stateful clinical lessons, board preparation (USMLE, COMLEX, NCLEX, specialty board exams), and clinical reasoning drills using interactive HTML widgets.


Table of Contents


How it Works

The skill structures learning dynamically over multiple sessions. Instead of dumping raw textbook information, the agent guides the user by building interactive lessons (with flashcards, diagnostic calculators, quizzes, and clinical algorithms) custom-fit to the user's knowledge stage.

sequenceDiagram
    participant User
    participant Agent as AI Coding Agent (Claude)
    participant Skill as med-mentor Skill (SKILL.md)
    participant Workspace as Teaching Workspace

    User->>Agent: "Teach me antiarrhythmics / board prep"
    Agent->>Skill: Reads SKILL.md & references
    Agent->>Workspace: Checks MISSION.md & learning-records/
    Note over Agent,Workspace: Determines Zone of Proximal Development (ZPD)
    Agent->>Workspace: Scaffolds a new Interactive HTML Lesson
    Workspace->>User: Renders lesson.html (quizzes, checklists, etc.)
    User->>Agent: Interacts and answers questions
    Agent->>Workspace: Logs clinical pearls & misses to learning-records/
Loading

Getting Started

1. Installing as an Agent Skill (Recommended)

To enable your AI agent to dynamically teach you clinical subjects, add this skill to your workspace. The skill is fully compatible with any agent harness supporting workspace configuration directories:

  • Claude Code (.agents/skills/)
  • Antigravity & Antigravity CLI (.agents/skills/)
  • Codex & Codex CLI (.codex/skills/)
  • OpenCode (.opencode/skills/)
  • Hermes Agent (.hermes/skills/)
  • Cline, Roo-Code, Amp, etc.

Run the following command in your terminal inside your project/study directory:

npx skills add Premansh12/med-mentor

The skills manager will automatically detect your active agent harness and install the skill files in the correct configuration subdirectory.

2. Initializing the Workspace CLI (Scaffolding for All Agents)

If you want to manually initialize a new study directory with the required folders (lessons/, assets/, learning-records/) and templates (MISSION.md, RESOURCES.md, NOTES.md), you can run the CLI script directly from GitHub. This will automatically copy the skill configuration files for all supported agent harnesses (Claude Code, Codex, Antigravity, OpenCode, and Hermes Agent) at once:

npx github:Premansh12/med-mentor

Features & Capabilities

πŸŽ₯ Flight Simulator for Clinical Reasoning

Imagine having a personal medical school mentor, board exam coach, and senior attending resident sitting inside your terminal, walking you through patient cases, quizzing you on drug dosages, and grading your diagnostic accuracyβ€”all tailored to your active study goals.

πŸ› οΈ Interactive HTML Widget Catalog

Lessons aren’t just static text. Agents generate clean, offline-ready HTML interfaces directly in your study folder:

  • Active-Recall Flashcards: Double-sided diagnostic cards with interactive click-to-flip functionality.
  • Clinical Algorithm Flowcharts: Interactive decision-making trees (e.g., β€œDetermine next step in suspected Pulmonary Embolism based on Wells Criteria”).
  • Interactive Quizzes: Multiple-choice board prep questions with immediate clinical rationale disclosures.
  • Dosage & Metric Calculators: Live calculators to practice patient dosing (e.g., GFR, CHADSβ‚‚-VASc score).
  • Interactive Checklists: Procedural guides (OSCE preparation) to check off surgical or diagnostic steps.

🎨 Tufte-Inspired Editorial Design

Lessons paired with ./assets/styles.css are designed to look like editorial medical journals (clean typography, zero clutter, phone-friendly layouts) to reduce cognitive load while studying.

πŸ”’ Safety-First Medical Sourcing

An integrated safety gate ensures all medical instruction is high-fidelity and citation-backed:

  • No fictitious patient data.
  • Mandatory links to primary guidelines (AHA, ACC, DSM-5, etc.).
  • Automatic clinical disclaimer footers built into every lesson.

πŸ“„ Smart PDF & Syllabus Ingestion

Upload or reference your own notes or curriculum documents to ground study sessions:

  • Structured Resource Learning: Convert lecture slides, guideline articles, or textbook chapters into compressed, Tufte-style reference documents.
  • Custom Vignette Practice: Generate diagnostic quizzes from uploaded note files or practice-test questions.
  • Intelligent Study Planning: Provide a rotation schedule, syllabus outline, or exam blueprint to automatically structure a sequenced study plan.

πŸ€– Multi-Harness Skill Compatibility

The skill is designed to run natively inside any of your favorite agent tools:

  • Includes configuration and deployment support for Claude Code, Antigravity, Codex, OpenCode, and Hermes Agent.
  • Zero manual mapping needed; the CLI configures and installs the skill files to the correct agent directories automatically.

Repository & Workspace Structure

The Skill Repository

This repository contains the skill configuration, documentation references for the AI agent, and template formats:

med-mentor/
β”œβ”€β”€ assets/
β”‚   └── styles.css                 # The seed stylesheet (copied to target workspaces)
β”œβ”€β”€ bin/
β”‚   └── cli.js                     # CLI execution script (run via npx)
β”œβ”€β”€ formats/
β”‚   β”œβ”€β”€ MISSION-FORMAT.md          # Template for the user's MISSION.md
β”‚   β”œβ”€β”€ RESOURCES-FORMAT.md        # Template for the user's RESOURCES.md
β”‚   └── LEARNING-RECORD-FORMAT.md  # Template for session learning records
β”œβ”€β”€ references/
β”‚   β”œβ”€β”€ design-system.md           # Visual design & editorial system guidelines
β”‚   β”œβ”€β”€ learning-design.md         # Educational philosophy and lesson pacing
β”‚   β”œβ”€β”€ lesson-authoring.md        # Interactive HTML widgets and asset specs
β”‚   β”œβ”€β”€ mission-and-resources.md   # Guidance on setting up goals and study sources
β”‚   β”œβ”€β”€ reference-documents.md     # Reference documents layout guidelines
β”‚   β”œβ”€β”€ pdf-ingestion.md           # Instructions for extracting/learning from user PDFs
β”‚   └── safety-and-sourcing.md     # Non-negotiable clinical safety & citation rules
β”œβ”€β”€ SKILL.md                       # Entry point skill definition for agents
└── LICENSE                        # GNU GPL v3 License

Tip

assets/styles.css in this repository serves as a starter implementation of the editorial visual guidelines. The CLI automatically copies it into the ./assets/ folder of new workspaces so you can extend it rather than redefining custom CSS styling per lesson.

The Teaching Workspace (Created Locally)

When the skill runs or is initialized, it builds the following workspace in your current directory:

workspace/
β”œβ”€β”€ MISSION.md                     # Why you are studying and what exams you're targetting
β”œβ”€β”€ RESOURCES.md                   # List of verified clinical resources & directories
β”œβ”€β”€ NOTES.md                       # Your personal preferences and study notes
β”œβ”€β”€ lessons/                       # Short, self-contained interactive HTML lessons
β”œβ”€β”€ learning-records/              # Numbered markdown files recording learned pearls and misses
└── assets/                        # Shared CSS, JS quiz engines, and calculators

Contributing

We welcome contributions to help improve the med-mentor framework! Whether you are a developer improving the CLI scaffolding or a medical professional writing clinical references/lesson templates:

  1. Fork this repository.
  2. Create a new branch: git checkout -b feature/amazing-feature.
  3. If extending medical reference materials under references/, make sure they strictly adhere to the guidelines in references/safety-and-sourcing.md (no real patient data, clear clinical citation).
  4. Commit your changes and push: git commit -m 'Add antiarrhythmic references' && git push origin feature/amazing-feature.
  5. Open a Pull Request.

License

This project is licensed under the terms of the GNU General Public License v3.0 (GPL-3.0). See the LICENSE file for the full text.

About

A Claude skill for medical training, board prep, and clinical reasoning through interactive, step-by-step HTML lessons.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages