Claude-skill-registry leave-excusal-communication-handler
When the user needs to communicate about approved leaves or excusals to instructors/TAs, including locating leave documents and sending reminder emails with attachments. This skill triggers when users mention 'excused assignments', 'leave documents', or need to remind instructors about approved absences. It handles document retrieval, email composition with proper context, and attachment management for official documentation.
git clone https://github.com/majiayu000/claude-skill-registry
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/leave-excusal-communication-handler" ~/.claude/skills/majiayu000-claude-skill-registry-leave-excusal-communication-handler && rm -rf "$T"
skills/data/leave-excusal-communication-handler/SKILL.mdInstructions
Primary Objective
Handle communication regarding approved leaves/excusals with instructors or TAs. This includes locating relevant leave documents, composing and sending reminder emails with proper context, and attaching official documentation.
Trigger Conditions
This skill activates when the user mentions:
- "excused assignments"
- "leave documents"
- "approved leave"
- "remind instructor/TA about absence"
- Any scenario requiring formal communication about an approved absence affecting coursework.
Core Workflow
1. Initial Context Gathering
- Access personal information: Use
to retrieve the user's details (name, student ID, email, enrolled courses).memory-read_graph - Identify relevant course: If not specified, list user's courses via
and identify the correct one based on context (course name, code, or assignment mentions).canvas-canvas_list_courses - Review assignment status: For the relevant course, call
withcanvas-canvas_list_assignments
to get submission status for all assignments.include_submissions: true
2. Document Location & Verification
- Search workspace: Use
andfilesystem-list_allowed_directories
to explore the accessible workspace.filesystem-directory_tree - Identify leave document: Look for files with names containing "leave", "excusal", "absence", or similar terms. Common formats: PDF, DOC, DOCX.
- Verify document content: Read the identified file (
) to confirm it's the correct leave document (contains user's name, dates, approval details).filesystem-read_file
3. Email Recipient Identification
- Extract from grade records: If a grade summary file (e.g., Excel) is mentioned, read it (
with pandas) to find instructor/TA contact information.local-python-execute - Alternative sources: Check course details from Canvas for teacher emails, or use the email pattern from the grade summary (e.g.,
).mcpcanvasadmin2@mcp.com
4. Email Composition & Sending
- Subject line: Should include: "Reminder: Approved Leave of Absence for [Assignment Name] - [User Name] ([Student ID])"
- Body structure:
- Polite greeting
- Clear statement of purpose (reminder about approved leave)
- Specific details: assignment affected, dates of leave, original approval context
- Request for action (update records to reflect excused status)
- Professional closing with contact information
- Attachment: Always attach the verified leave document.
- Send email: Use
with recipient address, subject, body, and attachment path.emails-send_email
5. Assignment Handling (If Applicable)
- Check submission requirements: Review assignment descriptions for specific file naming conventions or submission types.
- Submit missing work (if requested and not excused): Only if the user explicitly asks to submit completed assignments that are missing but NOT excused.
- Locate completed assignment files in workspace.
- Rename files to match required conventions if specified.
- Submit via
.canvas-canvas_submit_assignment_with_file
Key Constraints & Rules
- Do NOT submit excused assignments: If an assignment is explicitly mentioned as excused due to leave, do not attempt to submit it. Only send the reminder email.
- Only submit existing work: Never create assignment content. Only submit files found in the workspace.
- Verify before sending: Always confirm the leave document is correct and contains relevant approval details.
- Maintain professionalism: All communications must be formal, polite, and clearly structured.
Error Handling
- If no leave document is found: Inform the user and ask for clarification on document location.
- If TA/instructor email cannot be identified: Use a generic course contact email or ask the user for the correct address.
- If assignment files are missing: Do not submit anything. Inform the user that completed work was not found.
Output & Confirmation
After completing all actions, provide a clear summary to the user including:
- Which assignments were identified as missing/excused
- Which assignments were submitted (if any)
- Confirmation that the reminder email was sent
- Details of the attached document