AFK Task Execution Skill
Use this skill when executing extended tasks autonomously while the user is away.
Invocation
/afk-task [task description]
Setup Phase
- •
Create
PROGRESS.mdin project root:markdown# AFK Task: [description] Started: [ISO timestamp] Status: 🔄 In Progress ## Progress Log
- •
Create comprehensive TODO list for all subtasks
- •
Send notification: "AFK task started: [description]"
Execution Phase
For each subtask:
- •
Mark task as
in_progressin TODO - •
Execute the work
- •
Append to PROGRESS.md:
markdown### [HH:MM] Task Name **Status**: ✅ Complete | ❌ Failed | ⏭️ Skipped **Files**: file1.ts, file2.nix **Details**: What was done or why it failed
- •
Mark task complete/failed in TODO
- •
Continue to next task
Error Handling Protocol
On error:
- •Log full error to PROGRESS.md
- •Attempt recovery (retry with different approach)
- •If 3 attempts fail:
- •
Create/append to
BLOCKERS.md:markdown## Blocker: [task name] **Time**: [timestamp] **Error**: [full error message] **Attempts**: 1. [what was tried] 2. [alternative approach] 3. [final attempt] **Requires**: User intervention, dependency, etc.
- •
Skip task and continue
- •
Send notification: "⚠️ Blocker encountered - see BLOCKERS.md"
- •
Completion Phase
- •
Delegate to
verifieragent for all changes - •
Create
SUMMARY.md:markdown# Task Summary: [description] | Metric | Value | | --------- | --------- | | Started | [time] | | Completed | [time] | | Duration | [minutes] | ## Results - ✅ Completed: X tasks - ❌ Failed: Y tasks - ⏭️ Skipped: Z tasks ## Files Modified - path/to/file1.ts - path/to/file2.nix ## Verification [output from verifier agent] ## Blockers (if any) See BLOCKERS.md
- •
Update PROGRESS.md status to "✅ Complete" or "⚠️ Complete with issues"
- •
Send notification: "✅ AFK task complete - see SUMMARY.md"
Critical Rules
- •NEVER fail silently - always log everything
- •Update PROGRESS.md after EVERY subtask
- •If stuck for more than 5 minutes on one task, document and move on
- •Always run verification at the end
- •Send notifications for: start, blockers, completion