thoth-plugin 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +16 -0
  2. package/defaults/AGENTS.md +53 -0
  3. package/defaults/skill/evening-close/SKILL.md +97 -0
  4. package/defaults/skill/mail-triage/SKILL.md +26 -0
  5. package/defaults/skill/morning-boot/SKILL.md +42 -0
  6. package/defaults/skill/slack-pulse/SKILL.md +26 -0
  7. package/defaults/skill/thought-router/SKILL.md +89 -0
  8. package/dist/cli.d.ts +0 -8
  9. package/dist/cli.js +70 -436
  10. package/dist/config/index.d.ts +1 -1
  11. package/dist/config/schema.d.ts +17 -0
  12. package/dist/defaults/skill/_legacy/cal-grid/SKILL.md +16 -0
  13. package/dist/defaults/skill/_legacy/capsule-init/SKILL.md +102 -0
  14. package/dist/defaults/skill/_legacy/cross-linker/SKILL.md +357 -0
  15. package/dist/defaults/skill/_legacy/email-draft/skill.md +134 -0
  16. package/dist/defaults/skill/_legacy/gardener/SKILL.md +509 -0
  17. package/dist/defaults/skill/_legacy/gardener/confidence-tiers.md +142 -0
  18. package/dist/defaults/skill/_legacy/gardener/repair-workflow.md +170 -0
  19. package/dist/defaults/skill/_legacy/google-chat-scan/SKILL.md +135 -0
  20. package/dist/defaults/skill/_legacy/handover/SKILL.md +18 -0
  21. package/dist/defaults/skill/_legacy/interview-prep/SKILL.md +23 -0
  22. package/dist/defaults/skill/_legacy/leadership-coach/SKILL.md +167 -0
  23. package/dist/defaults/skill/_legacy/link-retrofit/SKILL.md +345 -0
  24. package/dist/defaults/skill/_legacy/onboarding/SKILL.md +207 -0
  25. package/dist/defaults/skill/_legacy/post-meeting-drill/SKILL.md +485 -0
  26. package/dist/defaults/skill/_legacy/restore-environment/SKILL.md +30 -0
  27. package/dist/defaults/skill/_legacy/scorecard-synthesis/SKILL.md +26 -0
  28. package/dist/defaults/skill/_legacy/skill-generator/SKILL.md +362 -0
  29. package/dist/defaults/skill/_legacy/skill-generator/testing-protocol.md +158 -0
  30. package/dist/defaults/skill/_legacy/system-init/SKILL.md +103 -0
  31. package/dist/defaults/skill/evening-close/SKILL.md +6 -7
  32. package/dist/defaults/skill/mail-triage/SKILL.md +11 -8
  33. package/dist/defaults/skill/morning-boot/SKILL.md +25 -89
  34. package/dist/defaults/skill/slack-pulse/SKILL.md +11 -7
  35. package/dist/defaults/skill/thought-router/SKILL.md +10 -8
  36. package/dist/index.js +11346 -2296
  37. package/dist/schemas/skill.d.ts +96 -0
  38. package/dist/sdk/index.d.ts +4 -0
  39. package/dist/sdk/sentinel-service.d.ts +71 -0
  40. package/dist/sdk/skill-runner.d.ts +21 -0
  41. package/dist/sdk/thoth-client.d.ts +51 -0
  42. package/dist/sdk/workflows/calendar-watcher.d.ts +2 -0
  43. package/dist/sdk/workflows/inbox-watcher.d.ts +2 -0
  44. package/dist/sdk/workflows/index.d.ts +4 -0
  45. package/dist/sdk/workflows/system-watcher.d.ts +2 -0
  46. package/dist/sdk/workflows/task-watcher.d.ts +2 -0
  47. package/dist/services/index.d.ts +1 -0
  48. package/dist/services/skill-registry.d.ts +23 -0
  49. package/dist/tools/index.d.ts +3 -2
  50. package/dist/tools/sentinel/index.d.ts +1 -0
  51. package/dist/tools/sentinel/tools.d.ts +3 -0
  52. package/dist/tools/skill/tools.d.ts +2 -1
  53. package/package.json +8 -3
  54. /package/{dist/defaults/skill → defaults/skill/_legacy}/cal-grid/SKILL.md +0 -0
  55. /package/{dist/defaults/skill → defaults/skill/_legacy}/capsule-init/SKILL.md +0 -0
  56. /package/{dist/defaults/skill → defaults/skill/_legacy}/cross-linker/SKILL.md +0 -0
  57. /package/{dist/defaults/skill → defaults/skill/_legacy}/email-draft/skill.md +0 -0
  58. /package/{dist/defaults/skill → defaults/skill/_legacy}/gardener/SKILL.md +0 -0
  59. /package/{dist/defaults/skill → defaults/skill/_legacy}/gardener/confidence-tiers.md +0 -0
  60. /package/{dist/defaults/skill → defaults/skill/_legacy}/gardener/repair-workflow.md +0 -0
  61. /package/{dist/defaults/skill → defaults/skill/_legacy}/google-chat-scan/SKILL.md +0 -0
  62. /package/{dist/defaults/skill → defaults/skill/_legacy}/handover/SKILL.md +0 -0
  63. /package/{dist/defaults/skill → defaults/skill/_legacy}/interview-prep/SKILL.md +0 -0
  64. /package/{dist/defaults/skill → defaults/skill/_legacy}/leadership-coach/SKILL.md +0 -0
  65. /package/{dist/defaults/skill → defaults/skill/_legacy}/link-retrofit/SKILL.md +0 -0
  66. /package/{dist/defaults/skill → defaults/skill/_legacy}/onboarding/SKILL.md +0 -0
  67. /package/{dist/defaults/skill → defaults/skill/_legacy}/post-meeting-drill/SKILL.md +0 -0
  68. /package/{dist/defaults/skill → defaults/skill/_legacy}/restore-environment/SKILL.md +0 -0
  69. /package/{dist/defaults/skill → defaults/skill/_legacy}/scorecard-synthesis/SKILL.md +0 -0
  70. /package/{dist/defaults/skill → defaults/skill/_legacy}/skill-generator/SKILL.md +0 -0
  71. /package/{dist/defaults/skill → defaults/skill/_legacy}/skill-generator/testing-protocol.md +0 -0
  72. /package/{dist/defaults/skill → defaults/skill/_legacy}/system-init/SKILL.md +0 -0
