Process Needs Action
Process pending action items from a designated folder and create detailed implementation plans based on organizational rules.
Required Clarifications
Before processing, gather these essential details:
- What is your vault/workspace directory path? (e.g.,
AI_Employee_Vault/, workspace/, etc.)
- What should I filter by? (Process all pending items, or filter by priority: high/medium/low?)
Optional Clarifications
- Should I preview plans before creating them? (Show plan content for approval before saving)
- Should I auto-update file statuses? (Change from
pending to in_progress automatically, or ask first)
Note: Avoid asking all questions at once. Ask required questions first, then optional ones if needed.
Before Implementation
Gather context to ensure successful processing:
| Source |
Gather |
| User Input |
Vault directory path, processing preferences, priority filter |
| Codebase |
Verify paths exist, validate directory structure |
| Conversation |
Any specific processing rules or preferences discussed |
| Handbook/Rules |
Read organizational processing rules if available |
Instructions
1. Validate Structure
Check that required paths exist:
- Verify
<vault_dir>/Needs_Action/ directory exists
- Check for
<vault_dir>/Company_Handbook.md (optional but recommended)
- Ensure
<vault_dir>/Plans/ directory exists (create if missing)
- Verify
<vault_dir>/Dashboard.md exists (create if missing)
2. Read Processing Rules
- If
<vault_dir>/Company_Handbook.md exists, read it to understand processing rules
- Note priority keywords (e.g., URGENT, CLIENT, INVOICE, DEADLINE)
- Note file handling guidelines
- If handbook doesn't exist, use default processing rules
3. Scan Needs_Action Folder
- List all markdown files in
<vault_dir>/Needs_Action/
- Filter for files with
status: pending in frontmatter
- Apply priority filter if specified by user
- Sort by priority (high → medium → low)
4. Process Each Action Item
For each pending file:
a. Read and Parse
- Read the full file content
- Extract frontmatter metadata (type, priority, source_file, detected)
- Identify the source file type and context
b. Analyze Content
- Based on file type (PDF, TXT, image, etc.), determine appropriate action
- Check for priority keywords (URGENT, CLIENT, INVOICE, DEADLINE)
- Cross-reference with Company Handbook rules
- Consider Business_Goals.md priorities
c. Create Detailed Plan
- Create a new file in
<vault_dir>/Plans/
- Filename:
PLAN_[YYYYMMDD_HHMMSS]_[source_filename].md
- Use plan template from
references/plan-template.md
- Include:
- Clear objective
- Step-by-step actions with checkboxes
- Required information or approvals
- Expected outcome
- Links to related files
- If preview mode enabled, show plan to user for approval before saving
d. Update Action File
- Change status from
pending to in_progress (or ask user if auto-update disabled)
- Add processing timestamp
- Add link to created plan
5. Update Dashboard
- Update
<vault_dir>/Dashboard.md
- List all pending actions with priorities
- Show count of items processed
- Update "Last Check" timestamp
- If Dashboard.md doesn't exist, create it with basic structure
6. Log Activity (Optional)
- If
<vault_dir>/Logs/ directory exists, append to today's log file
- Filename:
<vault_dir>/Logs/YYYY-MM-DD.json
- Record: files processed, plans created, any errors
Error Handling
Handle these scenarios gracefully:
| Scenario |
Action |
| No pending files found |
Inform user "No pending action items found" and exit gracefully |
| Vault directory doesn't exist |
Ask user to confirm path or provide correct vault directory |
| Company Handbook missing |
Proceed with default processing rules, inform user |
| Malformed frontmatter |
Log error, skip file, continue with next file |
| File permission errors |
Log error with filename, skip file, continue processing |
| Plans directory doesn't exist |
Create <vault_dir>/Plans/ directory automatically |
| Dashboard.md missing |
Create basic dashboard with template structure |
What NOT to Do
Avoid these anti-patterns:
- Don't modify source files directly - Only update frontmatter status, never change content
- Don't skip updating the dashboard - Always update dashboard to reflect current state
- Don't create plans without context - Read source file completely before creating plan
- Don't process without checking status - Only process files with
status: pending
- Don't hardcode paths - Use user-provided vault directory path
- Don't fail silently - Log all errors and inform user of issues
Plan Template
See references/plan-template.md for the complete plan template structure.
Success Criteria
Example Usage
User request: "Process all high-priority action items"
Workflow:
- Ask required clarifications (vault path, priority filter)
- Validate directory structure at
<vault_dir>/
- Read
<vault_dir>/Company_Handbook.md if available
- Scan
<vault_dir>/Needs_Action/ for files with status: pending and priority: high
- For each high-priority file:
- Read and analyze content
- Create detailed plan in
<vault_dir>/Plans/
- Update action file status
- Update
<vault_dir>/Dashboard.md with processing results
- Report summary: "Processed 3 high-priority items, created 3 plans"
1---2name: process-needs-action3description: This skill should be used when you need to process pending action items from a designated folder and generate detailed implementation plans based on organizational rules. Ideal for task management workflows that require systematic processing of pending items, plan creation, and dashboard updates. Use when the user asks to process action items, review pending tasks, or generate plans from a backlog.4---56# Process Needs Action78Process pending action items from a designated folder and create detailed implementation plans based on organizational rules.910## Required Clarifications1112Before processing, gather these essential details:13141. **What is your vault/workspace directory path?** (e.g., `AI_Employee_Vault/`, `workspace/`, etc.)152. **What should I filter by?** (Process all pending items, or filter by priority: high/medium/low?)1617## Optional Clarifications18193. **Should I preview plans before creating them?** (Show plan content for approval before saving)204. **Should I auto-update file statuses?** (Change from `pending` to `in_progress` automatically, or ask first)2122Note: Avoid asking all questions at once. Ask required questions first, then optional ones if needed.2324## Before Implementation2526Gather context to ensure successful processing:2728| Source | Gather |29|--------|--------|30| **User Input** | Vault directory path, processing preferences, priority filter |31| **Codebase** | Verify paths exist, validate directory structure |32| **Conversation** | Any specific processing rules or preferences discussed |33| **Handbook/Rules** | Read organizational processing rules if available |3435## Instructions3637### 1. Validate Structure3839Check that required paths exist:40- Verify `<vault_dir>/Needs_Action/` directory exists41- Check for `<vault_dir>/Company_Handbook.md` (optional but recommended)42- Ensure `<vault_dir>/Plans/` directory exists (create if missing)43- Verify `<vault_dir>/Dashboard.md` exists (create if missing)4445### 2. Read Processing Rules4647- If `<vault_dir>/Company_Handbook.md` exists, read it to understand processing rules48- Note priority keywords (e.g., URGENT, CLIENT, INVOICE, DEADLINE)49- Note file handling guidelines50- If handbook doesn't exist, use default processing rules5152### 3. Scan Needs_Action Folder5354- List all markdown files in `<vault_dir>/Needs_Action/`55- Filter for files with `status: pending` in frontmatter56- Apply priority filter if specified by user57- Sort by priority (high → medium → low)5859### 4. Process Each Action Item6061For each pending file:6263**a. Read and Parse**64- Read the full file content65- Extract frontmatter metadata (type, priority, source_file, detected)66- Identify the source file type and context6768**b. Analyze Content**69- Based on file type (PDF, TXT, image, etc.), determine appropriate action70- Check for priority keywords (URGENT, CLIENT, INVOICE, DEADLINE)71- Cross-reference with Company Handbook rules72- Consider Business_Goals.md priorities7374**c. Create Detailed Plan**75- Create a new file in `<vault_dir>/Plans/`76- Filename: `PLAN_[YYYYMMDD_HHMMSS]_[source_filename].md`77- Use plan template from `references/plan-template.md`78- Include:79 - Clear objective80 - Step-by-step actions with checkboxes81 - Required information or approvals82 - Expected outcome83 - Links to related files84- If preview mode enabled, show plan to user for approval before saving8586**d. Update Action File**87- Change status from `pending` to `in_progress` (or ask user if auto-update disabled)88- Add processing timestamp89- Add link to created plan9091### 5. Update Dashboard92- Update `<vault_dir>/Dashboard.md`93- List all pending actions with priorities94- Show count of items processed95- Update "Last Check" timestamp96- If Dashboard.md doesn't exist, create it with basic structure9798### 6. Log Activity (Optional)99- If `<vault_dir>/Logs/` directory exists, append to today's log file100- Filename: `<vault_dir>/Logs/YYYY-MM-DD.json`101- Record: files processed, plans created, any errors102103## Error Handling104105Handle these scenarios gracefully:106107| Scenario | Action |108|----------|--------|109| **No pending files found** | Inform user "No pending action items found" and exit gracefully |110| **Vault directory doesn't exist** | Ask user to confirm path or provide correct vault directory |111| **Company Handbook missing** | Proceed with default processing rules, inform user |112| **Malformed frontmatter** | Log error, skip file, continue with next file |113| **File permission errors** | Log error with filename, skip file, continue processing |114| **Plans directory doesn't exist** | Create `<vault_dir>/Plans/` directory automatically |115| **Dashboard.md missing** | Create basic dashboard with template structure |116117## What NOT to Do118119Avoid these anti-patterns:120121- **Don't modify source files directly** - Only update frontmatter status, never change content122- **Don't skip updating the dashboard** - Always update dashboard to reflect current state123- **Don't create plans without context** - Read source file completely before creating plan124- **Don't process without checking status** - Only process files with `status: pending`125- **Don't hardcode paths** - Use user-provided vault directory path126- **Don't fail silently** - Log all errors and inform user of issues127128## Plan Template129130See `references/plan-template.md` for the complete plan template structure.131132## Success Criteria133134- [ ] All pending action files matching filter criteria are reviewed135- [ ] Detailed plan created for each action item136- [ ] Action files updated to `in_progress` (if auto-update enabled)137- [ ] Dashboard updated with current status and counts138- [ ] All errors logged and reported to user139- [ ] User informed of completion with summary140141## Example Usage142143**User request:** "Process all high-priority action items"144145**Workflow:**1461. Ask required clarifications (vault path, priority filter)1472. Validate directory structure at `<vault_dir>/`1483. Read `<vault_dir>/Company_Handbook.md` if available1494. Scan `<vault_dir>/Needs_Action/` for files with `status: pending` and `priority: high`1505. For each high-priority file:151 - Read and analyze content152 - Create detailed plan in `<vault_dir>/Plans/`153 - Update action file status1546. Update `<vault_dir>/Dashboard.md` with processing results1557. Report summary: "Processed 3 high-priority items, created 3 plans"