This repository contains the exchange-mail skill for agentic AI systems, enabling full email and calendar management for Microsoft Exchange/Outlook.
This skill is inspired by and references the work in https://github.com/DmitryBMsk/claude-code-codex-exchange-skill
The exchange-mail skill allows AI agents to interact with Microsoft Exchange/Outlook through a command-line interface, providing capabilities such as:
- Listing, reading, replying to, marking as read, and archiving emails
- Viewing calendar events and managing schedules
- Searching contacts, managing tasks, and accessing notes
- Supporting batch operations and JSON output for programmatic use
The actual skill implementation is located at:
/home/derekhsu/.agents/skills/exchange-mail/- Symlinked in this repository as:
skills/exchange-skills
AGENTS.md- Comprehensive guidelines for AI agents operating with this skill.gitignore- Excludes Python cache, environment files, and other development artifactsskills/exchange-skills/- Symlink to the actual skill implementation
Agents should refer to AGENTS.md for detailed instructions on how to operate with this skill, including:
- Required environment variables (
EXCHANGE_SERVER,EXCHANGE_EMAIL, etc.) - Core command usage (list, read, reply, archive, calendar, contacts, tasks, notes)
- Best practices for secure and effective operation
- Error handling guidance
- When and how to invoke the skill based on user requests
Before using this skill, ensure the following environment variables are set:
export EXCHANGE_SERVER="mail.company.com"
export EXCHANGE_EMAIL="user@company.com"
export EXCHANGE_USERNAME="username"
export EXCHANGE_PASSWORD="password"These can be set in your shell configuration or in a .env file (note: .env is ignored by git for security).
If modifying this skill:
- The main implementation is in
scripts/exchange_mail.pywithin the skill directory - Refer to
SKILL.mdin the skill directory for detailed documentation - Maintain backward compatibility with the existing command-line interface
- Test with an actual Exchange server before deploying changes
This skill activates when users make requests like:
- "check my email"
- "unread emails"
- "reply to email"
- "archive external emails"
- "mark as read"
- "calendar"
- "schedule"
- "行程" (Chinese for schedule)
Install this skill using the skills CLI:
npx skills add derekhsu/exchange-skillsThis skill works with 18+ AI agents including Claude Code, GitHub Copilot, Cursor, Cline, and many others.
Last updated: $(date)