@@ -1,106 +1,42 @@
1
1
  ---
2
2
  name: morning-boot
3
- description: The master orchestrator for your morning routine. Parallelizes scans and synthesizes the Daily Log.
4
- triggers:
5
- - start my day
6
- - morning routine
7
- - prepare me for the day
8
- - what do I need to do today
9
- - boot up
10
- - daily briefing
11
- - morning boot
3
+ version: 2.0.0
4
+ description: Operational mode (e.g. 'deep-work', 'maintenance')
5
+ triggers:
6
+ inputs:
7
+ - name: mode
8
+ type: markdown
9
+ required: false
10
+ default: auto
11
+ output:
12
+ updated: 2026-01-09
12
13
  ---
13
14
 
14
15
  # Morning Boot Skill
15
16
 
16
17
  You are the **Daily Operations Orchestrator**. Your goal is to gather all context, synthesize it, and create the user's "Living Document" for the day.
17
18
 
18
- ## Protocol Execution
19
+ ## Execution Method
19
20
 
20
- ### Step 1: Initialize
21
+ This skill uses the **Sentinel Service** for robust, parallel execution via the SDK.
21
22
 
22
- 1. **Temporal Grounding**:
23
- - Check `<omo-env>` for Current Date/Time and Timezone.
24
- - Calculate `DayOfWeek`, `WeekNumber`, and `Quarter`.
25
- - Identify the **Operational Mode**:
26
- - Monday = Launch Mode (planning, alignment)
27
- - Tuesday-Thursday = Execution Mode (deep work)
28
- - Friday = Closure Mode (wrap up, delegate)
29
- - Weekend = Sanctuary Mode (restoration)
23
+ **To execute this workflow:**
30
24
 
31
- 2. **Load Context**:
32
- - Read `kernel/state/trust.md` for current trust level.
33
- - Read `work/MASTER.md` for work hemisphere overview.
34
- - Check `work/inbox/` for pending items.
25
+ 1. Invoke the `trigger_workflow` tool.
26
+ 2. Workflow name: `"morning-boot"`
35
27
 
36
- ### Step 2: Parallel Scans (High Throughput)
37
-
38
- Launch three simultaneous `background_task` calls for parallel execution.
39
-
40
- **Agent A: Email Scan**
41
- ```
42
- background_task(
43
- agent="general",
44
- description="Email triage scan",
45
- prompt="Scan recent emails using google-workspace tools. Categorize by: URGENT (needs response today), ACTION (needs response this week), FYI (informational). Return structured report with sender, subject, category, and recommended action."
46
- )
47
- ```
48
-
49
- **Agent B: Calendar Scan**
50
- ```
51
- background_task(
52
- agent="general",
53
- description="Calendar analysis",
54
- prompt="Analyze today's calendar using google-workspace tools. For each meeting: identify prep required, key attendees, and time blocks. Flag any conflicts or back-to-back meetings. Return structured report."
55
- )
56
- ```
57
-
58
- **Agent C: Slack Scan**
59
- ```
60
- background_task(
61
- agent="general",
62
- description="Slack pulse check",
63
- prompt="Scan recent Slack messages using slack tools. Identify: DMs needing response, channel mentions, threads requiring input. Categorize by urgency. Return structured report."
64
- )
28
+ ```javascript
29
+ trigger_workflow({ workflow: "morning-boot" })
65
30
  ```
66
31
 
67
- ### Step 3: Synthesis (The Master Plan)
68
-
69
- Once all three background tasks complete (system will notify):
70
-
71
- 1. **Collect Results**: Use `background_output` to retrieve each scan's results.
72
-
73
- 2. **Merge & Prioritize**:
74
- - Combine Email ACTIONs, Slack RESPONDs, and Calendar PREP REQUIRED.
75
- - Apply the **Executive Filter**: What is the #1 priority? What are the Top 3?
76
- - Consider biological mode (high-cognitive morning = protect for deep work).
77
-
78
- 3. **Save Scan Outputs**:
79
- - Create folder `work/operations/daily-log/YYYY-MM-DD/` (if not exists).
80
- - Save each scan result to its own file:
81
- - `cal-grid.md` - Calendar scan with SCAN_DATA_START/END blocks
82
- - `mail-triage.md` - Email scan with SCAN_DATA_START/END blocks
83
- - `slack-pulse.md` - Slack scan with SCAN_DATA_START/END blocks
84
-
85
- 4. **Generate Daily Log**:
86
- - Use template from `work/operations/daily-log/TEMPLATE-daily-log.md`.
87
- - Populate all sections (Priorities, Team Focus, Calendar, Pending Responses).
88
- - Save synthesized `daily-log.md` to the same folder.
89
-
90
- ### Step 4: Finalize
91
-
92
- 1. **Summarize** today's plan to the user in chat.
93
- 2. **Suggest Complexity Budget** based on meeting load:
94
- - Light day (0-2 meetings): 2-3 Heavy tasks
95
- - Medium day (3-4 meetings): 1-2 Heavy tasks
96
- - Heavy day (5+ meetings): Focus on meetings, 1 Light task max
97
- 3. **Identify Time Blocks** for deep work based on calendar gaps.
98
-
99
- ---
32
+ The Sentinel workflow handles:
33
+ - Parallel email, calendar, and task scans
34
+ - Synthesis of priorities
35
+ - Creation of the daily log file
36
+ - Generating the morning briefing
100
37
 
101
38
  ## Technical Constraints
102
39
 
103
- - **Trust Level**: This skill requires Trust Level 2+ for email/calendar access.
104
- - **Parallel Execution**: Use `background_task` for concurrent scans, not sequential `task` calls.
105
- - **Verification**: If a scan returns no data or fails, notify user and offer sequential fallback.
106
- - **Privacy**: Never store raw email/message content in logs - only summaries and action items.
40
+ - **Do NOT** attempt to manually scan emails or calendar. Use the tool.
41
+ - **Do NOT** use `background_task` or `prose-run`.
42
+ - **Trust Level**: Requires Level 2+ (handled by Sentinel permissions).
@@ -1,12 +1,16 @@
1
1
  ---
2
2
  name: slack-pulse
3
- description: Scan Slack for mentions, high-value DMs, and informal requests using the Thoth standard protocol.
4
- triggers:
5
- - check slack
6
- - slack mentions
7
- - what's happening on slack
8
- - any slack messages
9
- - scan slack
3
+ version: 1.0.0
4
+ description: Lookback window in hours
5
+ triggers:
6
+ inputs:
7
+ - name: hours
8
+ type: markdown
9
+ required: false
10
+ default: 4
11
+ output:
12
+ created: 2026-01-09
13
+ updated: 2026-01-09
10
14
  ---
11
15
 
12
16
  # Slack Pulse Skill
@@ -1,13 +1,15 @@
1
1
  ---
2
2
  name: thought-router
3
- description: Quick capture tool that routes unstructured brain dumps to their correct home in the Thoth knowledge base.
4
- triggers:
5
- - quick thought
6
- - capture this
7
- - brain dump
8
- - remember this
9
- - note this down
10
- - dump
3
+ version: 1.0.0
4
+ description: The thought(s) to capture
5
+ triggers:
6
+ inputs:
7
+ - name: content
8
+ type: markdown
9
+ required: true
10
+ output:
11
+ created: 2026-01-09
12
+ updated: 2026-01-09
11
13
  ---
12
14
 
13
15
  # Thought Router Skill