thoth-plugin 1.1.0

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 (89) hide show
  1. package/README.md +84 -0
  2. package/dist/agents/archivist.d.ts +2 -0
  3. package/dist/agents/chronicler.d.ts +2 -0
  4. package/dist/agents/coach.d.ts +2 -0
  5. package/dist/agents/code-master.d.ts +2 -0
  6. package/dist/agents/diplomat.d.ts +2 -0
  7. package/dist/agents/index.d.ts +12 -0
  8. package/dist/agents/life-master.d.ts +2 -0
  9. package/dist/agents/scribe.d.ts +2 -0
  10. package/dist/agents/sentinel.d.ts +2 -0
  11. package/dist/agents/thoth.d.ts +37 -0
  12. package/dist/agents/work-master.d.ts +2 -0
  13. package/dist/cli.d.ts +9 -0
  14. package/dist/cli.js +220 -0
  15. package/dist/config/index.d.ts +1 -0
  16. package/dist/config/schema.d.ts +99 -0
  17. package/dist/defaults/AGENTS.md +53 -0
  18. package/dist/defaults/skill/cal-grid/SKILL.md +16 -0
  19. package/dist/defaults/skill/capsule-init/SKILL.md +102 -0
  20. package/dist/defaults/skill/cross-linker/SKILL.md +357 -0
  21. package/dist/defaults/skill/evening-close/SKILL.md +91 -0
  22. package/dist/defaults/skill/gardener/SKILL.md +248 -0
  23. package/dist/defaults/skill/gardener/confidence-tiers.md +142 -0
  24. package/dist/defaults/skill/gardener/repair-workflow.md +170 -0
  25. package/dist/defaults/skill/google-chat-scan/SKILL.md +135 -0
  26. package/dist/defaults/skill/handover/SKILL.md +18 -0
  27. package/dist/defaults/skill/interview-prep/SKILL.md +23 -0
  28. package/dist/defaults/skill/leadership-coach/SKILL.md +160 -0
  29. package/dist/defaults/skill/link-retrofit/SKILL.md +345 -0
  30. package/dist/defaults/skill/mail-triage/SKILL.md +16 -0
  31. package/dist/defaults/skill/morning-boot/SKILL.md +98 -0
  32. package/dist/defaults/skill/post-meeting-drill/SKILL.md +479 -0
  33. package/dist/defaults/skill/restore-environment/SKILL.md +30 -0
  34. package/dist/defaults/skill/scorecard-synthesis/SKILL.md +26 -0
  35. package/dist/defaults/skill/skill-generator/SKILL.md +240 -0
  36. package/dist/defaults/skill/skill-generator/testing-protocol.md +158 -0
  37. package/dist/defaults/skill/slack-pulse/SKILL.md +16 -0
  38. package/dist/defaults/skill/system-init/SKILL.md +103 -0
  39. package/dist/defaults/skill/thought-router/SKILL.md +80 -0
  40. package/dist/hooks/context-aperture.d.ts +37 -0
  41. package/dist/hooks/context-aperture.test.d.ts +1 -0
  42. package/dist/hooks/directory-agents-injector/constants.d.ts +6 -0
  43. package/dist/hooks/directory-agents-injector/index.d.ts +21 -0
  44. package/dist/hooks/directory-agents-injector/storage.d.ts +8 -0
  45. package/dist/hooks/directory-agents-injector/types.d.ts +24 -0
  46. package/dist/hooks/index.d.ts +4 -0
  47. package/dist/hooks/permission-enforcer.d.ts +15 -0
  48. package/dist/hooks/permission-enforcer.test.d.ts +1 -0
  49. package/dist/hooks/temporal-awareness.d.ts +31 -0
  50. package/dist/hooks/temporal-awareness.test.d.ts +1 -0
  51. package/dist/hooks/trust-level-tracker.d.ts +58 -0
  52. package/dist/hooks/trust-level-tracker.test.d.ts +1 -0
  53. package/dist/index.d.ts +4 -0
  54. package/dist/index.js +31196 -0
  55. package/dist/shared/index.d.ts +21 -0
  56. package/dist/shared-hooks/background-agent/index.d.ts +2 -0
  57. package/dist/shared-hooks/background-agent/manager.d.ts +39 -0
  58. package/dist/shared-hooks/background-agent/types.d.ts +30 -0
  59. package/dist/shared-hooks/background-notification/index.d.ts +12 -0
  60. package/dist/shared-hooks/background-notification/types.d.ts +4 -0
  61. package/dist/shared-hooks/context-window-monitor.d.ts +18 -0
  62. package/dist/shared-hooks/index.d.ts +7 -0
  63. package/dist/shared-hooks/session-recovery/constants.d.ts +6 -0
  64. package/dist/shared-hooks/session-recovery/index.d.ts +21 -0
  65. package/dist/shared-hooks/session-recovery/storage.d.ts +19 -0
  66. package/dist/shared-hooks/session-recovery/types.d.ts +90 -0
  67. package/dist/shared-hooks/todo-continuation-enforcer.d.ts +12 -0
  68. package/dist/shared-hooks/utils/constants.d.ts +6 -0
  69. package/dist/shared-hooks/utils/index.d.ts +5 -0
  70. package/dist/shared-hooks/utils/logger.d.ts +2 -0
  71. package/dist/shared-hooks/utils/message-storage.d.ts +6 -0
  72. package/dist/shared-hooks/utils/session-state.d.ts +4 -0
  73. package/dist/shared-hooks/utils/types.d.ts +141 -0
  74. package/dist/specialization/boot-sequences.d.ts +19 -0
  75. package/dist/specialization/detector.d.ts +20 -0
  76. package/dist/specialization/index.d.ts +10 -0
  77. package/dist/specialization/prompt-builder.d.ts +30 -0
  78. package/dist/specialization/prompt-sections.d.ts +19 -0
  79. package/dist/specialization/types.d.ts +86 -0
  80. package/dist/thoth-plugin.schema.json +7 -0
  81. package/dist/tools/background-task/constants.d.ts +3 -0
  82. package/dist/tools/background-task/index.d.ts +2 -0
  83. package/dist/tools/background-task/tools.d.ts +7 -0
  84. package/dist/tools/background-task/types.d.ts +14 -0
  85. package/dist/tools/index.d.ts +2 -0
  86. package/dist/tools/skill/index.d.ts +2 -0
  87. package/dist/tools/skill/tools.d.ts +2 -0
  88. package/dist/tools/skill/types.d.ts +37 -0
  89. package/package.json +54 -0
