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
package/README.md CHANGED
@@ -4,6 +4,22 @@
4
4
 
5
5
  Thoth is a knowledge-based life operating system that acts as your chief of staff. Unlike traditional coding assistants, Thoth is designed to **support, guide, and mentor** — not just write code.
6
6
 
7
+ ---
8
+
9
+ ## Ecosystem Integration
10
+
11
+ Thoth is the convergence of multiple OpenCode innovations. It is built upon and integrates with:
12
+
13
+ - **[OpenCode](https://github.com/opencode-ai/opencode)**: The foundational AI plugin architecture.
14
+ - **[OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)**: The "batteries-included" framework that inspired Thoth's distribution model.
15
+ - **[Personal-OS](https://github.com/Skeptomenos/personal-os)**: The knowledge base structure and "Circle System" methodology.
16
+ - **[OpenProse](https://github.com/opencode-ai/open-prose)**: The declarative workflow language used for complex skills like `morning-boot`.
17
+ - **[Vibe-Kanban](https://github.com/opencode-ai/vibe-kanban)**: Integrated task management visualization and tracking.
18
+
19
+ Thoth acts as the **Root Orchestrator**, coordinating these tools into a unified "Operating System for Life".
20
+
21
+ ---
22
+
7
23
  ## Installation
8
24
 
9
25
  ### Via npm (Recommended)
@@ -0,0 +1,53 @@
1
+ ---
2
+ hemisphere: null
3
+ depth: 0
4
+ boot_sequence: []
5
+ ---
6
+
7
+ # Thoth - Life Orchestrator
8
+
9
+ Welcome to Thoth, your AI chief of staff for life orchestration.
10
+
11
+ ## Quick Start
12
+
13
+ If this is your first time using Thoth, you have two options:
14
+
15
+ ### Option 1: Initialize a Knowledge Base
16
+
17
+ Run in your terminal:
18
+ ```bash
19
+ npx thoth-plugin init
20
+ ```
21
+
22
+ This creates a knowledge base structure at `~/thoth/` with:
23
+ - `work/` - Professional life (projects, colleagues, career)
24
+ - `life/` - Personal life (health, relationships, home, finance)
25
+ - `coding/` - Technical projects and development
26
+ - `kernel/` - System configuration and preferences
27
+
28
+ ### Option 2: Use Without a Knowledge Base
29
+
30
+ Thoth works immediately for:
31
+ - Running skills (`/morning-boot`, `/mail-triage`, etc.)
32
+ - General assistance and planning
33
+ - Ad-hoc task management
34
+
35
+ ## Available Skills
36
+
37
+ Skills are pre-built workflows. Invoke with the skill tool:
38
+
39
+ | Skill | Description |
40
+ |-------|-------------|
41
+ | `morning-boot` | Start your day with inbox triage and calendar review |
42
+ | `evening-close` | End-of-day summary and overflow extraction |
43
+ | `mail-triage` | Process Gmail inbox systematically |
44
+ | `slack-pulse` | Scan Slack for mentions and important messages |
45
+ | `thought-router` | Quick capture and route thoughts to the right place |
46
+ | `post-meeting-drill` | Process meeting notes into action items |
47
+ | `leadership-coach` | IC-to-Manager coaching for new leaders |
48
+
49
+ ## Learn More
50
+
51
+ - Ask: "What skills are available?"
52
+ - Ask: "Help me set up my knowledge base"
53
+ - Ask: "Explain how Thoth works"
@@ -0,0 +1,97 @@
1
+ ---
2
+ name: evening-close
3
+ version: 1.0.0
4
+ description: Summarize the day, extract incomplete tasks into tomorrow's overflow, and persist daily learnings to the Knowledge Base.
5
+ triggers:
6
+ output:
7
+ type: markdown
8
+ created: 2026-01-09
9
+ updated: 2026-01-09
10
+ ---
11
+
12
+ # Evening Close Skill
13
+
14
+ You are the **Integrity & Persistence Lead**. Your goal is to ensure that every win, decision, and observation from the day is properly archived and that tomorrow begins with total clarity.
15
+
16
+ ## Protocol Execution
17
+
18
+ ### Step 1: Audit
19
+
20
+ 1. **Read Daily Log**: Load today's `work/logs/YYYY-MM-DD-daily-log.md`.
21
+ 2. **Verify Progress**:
22
+ - Compare **Top 3 Priorities** against the **Action Log**.
23
+ - Identify any items marked incomplete or not mentioned in the Action Log.
24
+
25
+ ### Step 2: Summarize
26
+
27
+ 1. **Generate Executive Recap**:
28
+ - **Completed**: Count of actions taken.
29
+ - **Key Wins**: 2-3 most impactful accomplishments.
30
+ - **Blockers Surfaced**: Any items preventing progress.
31
+ - **Decisions Logged**: Summary of strategic choices.
32
+
33
+ 2. **Update Log**: Fill in the `## Evening Summary` section of the `daily-log.md`:
34
+ - Completed items
35
+ - Blocked items
36
+ - Deferred items
37
+ - Key Wins
38
+ - Key Decisions
39
+ - Observations
40
+
41
+ ### Step 3: Extract Overflow
42
+
43
+ 1. **Identify Incomplete Tasks**: Collect all P0/P1 items from Priorities and Pending Responses that were NOT completed.
44
+
45
+ 2. **Create Overflow File**: Write to `work/inbox/overflow-YYYY-MM-DD.md`:
46
+ ```yaml
47
+ ---
48
+ type: overflow
49
+ from_date: YYYY-MM-DD
50
+ for_date: YYYY-MM-DD (tomorrow)
51
+ ---
52
+
53
+ # Overflow Tasks
54
+
55
+ ## From [Date]
56
+
57
+ - [ ] [P0] Task description - Reason: [why not completed]
58
+ - [ ] [P1] Task description - Reason: [why not completed]
59
+ ```
60
+
61
+ ### Step 4: Knowledge Persistence (The Save)
62
+
63
+ Using **Smart Merge** (append-only, never overwrite), update the permanent Knowledge base:
64
+
65
+ 1. **People Profiles**: Extract notes about specific people and append to their `work/people/[person].md` in the `## Interaction Log` section with date stamp.
66
+
67
+ 2. **Project Files**: Extract decisions and append to relevant `work/projects/[project].md` in the `## Decisions` section with date stamp.
68
+
69
+ 3. **Chronicle Entry**: Write a single, high-fidelity sentence summarizing the day's primary outcome to `work/chronicle.md`:
70
+ ```
71
+ ## YYYY-MM-DD
72
+ [One sentence summary of day's state and primary outcome]
73
+ ```
74
+
75
+ ### Step 5: Weekly Maintenance (Friday Only)
76
+
77
+ 1. **Check Date**: Calculate `DayOfWeek` from `<omo-env>`.
78
+ 2. **If Friday**:
79
+ - Run system hygiene checks
80
+ - Review week's chronicle entries
81
+ - Identify patterns or recurring blockers
82
+ - Suggest focus areas for next week
83
+
84
+ ### Step 6: Finalize
85
+
86
+ 1. Verify all file writes were successful.
87
+ 2. Present the summary and overflow list to user in chat for final sign-off.
88
+ 3. Suggest any preparation needed for tomorrow.
89
+
90
+ ---
91
+
92
+ ## Technical Constraints
93
+
94
+ - **Smart Merge**: NEVER overwrite existing context. Only append to specific sections with a date stamp.
95
+ - **Accuracy**: Do not hallucinate outcomes. If an item status is unclear, mark it as "UNCLEAR" and ask user.
96
+ - **Trust Level**: This skill requires Trust Level 2+ for file writes to knowledge base.
97
+ - **Privacy**: Summarize sensitive information, don't copy verbatim.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: mail-triage
3
+ version: 1.0.0
4
+ description: Max emails to process
5
+ triggers:
6
+ inputs:
7
+ - name: limit
8
+ type: markdown
9
+ required: false
10
+ default: 20
11
+ output:
12
+ created: 2026-01-09
13
+ updated: 2026-01-09
14
+ ---
15
+
16
+ # Mail Triage Skill
17
+
18
+ You are the Lead Triage Specialist for Zeus's Chief of Staff.
19
+
20
+ ## Protocol Execution
21
+
22
+ 1. **Read Master Instructions**: Load the full protocol from `kernel/Agents/mail-triage.md`.
23
+ 2. **Execute**: Follow the protocol exactly as defined in the master file.
24
+ 3. **Synthesize**: Provide the high-resolution executive report and the required raw data block.
25
+
26
+ **MANDATORY**: Ensure the output includes the `## SCAN_DATA_START` and `## SCAN_DATA_END` markers as specified in the master instructions.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: 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
13
+ ---
14
+
15
+ # Morning Boot Skill
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.
18
+
19
+ ## Execution Method
20
+
21
+ This skill uses the **Sentinel Service** for robust, parallel execution via the SDK.
22
+
23
+ **To execute this workflow:**
24
+
25
+ 1. Invoke the `trigger_workflow` tool.
26
+ 2. Workflow name: `"morning-boot"`
27
+
28
+ ```javascript
29
+ trigger_workflow({ workflow: "morning-boot" })
30
+ ```
31
+
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
37
+
38
+ ## Technical Constraints
39
+
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).
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: slack-pulse
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
14
+ ---
15
+
16
+ # Slack Pulse Skill
17
+
18
+ You are the Real-Time Pulse Monitor for Zeus's Chief of Staff.
19
+
20
+ ## Protocol Execution
21
+
22
+ 1. **Read Master Instructions**: Load the full protocol from `kernel/Agents/slack-pulse.md`.
23
+ 2. **Execute**: Follow the protocol exactly as defined in the master file.
24
+ 3. **Synthesize**: Provide the pulse report and the required raw data block.
25
+
26
+ **MANDATORY**: Ensure the output includes the `## SCAN_DATA_START` and `## SCAN_DATA_END` markers as specified in the master instructions.
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: thought-router
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
13
+ ---
14
+
15
+ # Thought Router Skill
16
+
17
+ You are the **Thought Router**. Your purpose is to take unstructured "Brain Dumps" and route them to their correct home in Thoth's hemisphere system.
18
+
19
+ ## Protocol Execution
20
+
21
+ ### Step 1: Atomic Decomposition
22
+
23
+ Break the user's input into atomic, standalone items.
24
+
25
+ **Example**:
26
+ - *Input*: "Remind Sarah about the project deadline and I need to schedule a dentist appointment."
27
+ - *Atomic 1*: "Remind Sarah about project deadline."
28
+ - *Atomic 2*: "Schedule dentist appointment."
29
+
30
+ ### Step 2: Hemisphere Classification
31
+
32
+ For each atomic item, determine the Domain:
33
+
34
+ | Hemisphere | Description | Examples |
35
+ |------------|-------------|----------|
36
+ | **WORK** | Professional life | Projects, colleagues, stakeholders, career, meetings |
37
+ | **LIFE** | Personal life | Health, relationships, home, finances, hobbies |
38
+ | **CODING** | Technical work | Code tasks, bugs, features, technical decisions |
39
+
40
+ ### Step 3: Routing Logic
41
+
42
+ **For WORK Items:**
43
+ 1. **Search**: Use `grep` for relevant keywords (e.g., person name, project name) in `work/`.
44
+ 2. **Match Found?**
45
+ - Yes: Append to that file (e.g., `work/people/sarah.md`) using **Smart Merge** (add to `## Open Topics` or `## Notes`).
46
+ - No: Append to `work/inbox/dump.md`.
47
+
48
+ **For LIFE Items:**
49
+ 1. **Search**: Use `grep` for keywords in `life/`.
50
+ 2. **Match Found?**
51
+ - Yes: Append to that file.
52
+ - No: Append to `life/inbox/dump.md`.
53
+
54
+ **For CODING Items:**
55
+ 1. **Search**: Use `grep` for keywords in `coding/`.
56
+ 2. **Match Found?**
57
+ - Yes: Append to that file.
58
+ - No: Append to `coding/inbox/dump.md`.
59
+
60
+ ### Step 4: Smart Merge Rules
61
+
62
+ When appending to existing files:
63
+ - **Never overwrite** existing content
64
+ - **Add date stamp** to new entries: `### YYYY-MM-DD`
65
+ - **Append to appropriate section**:
66
+ - People files → `## Notes` or `## Open Topics`
67
+ - Project files → `## Tasks` or `## Notes`
68
+ - Area files → `## Log`
69
+
70
+ ### Step 5: Execution
71
+
72
+ 1. Perform the writes.
73
+ 2. Output a summary table of where items went.
74
+
75
+ ## Example Output
76
+
77
+ | Item | Hemisphere | Destination | Action |
78
+ |:-----|:-----------|:------------|:-------|
79
+ | "Sarah project deadline" | WORK | `work/people/sarah.md` | Appended to Open Topics |
80
+ | "Dentist appointment" | LIFE | `life/inbox/dump.md` | Captured |
81
+
82
+ ---
83
+
84
+ ## Technical Constraints
85
+
86
+ - **Trust Level**: Requires Level 2+ for file writes.
87
+ - **Speed**: This is a quick-capture tool. Don't over-analyze - route fast.
88
+ - **Ambiguity**: If unclear which hemisphere, ask user: "Is this work or personal?"
89
+ - **Smart Merge**: Always append with date stamp, never overwrite.
package/dist/cli.d.ts CHANGED
@@ -1,10 +1,2 @@
1
1
  #!/usr/bin/env node
2
- /**
3
- * Thoth CLI - Knowledge Base Management
4
- *
5
- * Usage:
6
- * npx thoth-plugin init [path]
7
- * npx thoth-plugin skill update [path]
8
- * npx thoth-plugin skill list
9
- */
10
2
  export {};