From productivity-skills
This skill should be used when the user asks "what should I work on next?", "plan my next block", "generate an agenda", "what's next?", or wants calendar-aware task selection and time-blocked agenda generation for the GTD Engage step.
npx claudepluginhub aeghnnsw/cc-toolkit --plugin productivity-skillsThis skill uses the workspace's default tool permissions.
<!--
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Monitors deployed URLs for regressions in HTTP status, console errors, performance metrics, content, network, and APIs after deploys, merges, or upgrades.
Provides React and Next.js patterns for component composition, compound components, state management, data fetching, performance optimization, forms, routing, and accessible UIs.
Automatically select the next actionable tasks and generate a time-blocked agenda based on calendar context and task priority. The agent decides — no user interaction required.
Run Swift source directly (no build step required):
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift <command>
Get current date and time:
date "+%Y-%m-%d %H:%M"
Query today's remaining events:
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift calendars today
Parse the JSON response and find the next event (after current time). Skip all-day events.
If a next event exists, calculate available minutes until it starts. This becomes the time constraint. If no events remain today, there is no time constraint — proceed without one.
Query actions from all context lists:
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift reminders incomplete "@quick"
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift reminders incomplete "@1pomo"
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift reminders incomplete "@2pomo"
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift reminders incomplete "@deep"
Query overdue reminders:
swift ${CLAUDE_PLUGIN_ROOT}/scripts/productivity-cli.swift reminders overdue
Parse and combine results, noting for each action:
If no actionable tasks found, report "No actionable tasks found. Add tasks to @quick, @1pomo, @2pomo, or @deep lists." and exit.
Rank all tasks by priority order:
If there is a time constraint (next event found in Step 1):
Select tasks from the top of the ranked list that fit within the available time. Use task durations based on context (@quick=15min, @1pomo=25min, @2pomo=50min, @deep=90min). Account for buffer time and pomodoro breaks when calculating fit. Skip tasks that exceed remaining time and try the next one.
If there is no time constraint:
Select the top 10 actionable tasks from the ranked list.
If there is a time constraint:
Calculate buffer time before next event:
Usable work time = Available time - Buffer time
Arrange selected tasks into pomodoro blocks:
Present a time-blocked agenda:
## Your Agenda (until [Event] at [Time])
[Start Time] - [End Time] [Task A] (@quick) #[ProjectName]
[Start Time] - [End Time] [Task B] (@1pomo)
[Start Time] - [End Time] Break
[Start Time] - [End Time] [Task C] (@2pomo) #[ProjectName]
[Start Time] - [End Time] Buffer before [Event]
If there is no time constraint:
Present the top 10 tasks as a ranked recommendation list:
## Recommended Next Tasks
1. ⚠️ [Action Title] #[ProjectName] [High] @quick (~15 min) - OVERDUE
2. [Action Title] #[ProjectName] [High] @1pomo (~25 min) - due [date]
3. [Action Title] [Medium] @2pomo (~50 min)
...
10. [Action Title] @1pomo (~25 min)
Total estimated time: ~X hours Y min
Display formatting: