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.
- package/.claude-plugin/plugin.json +26 -0
- package/.cursor-plugin/plugin.json +26 -0
- package/LICENSE +21 -0
- package/README.md +791 -0
- package/SKILL.md +86 -0
- package/agents/debugger.md +102 -0
- package/agents/executor.md +115 -0
- package/agents/learnship-debugger.md +146 -0
- package/agents/learnship-executor.md +155 -0
- package/agents/learnship-phase-researcher.md +128 -0
- package/agents/learnship-plan-checker.md +119 -0
- package/agents/learnship-planner.md +146 -0
- package/agents/learnship-verifier.md +157 -0
- package/agents/planner.md +109 -0
- package/agents/researcher.md +80 -0
- package/agents/verifier.md +114 -0
- package/bin/install.js +1242 -0
- package/bin/learnship.js +56 -0
- package/commands/learnship/add-phase.md +22 -0
- package/commands/learnship/add-tests.md +24 -0
- package/commands/learnship/add-todo.md +21 -0
- package/commands/learnship/audit-milestone.md +21 -0
- package/commands/learnship/check-todos.md +22 -0
- package/commands/learnship/cleanup.md +22 -0
- package/commands/learnship/complete-milestone.md +22 -0
- package/commands/learnship/debug.md +27 -0
- package/commands/learnship/decision-log.md +22 -0
- package/commands/learnship/diagnose-issues.md +23 -0
- package/commands/learnship/discovery-phase.md +24 -0
- package/commands/learnship/discuss-milestone.md +23 -0
- package/commands/learnship/discuss-phase.md +23 -0
- package/commands/learnship/execute-phase.md +27 -0
- package/commands/learnship/execute-plan.md +26 -0
- package/commands/learnship/health.md +20 -0
- package/commands/learnship/help.md +19 -0
- package/commands/learnship/insert-phase.md +22 -0
- package/commands/learnship/knowledge-base.md +21 -0
- package/commands/learnship/list-phase-assumptions.md +21 -0
- package/commands/learnship/ls.md +20 -0
- package/commands/learnship/map-codebase.md +23 -0
- package/commands/learnship/milestone-retrospective.md +21 -0
- package/commands/learnship/new-milestone.md +23 -0
- package/commands/learnship/new-project.md +24 -0
- package/commands/learnship/next.md +22 -0
- package/commands/learnship/pause-work.md +21 -0
- package/commands/learnship/plan-milestone-gaps.md +22 -0
- package/commands/learnship/plan-phase.md +24 -0
- package/commands/learnship/progress.md +20 -0
- package/commands/learnship/quick.md +27 -0
- package/commands/learnship/reapply-patches.md +21 -0
- package/commands/learnship/release.md +21 -0
- package/commands/learnship/remove-phase.md +23 -0
- package/commands/learnship/research-phase.md +23 -0
- package/commands/learnship/resume-work.md +21 -0
- package/commands/learnship/set-profile.md +21 -0
- package/commands/learnship/settings.md +21 -0
- package/commands/learnship/transition.md +21 -0
- package/commands/learnship/update.md +21 -0
- package/commands/learnship/validate-phase.md +22 -0
- package/commands/learnship/verify-work.md +23 -0
- package/cursor-rules/learnship.mdc +60 -0
- package/gemini-extension.json +10 -0
- package/hooks/hooks-claude.json +15 -0
- package/hooks/hooks-cursor.json +10 -0
- package/hooks/session-start +43 -0
- package/install.sh +254 -0
- package/learnship/references/design-commands.md +119 -0
- package/learnship/references/git-integration.md +249 -0
- package/learnship/references/learning-design.md +142 -0
- package/learnship/references/model-profiles.md +90 -0
- package/learnship/references/planning-config.md +184 -0
- package/learnship/references/questioning.md +162 -0
- package/learnship/references/ui-brand.md +160 -0
- package/learnship/references/verification-patterns.md +608 -0
- package/learnship/templates/agents.md +166 -0
- package/learnship/templates/context.md +72 -0
- package/learnship/templates/plan.md +202 -0
- package/learnship/templates/project.md +184 -0
- package/learnship/templates/requirements.md +231 -0
- package/learnship/templates/state.md +176 -0
- package/learnship/templates/uat.md +80 -0
- package/learnship/workflows/add-phase.md +84 -0
- package/learnship/workflows/add-tests.md +191 -0
- package/learnship/workflows/add-todo.md +108 -0
- package/learnship/workflows/audit-milestone.md +178 -0
- package/learnship/workflows/check-todos.md +138 -0
- package/learnship/workflows/cleanup.md +107 -0
- package/learnship/workflows/complete-milestone.md +191 -0
- package/learnship/workflows/debug.md +245 -0
- package/learnship/workflows/decision-log.md +131 -0
- package/learnship/workflows/diagnose-issues.md +145 -0
- package/learnship/workflows/discovery-phase.md +183 -0
- package/learnship/workflows/discuss-milestone.md +136 -0
- package/learnship/workflows/discuss-phase.md +244 -0
- package/learnship/workflows/execute-phase.md +345 -0
- package/learnship/workflows/execute-plan.md +149 -0
- package/learnship/workflows/health.md +171 -0
- package/learnship/workflows/help.md +153 -0
- package/learnship/workflows/insert-phase.md +106 -0
- package/learnship/workflows/knowledge-base.md +168 -0
- package/learnship/workflows/list-phase-assumptions.md +129 -0
- package/learnship/workflows/ls.md +145 -0
- package/learnship/workflows/map-codebase.md +142 -0
- package/learnship/workflows/milestone-retrospective.md +178 -0
- package/learnship/workflows/new-milestone.md +200 -0
- package/learnship/workflows/new-project.md +340 -0
- package/learnship/workflows/next.md +100 -0
- package/learnship/workflows/pause-work.md +122 -0
- package/learnship/workflows/plan-milestone-gaps.md +160 -0
- package/learnship/workflows/plan-phase.md +288 -0
- package/learnship/workflows/progress.md +118 -0
- package/learnship/workflows/quick.md +256 -0
- package/learnship/workflows/reapply-patches.md +130 -0
- package/learnship/workflows/release.md +217 -0
- package/learnship/workflows/remove-phase.md +128 -0
- package/learnship/workflows/research-phase.md +137 -0
- package/learnship/workflows/resume-work.md +162 -0
- package/learnship/workflows/set-profile.md +78 -0
- package/learnship/workflows/settings.md +204 -0
- package/learnship/workflows/sync-upstream-skills.md +269 -0
- package/learnship/workflows/transition.md +165 -0
- package/learnship/workflows/update.md +166 -0
- package/learnship/workflows/validate-phase.md +174 -0
- package/learnship/workflows/verify-work.md +264 -0
- package/package.json +62 -0
- package/references/design-commands.md +119 -0
- package/references/git-integration.md +249 -0
- package/references/learning-design.md +142 -0
- package/references/model-profiles.md +90 -0
- package/references/planning-config.md +184 -0
- package/references/questioning.md +162 -0
- package/references/ui-brand.md +160 -0
- package/references/verification-patterns.md +608 -0
- package/skills/agentic-learning/SKILL.md +373 -0
- package/skills/agentic-learning/references/either-or-format.md +161 -0
- package/skills/agentic-learning/references/learning-science.md +190 -0
- package/skills/agentic-learning/references/struggle-ladder.md +140 -0
- package/skills/impeccable/SKILL.md +125 -0
- package/skills/impeccable/adapt/SKILL.md +199 -0
- package/skills/impeccable/animate/SKILL.md +190 -0
- package/skills/impeccable/audit/SKILL.md +129 -0
- package/skills/impeccable/bolder/SKILL.md +132 -0
- package/skills/impeccable/clarify/SKILL.md +180 -0
- package/skills/impeccable/colorize/SKILL.md +158 -0
- package/skills/impeccable/critique/SKILL.md +118 -0
- package/skills/impeccable/delight/SKILL.md +317 -0
- package/skills/impeccable/distill/SKILL.md +137 -0
- package/skills/impeccable/extract/SKILL.md +95 -0
- package/skills/impeccable/frontend-design/SKILL.md +127 -0
- package/skills/impeccable/frontend-design/reference/color-and-contrast.md +132 -0
- package/skills/impeccable/frontend-design/reference/interaction-design.md +123 -0
- package/skills/impeccable/frontend-design/reference/motion-design.md +99 -0
- package/skills/impeccable/frontend-design/reference/responsive-design.md +114 -0
- package/skills/impeccable/frontend-design/reference/spatial-design.md +100 -0
- package/skills/impeccable/frontend-design/reference/typography.md +131 -0
- package/skills/impeccable/frontend-design/reference/ux-writing.md +107 -0
- package/skills/impeccable/harden/SKILL.md +358 -0
- package/skills/impeccable/normalize/SKILL.md +67 -0
- package/skills/impeccable/onboard/SKILL.md +243 -0
- package/skills/impeccable/optimize/SKILL.md +269 -0
- package/skills/impeccable/polish/SKILL.md +202 -0
- package/skills/impeccable/quieter/SKILL.md +118 -0
- package/skills/impeccable/teach-impeccable/SKILL.md +69 -0
- package/templates/agents.md +166 -0
- package/templates/config.json +22 -0
- package/templates/context.md +72 -0
- package/templates/plan.md +202 -0
- package/templates/project.md +184 -0
- package/templates/requirements.md +231 -0
- package/templates/state.md +176 -0
- package/templates/uat.md +80 -0
package/README.md
ADDED
|
@@ -0,0 +1,791 @@
|
|
|
1
|
+
# learnship
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/FavioVazquez/learnship/actions/workflows/ci.yml"><img src="https://github.com/FavioVazquez/learnship/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
|
|
7
|
+
<a href="https://github.com/FavioVazquez/learnship/releases/latest"><img src="https://img.shields.io/github/v/release/FavioVazquez/learnship?color=3b82f6&label=release" alt="Latest release"></a>
|
|
8
|
+
<a href="https://faviovazquez.github.io/learnship/"><img src="https://img.shields.io/badge/docs-faviovazquez.github.io%2Flearnship-2563eb" alt="Documentation"></a>
|
|
9
|
+
<a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-22c55e.svg" alt="License: MIT"></a>
|
|
10
|
+
<a href="https://github.com/FavioVazquez/learnship/stargazers"><img src="https://img.shields.io/github/stars/FavioVazquez/learnship?style=flat&color=f59e0b" alt="Stars"></a>
|
|
11
|
+
<a href="https://www.npmjs.com/package/learnship"><img src="https://img.shields.io/npm/v/learnship?color=cb3837&label=npm" alt="npm"></a>
|
|
12
|
+
<img src="https://img.shields.io/badge/platforms-6-0ea5e9" alt="6 platforms">
|
|
13
|
+
<img src="https://img.shields.io/badge/workflows-42-3b82f6" alt="42 workflows">
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<strong>Agentic engineering done right.</strong><br>
|
|
18
|
+
<a href="https://faviovazquez.github.io/learnship/">📚 Full Docs</a> ·
|
|
19
|
+
<a href="#-get-started-in-30-seconds">Get Started</a> ·
|
|
20
|
+
<a href="#-how-it-works">How it works</a> ·
|
|
21
|
+
<a href="#-the-phase-loop">Phase Loop</a> ·
|
|
22
|
+
<a href="#-workflow-reference--advanced">All Workflows</a> ·
|
|
23
|
+
<a href="#-configuration">Configuration</a> ·
|
|
24
|
+
<a href="CONTRIBUTING.md">Contributing</a> ·
|
|
25
|
+
<a href="CHANGELOG.md">Changelog</a>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## What is learnship?
|
|
31
|
+
|
|
32
|
+
learnship is an **agent harness** for anyone who wants to build, learn, and ship real products using AI agents. It's the scaffolding that makes your AI coding agent actually reliable across real projects.
|
|
33
|
+
|
|
34
|
+
Every serious AI coding tool (Claude Code, Cursor, Manus, Devin) converges on the same architecture: a simple execution loop wraps the model, and the **harness** decides what information reaches the model, when, and how. The model is interchangeable. The harness is the product.
|
|
35
|
+
|
|
36
|
+
learnship gives you that harness as a portable, open-source layer that runs inside Windsurf, Claude Code, Cursor, OpenCode, Gemini CLI, or Codex CLI and adds three things your agent doesn't have by default:
|
|
37
|
+
|
|
38
|
+
- **Persistent memory.** `/new-project` generates an `AGENTS.md` at your project root. Windsurf, Claude Code, and Cursor load it automatically every session; on other platforms the workflows reference it explicitly. No more repeating yourself.
|
|
39
|
+
- **Structured process.** A repeatable phase loop (Discuss → Plan → Execute → Verify) with spec-driven plans, wave-ordered execution, and UAT-driven verification. The harness controls what context reaches the agent at each step.
|
|
40
|
+
- **Built-in learning.** Neuroscience-backed checkpoints at every phase transition so you understand what you shipped, not just that you shipped it.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## What problem does it solve?
|
|
45
|
+
|
|
46
|
+
If you've used AI coding assistants for more than a few sessions, you've hit this wall:
|
|
47
|
+
|
|
48
|
+
> The agent forgets everything. Each session starts from scratch. Decisions get repeated. Code quality drifts. You ship fast but understand less. The more you rely on the AI, the less you own the outcome.
|
|
49
|
+
|
|
50
|
+
This is a **harness problem**, not a model problem. Research shows the same model on the same benchmark scores 42% with one scaffold and 78% with another. Cursor's lazy context loading cuts token usage by 47%. Vercel deleted 80% of their agent's tools and watched it go from failing tasks to completing them. Same model. The only variable is the harness.
|
|
51
|
+
|
|
52
|
+
learnship solves this with **progressive disclosure**, the pattern that separates working agents from impressive demos. Context is revealed incrementally, not dumped upfront. The right files, decisions, and phase context reach the agent exactly when needed, nothing more.
|
|
53
|
+
|
|
54
|
+
| Without learnship | With learnship |
|
|
55
|
+
|-------------------|----------------|
|
|
56
|
+
| Context resets every session | `AGENTS.md` loaded automatically every conversation |
|
|
57
|
+
| Ad-hoc prompts, unpredictable results | Spec-driven plans, verifiable deliverables |
|
|
58
|
+
| Architectural decisions get forgotten | `DECISIONS.md` tracked and honored by the agent |
|
|
59
|
+
| Everything dumped into context at once | Phase-scoped context: only what this step needs |
|
|
60
|
+
| You ship code you don't fully understand | Learning checkpoints build real understanding at every step |
|
|
61
|
+
| UI looks generic, AI-generated | `impeccable` design system prevents AI aesthetic slop |
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## Who is it for?
|
|
66
|
+
|
|
67
|
+
learnship is built for **anyone who wants to build and ship real products with AI agents**, not just developers. If you're a founder, designer, researcher, or maker who uses AI tools to build things, this is for you.
|
|
68
|
+
|
|
69
|
+
It's the right tool if:
|
|
70
|
+
|
|
71
|
+
- You're **building a real project** (not just experimenting) and want the AI to stay aligned across sessions
|
|
72
|
+
- You're **learning while building** and want to actually understand what gets shipped
|
|
73
|
+
- You care about **code quality and UI quality** beyond "it works"
|
|
74
|
+
- You want **parallel agent execution** on Claude Code, OpenCode, or Gemini CLI to ship phases faster
|
|
75
|
+
- You've felt the frustration of **context loss**: repeating yourself every session while the agent forgets past decisions
|
|
76
|
+
|
|
77
|
+
It's probably overkill if you just need one-off scripts or quick fixes. Use `/quick` for that.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## ⚡ Get Started in 30 Seconds
|
|
82
|
+
|
|
83
|
+
### 1. Install
|
|
84
|
+
|
|
85
|
+

