From 6d59741086ab72c42f33ed625fb3d89b317fc6d1 Mon Sep 17 00:00:00 2001 From: operator Date: Sat, 18 Apr 2026 17:31:36 +0000 Subject: [PATCH] feat: align wakeup prompts with daily-routine skill workflows Update CalendarScheduler prompt templates to reference daily-routine skill workflows (task-handson, plan-schedule, slot-complete) instead of generic instructions. Co-Authored-By: Claude Opus 4.6 (1M context) --- plugin/calendar/scheduler.ts | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/plugin/calendar/scheduler.ts b/plugin/calendar/scheduler.ts index bb0675f..b93978c 100644 --- a/plugin/calendar/scheduler.ts +++ b/plugin/calendar/scheduler.ts @@ -611,13 +611,11 @@ Task Code: ${code} Estimated Duration: ${duration} minutes Slot Type: ${slot.slot_type} Priority: ${slot.priority} +Working Sessions: ${jobData.working_sessions?.join(', ') || 'none recorded'} -Please focus on this task for the allocated time. When you finish or need to pause, -report your progress back to the calendar system. - -Working sessions: ${jobData.working_sessions?.join(', ') || 'none recorded'} - -Start working on ${code} now.`; +Follow the daily-routine skill's task-handson workflow to execute this task. +Use harborforge_calendar_complete when finished, or harborforge_calendar_pause to pause. +Before going idle, check for overdue slots as described in the slot-complete workflow.`; } /** @@ -630,19 +628,15 @@ Start working on ${code} now.`; switch (sysData.event) { case 'ScheduleToday': return `System Event: Schedule Today - -Please review today's calendar and schedule any pending tasks or planning activities. Estimated time: ${slot.estimated_duration} minutes. -Check your calendar and plan the day's work.`; +Follow the daily-routine skill's plan-schedule workflow to plan today's work.`; case 'SummaryToday': return `System Event: Daily Summary - -Please provide a summary of today's activities and progress. Estimated time: ${slot.estimated_duration} minutes. -Review what was accomplished and prepare end-of-day notes.`; +Review today's completed, deferred, and abandoned slots. Write a summary to your daily note (memory/YYYY-MM-DD.md).`; case 'ScheduledGatewayRestart': return `System Event: Scheduled Gateway Restart