| name | task-from-email |
| description | Extract action items from emails and create local tasks |
| allowed-tools | Bash, Read, Write, Glob, Grep |
Task from Email
Extract action items from emails and save as structured tasks locally.
Setup
cd /Users/chensijie/Projects/claude-secretary && source venv/bin/activate
Workflow
Step 1: Read the email(s)
python scripts/mac_mail.py read MAIL_ID --account Stanford
Step 2: Identify action items
Analyze the email and extract tasks. Look for:
- Explicit requests ("please send", "can you review", "submit by")
- Deadlines ("due April 8", "by Friday", "before the meeting")
- Implicit actions (meeting invites → prepare, review requests → do the review)
Step 3: Create tasks
python scripts/tasks.py add "Task title" --due YYYY-MM-DD --priority high|medium|low --from-email MAIL_ID --notes "context"
Step 4: Confirm with user
After creating tasks, show a summary:
- Task title
- Due date (if extracted)
- Priority
- Source email subject
Task Management Commands
python scripts/tasks.py list
python scripts/tasks.py list --status todo
python scripts/tasks.py done TASK_ID
python scripts/tasks.py delete TASK_ID
python scripts/tasks.py edit TASK_ID --due 2026-04-10 --priority high
Priority Rules
- high: Has deadline within 7 days, or explicitly urgent
- medium: Has deadline but not urgent, or important but no deadline
- low: Nice-to-do, no deadline, informational
Example
Email: "Please submit your NOI by April 8 for the NSF FINDERS FOUNDRY competition"
→ python scripts/tasks.py add "Submit NOI for NSF FINDERS FOUNDRY" --due 2026-04-08 --priority high --from-email 54443 --notes "K-12 AI education, limited submission"