|
|
86
|
+
|
|
87
|
+
**Via npm (all platforms — recommended):**
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npx learnship
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
The installer auto-detects your platform. Choose **global** (all projects) or **local** (current project only):
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npx learnship --global # all projects
|
|
97
|
+
npx learnship --local # this project only
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Via platform marketplace (no terminal required):**
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
# Claude Code — community marketplace
|
|
104
|
+
/plugin marketplace add FavioVazquez/learnship-marketplace
|
|
105
|
+
/plugin install learnship@learnship-marketplace
|
|
106
|
+
|
|
107
|
+
# Cursor — after marketplace approval
|
|
108
|
+
/add-plugin learnship
|
|
109
|
+
|
|
110
|
+
# Gemini CLI — native extension
|
|
111
|
+
gemini extensions install https://github.com/FavioVazquez/learnship
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Or specify your platform explicitly. See [Platform Support](#-platform-support) below.
|
|
115
|
+
|
|
116
|
+
### Why `npx learnship`?
|
|
117
|
+
|
|
118
|
+
learnship v1.9.0 is published to npm — `npx learnship` pulls the latest release directly. No `github:` prefix, no clone needed, no version pinning. The same `bin/install.js` runs regardless of whether you install via npm, marketplace, or native extension.
|
|
119
|
+
|
|
120
|
+
### 2. Start your AI agent and type
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
/ls
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
(or the platform equivalent; see the table below). `/ls` detects whether you have a project, walks you through starting one if not, or tells you exactly where you are and what to do next.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 📚 Documentation
|
|
131
|
+
|
|
132
|
+
The full documentation site is at **[faviovazquez.github.io/learnship](https://faviovazquez.github.io/learnship/)**, built with MkDocs Material and deployed automatically on every release.
|
|
133
|
+
|
|
134
|
+
What's covered:
|
|
135
|
+
|
|
136
|
+
- **[Getting Started](https://faviovazquez.github.io/learnship/getting-started/installation/)**: install commands, first project walkthrough, the 5 commands you need to know
|
|
137
|
+
- **[Platform Guide](https://faviovazquez.github.io/learnship/platform-guide/windsurf/)**: dedicated pages for Windsurf, Claude Code, Cursor, OpenCode, Gemini CLI, and Codex CLI
|
|
138
|
+
- **[Core Concepts](https://faviovazquez.github.io/learnship/core-concepts/phase-loop/)**: phase loop, context engineering, planning artifacts, agentic vs vibe coding
|
|
139
|
+
- **[Skills](https://faviovazquez.github.io/learnship/skills/agentic-learning/)**: all 11 `@agentic-learning` actions and all 18 `impeccable` design commands
|
|
140
|
+
- **[Workflow Reference](https://faviovazquez.github.io/learnship/workflow-reference/core/)**: all 42 workflows documented with when and why to use each
|
|
141
|
+
- **[Configuration](https://faviovazquez.github.io/learnship/configuration/)**: full `.planning/config.json` schema, speed presets, parallelization
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 🌐 Platform Support
|
|
146
|
+
|
|
147
|
+
learnship works on **6 platforms**. Pick your tool:
|
|
148
|
+
|
|
149
|
+
| Platform | Install command | Invoke commands as |
|
|
150
|
+
|----------|----------------|-------------------|
|
|
151
|
+
| **Windsurf** | `npx learnship --windsurf --global` | `/ls`, `/new-project` |
|
|
152
|
+
| **Claude Code** | `npx learnship --claude --global` | `/learnship:ls`, `/learnship:new-project` |
|
|
153
|
+
| **Cursor** | `/add-plugin learnship` *(after marketplace approval)* | `@learnship` rules load automatically |
|
|
154
|
+
| **OpenCode** | `npx learnship --opencode --global` | `/learnship-ls`, `/learnship-new-project` |
|
|
155
|
+
| **Gemini CLI** | `npx learnship --gemini --global` | `/learnship:ls`, `/learnship:new-project` |
|
|
156
|
+
| **Codex CLI** | `npx learnship --codex --global` | `$learnship-ls`, `$learnship-new-project` |
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# All platforms at once
|
|
160
|
+
npx learnship --all --global
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
### 🤖 Platform capabilities
|
|
164
|
+
|
|
165
|
+
Each platform gets the best experience it supports:
|
|
166
|
+
|
|
167
|
+
| Feature | Windsurf | Claude Code | OpenCode | Gemini CLI | Codex CLI |
|
|
168
|
+
|---------|----------|-------------|----------|------------|-----------|
|
|
169
|
+
| Slash commands | ✓ | ✓ | ✓ | ✓ | `$skills` |
|
|
170
|
+
| Real parallel subagents | — | ✓ | ✓ | ✓ | ✓ |
|
|
171
|
+
| Parallel wave execution | — | ✓ opt-in | ✓ opt-in | ✓ | ✓ opt-in |
|
|
172
|
+
| Specialist agent pool | — | ✓ | ✓ | ✓ | ✓ |
|
|
173
|
+
| Skills (native `@invoke`) | ✓ | — | — | — | — |
|
|
174
|
+
| Skills (context files) | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
175
|
+
|
|
176
|
+
**What "parallel subagents" means:** On Claude Code, OpenCode, and Codex, `execute-phase` can spawn a dedicated executor agent per plan within a wave, each with its own full 200k context budget. Plans in the same wave run in parallel. Enable with `"parallelization": true` in `.planning/config.json`. All platforms default to sequential (always safe).
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## 🗺️ The 5 Commands You Actually Need
|
|
181
|
+
|
|
182
|
+

|
|
183
|
+
|
|
184
|
+
learnship has 42 workflows. You don't need to know them all. Start with these five and everything else surfaces naturally from `/ls`.
|
|
185
|
+
|
|
186
|
+
| Command | What it does | When to use |
|
|
187
|
+
|---------|-------------|-------------|
|
|
188
|
+
| `/ls` | Show status, recent work, and next step (and offer to run it) | **Start every session here** |
|
|
189
|
+
| `/next` | Read state and immediately run the right next workflow | When you just want to keep moving |
|
|
190
|
+
| `/new-project` | Full init: questions → research → requirements → roadmap | Starting a new project |
|
|
191
|
+
| `/quick "..."` | One-off task with atomic commits, no planning ceremony | Small fixes, experiments |
|
|
192
|
+
| `/help` | All 42 workflows organized by category | Discovering capabilities |
|
|
193
|
+
|
|
194
|
+
> **Tip:** `/ls` works for both new and returning users. New user with no project? It explains learnship and offers to run `/new-project`. Returning user? It shows your progress and suggests exactly what to do next.
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## 🔄 The Phase Loop
|
|
199
|
+
|
|
200
|
+

|
|
201
|
+
|
|
202
|
+
Once you have a project, every feature ships through the same four-step loop:
|
|
203
|
+
|
|
204
|
+
```mermaid
|
|
205
|
+
flowchart LR
|
|
206
|
+
DP["/discuss-phase N<br/>Capture decisions"]
|
|
207
|
+
PP["/plan-phase N<br/>Research + plans"]
|
|
208
|
+
EP["/execute-phase N<br/>Build + commit"]
|
|
209
|
+
VW["/verify-work N<br/>UAT + diagnose"]
|
|
210
|
+
|
|
211
|
+
DP --> PP --> EP --> VW
|
|
212
|
+
VW -->|"next phase"| DP
|
|
213
|
+
VW -->|"all done"| DONE["✓ /complete-milestone"]
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
| Step | Command | What happens |
|
|
217
|
+
|------|---------|-------------|
|
|
218
|
+
| **1. Discuss** | `/discuss-phase N` | You and the agent align on implementation decisions before any code |
|
|
219
|
+
| **2. Plan** | `/plan-phase N` | Agent researches the domain, creates executable plans, verifies them |
|
|
220
|
+
| **3. Execute** | `/execute-phase N` | Plans run in dependency order, one atomic commit per task |
|
|
221
|
+
| **4. Verify** | `/verify-work N` | You do UAT; agent diagnoses any gaps and creates fix plans |
|
|
222
|
+
|
|
223
|
+
**Just starting?** `/ls` or `/next` will route you into the right step automatically.
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
## 🏗️ How It Works
|
|
228
|
+
|
|
229
|
+

|
|
230
|
+
|
|
231
|
+
Three integrated layers that reinforce each other:
|
|
232
|
+
|
|
233
|
+
| Layer | What it does |
|
|
234
|
+
|-------|-------------|
|
|
235
|
+
| **Workflow Engine** | Spec-driven phases → context-engineered plans → wave-ordered execution → verified delivery |
|
|
236
|
+
| **Learning Partner** | Neuroscience-backed checkpoints at every phase transition: retrieval, reflection, spacing, struggle |
|
|
237
|
+
| **Design System** | 18 impeccable steering commands for production-grade UI: `/audit`, `/critique`, `/polish`, and more |
|
|
238
|
+
|
|
239
|
+
```mermaid
|
|
240
|
+
graph LR
|
|
241
|
+
WE["Workflow Engine<br/>Spec-driven phases<br/>Context-engineered plans<br/>Atomic execution"] --> LP["Learning Partner<br/>Neuroscience-backed<br/>Woven into workflows<br/>Builds real understanding"]
|
|
242
|
+
WE --> DS["Design System<br/>Production-grade UI<br/>Impeccable aesthetics<br/>Anti-AI-slop standards"]
|
|
243
|
+
LP --> DS
|
|
244
|
+
DS --> LP
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
---
|
|
248
|
+
|
|
249
|
+
## 🆚 Agentic Engineering vs Vibe Coding
|
|
250
|
+
|
|
251
|
+

|
|
252
|
+
|
|
253
|
+
| | Vibe coding | Agentic engineering |
|
|
254
|
+
|-|------------|--------------------|
|
|
255
|
+
| **Context** | Resets every session | Engineered into every agent call |
|
|
256
|
+
| **Decisions** | Implicit, forgotten | Tracked in `DECISIONS.md`, honored by the agent |
|
|
257
|
+
| **Plans** | Ad-hoc prompts | Spec-driven, verifiable, wave-ordered |
|
|
258
|
+
| **Outcome** | Code you shipped | Code you shipped **and understand** |
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
## 🧠 Context Engineering
|
|
263
|
+
|
|
264
|
+

|
|
265
|
+
|
|
266
|
+
Every agent invocation in learnship is loaded with structured context. Nothing is guessed:
|
|
267
|
+
|
|
268
|
+
```mermaid
|
|
269
|
+
flowchart LR
|
|
270
|
+
subgraph CONTEXT["Loaded into every agent call"]
|
|
271
|
+
A["AGENTS.md<br/>Project soul + current phase"]
|
|
272
|
+
B["REQUIREMENTS.md<br/>What we're building"]
|
|
273
|
+
C["DECISIONS.md<br/>Every architectural choice"]
|
|
274
|
+
D["Phase CONTEXT.md<br/>Implementation preferences"]
|
|
275
|
+
end
|
|
276
|
+
CONTEXT --> AGENT["AI Agent"]
|
|
277
|
+
AGENT --> P["Executable PLAN.md"]
|
|
278
|
+
AGENT --> S["Commits + SUMMARY.md"]
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
## 🗂️ AGENTS.md: Persistent Project Memory
|
|
284
|
+
|
|
285
|
+

|
|
286
|
+
|
|
287
|
+
`/new-project` generates an `AGENTS.md` at your project root. On Windsurf, Claude Code, and Cursor it is loaded automatically every session as a project rule. On OpenCode, Gemini CLI, and Codex CLI the learnship workflows reference it explicitly. Either way, the agent always knows the project, current phase, tech stack, and past decisions without you repeating yourself.
|
|
288
|
+
|
|
289
|
+
```
|
|
290
|
+
AGENTS.md ← your AI agent reads this every conversation
|
|
291
|
+
├── Soul & Principles # Pair-programmer framing, 10 working principles
|
|
292
|
+
├── Platform Context # Points to .planning/, explains the phase loop
|
|
293
|
+
├── Current Phase # Updated automatically by workflows
|
|
294
|
+
├── Project Structure # Filled during new-project from your answers
|
|
295
|
+
├── Tech Stack # Filled from research results
|
|
296
|
+
└── Regressions # Updated by /debug when bugs are fixed
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## 📖 Workflow Reference: Advanced
|
|
302
|
+
|
|
303
|
+
> These are all 42 workflows. Most users discover them naturally from `/ls`. Scan this when you want to know if a specific capability exists.
|
|
304
|
+
|
|
305
|
+
### Core Workflow
|
|
306
|
+
|
|
307
|
+
| Workflow | Purpose | When to use |
|
|
308
|
+
|----------|---------|-------------|
|
|
309
|
+
| `/new-project` | Full init: questions → research → requirements → roadmap | Start of any new project |
|
|
310
|
+
| `/discuss-phase [N]` | Capture implementation decisions before planning | Before every phase |
|
|
311
|
+
| `/plan-phase [N]` | Research + create + verify plans | After discussing a phase |
|
|
312
|
+
| `/execute-phase [N]` | Wave-ordered execution of all plans | After planning |
|
|
313
|
+
| `/verify-work [N]` | Manual UAT with auto-diagnosis and fix planning | After execution |
|
|
314
|
+
| `/complete-milestone` | Archive milestone, tag release, prepare next | All phases verified |
|
|
315
|
+
| `/audit-milestone` | Pre-release: requirement coverage, stub detection | Before completing milestone |
|
|
316
|
+
| `/new-milestone [name]` | Start next version cycle | After completing a milestone |
|
|
317
|
+
|
|
318
|
+
### Navigation
|
|
319
|
+
|
|
320
|
+
| Workflow | Purpose | When to use |
|
|
321
|
+
|----------|---------|-------------|
|
|
322
|
+
| `/ls` | Status + next step + offer to run it | Start every session here |
|
|
323
|
+
| `/next` | Auto-pilot: reads state and runs the right workflow | When you just want to keep moving |
|
|
324
|
+
| `/progress` | Same as `/ls`: status overview with smart routing | "Where am I?" |
|
|
325
|
+
| `/resume-work` | Restore full context from last session | Starting a new session |
|
|
326
|
+
| `/pause-work` | Save handoff file mid-phase | Stopping mid-phase |
|
|
327
|
+
| `/quick [description]` | Ad-hoc task with full guarantees | Bug fixes, small features |
|
|
328
|
+
| `/help` | Show all available workflows | Quick command reference |
|
|
329
|
+
|
|
330
|
+
### Phase Management
|
|
331
|
+
|
|
332
|
+
| Workflow | Purpose | When to use |
|
|
333
|
+
|----------|---------|-------------|
|
|
334
|
+
| `/add-phase` | Append new phase to roadmap | Scope grows after planning |
|
|
335
|
+
| `/insert-phase [N]` | Insert urgent work between phases | Urgent fix mid-milestone |
|
|
336
|
+
| `/remove-phase [N]` | Remove future phase and renumber | Descoping a feature |
|
|
337
|
+
| `/research-phase [N]` | Deep research only, no plans yet | Complex/unfamiliar domain |
|
|
338
|
+
| `/list-phase-assumptions [N]` | Preview intended approach before planning | Validate direction |
|
|
339
|
+
| `/plan-milestone-gaps` | Create phases for audit gaps | After audit finds missing items |
|
|
340
|
+
|
|
341
|
+
### Brownfield, Discovery & Debugging
|
|
342
|
+
|
|
343
|
+
| Workflow | Purpose | When to use |
|
|
344
|
+
|----------|---------|-------------|
|
|
345
|
+
| `/map-codebase` | Analyze existing codebase | Before `/new-project` on existing code |
|
|
346
|
+
| `/discovery-phase [N]` | Map unfamiliar code area before planning | Entering complex/unfamiliar territory |
|
|
347
|
+
| `/debug [description]` | Systematic triage → diagnose → fix | When something breaks |
|
|
348
|
+
| `/diagnose-issues [N]` | Batch-diagnose all UAT issues by root cause | After verify-work finds multiple issues |
|
|
349
|
+
| `/execute-plan [N] [id]` | Run a single plan in isolation | Re-running a failed plan |
|
|
350
|
+
| `/add-todo [description]` | Capture an idea without breaking flow | Think of something mid-session |
|
|
351
|
+
| `/check-todos` | Review and act on captured todos | Reviewing accumulated ideas |
|
|
352
|
+
| `/add-tests` | Generate test coverage post-execution | After executing a phase |
|
|
353
|
+
| `/validate-phase [N]` | Retroactive test coverage audit | After hotfixes or legacy phases |
|
|
354
|
+
|
|
355
|
+
### Decision Intelligence
|
|
356
|
+
|
|
357
|
+
| Workflow | Purpose | When to use |
|
|
358
|
+
|----------|---------|-------------|
|
|
359
|
+
| `/decision-log [description]` | Capture decision with context and alternatives | After any significant architectural choice |
|
|
360
|
+
| `/knowledge-base` | Aggregate all decisions and lessons into one file | Before starting a new milestone |
|
|
361
|
+
| `/knowledge-base search [query]` | Search the project knowledge base | When you need to recall why something was built a certain way |
|
|
362
|
+
|
|
363
|
+
### Milestone Intelligence
|
|
364
|
+
|
|
365
|
+
| Workflow | Purpose | When to use |
|
|
366
|
+
|----------|---------|-------------|
|
|
367
|
+
| `/discuss-milestone [version]` | Capture goals, anti-goals before planning | Before `/new-milestone` |
|
|
368
|
+
| `/milestone-retrospective` | 5-question retrospective + spaced review | After `/complete-milestone` |
|
|
369
|
+
| `/transition` | Write full handoff document for new session/collaborator | Before handing off or long break |
|
|
370
|
+
|
|
371
|
+
### Maintenance
|
|
372
|
+
|
|
373
|
+
| Workflow | Purpose | When to use |
|
|
374
|
+
|----------|---------|-------------|
|
|
375
|
+
| `/settings` | Interactive config editor | Change mode, toggle agents |
|
|
376
|
+
| `/set-profile [quality\|balanced\|budget]` | One-step model profile switch | Quick cost/quality adjustment |
|
|
377
|
+
| `/health` | Project health check | Stale files, missing artifacts |
|
|
378
|
+
| `/cleanup` | Archive old artifacts | End of milestone |
|
|
379
|
+
| `/update` | Update the platform itself | Check for new workflows |
|
|
380
|
+
| `/reapply-patches` | Restore local edits after update | After `/update` if you had local changes |
|
|
381
|
+
|
|
382
|
+
---
|
|
383
|
+
|
|
384
|
+
## ⚙️ Configuration
|
|
385
|
+
|
|
386
|
+
Project settings live in `.planning/config.json`. Set during `/new-project` or edit with `/settings`.
|
|
387
|
+
|
|
388
|
+
### Full Schema
|
|
389
|
+
|
|
390
|
+
```json
|
|
391
|
+
{
|
|
392
|
+
"mode": "yolo",
|
|
393
|
+
"granularity": "standard",
|
|
394
|
+
"model_profile": "balanced",
|
|
395
|
+
"learning_mode": "auto",
|
|
396
|
+
"planning": {
|
|
397
|
+
"commit_docs": true,
|
|
398
|
+
"search_gitignored": false
|
|
399
|
+
},
|
|
400
|
+
"workflow": {
|
|
401
|
+
"research": true,
|
|
402
|
+
"plan_check": true,
|
|
403
|
+
"verifier": true,
|
|
404
|
+
"nyquist_validation": true
|
|
405
|
+
},
|
|
406
|
+
"git": {
|
|
407
|
+
"branching_strategy": "none",
|
|
408
|
+
"phase_branch_template": "phase-{phase}-{slug}",
|
|
409
|
+
"milestone_branch_template": "{milestone}-{slug}"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
### Core Settings
|
|
415
|
+
|
|
416
|
+
| Setting | Options | Default | What it controls |
|
|
417
|
+
|---------|---------|---------|-----------------|
|
|
418
|
+
| `mode` | `yolo`, `interactive` | `yolo` | `yolo` auto-approves steps; `interactive` confirms at each decision |
|
|
419
|
+
| `granularity` | `coarse`, `standard`, `fine` | `standard` | Phase size: 3-5 / 5-8 / 8-12 phases |
|
|
420
|
+
| `model_profile` | `quality`, `balanced`, `budget` | `balanced` | Agent model tier (see table below) |
|
|
421
|
+
| `learning_mode` | `auto`, `manual` | `auto` | `auto` offers learning at checkpoints; `manual` requires explicit invocation |
|
|
422
|
+
|
|
423
|
+
### Workflow Toggles
|
|
424
|
+
|
|
425
|
+
| Setting | Default | What it controls |
|
|
426
|
+
|---------|---------|-----------------|
|
|
427
|
+
| `workflow.research` | `true` | Domain research before planning each phase |
|
|
428
|
+
| `workflow.plan_check` | `true` | Plan verification loop (up to 3 iterations) |
|
|
429
|
+
| `workflow.verifier` | `true` | Post-execution verification against phase goals |
|
|
430
|
+
| `workflow.nyquist_validation` | `true` | Test coverage mapping during plan-phase |
|
|
431
|
+
|
|
432
|
+
### Git Branching
|
|
433
|
+
|
|
434
|
+
| `branching_strategy` | Creates branch | Best for |
|
|
435
|
+
|---------------------|---------------|---------|
|
|
436
|
+
| `none` | Never | Solo dev, simple projects |
|
|
437
|
+
| `phase` | At each `execute-phase` | Code review per phase |
|
|
438
|
+
| `milestone` | At first `execute-phase` | Release branches, PR per version |
|
|
439
|
+
|
|
440
|
+
### Model Profiles
|
|
441
|
+
|
|
442
|
+
| Agent | `quality` | `balanced` | `budget` |
|
|
443
|
+
|-------|-----------|------------|----------|
|
|
444
|
+
| Planner | large | large | medium |
|
|
445
|
+
| Executor | large | medium | medium |
|
|
446
|
+
| Phase Researcher | large | medium | small |
|
|
447
|
+
| Project Researcher | large | medium | small |
|
|
448
|
+
| Verifier | medium | medium | small |
|
|
449
|
+
| Plan Checker | medium | medium | small |
|
|
450
|
+
| Debugger | large | medium | medium |
|
|
451
|
+
| Codebase Mapper | medium | small | small |
|
|
452
|
+
|
|
453
|
+
> **Platform note:** `large` = Claude Opus / Gemini 2.5 Pro / GPT-4o, `medium` = Claude Sonnet / Gemini 2.0 Flash, `small` = Claude Haiku / Gemini Flash Lite. Exact model used depends on your platform.
|
|
454
|
+
|
|
455
|
+
### Speed vs. Quality Presets
|
|
456
|
+
|
|
457
|
+
| Scenario | `mode` | `granularity` | `model_profile` | Research | Plan Check | Verifier |
|
|
458
|
+
|----------|--------|--------------|----------------|----------|------------|---------|
|
|
459
|
+
| Prototyping | `yolo` | `coarse` | `budget` | off | off | off |
|
|
460
|
+
| Normal dev | `yolo` | `standard` | `balanced` | on | on | on |
|
|
461
|
+
| Production | `interactive` | `fine` | `quality` | on | on | on |
|
|
462
|
+
|
|
463
|
+
---
|
|
464
|
+
|
|
465
|
+
## 🧩 Learning Partner
|
|
466
|
+
|
|
467
|
+
The learning partner is woven into the platform, not bolted on. It fires at natural workflow transitions to build genuine understanding, not just fluent answers.
|
|
468
|
+
|
|
469
|
+
### How it fires
|
|
470
|
+
|
|
471
|
+
```
|
|
472
|
+
learning_mode: "auto" → offered automatically at checkpoints (default)
|
|
473
|
+
learning_mode: "manual" → only when you explicitly invoke @agentic-learning
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### All 11 actions
|
|
477
|
+
|
|
478
|
+
| Action | Trigger | What it does |
|
|
479
|
+
|--------|---------|-------------|
|
|
480
|
+
| `@agentic-learning learn [topic]` | Any time | Active retrieval: explain before seeing, then fill gaps |
|
|
481
|
+
| `@agentic-learning quiz [topic]` | Any time | 3-5 questions, one at a time, formative feedback |
|
|
482
|
+
| `@agentic-learning reflect` | After `execute-phase` | Three-question structured reflection: learned / goal / gaps |
|
|
483
|
+
| `@agentic-learning space` | After `verify-work` | Schedule concepts for spaced review → writes `docs/revisit.md` |
|
|
484
|
+
| `@agentic-learning brainstorm [topic]` | After `new-project` | Collaborative design dialogue before any code |
|
|
485
|
+
| `@agentic-learning struggle [topic]` | During `quick` | Hint ladder: try first, reveal only when needed |
|
|
486
|
+
| `@agentic-learning either-or` | After `discuss-phase` | Decision journal: paths considered, choice, rationale |
|
|
487
|
+
| `@agentic-learning explain-first` | Any time | Oracy exercise: you explain, agent gives structured feedback |
|
|
488
|
+
| `@agentic-learning explain [topic]` | Any time | Project comprehension log → writes `docs/project-knowledge.md` |
|
|
489
|
+
| `@agentic-learning interleave` | Any time | Mixed retrieval across multiple topics |
|
|
490
|
+
| `@agentic-learning cognitive-load [topic]` | After `plan-phase` | Decompose overwhelming scope into working-memory steps |
|
|
491
|
+
|
|
492
|
+
**Core principle:** Fluent answers from an AI are not the same as learning. Every action makes you do the cognitive work, with support rather than shortcuts.
|
|
493
|
+
|
|
494
|
+
### Skills across platforms
|
|
495
|
+
|
|
496
|
+
| Platform | How `agentic-learning` works |
|
|
497
|
+
|----------|-----------------------------|
|
|
498
|
+
| **Windsurf** | Native skill: invoke with `@agentic-learning learn`, `@agentic-learning quiz`, etc. |
|
|
499
|
+
| **Claude Code, OpenCode, Gemini CLI, Codex CLI** | Installed as a context file in `learnship/skills/agentic-learning/`. The AI reads and applies the techniques automatically. Reference it explicitly with `use the agentic-learning skill` or just work normally and it activates at checkpoints. |
|
|
500
|
+
|
|
501
|
+
---
|
|
502
|
+
|
|
503
|
+
## 🎨 Design System
|
|
504
|
+
|
|
505
|
+
The **impeccable** skill suite is always active as project context for any UI work. It provides design direction, anti-patterns, and 17 steering commands that prevent generic AI aesthetics. Based on [@pbakaus/impeccable](https://github.com/pbakaus/impeccable).
|
|
506
|
+
|
|
507
|
+
### Commands
|
|
508
|
+
|
|
509
|
+
| Command | What it does |
|
|
510
|
+
|---------|-------------|
|
|
511
|
+
| `/teach-impeccable` | One-time setup: gathers project design context and saves persistent guidelines |
|
|
512
|
+
| `/audit` | Comprehensive audit: accessibility, performance, theming, responsive design |
|
|
513
|
+
| `/critique` | UX critique: visual hierarchy, information architecture, emotional resonance |
|
|
514
|
+
| `/polish` | Final quality pass: alignment, spacing, consistency before shipping |
|
|
515
|
+
| `/normalize` | Normalize design to match your design system for consistency |
|
|
516
|
+
| `/colorize` | Add strategic color to monochromatic or flat interfaces |
|
|
517
|
+
| `/animate` | Add purposeful animations and micro-interactions |
|
|
518
|
+
| `/bolder` | Amplify safe or boring designs for more visual impact |
|
|
519
|
+
| `/quieter` | Tone down overly aggressive designs to reduce intensity and gain refinement |
|
|
520
|
+
| `/distill` | Strip to essence: remove complexity, clarify what matters |
|
|
521
|
+
| `/clarify` | Improve UX copy, error messages, microcopy, labels |
|
|
522
|
+
| `/optimize` | Performance: loading speed, rendering, animations, bundle size |
|
|
523
|
+
| `/harden` | Resilience: error handling, i18n, text overflow, edge cases |
|
|
524
|
+
| `/delight` | Add moments of joy and personality that make interfaces memorable |
|
|
525
|
+
| `/extract` | Extract reusable components and design tokens into your design system |
|
|
526
|
+
| `/adapt` | Adapt designs across screen sizes, devices, and contexts |
|
|
527
|
+
| `/onboard` | Design onboarding flows, empty states, first-time user experiences |
|
|
528
|
+
|
|
529
|
+
**The AI Slop Test:** If you showed the interface to someone and said "AI made this", would they believe you immediately? If yes, that's the problem. Use `/critique` to find out.
|
|
530
|
+
|
|
531
|
+
### learnship integration
|
|
532
|
+
|
|
533
|
+
**Automatic UI standards during `execute-phase`:** When a phase involves UI work, learnship detects it automatically and activates `@impeccable frontend-design` principles before any code is written. You'll see a banner announcing it. The agent then applies typography, color, layout, and component standards across every task in the phase — not as a post-hoc review but as an active constraint during execution.
|
|
534
|
+
|
|
535
|
+
**Post-action milestone recommendation:** After any impeccable action produces recommendations, the agent suggests running `/new-milestone` to create a dedicated "UI Polish" milestone. This turns impeccable findings into versioned, traceable phases with plans and commits — so improvements don't disappear into chat history. Applying directly is always an option too.
|
|
536
|
+
|
|
537
|
+
### Skills across platforms
|
|
538
|
+
|
|
539
|
+
| Platform | How `impeccable` works |
|
|
540
|
+
|----------|-----------------------|
|
|
541
|
+
| **Windsurf** | Native skills: invoke each command directly with `/audit`, `/polish`, `/critique`, etc. |
|
|
542
|
+
| **Claude Code, OpenCode, Gemini CLI, Codex CLI** | Installed as context files in `learnship/skills/impeccable/`. The AI reads design principles and anti-patterns automatically. Reference commands explicitly with `run the /audit impeccable skill` or just ask for UI work and it applies the standards. |
|
|
543
|
+
|
|
544
|
+
---
|
|
545
|
+
|
|
546
|
+
## 💡 Usage Examples
|
|
547
|
+
|
|
548
|
+
### New greenfield project
|
|
549
|
+
|
|
550
|
+
```
|
|
551
|
+
/new-project # Answer questions, configure, approve roadmap
|
|
552
|
+
/discuss-phase 1 # Lock in your implementation preferences
|
|
553
|
+
/plan-phase 1 # Research + plan + verify
|
|
554
|
+
/execute-phase 1 # Wave-ordered execution
|
|
555
|
+
/verify-work 1 # Manual UAT
|
|
556
|
+
# Repeat for each phase
|
|
557
|
+
/audit-milestone # Check everything shipped
|
|
558
|
+
/complete-milestone # Archive, tag, done
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
### Existing codebase (brownfield)
|
|
562
|
+
|
|
563
|
+
```
|
|
564
|
+
/map-codebase # Structured codebase analysis
|
|
565
|
+
/new-project # Questions focus on what you're ADDING
|
|
566
|
+
# Normal phase workflow from here
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
### Quick bug fix
|
|
570
|
+
|
|
571
|
+
```
|
|
572
|
+
/quick "Fix login button not responding on mobile Safari"
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### Quick with discussion + verification
|
|
576
|
+
|
|
577
|
+
```
|
|
578
|
+
/quick --discuss --full "Add dark mode toggle"
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
### Resuming after a break
|
|
582
|
+
|
|
583
|
+
```
|
|
584
|
+
/ls # See where you left off (offers to run next step)
|
|
585
|
+
# or
|
|
586
|
+
/next # Just pick up and go: auto-pilot
|
|
587
|
+
# or
|
|
588
|
+
/resume-work # Full context restoration
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
### Scope change mid-milestone
|
|
592
|
+
|
|
593
|
+
```
|
|
594
|
+
/add-phase # Append new phase to roadmap
|
|
595
|
+
/insert-phase 3 # Insert urgent work between phases 3 and 4
|
|
596
|
+
/remove-phase 7 # Descope phase 7 and renumber
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### Preparing for release
|
|
600
|
+
|
|
601
|
+
```
|
|
602
|
+
/audit-milestone # Check requirement coverage, detect stubs
|
|
603
|
+
/plan-milestone-gaps # If audit found gaps, create phases to close them
|
|
604
|
+
/complete-milestone # Archive, tag, done
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
### Debugging something broken
|
|
608
|
+
|
|
609
|
+
```
|
|
610
|
+
/debug "Login flow fails after password reset"
|
|
611
|
+
```
|
|
612
|
+
|
|
613
|
+
---
|
|
614
|
+
|
|
615
|
+
## 🧭 Decision Intelligence
|
|
616
|
+
|
|
617
|
+
Every project accumulates decisions: architecture choices, library picks, scope trade-offs. The platform tracks them in a structured register so future sessions understand *why* the project is built the way it is.
|
|
618
|
+
|
|
619
|
+
**`.planning/DECISIONS.md`** is the decision register:
|
|
620
|
+
```markdown
|
|
621
|
+
## DEC-001: Use Zustand over Redux
|
|
622
|
+
Date: 2026-03-01 | Phase: 2 | Type: library
|
|
623
|
+
Context: Needed client-side state for dashboard filters
|
|
624
|
+
Options: Zustand (simple, no boilerplate), Redux (complex, overkill for scope)
|
|
625
|
+
Choice: Zustand
|
|
626
|
+
Rationale: 3x less boilerplate, sufficient for current data flow complexity
|
|
627
|
+
Consequences: Locks React as UI framework; migration would require state rewrite
|
|
628
|
+
Status: active
|
|
629
|
+
```
|
|
630
|
+
|
|
631
|
+
**Populated automatically by:**
|
|
632
|
+
- `discuss-phase` surfaces prior decisions before each phase discussion
|
|
633
|
+
- `plan-phase` reads decisions before creating plans (never contradicts active ones)
|
|
634
|
+
- `debug` puts architectural lessons from bugs into the register
|
|
635
|
+
- `decision-log` manually captures any decision from any conversation
|
|
636
|
+
|
|
637
|
+
**Queried by:**
|
|
638
|
+
- `audit-milestone` checks decisions were honored in implementation
|
|
639
|
+
- `knowledge-base` aggregates all decisions into a searchable `KNOWLEDGE.md`
|
|
640
|
+
|
|
641
|
+
---
|
|
642
|
+
|
|
643
|
+
## 📁 Planning Artifacts
|
|
644
|
+
|
|
645
|
+
Every project creates a structured `.planning/` directory:
|
|
646
|
+
|
|
647
|
+
```
|
|
648
|
+
.planning/
|
|
649
|
+
├── config.json # Workflow settings
|
|
650
|
+
├── PROJECT.md # Vision, requirements, key decisions
|
|
651
|
+
├── REQUIREMENTS.md # v1 requirements with REQ-IDs
|
|
652
|
+
├── ROADMAP.md # Phase breakdown with status tracking
|
|
653
|
+
├── STATE.md # Current position, decisions, blockers
|
|
654
|
+
├── DECISIONS.md # Cross-phase decision register
|
|
655
|
+
├── KNOWLEDGE.md # Aggregated lessons (from knowledge-base)
|
|
656
|
+
├── research/ # Domain research from new-project
|
|
657
|
+
│ ├── STACK.md
|
|
658
|
+
│ ├── FEATURES.md
|
|
659
|
+
│ ├── ARCHITECTURE.md
|
|
660
|
+
│ ├── PITFALLS.md
|
|
661
|
+
│ └── SUMMARY.md
|
|
662
|
+
├── codebase/ # Brownfield mapping (from map-codebase)
|
|
663
|
+
│ ├── STACK.md
|
|
664
|
+
│ ├── ARCHITECTURE.md
|
|
665
|
+
│ ├── CONVENTIONS.md
|
|
666
|
+
│ └── CONCERNS.md
|
|
667
|
+
├── todos/
|
|
668
|
+
│ ├── pending/ # Captured ideas awaiting work
|
|
669
|
+
│ └── done/ # Completed todos
|
|
670
|
+
├── debug/ # Active debug sessions
|
|
671
|
+
│ └── resolved/ # Archived debug sessions
|
|
672
|
+
├── quick/
|
|
673
|
+
│ └── 001-slug/ # Quick task artifacts
|
|
674
|
+
│ ├── 001-PLAN.md
|
|
675
|
+
│ ├── 001-SUMMARY.md
|
|
676
|
+
│ └── 001-VERIFICATION.md (if --full)
|
|
677
|
+
└── phases/
|
|
678
|
+
└── 01-phase-name/
|
|
679
|
+
├── 01-CONTEXT.md # Your implementation preferences
|
|
680
|
+
├── 01-DISCOVERY.md # Unfamiliar area mapping (from discovery-phase)
|
|
681
|
+
├── 01-RESEARCH.md # Ecosystem research findings
|
|
682
|
+
├── 01-VALIDATION.md # Test coverage contract (Nyquist)
|
|
683
|
+
├── 01-01-PLAN.md # Executable plan (wave 1)
|
|
684
|
+
├── 01-02-PLAN.md # Executable plan (wave 1, independent)
|
|
685
|
+
├── 01-01-SUMMARY.md # Execution outcomes
|
|
686
|
+
├── 01-UAT.md # User acceptance test results
|
|
687
|
+
└── 01-VERIFICATION.md # Post-execution verification
|
|
688
|
+
```
|
|
689
|
+
|
|
690
|
+
---
|
|
691
|
+
|
|
692
|
+
## 🔧 Troubleshooting
|
|
693
|
+
|
|
694
|
+
### "Project already initialized"
|
|
695
|
+
`/new-project` found `.planning/PROJECT.md` already exists. If you want to start over, delete `.planning/` first. To continue, use `/progress` or `/resume-work`.
|
|
696
|
+
|
|
697
|
+
### Context degradation during long sessions
|
|
698
|
+
Start each major workflow with a fresh context. The platform is designed around fresh context windows; every agent gets a clean slate. Use `/resume-work` or `/progress` to restore state after clearing.
|
|
699
|
+
|
|
700
|
+
### Plans seem wrong or misaligned
|
|
701
|
+
Run `/discuss-phase [N]` before planning. Most plan quality issues come from unresolved gray areas. Run `/list-phase-assumptions [N]` to see the intended approach before committing to a plan.
|
|
702
|
+
|
|
703
|
+
### Execution produces stubs or incomplete code
|
|
704
|
+
Plans with more than 3 tasks are too large for reliable single-context execution. Re-plan with smaller scope: `/plan-phase [N]` with finer granularity.
|
|
705
|
+
|
|
706
|
+
### Lost track of where you are
|
|
707
|
+
Run `/ls`. It reads all state files, shows your progress, and offers to run the next step.
|
|
708
|
+
|
|
709
|
+
### Need to change something after execution
|
|
710
|
+
Use `/quick` for targeted fixes, or `/verify-work` to systematically identify and fix issues through UAT. Do not re-run `/execute-phase` on a phase that already has summaries.
|
|
711
|
+
|
|
712
|
+
### Costs running too high
|
|
713
|
+
Switch to budget profile via `/settings`. Disable research and plan-check for familiar domains. Use `granularity: "coarse"` for fewer, broader phases.
|
|
714
|
+
|
|
715
|
+
### Working on a private/sensitive project
|
|
716
|
+
Set `commit_docs: false` during `/new-project` or via `/settings`. Add `.planning/` to `.gitignore`. Planning artifacts stay local.
|
|
717
|
+
|
|
718
|
+
### Something broke and I don't know why
|
|
719
|
+
Run `/debug "description of what's broken"`. It runs triage → root cause diagnosis → fix planning with a persistent debug session.
|
|
720
|
+
|
|
721
|
+
### Phase passed UAT but has known gaps
|
|
722
|
+
Run `/audit-milestone` to surface all gaps, then `/plan-milestone-gaps` to create fix phases before release.
|
|
723
|
+
|
|
724
|
+
---
|
|
725
|
+
|
|
726
|
+
## 🚑 Recovery Quick Reference
|
|
727
|
+
|
|
728
|
+
| Problem | Solution |
|
|
729
|
+
|---------|----------|
|
|
730
|
+
| Lost context / new session | `/ls` or `/next` |
|
|
731
|
+
| Phase went wrong | `git revert` the phase commits, re-plan |
|
|
732
|
+
| Need to change scope | `/add-phase`, `/insert-phase`, or `/remove-phase` |
|
|
733
|
+
| Milestone audit found gaps | `/plan-milestone-gaps` |
|
|
734
|
+
| Something broke | `/debug "description"` |
|
|
735
|
+
| Quick targeted fix | `/quick` |
|
|
736
|
+
| Plans don't match your vision | `/discuss-phase [N]` then re-plan |
|
|
737
|
+
| Costs running high | `/settings` → budget profile, toggle agents off |
|
|
738
|
+
|
|
739
|
+
---
|
|
740
|
+
|
|
741
|
+
## 📂 Repository Structure
|
|
742
|
+
|
|
743
|
+
```
|
|
744
|
+
learnship/
|
|
745
|
+
├── .windsurf/
|
|
746
|
+
│ ├── workflows/ # 42 workflows as slash commands
|
|
747
|
+
│ └── skills/
|
|
748
|
+
│ ├── agentic-learning/ # Learning partner (SKILL.md + references), native on Windsurf + Claude Code
|
|
749
|
+
│ └── impeccable/ # Design suite: 18 skills, native on Windsurf + Claude Code
|
|
750
|
+
│ ├── frontend-design/ # Base skill + 7 reference files (typography, color, motion…)
|
|
751
|
+
│ ├── audit/ # /audit
|
|
752
|
+
│ ├── critique/ # /critique
|
|
753
|
+
│ ├── polish/ # /polish
|
|
754
|
+
│ └── …14 more/ # /colorize /animate /bolder /quieter /distill /clarify…
|
|
755
|
+
│ # → on OpenCode/Gemini/Codex: both skills copied to learnship/skills/ as context files
|
|
756
|
+
├── commands/ # 42 Claude Code-style slash command wrappers
|
|
757
|
+
│ └── learnship/ # /learnship:ls, /learnship:new-project, etc.
|
|
758
|
+
├── learnship/ # Payload installed into the target platform config dir
|
|
759
|
+
│ ├── workflows/ # 42 workflow markdown files (the actual instructions)
|
|
760
|
+
│ ├── references/ # Reference docs (questioning, verification, git, design, learning)
|
|
761
|
+
│ └── templates/ # Document templates for .planning/ + AGENTS.md template
|
|
762
|
+
├── agents/ # 6 agent personas (planner, researcher, executor, verifier, debugger, plan-checker)
|
|
763
|
+
├── assets/ # Brand images (banner, explainers, diagrams)
|
|
764
|
+
├── bin/
|
|
765
|
+
│ └── install.js # Multi-platform installer (Claude Code, OpenCode, Gemini CLI, Codex CLI, Windsurf)
|
|
766
|
+
├── tests/
|
|
767
|
+
│ └── validate_multiplatform.sh # 94-check test suite
|
|
768
|
+
├── SKILL.md # Meta-skill: platform context loaded by Cascade / AI agents
|
|
769
|
+
├── install.sh # Shell installer wrapper
|
|
770
|
+
├── package.json # npm package (npx learnship)
|
|
771
|
+
├── CHANGELOG.md # Version history
|
|
772
|
+
└── CONTRIBUTING.md # How to extend the platform
|
|
773
|
+
```
|
|
774
|
+
|
|
775
|
+
---
|
|
776
|
+
|
|
777
|
+
## 🙏 Inspiration & Credits
|
|
778
|
+
|
|
779
|
+
**learnship** was built on top of ideas and work from three open-source projects:
|
|
780
|
+
|
|
781
|
+
- **[get-shit-done](https://github.com/davila7/get-shit-done)**: the spec-driven, context-engineered workflow system that inspired the phase lifecycle, planning artifacts, and agent coordination patterns
|
|
782
|
+
- **[agentic-learn](https://github.com/faviovazquez/agentic-learn)**: the learning partner skill whose neuroscience-backed techniques (retrieval, spacing, generation, reflection) power the Learning Partner layer
|
|
783
|
+
- **[impeccable](https://github.com/pbakaus/impeccable)**: the frontend design skill that raised the bar on UI quality standards and powers the Design System layer
|
|
784
|
+
|
|
785
|
+
learnship adapts, combines, and extends these into a unified, multi-platform system. All three are used as inspiration and learnship is original work built on their shoulders.
|
|
786
|
+
|
|
787
|
+
---
|
|
788
|
+
|
|
789
|
+
## License
|
|
790
|
+
|
|
791
|
+
MIT © [Favio Vazquez](https://github.com/FavioVazquez)
|