| name | running-daily-tasks |
| description | Unified daily routine: ingests messages into tasks, then guides user through task refinement and dispatch. Works in both Claude Code and Cowork. Triggers on: "daily tasks", "daily routine", "run daily tasks", "デイリータスク", "日次ルーティン"
|
| user-invocable | true |
Agentic Tasks — Daily Routine
Unified daily routine that ingests messages into tasks, then guides the user through task refinement and dispatch. Works in both Claude Code and Cowork environments.
Step 0: Preparation
- Load
${CLAUDE_PLUGIN_ROOT}/skills/detecting-provider/SKILL.md → active_provider, headless_config. Skip if set.
- Load
${CLAUDE_PLUGIN_ROOT}/skills/resolving-identity/SKILL.md → current_user, org_members. Skip if set.
Step 1: Message Intake
Execute the ingesting-messages skill.
Record the result as intake_result. If the skill was skipped (e.g., no messaging MCP detected), set intake_result = "skipped (no messaging MCP)".
Step 2: Task Refinement (Backlog → Ready)
Promote the current user's Backlog tasks to Ready by filling quality gates.
- Query the provider for tasks where Status = Backlog AND Assignees includes
current_user.
- If no tasks are found, set
refinement_result = "skipped (no Backlog tasks)" and proceed to Step 2.5.
- Classify tasks into code tasks (have Working Directory) vs non-code tasks.
- Present all tasks with options:
Backlog tasks to refine:
[Auto-plan N code tasks] [Quick-review M non-code tasks] [Review all one by one] [Skip]
User chooses how to proceed — no artificial threshold on count.
- Auto-plan code tasks: Invoke the
planning-tasks skill in pipeline mode with the task IDs. The code-planning-agent explores each codebase and generates AC/Plan. On completion, present summary: "Auto-planned N/M. K need more context."
- Quick-review non-code tasks: Invoke the
planning-tasks skill in pipeline mode. The knowledge-planning-agent proposes AC/Plan using domain templates, brainstorms with user.
- Review all one by one: For each task, use the multi-round brainstorming protocol (see
planning-tasks SKILL.md). Run validate-task-fields.sh for Ready before promoting.
- Skip: Defer to next daily run.
- For each task where planning completes successfully, run validation and promote to Ready if valid.
- Record
refinement_result — e.g., "3 auto-planned, 2 reviewed, 1 deferred".
Step 2.5: Blocked Task Review
Review Blocked tasks and surface actionable items.
- Query using the provider's filter recipe for Blocked tasks owned by user (see provider SKILL.md):
Status=Blocked AND (Assignees=current_user OR (Issuer=current_user AND Assignees empty))
- If 0 results: set
blocked_review_result = "skipped (no Blocked tasks)" and proceed to Step 3.
- Separate into two groups:
- Group A — Unblocked: ALL
Blocked By tasks are Done
- Group B — Still blocked: some
Blocked By tasks remain non-Done
Group A — Unblocked tasks (action required)
For each unblocked task:
- Read the blocker task's Agent Output (contains the hearing response or execution result).
- Synthesize: "Blocker resolved. '{blocker_title}' result: {agent_output_summary}"
- If main task AC starts with
[DRAFT or fails semantic validation:
- AC MUST be replaced before transitioning (not optional).
- Propose updated AC based on the blocker's Agent Output.
- Ask: "Move to Ready with this updated AC? [Yes / Edit first / Skip]"
- Run
validate-task-fields.sh for Ready. Transition if valid.
- Re-evaluate Executor: "Should this be executed by AI? [claude-code / cowork / keep human]"
Group B — Still blocked tasks (batch summary)
Present as a single summary table (no interactive prompts per task):
Still blocked (N tasks):
| Title | Blocked By | Blocked Days | Blocker Assignee |
| ... | ... | X days | {name} |
For tasks blocked >7 days ONLY: offer batch support options:
"M tasks blocked >7 days. [Ping all blocker assignees] [Escalate all to Urgent] [Skip]"
- Ping: Add a comment on each blocker task noting the stagnation.
- Escalate: Change blocker tasks' Priority to Urgent.
If any task has Error Message non-empty, append to summary.
Record blocked_review_result — e.g., "2 unblocked → Ready, 3 still blocked (1 escalated)".
Step 3: Task Dispatch
Execute the executing-tasks skill (normal mode).
The skill will verify all tasks have complete Execution Plans, Acceptance Criteria, and
other required fields before dispatch. The user will be prompted to fill any gaps and
choose the execution method.
Record the result as dispatch_result.
Step 3.5: Ready Human Task Prompt
Surface stagnating Ready tasks with executor=human for action.
- Query using the provider's filter recipe for Ready human tasks owned by user (see provider SKILL.md):
Status=Ready AND Executor=human AND (Assignees=current_user OR (Issuer=current_user AND Assignees empty))
- If 0 results: set
human_ready_result = "skipped (no Ready human tasks)" and proceed to Step 4.
- Run
validate-task-fields.sh on each task. Note which have validation warnings (empty AC, empty Plan).
- For each task (oldest first, max 5, note "and N more..." if truncated):
- Record
human_ready_result.
Step 4: Summary
Output the following report:
[Daily Tasks Complete]
Message Intake: {intake_result}
Task Refinement: {refinement_result}
Blocked Task Review: {blocked_review_result}
Task Dispatch: {dispatch_result}
Ready Human Tasks: {human_ready_result}
Language
Always respond in the user's language.