# MedSchedule AI

> Automated MBBS/BDS modular curriculum integrator and conflict-free timetable engine using Google OR-Tools.

MedSchedule AI is a paid AI agent skill on Agensi by Muhammad Dawood, in Education & Learning. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $13 (one-time purchase)
- Creator: [Muhammad Dawood](https://www.agensi.io/creators/muhammad-dawood)
- Category: [Education & Learning](https://www.agensi.io/skills/education-learning)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/medschedule-ai
- Tags: education, automation, productivity, medical-education, mbbs, bds, timetable-scheduler, google-or-tools

## About this skill

Medical colleges transitioning to WFME or PMDC standards struggle with the manual complexity of modular curriculum alignment. This skill automates the integration of basic sciences with clinical specialties while solving high-stakes scheduling constraints like 4-batch lab rotations.

### What it does
- **Syllabus Ingestion** parses topics, faculty, and session formats from `.docx` and `.xlsx` files using deterministic heuristics and JSON extraction.
- **Curriculum Integration** uses 1536-dim vector embeddings to horizontally link basic sciences and vertically align them with clinical departments.
- **CP-SAT Scheduling** employs Google OR-Tools to solve conflict-free 6-day timetables, enforcing Friday half-days and daily institutional breaks.
- **Rotation Management** calculates 4-batch Latin-Square permutations for Histology, Physiology, Biochemistry, and Skill labs with zero collisions.
- **Natural Language Copilot** handles schedule edits like moves or swaps with soft-warning conflict detection and open-slot recommendations.
- **Professional Export** generates pixel-perfect A4 landscape Word documents with standardized institutional headers and automated footer legends.

### How it works
1. **Import** raw syllabus data or legacy grids through the parser script to normalize topics and metadata.
2. **Align** disciplines using semantic similarity thresholds to group related topics across different academic years or departments.
3. **Solve** the mathematical model to generate a schedule that satisfies all facility, batch, and time constraints.
4. **Refine** the output via natural language commands to adjust faculty assignments or specific session timings.
5. **Export** the final result into an OpenXML `.docx` file formatted for immediate institutional printing.

### Frameworks & tools
Python, Google OR-Tools (CP-SAT), pgvector, python-docx, Next.js, FastAPI, and OpenXML (lxml).

### Why this beats prompting it yourself
Generic LLM prompts fail at the combinatorial complexity of 4-batch Latin-Square rotations and often ignore strict medical school time blocks like Friday 12:00 PM cutoffs. This skill uses a dedicated mathematical solver to guarantee logical feasibility and provides a production-ready Word exporter that preserves institutional layout requirements.

### Use cases
- Migrating a legacy subject-based MBBS syllabus to a modern integrated modular format.
- Generating conflict-free 4-batch practical lab rotations for a 100-student cohort.
- Auto-suggesting clinical correlations for basic science lectures using vector similarity.
- Rescheduling faculty sessions on the fly without breaking institutional break rules.

### Known limitations
Designed specifically for 100-student cohorts and 4-batch rotations. Requires a PostgreSQL instance with pgvector for advanced semantic integration.

## Requires

- Python

Ensure Python 3.10+ with ortools and python-docx is installed before running the CP-SAT timetable solver and Word exporter.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the MedSchedule AI skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill handle the specific complexities of an MBBS modular curriculum compared to a standard calendar tool?

Medschedule AI automates the complex transition to modular medical curricula by using mathematical solvers to handle 4-batch lab rotations and horizontal/vertical integration, tasks where manual entry and generic LLMs often fail due to scheduling conflicts.

### What are the technical requirements for integrating this skill into my existing AI agent workflow?

The skill integrates via FastAPI and is compatible with any agent framework that supports Python-based tools, though it requires a PostgreSQL instance with the pgvector extension to perform its semantic curriculum alignment.

### Can I manually override or adjust the generated timetable if a faculty member becomes unavailable?

Yes, the Natural Language Copilot feature allows you to request specific swaps or faculty changes, and the engine will provide soft-warning conflict detections if your request violates institutional rules like Friday half-days or lab constraints.

### What is included in the purchase of the Medschedule AI skill?

You receive the full Python-based scheduling engine, the specialized OpenXML export templates, and the integration scripts for Google OR-Tools and pgvector, along with documentation for curriculum ingestion.

### Are there limitations on the size of the student cohort or the number of lab batches supported?

The current version is optimized for 100-student cohorts and 4-batch rotations; however, buyers receive all minor version updates that improve the semantic alignment heuristics and export formatting.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
