Process all files in the /Needs_Action folder across all categories (email, whatsapp, linkedin, files). Read each file, create a plan, execute actions or flag for approval, and move completed items to /Done. For sensitive actions, create approval request in /Pending_Approval. Human will move to /Approved or /Rejected, then orchestrator triggers execution. Uses MCP tools for external actions (send email, WhatsApp, LinkedIn posts).
Process all pending items in the /Needs_Action/<category>/ folders.
Always print action tags during execution for logging:
[SKILL] Using skill: /process-inbox
[READ] Reading: filename.md
[WRITE] Writing: filename.md
[MOVE] Moving: source -> destination
[MCP] Using MCP tool: mcp__ai-employee__*
[DONE] Completed: action description
This skill now supports:
[SKILL] Using skill: /process-inbox
List all .md files in:
/Needs_Action/email//Needs_Action/whatsapp//Needs_Action/linkedin//Needs_Action/files/For each file in each category:
Read the file
[READ] Reading: {filename}
Parse frontmatter (type, priority, status) and content
Claim ownership
[MOVE] Moving: /Needs_Action/<category>/{filename} -> /In_Progress/<category>/{filename}
Create a Plan.md
[WRITE] Writing: /Plans/<category>/PLAN_{filename}.md
Determine action type:
/Pending_Approval/<category>/Execute or Flag:
Routine:
[MCP] Using MCP tool: mcp__ai-employee__*
[MOVE] Moving: /In_Progress/<category>/{filename} -> /Done/<category>/{filename}
[DONE] Completed: {action summary}
Sensitive:
[WRITE] Writing: /Pending_Approval/<category>/APPROVAL_{filename}.md
[DONE] Flagged for approval: {reason}
CRITICAL WORKFLOW:
DO NOT MOVE the original file from /In_Progress/
/In_Progress/<category>/{filename} (locked/claimed)/Pending_Approval/<category>/APPROVAL_{filename}.mdFile Movement Rules:
/In_Progress/<category>/{filename} → STAYS HERE (locked until decision)/Pending_Approval/<category>/APPROVAL_{filename}.md → NEW approval request fileAfter Human Decision:
/Done/<category>//Archive/<category>/ (action cancelled)When executing actions, use these MCP tools:
| Tool | Purpose | Category |
|---|---|---|
mcp__ai-employee__send_email(to, subject, body) | Send email via Gmail | |
mcp__ai-employee__draft_email(to, subject, body) | Create email draft | |
mcp__ai-employee__search_emails(query) | Search Gmail | |
mcp__ai-employee__send_whatsapp(recipient_name, message) | Send WhatsApp message | |
mcp__ai-employee__post_linkedin(text, visibility) | Post to LinkedIn | |
mcp__ai-employee__send_linkedin_message(recipient_name, message) | Send LinkedIn DM |
/Needs_Action/email/)Action Types:
mcp__ai-employee__send_email or mcp__ai-employee__draft_emailmcp__ai-employee__send_emailApproval Required When:
/Needs_Action/whatsapp/)Action Types:
mcp__ai-employee__send_whatsappmcp__ai-employee__send_whatsappApproval Required When:
/Needs_Action/linkedin/)Action Types:
mcp__ai-employee__post_linkedinmcp__ai-employee__send_linkedin_messagemcp__ai-employee__send_linkedin_messageApproval Required When:
/Needs_Action/files/)Action Types:
Approval Required When:
When processing a file, create a Plan.md in /Plans/<category>/:
# Plan: {original_filename}
## Source
- **Category:** {email|whatsapp|linkedin|files}
- **Original File:** /Archive/{filename}
- **Action File:** {action_filename}
- **Type:** {type}
- **Priority:** {priority}
## Analysis
{Brief analysis of what needs to be done}
## Proposed Actions
- [ ] Action 1
- [ ] Action 2
- [ ] Action 3
## MCP Tools Required
- [ ] mcp__ai-employee__send_email
- [ ] mcp__ai-employee__send_whatsapp
- [ ] mcp__ai-employee__post_linkedin
- [ ] mcp__ai-employee__send_linkedin_message
- [ ] None (routine file processing)
## Approval Required?
- [ ] No - Routine action, will execute directly
- [ ] Yes - Sensitive action, requires human approval
Reason: {why approval is needed}
## Status
- [ ] In Progress
- [ ] Pending Approval
- [ ] Approved - Awaiting Execution
- [ ] Complete
## Notes
{Any additional notes}
For sensitive actions, create a file in /Pending_Approval/<category>/:
---