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,153 @@
1
+ ---
2
+ description: Show all available workflows with descriptions and when to use them
3
+ ---
4
+
5
+ # Help
6
+
7
+ Show all available workflows, organized by category.
8
+
9
+ ## Start Here
10
+
11
+ You only need to remember **5 commands** to use learnship effectively:
12
+
13
+ | Command | When to use |
14
+ |---------|-------------|
15
+ | `/ls` | "Where am I? What's next?" — works for new and returning users |
16
+ | `/next` | Auto-pilot — reads state and runs the right workflow for you |
17
+ | `/new-project` | Starting a brand new project |
18
+ | `/quick "..."` | One-off task with atomic commit, no ceremony |
19
+ | `/help` | This screen — see all 42 commands |
20
+
21
+ Everything else below is discoverable from `/ls` as you go.
22
+
23
+ ---
24
+
25
+ ## All Workflows
26
+
27
+ ### Core Workflow — build products phase by phase
28
+
29
+ | Workflow | What it does |
30
+ |----------|-------------|
31
+ | `/new-project` | Full init: questioning → research → requirements → roadmap |
32
+ | `/discuss-phase [N]` | Capture implementation decisions before planning |
33
+ | `/plan-phase [N]` | Research + create + verify plans |
34
+ | `/execute-phase [N]` | Wave-ordered execution of all plans |
35
+ | `/verify-work [N]` | Manual UAT with auto-diagnosis and fix planning |
36
+ | `/complete-milestone` | Archive milestone, tag release, prepare next version |
37
+ | `/audit-milestone` | Pre-release: requirement coverage + stub detection |
38
+ | `/new-milestone [name]` | Start next version cycle after completing a milestone |
39
+
40
+ ### Navigation — know where you are, resume work
41
+
42
+ | Workflow | What it does |
43
+ |----------|-------------|
44
+ | `/ls` | Status + next step + offer to run it — **start every session here** |
45
+ | `/next` | Auto-pilot: reads state and runs the right workflow automatically |
46
+ | `/progress` | Same as `/ls` — status overview + smart routing |
47
+ | `/resume-work` | Restore full context from last session |
48
+ | `/pause-work` | Save handoff file when stopping mid-phase |
49
+ | `/quick [description]` | Ad-hoc task with full guarantees and atomic commits |
50
+ | `/help` | Show this reference |
51
+
52
+ ### Phase Management — shape the roadmap mid-milestone
53
+
54
+ | Workflow | What it does |
55
+ |----------|-------------|
56
+ | `/add-phase [description]` | Append new phase to roadmap |
57
+ | `/insert-phase [N] [description]` | Insert urgent work between existing phases |
58
+ | `/remove-phase [N]` | Remove a future phase and renumber |
59
+ | `/research-phase [N]` | Deep research only, no plans yet |
60
+ | `/list-phase-assumptions [N]` | Preview intended approach before planning |
61
+ | `/plan-milestone-gaps` | Create fix phases from audit findings |
62
+
63
+ ### Codebase Intelligence — understand what exists
64
+
65
+ | Workflow | What it does |
66
+ |----------|-------------|
67
+ | `/map-codebase` | Analyze existing codebase (brownfield entry point) |
68
+ | `/discovery-phase [N]` | Map unfamiliar code area — files, deps, risks — before planning |
69
+ | `/debug [description]` | Systematic triage → diagnose → fix with session state |
70
+ | `/diagnose-issues [N]` | Batch-diagnose all UAT issues — groups by root cause, proposes fix plan |
71
+ | `/execute-plan [N] [id]` | Run a single PLAN.md in isolation (re-run failed plan) |
72
+ | `/validate-phase [N]` | Retroactive test coverage audit for a phase |
73
+
74
+ ### Task Management — capture and act on ideas
75
+
76
+ | Workflow | What it does |
77
+ |----------|-------------|
78
+ | `/add-todo [description]` | Capture an idea without interrupting flow |
79
+ | `/check-todos` | Review and act on captured todos |
80
+ | `/add-tests [N]` | Generate unit and E2E tests post-execution |
81
+
82
+ ### Decision Intelligence — institutional memory
83
+
84
+ | Workflow | What it does |
85
+ |----------|-------------|
86
+ | `/decision-log [description]` | Capture a decision with context, alternatives, and rationale |
87
+ | `/knowledge-base` | Aggregate all decisions + lessons into searchable KNOWLEDGE.md |
88
+ | `/knowledge-base search [query]` | Search the project knowledge base |
89
+
90
+ ### Milestone Intelligence — reflect and hand off
91
+
92
+ | Workflow | What it does |
93
+ |----------|-------------|
94
+ | `/discuss-milestone [version]` | Capture goals and anti-goals before new-milestone |
95
+ | `/milestone-retrospective` | 5-question retrospective after complete-milestone |
96
+ | `/transition` | Write full handoff document for collaborator or fresh session |
97
+
98
+ ### Maintenance — keep the project healthy
99
+
100
+ | Workflow | What it does |
101
+ |----------|-------------|
102
+ | `/settings` | Interactive config editor for `.planning/config.json` |
103
+ | `/set-profile [quality\|balanced\|budget]` | One-step model profile switch |
104
+ | `/health` | Project health check: stale files, missing artifacts |
105
+ | `/health --repair` | Auto-fix repairable health issues |
106
+ | `/cleanup` | Archive completed milestone phase directories |
107
+ | `/update` | Update the platform itself to the latest version |
108
+ | `/reapply-patches` | Restore local edits after an update |
109
+ | `/sync-upstream-skills` | Pull latest agentic-learning + impeccable from their upstream repos and re-deploy to all platforms |
110
+
111
+ ---
112
+
113
+ ## Quick Reference
114
+
115
+ **Starting fresh:**
116
+ ```
117
+ /new-project
118
+ ```
119
+
120
+ **Standard phase loop:**
121
+ ```
122
+ /discuss-phase N → /plan-phase N → /execute-phase N → /verify-work N
123
+ ```
124
+
125
+ **Quick fix:**
126
+ ```
127
+ /quick "description of what to do"
128
+ ```
129
+
130
+ **After a break:**
131
+ ```
132
+ /ls (where am I? — offers to run next step)
133
+ /next (just keep moving — auto-pilot)
134
+ /resume-work (full context restoration)
135
+ ```
136
+
137
+ **Before releasing:**
138
+ ```
139
+ /audit-milestone → /plan-milestone-gaps (if gaps) → /complete-milestone
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Configuration
145
+
146
+ Edit project settings with `/settings` or directly:
147
+ ```bash
148
+ cat .planning/config.json
149
+ ```
150
+
151
+ Key settings: `mode` (yolo/interactive), `model_profile` (quality/balanced/budget), `learning_mode` (auto/manual).
152
+
153
+ See `README.md` for the full configuration reference.
@@ -0,0 +1,106 @@
1
+ ---
2
+ description: Insert a new phase between existing phases for urgent work discovered mid-milestone
3
+ ---
4
+
5
+ # Insert Phase
6
+
7
+ Insert a decimal phase for urgent work discovered mid-milestone. Uses decimal numbering (e.g., `3.1`) to preserve the logical sequence of planned phases without renumbering everything.
8
+
9
+ **Usage:** `insert-phase [N] [description]`
10
+
11
+ **When to use:** Urgent bug fix, critical dependency discovered, security patch — work that must happen between two existing phases without waiting.
12
+
13
+ **Not for:** Regular scope additions → use `add-phase` for those.
14
+
15
+ ## Step 1: Parse Arguments
16
+
17
+ Extract from arguments:
18
+ - First token: the integer phase number to insert **after** (e.g., `3`)
19
+ - Remaining text: phase description
20
+
21
+ If either is missing:
22
+ ```
23
+ Usage: insert-phase [N] [description]
24
+ Example: insert-phase 3 Fix critical auth vulnerability
25
+
26
+ [N] = phase to insert after (must be an existing phase)
27
+ ```
28
+
29
+ Validate that the after-phase number is an integer.
30
+
31
+ ## Step 2: Validate
32
+
33
+ ```bash
34
+ test -f .planning/ROADMAP.md && echo "OK" || echo "MISSING"
35
+ ```
36
+
37
+ Check that phase `[N]` exists in ROADMAP.md:
38
+ ```bash
39
+ grep -E "^## Phase [N]:" .planning/ROADMAP.md
40
+ ```
41
+
42
+ If phase not found, list available phases and stop.
43
+
44
+ ## Step 3: Calculate Decimal Number
45
+
46
+ Find existing decimal phases after phase `[N]`:
47
+ ```bash
48
+ ls .planning/phases/ 2>/dev/null | grep -E "^[N]\." | sort -V
49
+ ```
50
+
51
+ If none exist → new phase is `[N].1`
52
+ If `[N].1` exists → new phase is `[N].2`, etc.
53
+
54
+ Generate slug from description (lowercase, hyphens, max 40 chars).
55
+
56
+ ## Step 4: Create Phase Directory
57
+
58
+ ```bash
59
+ mkdir -p ".planning/phases/[N].[M]-[SLUG]"
60
+ ```
61
+
62
+ ## Step 5: Update ROADMAP.md
63
+
64
+ Insert the decimal phase entry immediately after Phase `[N]` in ROADMAP.md:
65
+
66
+ ```markdown
67
+ ## Phase [N].[M]: [Description] *(INSERTED — urgent)*
68
+
69
+ **Goal:** [One sentence — what this urgent work delivers]
70
+ **Status:** [ ] Not started
71
+ **Depends on:** Phase [N]
72
+ **Note:** Inserted between Phase [N] and Phase [N+1]
73
+
74
+ ### Plans
75
+ *Not yet planned — run `plan-phase [N].[M]`*
76
+ ```
77
+
78
+ ## Step 6: Update STATE.md
79
+
80
+ Add to Roadmap Evolution section:
81
+ ```markdown
82
+ - Phase [N].[M] inserted after Phase [N]: [description] (URGENT)
83
+ ```
84
+
85
+ Note: Check if Phase [N+1] dependencies are still valid — the inserted phase may need to complete before [N+1] can run.
86
+
87
+ ## Step 7: Commit
88
+
89
+ ```bash
90
+ git add .planning/ROADMAP.md .planning/STATE.md ".planning/phases/[N].[M]-[SLUG]/"
91
+ git commit -m "chore(roadmap): insert urgent phase [N].[M] — [description]"
92
+ ```
93
+
94
+ ## Step 8: Confirm
95
+
96
+ ```
97
+ Phase [N].[M] inserted after Phase [N]:
98
+
99
+ Description: [description]
100
+ Directory: .planning/phases/[N].[M]-[slug]/
101
+ Status: Not planned yet (URGENT)
102
+
103
+ ⚠️ Check Phase [N+1] dependencies — does it still make sense to run after [N].[M]?
104
+
105
+ ▶ Next: plan-phase [N].[M]
106
+ ```
@@ -0,0 +1,168 @@
1
+ ---
2
+ description: Aggregate key learnings and decisions across all sessions into a searchable KNOWLEDGE.md
3
+ ---
4
+
5
+ # Knowledge Base
6
+
7
+ Aggregate key learnings, decisions, and patterns from all sessions into a single searchable `KNOWLEDGE.md`. The knowledge base is the project's institutional memory — it compounds across milestones.
8
+
9
+ **Usage:** `knowledge-base` — rebuild/update from all sources
10
+ **Usage:** `knowledge-base search [query]` — search the knowledge base
11
+
12
+ ## Step 1: Determine Mode
13
+
14
+ If `search [query]` argument provided → skip to **Search Mode** at end.
15
+
16
+ Otherwise → build/update mode.
17
+
18
+ ## Step 2: Locate All Sources
19
+
20
+ ```bash
21
+ # Decisions register
22
+ cat .planning/DECISIONS.md 2>/dev/null
23
+
24
+ # Debug session resolutions
25
+ ls .planning/debug/resolved/ 2>/dev/null
26
+
27
+ # Retrospectives
28
+ ls .planning/milestones/*-RETROSPECTIVE.md 2>/dev/null
29
+
30
+ # Phase research files
31
+ find .planning/ -name "*-RESEARCH.md" | sort
32
+
33
+ # AGENTS.md regressions
34
+ grep -A 5 "### 20" AGENTS.md 2>/dev/null
35
+ ```
36
+
37
+ ## Step 3: Extract Knowledge
38
+
39
+ From each source, extract structured knowledge items:
40
+
41
+ **From DECISIONS.md:**
42
+ - Each DEC-XXX entry → Knowledge item: `decision`
43
+
44
+ **From debug resolved sessions:**
45
+ - Each session's root cause + lesson → Knowledge item: `lesson`
46
+
47
+ **From retrospectives:**
48
+ - "What worked well" → Knowledge item: `pattern`
49
+ - "What to avoid" → Knowledge item: `anti-pattern`
50
+ - "Carry forward" → Knowledge item: `carry-forward`
51
+
52
+ **From RESEARCH.md files:**
53
+ - "Don't Hand-Roll" entries → Knowledge item: `library`
54
+ - "Common Pitfalls" entries → Knowledge item: `pitfall`
55
+
56
+ Deduplicate: if the same concept appears multiple times, merge into one entry with multiple `sources`.
57
+
58
+ ## Step 4: Write / Update KNOWLEDGE.md
59
+
60
+ Write `.planning/KNOWLEDGE.md`:
61
+
62
+ ```markdown
63
+ ---
64
+ updated: [date]
65
+ items: [N]
66
+ ---
67
+
68
+ # Project Knowledge Base
69
+
70
+ Aggregated learnings from [N] decisions, [M] debug sessions, [K] retrospectives.
71
+
72
+ ---
73
+
74
+ ## Decisions
75
+
76
+ ### DEC-001: [title]
77
+ **Type:** architecture | library | scope | pattern
78
+ **Phase:** [N] | **Date:** [date]
79
+ **Choice:** [what was decided]
80
+ **Rationale:** [why]
81
+ **Still active:** yes | superseded by DEC-XXX
82
+
83
+ [...repeat for each decision...]
84
+
85
+ ---
86
+
87
+ ## Lessons Learned
88
+
89
+ ### [YYYY-MM-DD]: [title]
90
+ **From:** debug session | retrospective
91
+ **What broke:** [description]
92
+ **Root cause:** [cause]
93
+ **Lesson:** [what to do differently]
94
+
95
+ [...repeat...]
96
+
97
+ ---
98
+
99
+ ## Patterns That Work
100
+
101
+ - **[Pattern name]**: [description — what it is and why it works here]
102
+ - **[Pattern name]**: [description]
103
+
104
+ ---
105
+
106
+ ## Anti-Patterns to Avoid
107
+
108
+ - **[Anti-pattern]**: [what it is] — [why it fails in this project]
109
+ - **[Anti-pattern]**: [description]
110
+
111
+ ---
112
+
113
+ ## Libraries & Tools
114
+
115
+ | Tool | Use for | Notes |
116
+ |------|---------|-------|
117
+ | [lib] | [purpose] | [any caveats] |
118
+
119
+ ---
120
+
121
+ ## Open Questions
122
+
123
+ Questions surfaced during work that haven't been fully resolved:
124
+
125
+ - [question] (from [source])
126
+ ```
127
+
128
+ ## Step 5: Commit
129
+
130
+ ```bash
131
+ git add .planning/KNOWLEDGE.md
132
+ git commit -m "docs: update knowledge base ([N] items)"
133
+ ```
134
+
135
+ ## Step 6: Confirm
136
+
137
+ ```
138
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
139
+ learnship ► KNOWLEDGE BASE UPDATED ✓
140
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
141
+
142
+ Items: [N] total
143
+ Decisions: [N]
144
+ Lessons: [N]
145
+ Patterns: [N]
146
+ Anti-patterns: [N]
147
+
148
+ Saved: .planning/KNOWLEDGE.md
149
+ ```
150
+
151
+ ---
152
+
153
+ ## Search Mode
154
+
155
+ If `knowledge-base search [query]` was invoked:
156
+
157
+ ```bash
158
+ grep -i "[query]" .planning/KNOWLEDGE.md 2>/dev/null
159
+ grep -i "[query]" .planning/DECISIONS.md 2>/dev/null
160
+ ```
161
+
162
+ Display matching sections with context. If no results:
163
+ ```
164
+ No results for "[query]" in knowledge base.
165
+
166
+ Try: knowledge-base (rebuild from all sources first)
167
+ or search with broader terms
168
+ ```
@@ -0,0 +1,129 @@
1
+ ---
2
+ description: Surface Cascade's intended approach for a phase before planning starts — validate direction early
3
+ ---
4
+
5
+ # List Phase Assumptions
6
+
7
+ Surface what Cascade intends to do for a phase before committing to a plan. This is **analysis of what Cascade thinks**, not intake of what you want — use `discuss-phase` for that.
8
+
9
+ **Use when:** You want to validate direction before planning, or you're unsure what approach will be taken.
10
+
11
+ **Usage:** `list-phase-assumptions [N]`
12
+
13
+ ## Step 1: Validate Phase
14
+
15
+ Phase number is required:
16
+ ```
17
+ Usage: list-phase-assumptions [N]
18
+ Example: list-phase-assumptions 3
19
+ ```
20
+
21
+ Find phase `[N]` in ROADMAP.md:
22
+ ```bash
23
+ grep -E "Phase [N]:" .planning/ROADMAP.md
24
+ ```
25
+
26
+ If not found: list available phases and stop.
27
+
28
+ ## Step 2: Load Context
29
+
30
+ ```bash
31
+ cat .planning/ROADMAP.md
32
+ cat .planning/PROJECT.md
33
+ cat .planning/STATE.md
34
+ ```
35
+
36
+ Check for CONTEXT.md (user decisions):
37
+ ```bash
38
+ ls ".planning/phases/" 2>/dev/null | grep "^0*[N]-"
39
+ ```
40
+
41
+ If CONTEXT.md exists, read it — it affects assumptions.
42
+
43
+ ## Step 3: Analyze Phase
44
+
45
+ Based on the phase goal, project context, and codebase, surface assumptions across five dimensions. Be honest about confidence levels.
46
+
47
+ ```
48
+ ## My Assumptions for Phase [N]: [Phase Name]
49
+
50
+ ### Technical Approach
51
+ What libraries, frameworks, or patterns I'd use:
52
+ - [Fairly confident:] I'd use [X] because [reason from phase context]
53
+ - [Assuming:] I'd structure this as [Y] because it fits the existing pattern
54
+ - [Unclear:] [Z] could go multiple ways depending on [ambiguity]
55
+
56
+ ### Implementation Order
57
+ What I'd build first, second, third:
58
+ 1. [First thing] — because it's foundational
59
+ 2. [Second thing] — because it depends on #1
60
+ 3. [Third thing] — because it integrates the pieces
61
+
62
+ ### Scope Boundaries
63
+ **In scope:** [What I think this phase covers]
64
+ **Out of scope:** [What I'd defer to later phases]
65
+ **Ambiguous:** [Things that could go either way]
66
+
67
+ ### Risk Areas
68
+ Where I anticipate complexity or challenges:
69
+ - [Tricky thing]: [Why it's hard and what I'd watch out for]
70
+ - [Potential issue]: [What could go wrong]
71
+
72
+ ### Dependencies
73
+ **From prior phases:** [What must exist before this runs]
74
+ **External:** [Third-party dependencies needed]
75
+ **Feeds into:** [What later phases will need from this phase's output]
76
+
77
+ ---
78
+
79
+ **What do you think?**
80
+
81
+ Are these assumptions accurate? Tell me:
82
+ - What I got right
83
+ - What I got wrong
84
+ - What I'm missing
85
+ ```
86
+
87
+ Wait for user response.
88
+
89
+ ## Step 4: Acknowledge Feedback
90
+
91
+ **If corrections provided:**
92
+ ```
93
+ Key corrections noted:
94
+ - [correction 1]
95
+ - [correction 2]
96
+
97
+ This changes my approach significantly: [summarize updated understanding]
98
+ ```
99
+
100
+ **If assumptions confirmed:**
101
+ ```
102
+ Assumptions validated. Ready to plan.
103
+ ```
104
+
105
+ ## Step 5: Offer Next Steps
106
+
107
+ ```
108
+ What's next?
109
+
110
+ 1. discuss-phase [N] — you answer my questions to build CONTEXT.md
111
+ 2. plan-phase [N] — create plans now (assumptions noted above apply)
112
+ 3. Re-examine — I'll analyze again with your corrections
113
+ ```
114
+
115
+ Note: Any corrections discussed here are not automatically captured. Run `discuss-phase [N]` to write them to a CONTEXT.md that planners will read.
116
+
117
+ ---
118
+
119
+ ## Learning Checkpoint
120
+
121
+ Read `learning_mode` from `.planning/config.json`.
122
+
123
+ **If `auto`:** Offer:
124
+
125
+ > 💡 **Learning moment:** About to commit to an approach. Log the path not taken:
126
+ >
127
+ > `@agentic-learning either-or` — Record the alternatives considered, the choice made, and expected consequences. When the build goes sideways, this record tells you which assumption failed.
128
+
129
+ **If `manual`:** Add quietly: *"Tip: `@agentic-learning either-or` to log the approach decisions being made here."*
@@ -0,0 +1,145 @@
1
+ ---
2
+ description: Show where you are in the project and what to do next — the fastest way to orient yourself and keep moving
3
+ ---
4
+
5
+ # ls — Project Status
6
+
7
+ The quickest way to answer "where am I and what do I do next?" Works for new users and returning users alike.
8
+
9
+ **Usage:** `/ls`
10
+
11
+ ---
12
+
13
+ ## Step 1: Check for Project
14
+
15
+ ```bash
16
+ test -f .planning/PROJECT.md && echo "EXISTS" || echo "MISSING"
17
+ ```
18
+
19
+ **If MISSING** — no project initialized yet. Display:
20
+
21
+ ```
22
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
23
+ learnship ► WELCOME
24
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
25
+
26
+ No project found in this directory.
27
+
28
+ learnship is a multi-platform agentic engineering system —
29
+ spec-driven phases, context-engineered plans, atomic execution,
30
+ and a learning partner woven into every phase transition.
31
+
32
+ ▶ To start: /new-project
33
+ ▶ For a quick one-off task: /quick "description"
34
+ ▶ To see all commands: /help
35
+ ```
36
+
37
+ Stop here.
38
+
39
+ ---
40
+
41
+ ## Step 2: Load State
42
+
43
+ Read key state files:
44
+
45
+ ```bash
46
+ cat .planning/STATE.md
47
+ cat .planning/ROADMAP.md
48
+ ```
49
+
50
+ Find the 2–3 most recent SUMMARY.md files:
51
+
52
+ ```bash
53
+ find .planning -name "*-SUMMARY.md" -type f 2>/dev/null | xargs ls -t 2>/dev/null | head -3
54
+ ```
55
+
56
+ Read each for a one-liner summary of what was accomplished.
57
+
58
+ Check for a `.continue-here.md` handoff:
59
+
60
+ ```bash
61
+ find .planning/phases -name ".continue-here.md" 2>/dev/null
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Step 3: Analyze Phase
67
+
68
+ For the current phase, count:
69
+
70
+ ```bash
71
+ ls ".planning/phases/[current_phase_dir]/"*-PLAN.md 2>/dev/null | wc -l
72
+ ls ".planning/phases/[current_phase_dir]/"*-SUMMARY.md 2>/dev/null | wc -l
73
+ ls ".planning/phases/[current_phase_dir]/"*-UAT.md 2>/dev/null | wc -l
74
+ ```
75
+
76
+ Check for diagnosed UAT gaps:
77
+
78
+ ```bash
79
+ grep -l "status: diagnosed" .planning/phases/[current_phase_dir]/*-UAT.md 2>/dev/null
80
+ ```
81
+
82
+ ---
83
+
84
+ ## Step 4: Display Status
85
+
86
+ ```
87
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
88
+ learnship ► [Project Name]
89
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
90
+
91
+ Progress: [████████░░] [X]% — Phase [N] of [total]
92
+
93
+ Recent work:
94
+ • [Phase, Plan]: [what was accomplished — 1 line]
95
+ • [Phase, Plan]: [what was accomplished — 1 line]
96
+
97
+ Current phase: [N] — [phase-name]
98
+ Plans: [done]/[total] UAT: [status]
99
+ ```
100
+
101
+ ---
102
+
103
+ ## Step 5: Route and Offer to Run
104
+
105
+ Determine the next action (same logic as `progress`):
106
+
107
+ 1. **`.continue-here.md` exists** → mid-plan handoff
108
+ - Next: `resume-work`
109
+
110
+ 2. **UAT gaps (status: diagnosed)** → fix plans needed
111
+ - Next: `plan-phase [X]` (gap closure mode)
112
+
113
+ 3. **Plans exist, summaries < plans** → unfinished execution
114
+ - Next: `execute-phase [X]`
115
+
116
+ 4. **Plans = 0, CONTEXT.md exists** → ready to plan
117
+ - Next: `plan-phase [X]`
118
+
119
+ 5. **Plans = 0, no CONTEXT.md** → needs discussion
120
+ - Next: `discuss-phase [X]`
121
+
122
+ 6. **All plans have summaries, more phases remain** → move forward
123
+ - Next: `discuss-phase [X+1]`
124
+
125
+ 7. **All phases done** → ready to ship
126
+ - Next: `audit-milestone`
127
+
128
+ Display clearly, then **ask**:
129
+
130
+ ```
131
+ ▶ Next: [workflow name]
132
+ [one-line reason]
133
+
134
+ Run it now? Type "yes" to proceed, or just keep chatting.
135
+ ```
136
+
137
+ If the user says yes (or "go", "do it", "run it", "proceed") — immediately invoke that workflow.
138
+
139
+ ---
140
+
141
+ ## Notes
142
+
143
+ - `/ls` is an alias for the status + routing logic in `progress`. Use either.
144
+ - For full auto-pilot (no prompt), use `/next` instead.
145
+ - To see all 40+ available commands: `/help`