Scheduling engine

From cxcscmu/SkillLearnBench · View interactive version

Scheduling engine is an AI agent skill from the GitHub repository cxcscmu/SkillLearnBench. Algorithm to find earliest available meeting slots given constraints and existing appointments.

How to use this skill

Skill file

Scheduling Engine

This skill manages the logic for finding the earliest possible time slot for a meeting, accounting for both hard and soft (low-priority) conflicts.

Key Logic

Example Python logic for overlapping checks

from datetime import datetime, timedelta

def find_earliest_slot(requests, schedule, blue_blocks):
    """
    requests: List of (duration_hrs, constraint_start, constraint_end)
    schedule: List of occupied (start, end)
    blue_blocks: List of low-priority (start, end)
    """
    # 1. Open up blue blocks
    # Effective occupied schedule: schedule minus any block in blue_blocks.
    
    # 2. Iterate through candidate start times (e.g., every 15 mins)
    # Check if a candidate start_time + duration fits within constraints.
    # Check if candidate window (start, end) overlaps with any occupied block.

Important Considerations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.