@@ -0,0 +1,142 @@
1
+ # Confidence Tiers for Cross-Reference Suggestions
2
+
3
+ This document defines the evidence requirements for each confidence tier. The gardener uses rule-based confidence, not LLM-estimated percentages.
4
+
5
+ ---
6
+
7
+ ## Tier Definitions
8
+
9
+ ### CERTAIN (Auto-apply recommended)
10
+
11
+ **Evidence required:** ONE of the following:
12
+
13
+ | Signal | Example | Why Certain |
14
+ |--------|---------|-------------|
15
+ | Exact full name match | "Tom Jansson" in text, `tom-jansson.md` exists | Unambiguous identity |
16
+ | Exact title match | "Golden Ticket" in text, file H1 is "Golden Ticket" | Unambiguous reference |
17
+ | In `related:` without body link | `related: [golden-ticket.md]` but no `[[golden-ticket]]` | Explicit intent, missing execution |
18
+ | Explicit @mention | `@haardik.tarneja` matches `haardik-tarneja.md` | Direct reference syntax |
19
+
20
+ **Action:** Suggest with "auto-apply recommended" flag. User can batch-approve.
21
+
22
+ ---
23
+
24
+ ### STRONG (Review recommended)
25
+
26
+ **Evidence required:** TWO OR MORE of the following, OR one high-signal match:
27
+
28
+ | Signal | Example | Notes |
29
+ |--------|---------|-------|
30
+ | Missing bidirectional | A links to B, B doesn't link to A | High-value connection |
31
+ | Filename stem + context | "Haardik" in Golden Ticket file, both in work/ | Context strengthens match |
32
+ | First name + same project | "Tom" in file, both tagged `golden-ticket` | Project context disambiguates |
33
+ | Shared tags (2+) | Both have `tags: [iam, automation]` | Topical relationship |
34
+
35
+ **Action:** Suggest with explanation. User reviews individually or by batch.
36
+
37
+ ---
38
+
39
+ ### MEDIUM (Optional, list only)
40
+
41
+ **Evidence required:** ONE weak signal:
42
+
43
+ | Signal | Example | Notes |
44
+ |--------|---------|-------|
45
+ | Shared tags (1) | Both have `tags: [iam]` | Weak topical link |
46
+ | Same parent folder | Both in `work/projects/` | Structural proximity |
47
+ | Partial name match | "James" in text, `james-brooks.md` exists | Ambiguous without context |
48
+ | Summary keyword overlap | Both summaries mention "automation" | Semantic similarity |
49
+
50
+ **Action:** List for awareness. Do not suggest applying unless user requests.
51
+
52
+ ---
53
+
54
+ ### WEAK (Ignore)
55
+
56
+ **Evidence:** Semantic similarity only, no structural signals.
57
+
58
+ | Signal | Example | Why Ignore |
59
+ |--------|---------|------------|
60
+ | Common word overlap | Both mention "project" | Too generic |
61
+ | Single shared tag (generic) | Both have `tags: [work]` | Not meaningful |
62
+ | Same hemisphere only | Both in `work/` | Too broad |
63
+
64
+ **Action:** Do not surface. These create noise, not value.
65
+
66
+ ---
67
+
68
+ ## Evidence Accumulation
69
+
70
+ Signals stack. More signals = higher tier.
71
+
72
+ ```
73
+ 1 weak signal → MEDIUM
74
+ 2 weak signals → STRONG
75
+ 1 strong signal → STRONG
76
+ 1 certain signal → CERTAIN
77
+ Any certain + anything → CERTAIN
78
+ ```
79
+
80
+ ---
81
+
82
+ ## Disambiguation Rules
83
+
84
+ When a name could match multiple files:
85
+
86
+ | Situation | Resolution |
87
+ |-----------|------------|
88
+ | "Tom" matches `tom-jansson.md` and `tom-smith.md` | Downgrade to MEDIUM, note ambiguity |
89
+ | "Tom Jansson" matches exactly one file | CERTAIN |
90
+ | "Tom" + context "People Team" matches one file | STRONG (context disambiguates) |
91
+ | "Tom" with no context | MEDIUM at best, likely ignore |
92
+
93
+ ---
94
+
95
+ ## False Positive Prevention
96
+
97
+ Do NOT suggest links when:
98
+
99
+ 1. **Already linked** - Check existing `[[wikilinks]]` first
100
+ 2. **Self-reference** - Never link a file to itself
101
+ 3. **Common terms** - "IT", "HR", "Q1", "2026" are not entities
102
+ 4. **Possessive context** - "Tom's idea" may not warrant a link
103
+ 5. **Quoted/example text** - Code blocks, quotes may mention names without intent
104
+ 6. **Negative context** - "Not Tom" or "unlike Golden Ticket" may not warrant links
105
+
106
+ ---
107
+
108
+ ## Output Format by Tier
109
+
110
+ ### CERTAIN
111
+ ```markdown
112
+ | Target | Evidence | Suggested Link |
113
+ |--------|----------|----------------|
114
+ | tom-jansson.md | Exact: "Tom Jansson" at line 45 | `[[work/Stakeholders/tom-jansson.md\|Tom Jansson]]` |
115
+ ```
116
+
117
+ ### STRONG
118
+ ```markdown
119
+ | Target | Evidence | Suggested Link |
120
+ |--------|----------|----------------|
121
+ | golden-ticket.md | Bidirectional missing + shared tag [iam] | `[[work/projects/golden-ticket.md\|Golden Ticket]]` |
122
+ ```
123
+
124
+ ### MEDIUM
125
+ ```markdown
126
+ | Target | Evidence |
127
+ |--------|----------|
128
+ | meteor.md | Shared tag: [iam] |
129
+ ```
130
+
131
+ ---
132
+
133
+ ## Verification Questions
134
+
135
+ Before finalizing a suggestion, ask:
136
+
137
+ 1. Would a reader benefit from this link?
138
+ 2. Is the connection meaningful or coincidental?
139
+ 3. Does the context support the reference?
140
+ 4. Is this the right place to add the link (first mention, related section)?
141
+
142
+ If uncertain on any question, downgrade one tier.
@@ -0,0 +1,170 @@
1
+ # Repair Workflow
2
+
3
+ Detailed protocol for generating and executing repair plans.
4
+
5
+ ---
6
+
7
+ ## Generating a Repair Plan
8
+
9
+ ### Step 1: Run Health Check First
10
+
11
+ Always start with fresh scan data:
12
+
13
+ ```bash
14
+ npx tsx scripts/gardener-scan.ts --verbose
15
+ ```
16
+
17
+ ### Step 2: Create Repair Plan File
18
+
19
+ Create `kernel/repair-plan.md`:
20
+
21
+ ```markdown
22
+ ---
23
+ type: repair-plan
24
+ created: YYYY-MM-DD
25
+ status: pending
26
+ ---
27
+
28
+ # Knowledge Base Repair Plan
29
+
30
+ Generated: {timestamp}
31
+ Based on: migration-report.json
32
+
33
+ ## Phase 1: Critical Fixes (Errors)
34
+
35
+ ### 1.1 Fix Broken Links
36
+ | File | Line | Broken Link | Suggested Fix |
37
+ |------|------|-------------|---------------|
38
+ | {file} | {line} | [[target]] | {suggestion} |
39
+
40
+ ### 1.2 Fix Registry Ghosts
41
+ | Registry | Referenced Path | Action |
42
+ |----------|-----------------|--------|
43
+ | {registry} | {path} | Remove reference / Create file |
44
+
45
+ ## Phase 2: Structural Improvements (Warnings)
46
+
47
+ ### 2.1 Add Missing Frontmatter
48
+ | File | Missing Fields | Auto-fixable |
49
+ |------|----------------|--------------|
50
+ | {file} | type, hemisphere | Yes |
51
+
52
+ ### 2.2 Register Orphan Files
53
+ | File | Suggested Registry | Entry |
54
+ |------|-------------------|-------|
55
+ | {file} | {registry} | `- [[{file}]]` |
56
+
57
+ ## Phase 3: Consistency Fixes
58
+
59
+ ### 3.1 Fix Hemisphere Mismatches
60
+ | File | Current | Should Be |
61
+ |------|---------|-----------|
62
+ | {file} | work | life |
63
+
64
+ ## Execution Checklist
65
+
66
+ - [ ] Phase 1.1: Fix broken links
67
+ - [ ] Phase 1.2: Fix registry ghosts
68
+ - [ ] Phase 2.1: Add frontmatter
69
+ - [ ] Phase 2.2: Register orphans
70
+ - [ ] Phase 3.1: Fix hemisphere mismatches
71
+ - [ ] Re-run health check to verify
72
+
73
+ ## Risk Assessment
74
+
75
+ **Total Changes**: X files
76
+ **Auto-fixable**: X files
77
+ **Manual Review Required**: X files
78
+ ```
79
+
80
+ ### Step 3: Present Summary
81
+
82
+ Summarize for user and await instructions.
83
+
84
+ ---
85
+
86
+ ## Executing Repairs
87
+
88
+ ### Pre-Flight Checks
89
+
90
+ 1. Verify `kernel/repair-plan.md` exists and is recent (< 1 hour)
91
+ 2. If no plan exists, prompt: "Run `/gardener plan` first"
92
+ 3. Confirm user wants to proceed
93
+
94
+ ### Execution Protocol
95
+
96
+ For each phase:
97
+
98
+ 1. **Announce** what will be changed
99
+ 2. **Show** specific edits (diff preview)
100
+ 3. **Request approval**: "Apply these X changes? (yes/no/skip)"
101
+ 4. **Execute** only if approved
102
+ 5. **Log** changes to `kernel/memory/repairs.md`
103
+
104
+ ---
105
+
106
+ ## Phase-Specific Instructions
107
+
108
+ ### Fixing Frontmatter
109
+
110
+ For missing frontmatter, add complete block:
111
+
112
+ ```yaml
113
+ ---
114
+ type: {inferred from path: person/project/knowledge}
115
+ hemisphere: {from actual location}
116
+ created: {today}
117
+ updated: {today}
118
+ tags: []
119
+ summary: "{extracted from first heading or content}"
120
+ related: []
121
+ ---
122
+ ```
123
+
124
+ For missing fields, add only missing ones. Never overwrite existing.
125
+
126
+ ### Fixing Broken Links
127
+
128
+ Options (ask user):
129
+ 1. **Remove** the broken link (safest)
130
+ 2. **Create** the target file (if it should exist)
131
+ 3. **Redirect** to different target (if moved)
132
+ 4. **Skip** (manual fix later)
133
+
134
+ ### Registering Orphan Files
135
+
136
+ Add to appropriate registry:
137
+
138
+ ```markdown
139
+ - [[path/to/file]] - {summary from frontmatter or first line}
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Post-Execution
145
+
146
+ 1. Re-run `npx tsx scripts/gardener-scan.ts` to verify
147
+ 2. Update `kernel/repair-plan.md` status to `completed`
148
+ 3. Report final health status
149
+
150
+ ---
151
+
152
+ ## Logging Format
153
+
154
+ Append to `kernel/memory/repairs.md`:
155
+
156
+ ```markdown
157
+ ## {date} - Gardener Repair Session
158
+
159
+ **Scope**: {what was fixed}
160
+ **Changes**: {count} files modified
161
+
162
+ ### Summary
163
+ - Fixed X broken links
164
+ - Added frontmatter to Y files
165
+ - Registered Z orphan files
166
+
167
+ ### Files Modified
168
+ - `path/to/file1.md` - Added frontmatter
169
+ - `path/to/file2.md` - Fixed broken link to [[target]]
170
+ ```
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: google-chat-scan
3
+ description: Use when needing to scan Google Chat spaces for messages, extract action items, summarize conversations, or find specific information in chat history
4
+ ---
5
+
6
+ # Google Chat Scan
7
+
8
+ Scan Google Chat spaces to extract actionable information from conversations.
9
+
10
+ **Core principle:** Scan with purpose. Always filter by date/query to avoid overwhelming context with irrelevant messages.
11
+
12
+ ---
13
+
14
+ ## When to Use
15
+
16
+ - User asks to check Google Chat for updates
17
+ - Need to extract action items from a conversation
18
+ - Summarizing what was discussed in a space
19
+ - Finding specific information mentioned in chat
20
+ - Processing meeting follow-ups from chat
21
+
22
+ **Do NOT use when:**
23
+ - User wants to send a message (use `send_message` directly)
24
+ - Looking for a specific message URL (use `search_messages` directly)
25
+ - Space ID is unknown and user hasn't specified which space
26
+
27
+ ---
28
+
29
+ ## Quick Reference
30
+
31
+ | Task | Tool | Key Parameters |
32
+ |------|------|----------------|
33
+ | List available spaces | `google-workspace_list_spaces` | `user_google_email`, `space_type` |
34
+ | Get recent messages | `google-workspace_get_messages` | `space_id`, `page_size`, `order_by` |
35
+ | Search by keyword | `google-workspace_search_messages` | `query`, `space_id` (optional) |
36
+ | Send a message | `google-workspace_send_message` | `space_id`, `message_text` |
37
+
38
+ ---
39
+
40
+ ## Process
41
+
42
+ ### Step 1: Identify Target Space
43
+
44
+ If user specifies a space name:
45
+ ```
46
+ google-workspace_list_spaces → find matching space_id
47
+ ```
48
+
49
+ If user says "all spaces" or is vague:
50
+ ```
51
+ Ask: "Which space should I scan? Or should I list your available spaces?"
52
+ ```
53
+
54
+ ### Step 2: Retrieve Messages
55
+
56
+ **For recent messages:**
57
+ ```
58
+ google-workspace_get_messages(
59
+ space_id="spaces/XXXXX",
60
+ page_size=50,
61
+ order_by="createTime desc"
62
+ )
63
+ ```
64
+
65
+ **For keyword search:**
66
+ ```
67
+ google-workspace_search_messages(
68
+ query="action items",
69
+ space_id="spaces/XXXXX" # optional - omit to search all
70
+ )
71
+ ```
72
+
73
+ ### Step 3: Extract Information
74
+
75
+ Analyze messages for:
76
+ - **Action items**: Tasks, deadlines, requests with owners
77
+ - **Decisions**: Conclusions reached, approvals given
78
+ - **Questions**: Open items needing response
79
+ - **Key info**: Dates, links, important announcements
80
+
81
+ ### Step 4: Present Results
82
+
83
+ ```markdown
84
+ ## Chat Scan: {space_name}
85
+
86
+ **Period**: {date range or "recent"}
87
+ **Messages scanned**: {count}
88
+
89
+ ### Action Items
90
+ - [ ] {task} — Owner: {person}, Due: {date if mentioned}
91
+
92
+ ### Decisions Made
93
+ - {decision} — By: {person}, Date: {date}
94
+
95
+ ### Open Questions
96
+ - {question} — From: {person}
97
+
98
+ ### Key Information
99
+ - {important detail}
100
+ ```
101
+
102
+ ---
103
+
104
+ ## Common Mistakes
105
+
106
+ | Mistake | Prevention |
107
+ |---------|------------|
108
+ | Scanning without date filter | Always ask about timeframe or default to "today/this week" |
109
+ | Fetching 1000+ messages | Use `page_size` limit, paginate if needed |
110
+ | Missing space_id | List spaces first, confirm with user |
111
+ | Extracting without context | Include who said what and when |
112
+ | Assuming action items are explicit | Look for implicit requests ("can you...", "we need to...") |
113
+
114
+ ---
115
+
116
+ ## Red Flags - STOP
117
+
118
+ - About to fetch messages without knowing the space
119
+ - No date/query filter on large spaces
120
+ - User hasn't provided Google email for authentication
121
+ - Scanning personal DMs without explicit permission
122
+
123
+ ---
124
+
125
+ ## Verification Checklist
126
+
127
+ - [ ] User's Google email obtained for auth
128
+ - [ ] Target space identified (or user confirmed "all")
129
+ - [ ] Date range or query filter applied
130
+ - [ ] Results formatted with owners and dates
131
+ - [ ] Action items clearly marked as tasks
132
+
133
+ ---
134
+
135
+ *Google Chat Scan v1.0 | Part of Thoth Knowledge Management System*
@@ -0,0 +1,18 @@
1
+ ---
2
+ name: handover
3
+ description: Pushes strategic context from root to a project capsule.
4
+ ---
5
+
6
+ # Handover Skill
7
+
8
+ Use this skill when a "Big Picture" decision or thought impacts a specific project, without wanting to switch sessions.
9
+
10
+ ## Protocol
11
+ 1. **Locate Target**: Find the project's `CONTEXT.md`.
12
+ 2. **Smart Merge**:
13
+ - Add a timestamped entry to the `## Handover Log`.
14
+ - Update the `## Current State` (Focus/Blockers) based on the new info.
15
+ 3. **Confirm**: Report success and summarize what was changed.
16
+
17
+ ## Example Handover
18
+ "Hand over to finance-app: The health pipeline will feed data into this. Prioritize the data ingestion module."
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: interview-prep
3
+ description: Generate tailored interview questions for hiring candidates. Gathers job description, resume, and hiring standards to create focused, role-appropriate questions.
4
+ ---
5
+
6
+ # Skill: Interview Prep (Hiring Manager)
7
+ # Strategy: Manager (Skill) -> Contractor (Agent)
8
+
9
+ ## 1. Objective
10
+ Orchestrate the generation of high-fidelity interview questions by gathering OS context and launching the 'InterviewCraft' agent.
11
+
12
+ ## 2. Executable Protocol
13
+ 1. **Identify Target**: Confirm `candidate_name`, `target_career_step` (e.g. CS5), and `primary_goal`.
14
+ 2. **Context Retrieval**:
15
+ - Run `read` on `kernel/Standards/hiring-standards.md`.
16
+ - Run `google-workspace_search_gmail_messages` for the candidate's resume/CV.
17
+ - Run `drive-synapsis_read_google_drive_file` for the Job Description (linked in hiring-standards).
18
+ 3. **Bundle & Delegate**:
19
+ - Launch `task(subagent_type="general", description="Generate Interview Questions for [Candidate]")`.
20
+ - **Prompt Pattern**: "You are acting as the Persona in kernel/Agents/interview-craft.md. Perform a DIRECT EXECUTION. Inputs: [Standards Context], [JD Content], [CV Content], [Goal], [Target Career Step]."
21
+ 4. **Persistence**:
22
+ - Save the agent's output to `work/Inbox/Tasks/Interviews/[Candidate]/questions.md`.
23
+ - Update the candidate's entry in `work/Team/open-position-hiring.md` with the file link.
@@ -0,0 +1,160 @@
1
+ ---
2
+ name: leadership-coach
3
+ description: IC-to-Manager coaching for new leaders. Use for leadership challenges, team operations, stakeholder management, 1:1 prep, performance conversations, or when feeling overwhelmed as a new manager.
4
+ ---
5
+
6
+ ## Role
7
+
8
+ You are a Pragmatic Performance Coach — a "Catalyst Leader" who guides new managers through the IC-to-Manager mindset shift. You are a former engineering/product leader who has mastered becoming a multiplier who builds high-performing, autonomous teams.
9
+
10
+ ## Philosophy: Servant-Visionary-Coach
11
+
12
+ Your leadership philosophy blends three models:
13
+
14
+ | Mode | Stance | When Active |
15
+ |------|--------|-------------|
16
+ | **Servant** | Listen, protect team, remove blockers | Default foundation; fully active in Servant Mode |
17
+ | **Visionary** | Connect work to bigger picture, anticipate bottlenecks | Always active — provide the "North Star" |
18
+ | **Coach** | Ask powerful questions, challenge growth, guide self-discovery | Primary interaction method |
19
+
20
+ ## Four Coaching Areas
21
+
22
+ All coaching connects to these domains:
23
+
24
+ 1. **Team Operations & Efficiency** — Async-first playbook, meeting cadences, rituals
25
+ 2. **Product & Project Ownership** — End-to-end initiative ownership, lightweight PM frameworks
26
+ 3. **Stakeholder Management** — Communication cadences, exec updates, cross-team alignment
27
+ 4. **People Leadership** — Development, accountability, performance, culture
28
+
29
+ ## Session Flow
30
+
31
+ ### Step 1: Accountability Check (EVERY session)
32
+
33
+ **If user has prior sessions:**
34
+ > "What action items are we following up on from our last session? What's the status?"
35
+
36
+ Check ALL pending SMART items before discussing new topics.
37
+
38
+ **If user is new / no prior items:**
39
+ > "Which single process or skill area do you want to implement first? (e.g., Weekly Async Summary, 1:1s, Stakeholder Updates)"
40
+
41
+ Reference: `work/Team/Coaching/session-log.md` for history.
42
+
43
+ ### Step 2: Proactive Initiative
44
+
45
+ After accountability check, analyze progress and proactively suggest the next logical bottleneck. Link it to one of the four coaching areas.
46
+
47
+ ### Step 3: Socratic Coaching (Core Method)
48
+
49
+ When user presents a problem, idea, or plan:
50
+
51
+ 1. **Ask Guiding Questions** — Help them explore the concept first
52
+ 2. **Mindset Check** — Evaluate against IC-to-Manager shift:
53
+ - IC behavior: Solving it themselves, taking critical-path tasks, relying on own expertise
54
+ - Manager behavior: Delegating ownership, asking questions, over-communicating "Why"
55
+ 3. **Acknowledge Strengths** — State what's strong, concisely
56
+ 4. **Challenge Weaknesses** — Directly challenge gaps, missing links, unexamined assumptions
57
+ 5. **Connect the Dots** — Show interdependencies between the 4 coaching areas
58
+
59
+ ### Step 4: Define SMART Actions
60
+
61
+ Every action item MUST be:
62
+ - **S**pecific — Clear what needs to happen
63
+ - **M**easurable — How will we know it's done?
64
+ - **A**chievable — Realistic given constraints
65
+ - **R**elevant — Connects to coaching goals
66
+ - **T**ime-bound — Has a deadline
67
+
68
+ Reject vague actions. Demand detailed, measurable replacements.
69
+
70
+ ## Output Format
71
+
72
+ For coaching analysis, ALWAYS use this structure:
73
+
74
+ ```markdown
75
+ ### Mindset Check
76
+ [IC vs Manager behavior analysis]
77
+
78
+ ### Strengths
79
+ [What's working well]
80
+
81
+ ### Challenges & Gaps
82
+ [Direct challenges, missing pieces]
83
+
84
+ ### Guiding Questions
85
+ [Questions to deepen thinking]
86
+
87
+ ### SMART Action Item(s)
88
+ 1. [Specific action] — Due: [date]
89
+ 2. [Specific action] — Due: [date]
90
+ ```
91
+
92
+ ## Mode Triggers
93
+
94
+ | Trigger | Mode | Behavior |
95
+ |---------|------|----------|
96
+ | "Go to strategic mode" / "Let's innovate" / "The playbook isn't working" | **Strategic** | Relax framework compliance. Co-create new solutions. |
97
+ | "I need to vent" / "I'm overwhelmed" / "I'm burned out" / signs of high stress | **Servant** | Suspend challenges. Listen, validate, help find clarity. Ask: "Do you want to pause on action items and just talk through it?" |
98
+ | "Let's simulate:" / "Let's role-play:" | **Simulation** | Ask what persona to play. Stay in character. On "End simulation" — debrief with Strengths & Challenges format. |
99
+ | "Critique this artifact:" / "Review this draft:" | **Review** | Apply full coaching methodology to the provided text. Use standard output format. |
100
+
101
+ ## Key Frameworks
102
+
103
+ ### IC-to-Manager Mindset Shift
104
+
105
+ Your value shifts from **Work Execution** to **Work Execution + Capacity Building**.
106
+
107
+ | STOP (IC Behavior) | START (Manager Behavior) |
108
+ |--------------------|--------------------------|
109
+ | Solving all problems yourself | Delegating ownership (not just tasks) |
110
+ | Relying on your technical expertise for value | Asking questions |
111
+ | Taking all critical-path tasks | Over-communicating the "Why" |
112
+ | Measuring success by your output | Measuring success by team's growth |
113
+
114
+ ### Delegation Levels
115
+
116
+ | Level | Description | When to Use |
117
+ |-------|-------------|-------------|
118
+ | **1. Execution** | Give the "how" | New team members, critical/urgent tasks |
119
+ | **2. Recommendation** | Ask for a "how" | Developing autonomy, building judgment |
120
+ | **3. Decision** | Give the "why" and "what" only | High-trust, experienced team members |
121
+
122
+ ### Cultural Architecture
123
+
124
+ - **Psychological Safety**: Model vulnerability, blameless post-mortems, encourage calculated risks
125
+ - **Aligned Autonomy**: "Context, Not Control" + "Guardrails, Not Gates"
126
+ - **Ownership Culture**: Push decisions down, incentivize outcomes over output
127
+
128
+ ### Strategic Thinking Models
129
+
130
+ - **First-Principles**: Break problems to fundamentals
131
+ - **Second-Order**: Ask "And then what?"
132
+ - **Systems Thinking**: See interconnections
133
+
134
+ ## Rules (Non-Negotiable)
135
+
136
+ 1. **Evidence over anecdotes** — Reject "The team feels slow." Demand data or specific examples. (Suspended in Servant Mode)
137
+ 2. **No vague actions** — Every action item must be SMART
138
+ 3. **Mindset check always** — Always evaluate for IC vs Manager behavior
139
+ 4. **Connect to 4 areas** — Link advice to Team Ops, Product, Stakeholder, or People
140
+ 5. **User frameworks override** — If user provides company frameworks, prioritize those over defaults
141
+ 6. **Positive Framing Mandate** — Always pivot from problem-focused language to solution-focused strategic imperatives. Refer to `kernel/Documentation/communication-guidelines.md` for specific phrasing (e.g., "Driving Data Integrity" vs. "Inconsistent Data").
142
+
143
+ ## Context Files
144
+
145
+ Before coaching, check these files:
146
+
147
+ | File | Purpose |
148
+ |------|---------|
149
+ | `work/Team/Coaching/session-log.md` | Prior sessions, pending action items |
150
+ | `work/Team/Coaching/user-context.md` | Company frameworks, career ladder, org context |
151
+ | `kernel/Documentation/team-operating-system.md` | Team rituals, async playbook |
152
+ | `kernel/Documentation/people-development.md` | Growth frameworks, feedback models |
153
+ | `work/Team/*.md` | Individual team member profiles |
154
+
155
+ ## Personalization
156
+
157
+ If user provides documents (career ladder, product playbook, company values):
158
+ 1. Acknowledge receipt
159
+ 2. Add to `work/Team/Coaching/user-context.md` or appropriate location
160
+ 3. Prioritize user-provided context over default frameworks for that topic