learnship 1.9.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 (171) hide show
  1. package/.claude-plugin/plugin.json +26 -0
  2. package/.cursor-plugin/plugin.json +26 -0
  3. package/LICENSE +21 -0
  4. package/README.md +791 -0
  5. package/SKILL.md +86 -0
  6. package/agents/debugger.md +102 -0
  7. package/agents/executor.md +115 -0
  8. package/agents/learnship-debugger.md +146 -0
  9. package/agents/learnship-executor.md +155 -0
  10. package/agents/learnship-phase-researcher.md +128 -0
  11. package/agents/learnship-plan-checker.md +119 -0
  12. package/agents/learnship-planner.md +146 -0
  13. package/agents/learnship-verifier.md +157 -0
  14. package/agents/planner.md +109 -0
  15. package/agents/researcher.md +80 -0
  16. package/agents/verifier.md +114 -0
  17. package/bin/install.js +1242 -0
  18. package/bin/learnship.js +56 -0
  19. package/commands/learnship/add-phase.md +22 -0
  20. package/commands/learnship/add-tests.md +24 -0
  21. package/commands/learnship/add-todo.md +21 -0
  22. package/commands/learnship/audit-milestone.md +21 -0
  23. package/commands/learnship/check-todos.md +22 -0
  24. package/commands/learnship/cleanup.md +22 -0
  25. package/commands/learnship/complete-milestone.md +22 -0
  26. package/commands/learnship/debug.md +27 -0
  27. package/commands/learnship/decision-log.md +22 -0
  28. package/commands/learnship/diagnose-issues.md +23 -0
  29. package/commands/learnship/discovery-phase.md +24 -0
  30. package/commands/learnship/discuss-milestone.md +23 -0
  31. package/commands/learnship/discuss-phase.md +23 -0
  32. package/commands/learnship/execute-phase.md +27 -0
  33. package/commands/learnship/execute-plan.md +26 -0
  34. package/commands/learnship/health.md +20 -0
  35. package/commands/learnship/help.md +19 -0
  36. package/commands/learnship/insert-phase.md +22 -0
  37. package/commands/learnship/knowledge-base.md +21 -0
  38. package/commands/learnship/list-phase-assumptions.md +21 -0
  39. package/commands/learnship/ls.md +20 -0
  40. package/commands/learnship/map-codebase.md +23 -0
  41. package/commands/learnship/milestone-retrospective.md +21 -0
  42. package/commands/learnship/new-milestone.md +23 -0
  43. package/commands/learnship/new-project.md +24 -0
  44. package/commands/learnship/next.md +22 -0
  45. package/commands/learnship/pause-work.md +21 -0
  46. package/commands/learnship/plan-milestone-gaps.md +22 -0
  47. package/commands/learnship/plan-phase.md +24 -0
  48. package/commands/learnship/progress.md +20 -0
  49. package/commands/learnship/quick.md +27 -0
  50. package/commands/learnship/reapply-patches.md +21 -0
  51. package/commands/learnship/release.md +21 -0
  52. package/commands/learnship/remove-phase.md +23 -0
  53. package/commands/learnship/research-phase.md +23 -0
  54. package/commands/learnship/resume-work.md +21 -0
  55. package/commands/learnship/set-profile.md +21 -0
  56. package/commands/learnship/settings.md +21 -0
  57. package/commands/learnship/transition.md +21 -0
  58. package/commands/learnship/update.md +21 -0
  59. package/commands/learnship/validate-phase.md +22 -0
  60. package/commands/learnship/verify-work.md +23 -0
  61. package/cursor-rules/learnship.mdc +60 -0
  62. package/gemini-extension.json +10 -0
  63. package/hooks/hooks-claude.json +15 -0
  64. package/hooks/hooks-cursor.json +10 -0
  65. package/hooks/session-start +43 -0
  66. package/install.sh +254 -0
  67. package/learnship/references/design-commands.md +119 -0
  68. package/learnship/references/git-integration.md +249 -0
  69. package/learnship/references/learning-design.md +142 -0
  70. package/learnship/references/model-profiles.md +90 -0
  71. package/learnship/references/planning-config.md +184 -0
  72. package/learnship/references/questioning.md +162 -0
  73. package/learnship/references/ui-brand.md +160 -0
  74. package/learnship/references/verification-patterns.md +608 -0
  75. package/learnship/templates/agents.md +166 -0
  76. package/learnship/templates/context.md +72 -0
  77. package/learnship/templates/plan.md +202 -0
  78. package/learnship/templates/project.md +184 -0
  79. package/learnship/templates/requirements.md +231 -0
  80. package/learnship/templates/state.md +176 -0
  81. package/learnship/templates/uat.md +80 -0
  82. package/learnship/workflows/add-phase.md +84 -0
  83. package/learnship/workflows/add-tests.md +191 -0
  84. package/learnship/workflows/add-todo.md +108 -0
  85. package/learnship/workflows/audit-milestone.md +178 -0
  86. package/learnship/workflows/check-todos.md +138 -0
  87. package/learnship/workflows/cleanup.md +107 -0
  88. package/learnship/workflows/complete-milestone.md +191 -0
  89. package/learnship/workflows/debug.md +245 -0
  90. package/learnship/workflows/decision-log.md +131 -0
  91. package/learnship/workflows/diagnose-issues.md +145 -0
  92. package/learnship/workflows/discovery-phase.md +183 -0
  93. package/learnship/workflows/discuss-milestone.md +136 -0
  94. package/learnship/workflows/discuss-phase.md +244 -0
  95. package/learnship/workflows/execute-phase.md +345 -0
  96. package/learnship/workflows/execute-plan.md +149 -0
  97. package/learnship/workflows/health.md +171 -0
  98. package/learnship/workflows/help.md +153 -0
  99. package/learnship/workflows/insert-phase.md +106 -0
  100. package/learnship/workflows/knowledge-base.md +168 -0
  101. package/learnship/workflows/list-phase-assumptions.md +129 -0
  102. package/learnship/workflows/ls.md +145 -0
  103. package/learnship/workflows/map-codebase.md +142 -0
  104. package/learnship/workflows/milestone-retrospective.md +178 -0
  105. package/learnship/workflows/new-milestone.md +200 -0
  106. package/learnship/workflows/new-project.md +340 -0
  107. package/learnship/workflows/next.md +100 -0
  108. package/learnship/workflows/pause-work.md +122 -0
  109. package/learnship/workflows/plan-milestone-gaps.md +160 -0
  110. package/learnship/workflows/plan-phase.md +288 -0
  111. package/learnship/workflows/progress.md +118 -0
  112. package/learnship/workflows/quick.md +256 -0
  113. package/learnship/workflows/reapply-patches.md +130 -0
  114. package/learnship/workflows/release.md +217 -0
  115. package/learnship/workflows/remove-phase.md +128 -0
  116. package/learnship/workflows/research-phase.md +137 -0
  117. package/learnship/workflows/resume-work.md +162 -0
  118. package/learnship/workflows/set-profile.md +78 -0
  119. package/learnship/workflows/settings.md +204 -0
  120. package/learnship/workflows/sync-upstream-skills.md +269 -0
  121. package/learnship/workflows/transition.md +165 -0
  122. package/learnship/workflows/update.md +166 -0
  123. package/learnship/workflows/validate-phase.md +174 -0
  124. package/learnship/workflows/verify-work.md +264 -0
  125. package/package.json +62 -0
  126. package/references/design-commands.md +119 -0
  127. package/references/git-integration.md +249 -0
  128. package/references/learning-design.md +142 -0
  129. package/references/model-profiles.md +90 -0
  130. package/references/planning-config.md +184 -0
  131. package/references/questioning.md +162 -0
  132. package/references/ui-brand.md +160 -0
  133. package/references/verification-patterns.md +608 -0
  134. package/skills/agentic-learning/SKILL.md +373 -0
  135. package/skills/agentic-learning/references/either-or-format.md +161 -0
  136. package/skills/agentic-learning/references/learning-science.md +190 -0
  137. package/skills/agentic-learning/references/struggle-ladder.md +140 -0
  138. package/skills/impeccable/SKILL.md +125 -0
  139. package/skills/impeccable/adapt/SKILL.md +199 -0
  140. package/skills/impeccable/animate/SKILL.md +190 -0
  141. package/skills/impeccable/audit/SKILL.md +129 -0
  142. package/skills/impeccable/bolder/SKILL.md +132 -0
  143. package/skills/impeccable/clarify/SKILL.md +180 -0
  144. package/skills/impeccable/colorize/SKILL.md +158 -0
  145. package/skills/impeccable/critique/SKILL.md +118 -0
  146. package/skills/impeccable/delight/SKILL.md +317 -0
  147. package/skills/impeccable/distill/SKILL.md +137 -0
  148. package/skills/impeccable/extract/SKILL.md +95 -0
  149. package/skills/impeccable/frontend-design/SKILL.md +127 -0
  150. package/skills/impeccable/frontend-design/reference/color-and-contrast.md +132 -0
  151. package/skills/impeccable/frontend-design/reference/interaction-design.md +123 -0
  152. package/skills/impeccable/frontend-design/reference/motion-design.md +99 -0
  153. package/skills/impeccable/frontend-design/reference/responsive-design.md +114 -0
  154. package/skills/impeccable/frontend-design/reference/spatial-design.md +100 -0
  155. package/skills/impeccable/frontend-design/reference/typography.md +131 -0
  156. package/skills/impeccable/frontend-design/reference/ux-writing.md +107 -0
  157. package/skills/impeccable/harden/SKILL.md +358 -0
  158. package/skills/impeccable/normalize/SKILL.md +67 -0
  159. package/skills/impeccable/onboard/SKILL.md +243 -0
  160. package/skills/impeccable/optimize/SKILL.md +269 -0
  161. package/skills/impeccable/polish/SKILL.md +202 -0
  162. package/skills/impeccable/quieter/SKILL.md +118 -0
  163. package/skills/impeccable/teach-impeccable/SKILL.md +69 -0
  164. package/templates/agents.md +166 -0
  165. package/templates/config.json +22 -0
  166. package/templates/context.md +72 -0
  167. package/templates/plan.md +202 -0
  168. package/templates/project.md +184 -0
  169. package/templates/requirements.md +231 -0
  170. package/templates/state.md +176 -0
  171. package/templates/uat.md +80 -0
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:pause-work
3
+ description: Save a handoff file when stopping mid-phase so you can resume seamlessly later
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/pause-work.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship pause-work workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: learnship:plan-milestone-gaps
3
+ description: Create fix phases for all gaps found by audit-milestone
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ - Task
9
+ ---
10
+
11
+ <execution_context>
12
+ @~/.claude/workflows/plan-milestone-gaps.md
13
+ </execution_context>
14
+
15
+ <context>
16
+ Arguments: $ARGUMENTS
17
+ </context>
18
+
19
+ <process>
20
+ Execute the learnship plan-milestone-gaps workflow end-to-end.
21
+ Preserve all workflow gates, validations, checkpoints, and routing.
22
+ </process>
@@ -0,0 +1,24 @@
1
+ ---
2
+ name: learnship:plan-phase
3
+ description: Research + create + verify plans for a phase — spawns specialist subagents where supported
4
+ argument-hint: "[N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Task
10
+ - AskUserQuestion
11
+ ---
12
+
13
+ <execution_context>
14
+ @~/.claude/workflows/plan-phase.md
15
+ </execution_context>
16
+
17
+ <context>
18
+ Arguments: $ARGUMENTS
19
+ </context>
20
+
21
+ <process>
22
+ Execute the learnship plan-phase workflow end-to-end.
23
+ Preserve all workflow gates, validations, checkpoints, and routing.
24
+ </process>
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: learnship:progress
3
+ description: Show project progress, current position, and what to do next
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ ---
8
+
9
+ <execution_context>
10
+ @~/.claude/workflows/progress.md
11
+ </execution_context>
12
+
13
+ <context>
14
+ Arguments: $ARGUMENTS
15
+ </context>
16
+
17
+ <process>
18
+ Execute the learnship progress workflow end-to-end.
19
+ Preserve all workflow gates, validations, checkpoints, and routing.
20
+ </process>
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: learnship:quick
3
+ description: Execute an ad-hoc task with full agentic guarantees — atomic commits, state tracking, no full planning ceremony
4
+ argument-hint: ""<task description>""
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Edit
10
+ - Glob
11
+ - Grep
12
+ - Task
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <execution_context>
17
+ @~/.claude/workflows/quick.md
18
+ </execution_context>
19
+
20
+ <context>
21
+ Arguments: $ARGUMENTS
22
+ </context>
23
+
24
+ <process>
25
+ Execute the learnship quick workflow end-to-end.
26
+ Preserve all workflow gates, validations, checkpoints, and routing.
27
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:reapply-patches
3
+ description: Restore local workflow customizations after updating the platform
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/reapply-patches.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship reapply-patches workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:release
3
+ description: Cut a new learnship release — bump version, update changelog, push to public-main, tag, create GitHub release
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/release.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship release workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: learnship:remove-phase
3
+ description: Remove a planned (not yet executed) phase and renumber subsequent phases
4
+ argument-hint: "[N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <execution_context>
13
+ @~/.claude/workflows/remove-phase.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ Arguments: $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ Execute the learnship remove-phase workflow end-to-end.
22
+ Preserve all workflow gates, validations, checkpoints, and routing.
23
+ </process>
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: learnship:research-phase
3
+ description: Deep-dive domain research for a phase without immediately creating plans
4
+ argument-hint: "[N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - Task
10
+ ---
11
+
12
+ <execution_context>
13
+ @~/.claude/workflows/research-phase.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ Arguments: $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ Execute the learnship research-phase workflow end-to-end.
22
+ Preserve all workflow gates, validations, checkpoints, and routing.
23
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:resume-work
3
+ description: Restore full project context and continue from where you left off
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/resume-work.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship resume-work workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:set-profile
3
+ description: Quick model profile switch without opening full settings
4
+ argument-hint: "[quality|balanced|budget]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/set-profile.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship set-profile workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:settings
3
+ description: Interactive settings editor for .planning/config.json
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - AskUserQuestion
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/settings.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship settings workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:transition
3
+ description: Hand off a project context to a new session or collaborator — writes a HANDOFF.md with full state snapshot
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/transition.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship transition workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,21 @@
1
+ ---
2
+ name: learnship:update
3
+ description: Update the learnship platform itself to the latest version
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ ---
9
+
10
+ <execution_context>
11
+ @~/.claude/workflows/update.md
12
+ </execution_context>
13
+
14
+ <context>
15
+ Arguments: $ARGUMENTS
16
+ </context>
17
+
18
+ <process>
19
+ Execute the learnship update workflow end-to-end.
20
+ Preserve all workflow gates, validations, checkpoints, and routing.
21
+ </process>
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: learnship:validate-phase
3
+ description: Retroactive test coverage audit for a completed phase — fill validation gaps without modifying implementation
4
+ argument-hint: "[N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ ---
10
+
11
+ <execution_context>
12
+ @~/.claude/workflows/validate-phase.md
13
+ </execution_context>
14
+
15
+ <context>
16
+ Arguments: $ARGUMENTS
17
+ </context>
18
+
19
+ <process>
20
+ Execute the learnship validate-phase workflow end-to-end.
21
+ Preserve all workflow gates, validations, checkpoints, and routing.
22
+ </process>
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: learnship:verify-work
3
+ description: Manual user acceptance testing — walk through what was built, log issues, create fix plans
4
+ argument-hint: "[N]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Write
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <execution_context>
13
+ @~/.claude/workflows/verify-work.md
14
+ </execution_context>
15
+
16
+ <context>
17
+ Arguments: $ARGUMENTS
18
+ </context>
19
+
20
+ <process>
21
+ Execute the learnship verify-work workflow end-to-end.
22
+ Preserve all workflow gates, validations, checkpoints, and routing.
23
+ </process>
@@ -0,0 +1,60 @@
1
+ ---
2
+ name: learnship
3
+ description: Activate learnship agentic engineering workflows — structured phases, persistent memory, learning partner, and impeccable UI design. Use whenever a user is working on a software project or asks about project planning, phases, workflows, or how to build something.
4
+ ---
5
+
6
+ You are working inside a project that uses **learnship** — a multi-platform agentic engineering system for building real products with spec-driven workflows, integrated learning, and impeccable design.
7
+
8
+ ## Core Workflows
9
+
10
+ Suggest the appropriate workflow slash command when relevant:
11
+
12
+ | Workflow | When to suggest |
13
+ |----------|----------------|
14
+ | `/new-project` | User wants to start a new project from scratch |
15
+ | `/discuss-phase [N]` | Before planning a phase — capture user's implementation vision |
16
+ | `/plan-phase [N]` | After discussing a phase — create executable plans |
17
+ | `/execute-phase [N]` | Plans exist and are ready to run |
18
+ | `/verify-work [N]` | Phase execution complete — user acceptance testing |
19
+ | `/ls` | User asks "where are we?", "what's next?", or starts a new session |
20
+ | `/next` | User wants to keep moving without deciding what to do |
21
+ | `/quick [task]` | Small ad-hoc task that doesn't need full phase ceremony |
22
+ | `/progress` | Status overview and routing |
23
+ | `/pause-work` | User is stopping mid-phase |
24
+ | `/resume-work` | User is returning to an in-progress project |
25
+ | `/complete-milestone` | All phases in the current milestone are done |
26
+
27
+ ## Planning Artifacts
28
+
29
+ All project state lives in `.planning/`. Key files:
30
+
31
+ - `.planning/config.json` — Settings including `learning_mode` ("auto" or "manual")
32
+ - `.planning/PROJECT.md` — Vision, requirements, key decisions
33
+ - `.planning/ROADMAP.md` — Phase-by-phase delivery plan
34
+ - `.planning/STATE.md` — Current position, decisions, blockers
35
+ - `.planning/phases/[N]-[slug]/` — Per-phase artifacts
36
+
37
+ Always read `STATE.md` and `ROADMAP.md` before any planning or execution operation.
38
+
39
+ ## Key Behaviors
40
+
41
+ - **Context efficiency**: Reference file paths rather than inlining file contents.
42
+ - **Atomic commits**: Every task gets its own commit. Never batch unrelated changes.
43
+ - **No scope creep**: Execute exactly what plans say. Document deviations in SUMMARY.md.
44
+ - **Goal-backward verification**: Check that `must_haves` are met, not just that tasks ran.
45
+ - **Deferred ideas**: Note things outside current phase scope in the roadmap backlog.
46
+
47
+ ## Learning Mode
48
+
49
+ Read `learning_mode` from `.planning/config.json` (default: "auto"):
50
+
51
+ - **`auto`** — Proactively offer learning actions at natural workflow checkpoints
52
+ - **`manual`** — Only activate learning when the user explicitly asks
53
+
54
+ ## Design Quality
55
+
56
+ The `impeccable` skill is available for UI work. Key commands:
57
+ - `@impeccable audit` — full quality audit
58
+ - `@impeccable polish` — final pass before shipping
59
+ - `@impeccable frontend-design` — apply design foundation principles
60
+ - `@impeccable critique` — UX effectiveness review
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "learnship",
3
+ "version": "1.9.0",
4
+ "description": "Agentic engineering done right — 42 structured workflows, persistent memory across sessions, integrated learning partner, and impeccable UI design system.",
5
+ "author": "Favio Vazquez",
6
+ "homepage": "https://faviovazquez.github.io/learnship/",
7
+ "repository": "https://github.com/FavioVazquez/learnship",
8
+ "license": "MIT",
9
+ "installDir": ".gemini"
10
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "description": "learnship session context injection",
3
+ "hooks": {
4
+ "SessionStart": [
5
+ {
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\""
10
+ }
11
+ ]
12
+ }
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 1,
3
+ "hooks": {
4
+ "sessionStart": [
5
+ {
6
+ "command": "\"${CURSOR_PLUGIN_ROOT}/hooks/session-start\""
7
+ }
8
+ ]
9
+ }
10
+ }
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env bash
2
+ # SessionStart hook for learnship plugin
3
+ # Injects learnship SKILL.md context at every session start so the agent
4
+ # always knows the workflows, planning artifacts, and learning system.
5
+
6
+ set -euo pipefail
7
+
8
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
9
+ PLUGIN_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
10
+
11
+ SKILL_FILE="${PLUGIN_ROOT}/SKILL.md"
12
+
13
+ if [ ! -f "$SKILL_FILE" ]; then
14
+ exit 0
15
+ fi
16
+
17
+ skill_content=$(cat "$SKILL_FILE" 2>/dev/null || echo "")
18
+
19
+ escape_for_json() {
20
+ local s="$1"
21
+ s="${s//\\/\\\\}"
22
+ s="${s//\"/\\\"}"
23
+ s="${s//$'\n'/\\n}"
24
+ s="${s//$'\r'/\\r}"
25
+ s="${s//$'\t'/\\t}"
26
+ printf '%s' "$s"
27
+ }
28
+
29
+ skill_escaped=$(escape_for_json "$skill_content")
30
+
31
+ session_context="<learnship>\nYou are working in a project that uses learnship — an agentic engineering system.\n\n${skill_escaped}\n</learnship>"
32
+
33
+ # Cursor sets CURSOR_PLUGIN_ROOT; Claude Code sets CLAUDE_PLUGIN_ROOT.
34
+ # Emit the field each platform expects to avoid double-injection.
35
+ if [ -n "${CURSOR_PLUGIN_ROOT:-}" ]; then
36
+ printf '{\n "additional_context": "%s"\n}\n' "$session_context"
37
+ elif [ -n "${CLAUDE_PLUGIN_ROOT:-}" ]; then
38
+ printf '{\n "hookSpecificOutput": {\n "hookEventName": "SessionStart",\n "additionalContext": "%s"\n }\n}\n' "$session_context"
39
+ else
40
+ printf '{\n "additional_context": "%s"\n}\n' "$session_context"
41
+ fi
42
+
43
+ exit 0