learnship 1.9.22 → 2.0.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 +2 -2
- package/.cursor-plugin/plugin.json +2 -2
- package/README.md +75 -21
- package/SKILL.md +17 -0
- package/agents/learnship-challenger.md +96 -0
- package/agents/learnship-code-reviewer.md +109 -0
- package/agents/learnship-executor.md +15 -0
- package/agents/learnship-ideation-agent.md +83 -0
- package/agents/learnship-solution-writer.md +140 -0
- package/bin/install.js +100 -48
- package/commands/learnship/challenge.md +22 -0
- package/commands/learnship/compound.md +22 -0
- package/commands/learnship/guard.md +21 -0
- package/commands/learnship/ideate.md +23 -0
- package/commands/learnship/review.md +23 -0
- package/commands/learnship/ship.md +21 -0
- package/commands/learnship/sync-docs.md +21 -0
- package/cursor-rules/learnship.mdc +7 -0
- package/gemini-extension.json +2 -2
- package/learnship/agents/challenger.md +52 -0
- package/learnship/agents/code-reviewer.md +81 -0
- package/learnship/agents/executor.md +15 -0
- package/learnship/agents/ideation-agent.md +54 -0
- package/learnship/agents/plan-checker.md +95 -0
- package/learnship/agents/solution-writer.md +64 -0
- package/learnship/references/model-profiles.md +41 -33
- package/learnship/references/planning-config.md +49 -0
- package/learnship/references/solution-schema.md +159 -0
- package/learnship/templates/agents.md +6 -1
- package/learnship/workflows/challenge.md +189 -0
- package/learnship/workflows/complete-milestone.md +9 -0
- package/learnship/workflows/compound.md +305 -0
- package/learnship/workflows/debug.md +7 -0
- package/learnship/workflows/discuss-milestone.md +5 -0
- package/learnship/workflows/execute-phase.md +24 -0
- package/learnship/workflows/guard.md +164 -0
- package/learnship/workflows/help.md +14 -2
- package/learnship/workflows/ideate.md +182 -0
- package/learnship/workflows/knowledge-base.md +8 -0
- package/learnship/workflows/ls.md +7 -3
- package/learnship/workflows/milestone-retrospective.md +45 -0
- package/learnship/workflows/new-project.md +5 -3
- package/learnship/workflows/next.md +3 -2
- package/learnship/workflows/plan-phase.md +23 -0
- package/learnship/workflows/progress.md +9 -3
- package/learnship/workflows/review.md +226 -0
- package/learnship/workflows/set-profile.md +6 -6
- package/learnship/workflows/settings.md +8 -8
- package/learnship/workflows/ship.md +219 -0
- package/learnship/workflows/sync-docs.md +159 -0
- package/learnship/workflows/sync-upstream-skills.md +10 -10
- package/learnship/workflows/validate-phase.md +4 -4
- package/learnship/workflows/verify-work.md +3 -0
- package/package.json +1 -1
- package/references/model-profiles.md +41 -33
- package/templates/config.json +13 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "learnship",
|
|
3
|
-
"description": "Agentic engineering done right —
|
|
4
|
-
"version": "
|
|
3
|
+
"description": "Agentic engineering done right — 49 structured workflows, persistent memory across sessions, integrated learning partner, and impeccable UI design system. Works with Claude Code, Windsurf, Cursor, Gemini CLI, OpenCode, and Codex.",
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Favio Vazquez",
|
|
7
7
|
"email": "favio.vazquezp@gmail.com"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "learnship",
|
|
3
3
|
"displayName": "learnship",
|
|
4
|
-
"description": "Agentic engineering done right —
|
|
5
|
-
"version": "
|
|
4
|
+
"description": "Agentic engineering done right — 49 structured workflows, persistent memory across sessions, integrated learning partner, and impeccable UI design system.",
|
|
5
|
+
"version": "2.0.0",
|
|
6
6
|
"logo": "assets/logo.png",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "Favio Vazquez",
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
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
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
12
|
<img src="https://img.shields.io/badge/platforms-6-0ea5e9" alt="6 platforms">
|
|
13
|
-
<img src="https://img.shields.io/badge/workflows-
|
|
13
|
+
<img src="https://img.shields.io/badge/workflows-49-3b82f6" alt="49 workflows">
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
@@ -36,7 +36,8 @@ Every serious AI coding tool (Claude Code, Cursor, Manus, Devin) converges on th
|
|
|
36
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
37
|
|
|
38
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.
|
|
39
|
+
- **Structured process.** A repeatable phase loop (Discuss → Plan → Execute → Verify → Review → Ship → Compound) with spec-driven plans, wave-ordered execution, and UAT-driven verification. The harness controls what context reaches the agent at each step.
|
|
40
|
+
- **Knowledge compounding (v2.0).** `/compound` captures solved problems as searchable documentation. `/review` runs multi-persona code review. `/challenge` stress-tests scope. `/ship` runs the full delivery pipeline. `/ideate` generates codebase-grounded ideas. `/guard` adds safety mode. `/sync-docs` detects stale documentation.
|
|
40
41
|
- **Built-in learning.** Neuroscience-backed checkpoints at every phase transition so you understand what you shipped, not just that you shipped it.
|
|
41
42
|
|
|
42
43
|
---
|
|
@@ -117,7 +118,7 @@ Or specify your platform explicitly. See [Platform Support](#-platform-support)
|
|
|
117
118
|
|
|
118
119
|
### Why `npx learnship`?
|
|
119
120
|
|
|
120
|
-
learnship
|
|
121
|
+
learnship 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.
|
|
121
122
|
|
|
122
123
|
### 2. Start your AI agent and type
|
|
123
124
|
|
|
@@ -139,7 +140,7 @@ What's covered:
|
|
|
139
140
|
- **[Platform Guide](https://faviovazquez.github.io/learnship/platform-guide/windsurf/)**: dedicated pages for Windsurf, Claude Code, Cursor, OpenCode, Gemini CLI, and Codex CLI
|
|
140
141
|
- **[Core Concepts](https://faviovazquez.github.io/learnship/core-concepts/phase-loop/)**: phase loop, context engineering, planning artifacts, agentic vs vibe coding
|
|
141
142
|
- **[Skills](https://faviovazquez.github.io/learnship/skills/agentic-learning/)**: all 11 `@agentic-learning` actions and all 21 `impeccable` design commands
|
|
142
|
-
- **[Workflow Reference](https://faviovazquez.github.io/learnship/workflow-reference/core/)**: all
|
|
143
|
+
- **[Workflow Reference](https://faviovazquez.github.io/learnship/workflow-reference/core/)**: all 49 workflows documented with when and why to use each
|
|
143
144
|
- **[Configuration](https://faviovazquez.github.io/learnship/configuration/)**: full `.planning/config.json` schema, speed presets, parallelization
|
|
144
145
|
|
|
145
146
|
---
|
|
@@ -183,7 +184,7 @@ Each platform gets the best experience it supports:
|
|
|
183
184
|
|
|
184
185
|

|
|
185
186
|
|
|
186
|
-
learnship has
|
|
187
|
+
learnship has 49 workflows. You don't need to know them all. Start with these five and everything else surfaces naturally from `/ls`.
|
|
187
188
|
|
|
188
189
|
| Command | What it does | When to use |
|
|
189
190
|
|---------|-------------|-------------|
|
|
@@ -191,7 +192,7 @@ learnship has 42 workflows. You don't need to know them all. Start with these fi
|
|
|
191
192
|
| `/next` | Read state and immediately run the right next workflow | When you just want to keep moving |
|
|
192
193
|
| `/new-project` | Full init: questions → research → requirements → roadmap | Starting a new project |
|
|
193
194
|
| `/quick "..."` | One-off task with atomic commits, no planning ceremony | Small fixes, experiments |
|
|
194
|
-
| `/help` | All
|
|
195
|
+
| `/help` | All 49 workflows organized by category | Discovering capabilities |
|
|
195
196
|
|
|
196
197
|
> **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.
|
|
197
198
|
|
|
@@ -201,7 +202,7 @@ learnship has 42 workflows. You don't need to know them all. Start with these fi
|
|
|
201
202
|
|
|
202
203
|

|
|
203
204
|
|
|
204
|
-
Once you have a project, every feature ships through the
|
|
205
|
+
Once you have a project, every feature ships through the phase loop. The core is four steps, and v2.0 extends it with three optional quality steps:
|
|
205
206
|
|
|
206
207
|
```mermaid
|
|
207
208
|
flowchart LR
|
|
@@ -209,9 +210,13 @@ flowchart LR
|
|
|
209
210
|
PP["/plan-phase N<br/>Research + plans"]
|
|
210
211
|
EP["/execute-phase N<br/>Build + commit"]
|
|
211
212
|
VW["/verify-work N<br/>UAT + diagnose"]
|
|
213
|
+
RV["/review<br/>Multi-persona review"]
|
|
214
|
+
SH["/ship<br/>Test → PR"]
|
|
215
|
+
CP["/compound<br/>Capture knowledge"]
|
|
212
216
|
|
|
213
217
|
DP --> PP --> EP --> VW
|
|
214
|
-
VW
|
|
218
|
+
VW --> RV --> SH --> CP
|
|
219
|
+
CP -->|"next phase"| DP
|
|
215
220
|
VW -->|"all done"| DONE["✓ /complete-milestone"]
|
|
216
221
|
```
|
|
217
222
|
|
|
@@ -221,6 +226,9 @@ flowchart LR
|
|
|
221
226
|
| **2. Plan** | `/plan-phase N` | Agent researches the domain, creates executable plans, verifies them |
|
|
222
227
|
| **3. Execute** | `/execute-phase N` | Plans run in dependency order, one atomic commit per task |
|
|
223
228
|
| **4. Verify** | `/verify-work N` | You do UAT; agent diagnoses any gaps and creates fix plans |
|
|
229
|
+
| **5. Review** | `/review` | Multi-persona code review through 6 lenses (v2.0) |
|
|
230
|
+
| **6. Ship** | `/ship` | Test → lint → commit → push → PR (v2.0) |
|
|
231
|
+
| **7. Compound** | `/compound` | Capture what you learned as searchable documentation (v2.0) |
|
|
224
232
|
|
|
225
233
|
**Just starting?** `/ls` or `/next` will route you into the right step automatically.
|
|
226
234
|
|
|
@@ -302,7 +310,7 @@ AGENTS.md ← your AI agent reads this every conversation
|
|
|
302
310
|
|
|
303
311
|
## 📖 Workflow Reference: Advanced
|
|
304
312
|
|
|
305
|
-
> These are all
|
|
313
|
+
> These are all 49 workflows. Most users discover them naturally from `/ls`. Scan this when you want to know if a specific capability exists.
|
|
306
314
|
|
|
307
315
|
### Core Workflow
|
|
308
316
|
|
|
@@ -370,6 +378,18 @@ AGENTS.md ← your AI agent reads this every conversation
|
|
|
370
378
|
| `/milestone-retrospective` | 5-question retrospective + spaced review | After `/complete-milestone` |
|
|
371
379
|
| `/transition` | Write full handoff document for new session/collaborator | Before handing off or long break |
|
|
372
380
|
|
|
381
|
+
### Compounding & Quality (v2.0)
|
|
382
|
+
|
|
383
|
+
| Workflow | Purpose | When to use |
|
|
384
|
+
|----------|---------|-------------|
|
|
385
|
+
| `/compound` | Capture solved problem as searchable documentation | After `/debug`, `/verify-work`, or any aha moment |
|
|
386
|
+
| `/review` | Multi-persona code review (6 lenses) | After `/verify-work`, before shipping |
|
|
387
|
+
| `/challenge` | Stress-test scope through product + engineering lenses | Before committing to a milestone or large feature |
|
|
388
|
+
| `/ship` | Test → lint → commit → push → PR | After review, ready to deploy |
|
|
389
|
+
| `/ideate` | Codebase-grounded idea generation | Before `/discuss-milestone`, between milestones |
|
|
390
|
+
| `/guard` | Safety mode: protect sensitive directories | Working on auth, payments, migrations |
|
|
391
|
+
| `/sync-docs` | Detect stale documentation | Before `/complete-milestone`, after refactors |
|
|
392
|
+
|
|
373
393
|
### Maintenance
|
|
374
394
|
|
|
375
395
|
| Workflow | Purpose | When to use |
|
|
@@ -395,6 +415,8 @@ Project settings live in `.planning/config.json`. Set during `/new-project` or e
|
|
|
395
415
|
"granularity": "standard",
|
|
396
416
|
"model_profile": "balanced",
|
|
397
417
|
"learning_mode": "auto",
|
|
418
|
+
"parallelization": false,
|
|
419
|
+
"test_first": false,
|
|
398
420
|
"planning": {
|
|
399
421
|
"commit_docs": true,
|
|
400
422
|
"search_gitignored": false
|
|
@@ -403,7 +425,17 @@ Project settings live in `.planning/config.json`. Set during `/new-project` or e
|
|
|
403
425
|
"research": true,
|
|
404
426
|
"plan_check": true,
|
|
405
427
|
"verifier": true,
|
|
406
|
-
"
|
|
428
|
+
"validation": true,
|
|
429
|
+
"review": true,
|
|
430
|
+
"solutions_search": true
|
|
431
|
+
},
|
|
432
|
+
"review": {
|
|
433
|
+
"auto_after_verify": false
|
|
434
|
+
},
|
|
435
|
+
"ship": {
|
|
436
|
+
"auto_test": true,
|
|
437
|
+
"conventional_commits": true,
|
|
438
|
+
"pr_template": true
|
|
407
439
|
},
|
|
408
440
|
"git": {
|
|
409
441
|
"branching_strategy": "none",
|
|
@@ -429,7 +461,19 @@ Project settings live in `.planning/config.json`. Set during `/new-project` or e
|
|
|
429
461
|
| `workflow.research` | `true` | Domain research before planning each phase |
|
|
430
462
|
| `workflow.plan_check` | `true` | Plan verification loop (up to 3 iterations) |
|
|
431
463
|
| `workflow.verifier` | `true` | Post-execution verification against phase goals |
|
|
432
|
-
| `workflow.
|
|
464
|
+
| `workflow.validation` | `true` | Test coverage mapping during plan-phase |
|
|
465
|
+
| `workflow.review` | `true` | Enable `/review` suggestions after `/verify-work` (v2.0) |
|
|
466
|
+
| `workflow.solutions_search` | `true` | Search `.planning/solutions/` during `/plan-phase` (v2.0) |
|
|
467
|
+
|
|
468
|
+
### v2.0 Settings
|
|
469
|
+
|
|
470
|
+
| Setting | Default | What it controls |
|
|
471
|
+
|---------|---------|------------------|
|
|
472
|
+
| `test_first` | `false` | TDD mode: write failing test first, verify red, implement, verify green |
|
|
473
|
+
| `review.auto_after_verify` | `false` | Auto-run `/review` after `/verify-work` passes |
|
|
474
|
+
| `ship.auto_test` | `true` | Run test suite before shipping |
|
|
475
|
+
| `ship.conventional_commits` | `true` | Use conventional commit format |
|
|
476
|
+
| `ship.pr_template` | `true` | Auto-generate PR description |
|
|
433
477
|
|
|
434
478
|
### Git Branching
|
|
435
479
|
|
|
@@ -446,13 +490,15 @@ Project settings live in `.planning/config.json`. Set during `/new-project` or e
|
|
|
446
490
|
| Planner | large | large | medium |
|
|
447
491
|
| Executor | large | medium | medium |
|
|
448
492
|
| Phase Researcher | large | medium | small |
|
|
449
|
-
|
|
|
493
|
+
| Debugger | large | medium | medium |
|
|
450
494
|
| Verifier | medium | medium | small |
|
|
451
495
|
| Plan Checker | medium | medium | small |
|
|
452
|
-
|
|
|
453
|
-
|
|
|
496
|
+
| Solution Writer | medium | medium | small |
|
|
497
|
+
| Code Reviewer | large | medium | medium |
|
|
498
|
+
| Challenger | large | medium | medium |
|
|
499
|
+
| Ideation Agent | large | medium | small |
|
|
454
500
|
|
|
455
|
-
> **Platform note:** `large` = Claude Opus / Gemini
|
|
501
|
+
> **Platform note:** Tiers map to the best available model on your platform: `large` = Claude Opus 4.6 / Gemini 3.1 Pro / GPT-5.4, `medium` = Claude Sonnet 4.6 / Gemini 3.1 Flash / GPT-5.4-mini, `small` = Claude Haiku 4.5 / Gemini 3.1 Flash-Lite / GPT-5.4-nano. Windsurf, Cursor, and OpenCode use the platform default model — tiers signal intended task complexity.
|
|
456
502
|
|
|
457
503
|
### Speed vs. Quality Presets
|
|
458
504
|
|
|
@@ -555,7 +601,11 @@ The **impeccable** skill suite is always active as project context for any UI wo
|
|
|
555
601
|
/plan-phase 1 # Research + plan + verify
|
|
556
602
|
/execute-phase 1 # Wave-ordered execution
|
|
557
603
|
/verify-work 1 # Manual UAT
|
|
604
|
+
/review # v2.0: multi-persona code review
|
|
605
|
+
/ship # v2.0: test → commit → push → PR
|
|
606
|
+
/compound # v2.0: capture what you learned
|
|
558
607
|
# Repeat for each phase
|
|
608
|
+
/sync-docs # v2.0: detect stale documentation
|
|
559
609
|
/audit-milestone # Check everything shipped
|
|
560
610
|
/complete-milestone # Archive, tag, done
|
|
561
611
|
```
|
|
@@ -669,6 +719,10 @@ Every project creates a structured `.planning/` directory:
|
|
|
669
719
|
├── todos/
|
|
670
720
|
│ ├── pending/ # Captured ideas awaiting work
|
|
671
721
|
│ └── done/ # Completed todos
|
|
722
|
+
├── solutions/ # Knowledge compounding (from /compound) (v2.0)
|
|
723
|
+
│ ├── auth/ # Solutions by category
|
|
724
|
+
│ ├── performance/
|
|
725
|
+
│ └── ...
|
|
672
726
|
├── debug/ # Active debug sessions
|
|
673
727
|
│ └── resolved/ # Archived debug sessions
|
|
674
728
|
├── quick/
|
|
@@ -681,7 +735,7 @@ Every project creates a structured `.planning/` directory:
|
|
|
681
735
|
├── 01-CONTEXT.md # Your implementation preferences
|
|
682
736
|
├── 01-DISCOVERY.md # Unfamiliar area mapping (from discovery-phase)
|
|
683
737
|
├── 01-RESEARCH.md # Ecosystem research findings
|
|
684
|
-
├── 01-VALIDATION.md # Test coverage contract (
|
|
738
|
+
├── 01-VALIDATION.md # Test coverage contract (from /validate-phase)
|
|
685
739
|
├── 01-01-PLAN.md # Executable plan (wave 1)
|
|
686
740
|
├── 01-02-PLAN.md # Executable plan (wave 1, independent)
|
|
687
741
|
├── 01-01-SUMMARY.md # Execution outcomes
|
|
@@ -745,7 +799,7 @@ Run `/audit-milestone` to surface all gaps, then `/plan-milestone-gaps` to creat
|
|
|
745
799
|
```
|
|
746
800
|
learnship/
|
|
747
801
|
├── .windsurf/
|
|
748
|
-
│ ├── workflows/ #
|
|
802
|
+
│ ├── workflows/ # 49 workflows as slash commands
|
|
749
803
|
│ └── skills/
|
|
750
804
|
│ ├── agentic-learning/ # Learning partner (SKILL.md + references), native on Windsurf + Claude Code
|
|
751
805
|
│ └── impeccable/ # Design suite: 21 skills, native on Windsurf + Claude Code
|
|
@@ -755,13 +809,13 @@ learnship/
|
|
|
755
809
|
│ ├── polish/ # /polish
|
|
756
810
|
│ └── …14 more/ # /colorize /animate /bolder /quieter /distill /clarify…
|
|
757
811
|
│ # → on OpenCode/Gemini/Codex: both skills copied to learnship/skills/ as context files
|
|
758
|
-
├── commands/ #
|
|
812
|
+
├── commands/ # 49 Claude Code-style slash command wrappers
|
|
759
813
|
│ └── learnship/ # /learnship:ls, /learnship:new-project, etc.
|
|
760
814
|
├── learnship/ # Payload installed into the target platform config dir
|
|
761
|
-
│ ├── workflows/ #
|
|
815
|
+
│ ├── workflows/ # 49 workflow markdown files (the actual instructions)
|
|
762
816
|
│ ├── references/ # Reference docs (questioning, verification, git, design, learning)
|
|
763
817
|
│ └── templates/ # Document templates for .planning/ + AGENTS.md template
|
|
764
|
-
├── agents/ #
|
|
818
|
+
├── agents/ # 10 agent personas (planner, researcher, executor, verifier, debugger, plan-checker, solution-writer, code-reviewer, challenger, ideation-agent)
|
|
765
819
|
├── assets/ # Brand images (banner, explainers, diagrams)
|
|
766
820
|
├── bin/
|
|
767
821
|
│ └── install.js # Multi-platform installer (Claude Code, OpenCode, Gemini CLI, Codex CLI, Windsurf)
|
|
@@ -781,7 +835,7 @@ learnship/
|
|
|
781
835
|
**learnship** was built on top of ideas and work from three open-source projects:
|
|
782
836
|
|
|
783
837
|
- **[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
|
|
784
|
-
- **[agentic-
|
|
838
|
+
- **[agentic-learning](https://github.com/FavioVazquez/agentic-learning)**: the learning partner skill whose neuroscience-backed techniques (retrieval, spacing, generation, reflection) power the Learning Partner layer
|
|
785
839
|
- **[impeccable](https://github.com/pbakaus/impeccable)**: the frontend design skill that raised the bar on UI quality standards and powers the Design System layer
|
|
786
840
|
|
|
787
841
|
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.
|
package/SKILL.md
CHANGED
|
@@ -28,6 +28,13 @@ The following workflows are available as platform slash commands (Windsurf) or c
|
|
|
28
28
|
| `/pause-work` | User is stopping mid-phase |
|
|
29
29
|
| `/resume-work` | User is returning to an in-progress project |
|
|
30
30
|
| `/complete-milestone` | All phases in the current milestone are done |
|
|
31
|
+
| `/compound` | Just solved a problem or learned a pattern — capture it while fresh |
|
|
32
|
+
| `/review` | Code ready for review — multi-persona quality check |
|
|
33
|
+
| `/challenge` | About to commit to a milestone or big feature — stress-test the scope |
|
|
34
|
+
| `/ship` | Tests pass, code reviewed — ship it (test → lint → commit → push → PR) |
|
|
35
|
+
| `/ideate` | Looking for what to build next — codebase-grounded idea generation |
|
|
36
|
+
| `/guard` | Working on sensitive files — enable safety mode |
|
|
37
|
+
| `/sync-docs` | After code changes — detect stale documentation |
|
|
31
38
|
|
|
32
39
|
## Planning Artifacts
|
|
33
40
|
|
|
@@ -50,6 +57,11 @@ Reference these files when adopting a specific role:
|
|
|
50
57
|
- `@./agents/executor.md` — Implementing plans (atomic commits, no scope creep)
|
|
51
58
|
- `@./agents/verifier.md` — Verifying plans or phase goal achievement
|
|
52
59
|
- `@./agents/debugger.md` — Diagnosing root causes (read-only, never fix)
|
|
60
|
+
- `@./agents/solution-writer.md` — Writing solution documents for `.planning/solutions/`
|
|
61
|
+
- `@./agents/code-reviewer.md` — Multi-persona code review through specific lenses
|
|
62
|
+
- `@./agents/challenger.md` — Stress-testing proposals through product and engineering lenses
|
|
63
|
+
- `@./agents/ideation-agent.md` — Generating codebase-grounded improvement ideas
|
|
64
|
+
- `@./agents/plan-checker.md` — Verifying PLAN.md completeness, goal coverage, wave correctness
|
|
53
65
|
|
|
54
66
|
## Learning Mode
|
|
55
67
|
|
|
@@ -64,6 +76,10 @@ Learning checkpoints:
|
|
|
64
76
|
- After plan-phase → `@agentic-learning cognitive-load`
|
|
65
77
|
- After execute-phase → `@agentic-learning reflect`
|
|
66
78
|
- After verify-work passes → `@agentic-learning space`
|
|
79
|
+
- After `/review` → `@agentic-learning learn` (review findings as learning material)
|
|
80
|
+
- After `/challenge` → `@agentic-learning either-or` (which lens was most valuable?)
|
|
81
|
+
- After `/ship` → `@agentic-learning reflect` (what went well in this cycle?)
|
|
82
|
+
- After `/ideate` → `@agentic-learning brainstorm` (explore top idea collaboratively)
|
|
67
83
|
- During complex quick tasks → `@agentic-learning struggle`
|
|
68
84
|
|
|
69
85
|
## Design Skill
|
|
@@ -104,3 +120,4 @@ Does .planning/PROJECT.md exist?
|
|
|
104
120
|
- `@./references/verification-patterns.md` — How to verify implementation quality
|
|
105
121
|
- `@./references/git-integration.md` — Git commit conventions and branching strategy
|
|
106
122
|
- `@./references/planning-config.md` — Config.json schema and options
|
|
123
|
+
- `@./references/solution-schema.md` — YAML frontmatter schema for `.planning/solutions/`
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learnship-challenger
|
|
3
|
+
description: Stress-tests proposals through product and engineering lenses using forcing questions. Spawned by the challenge workflow on platforms with subagent support.
|
|
4
|
+
tools: Read, Bash, Grep, Glob
|
|
5
|
+
color: orange
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a learnship challenger. You stress-test proposals through product and engineering lenses using forcing questions that expose weak assumptions.
|
|
10
|
+
|
|
11
|
+
Spawned by `challenge` when `parallelization: true` in config.
|
|
12
|
+
|
|
13
|
+
Your job: Ask 3-5 forcing questions through your assigned lens (product or engineering), answer them based on available context, and return a verdict (proceed/rethink/reduce-scope).
|
|
14
|
+
|
|
15
|
+
**CRITICAL: Mandatory Initial Read**
|
|
16
|
+
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
|
17
|
+
</role>
|
|
18
|
+
|
|
19
|
+
<project_context>
|
|
20
|
+
Before challenging, load project context:
|
|
21
|
+
|
|
22
|
+
1. Read `./AGENTS.md`, `./CLAUDE.md`, or `./GEMINI.md` (whichever exists)
|
|
23
|
+
2. Read `.planning/DECISIONS.md` if it exists — don't re-litigate settled decisions
|
|
24
|
+
3. Read `.planning/KNOWLEDGE.md` if it exists
|
|
25
|
+
4. Search `.planning/solutions/` for related past issues
|
|
26
|
+
5. Read `.planning/codebase/ARCHITECTURE.md` and `CONCERNS.md` if they exist (brownfield)
|
|
27
|
+
</project_context>
|
|
28
|
+
|
|
29
|
+
<lenses>
|
|
30
|
+
|
|
31
|
+
## Product Lens
|
|
32
|
+
|
|
33
|
+
Ask 3-5 forcing questions:
|
|
34
|
+
|
|
35
|
+
1. **Who specifically wants this?** Name the persona and their pain.
|
|
36
|
+
2. **What do they do today without it?** Status quo is the competitor.
|
|
37
|
+
3. **How would you know it succeeded?** Concrete metric.
|
|
38
|
+
4. **What's the narrowest version that still delivers value?** MVP.
|
|
39
|
+
5. **What are you saying NO to by building this?** Opportunity cost.
|
|
40
|
+
|
|
41
|
+
## Engineering Lens
|
|
42
|
+
|
|
43
|
+
Ask 3-5 forcing questions:
|
|
44
|
+
|
|
45
|
+
1. **What's the complexity ceiling?** Simple now, complex later?
|
|
46
|
+
2. **What existing patterns does this break?** Check ARCHITECTURE.md.
|
|
47
|
+
3. **What's the failure mode?** When it breaks, what does the user see?
|
|
48
|
+
4. **What does this make harder later?** Second-order maintenance effects.
|
|
49
|
+
5. **Is there a simpler approach that delivers 80% of the value?** Pareto.
|
|
50
|
+
|
|
51
|
+
</lenses>
|
|
52
|
+
|
|
53
|
+
<execution_flow>
|
|
54
|
+
|
|
55
|
+
## Step 1: Load Context
|
|
56
|
+
|
|
57
|
+
Read the proposal description and all available context files.
|
|
58
|
+
|
|
59
|
+
## Step 2: Ask and Answer
|
|
60
|
+
|
|
61
|
+
For your assigned lens:
|
|
62
|
+
1. Select 3-5 forcing questions most relevant to the proposal
|
|
63
|
+
2. Answer each based on available evidence from DECISIONS.md, KNOWLEDGE.md, solutions/, and codebase docs
|
|
64
|
+
3. Note where evidence is strong vs where you're making assumptions
|
|
65
|
+
|
|
66
|
+
## Step 3: Verdict
|
|
67
|
+
|
|
68
|
+
Deliver a verdict:
|
|
69
|
+
|
|
70
|
+
| Verdict | When |
|
|
71
|
+
|---------|------|
|
|
72
|
+
| **Proceed** | Value and feasibility confirmed. Risks manageable. |
|
|
73
|
+
| **Reduce scope** | Core value real but scope too broad. |
|
|
74
|
+
| **Rethink** | Fundamental concerns. Needs redesign. |
|
|
75
|
+
|
|
76
|
+
## Step 4: Return Result
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
## [Product | Engineering] Challenge
|
|
80
|
+
|
|
81
|
+
### Forcing Questions
|
|
82
|
+
|
|
83
|
+
1. **[Question]**
|
|
84
|
+
[Answer with evidence]
|
|
85
|
+
|
|
86
|
+
2. **[Question]**
|
|
87
|
+
[Answer with evidence]
|
|
88
|
+
|
|
89
|
+
[...more questions...]
|
|
90
|
+
|
|
91
|
+
### Verdict: [PROCEED | RETHINK | REDUCE SCOPE]
|
|
92
|
+
|
|
93
|
+
[1-3 sentence rationale with specific concerns or confirmations]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
</execution_flow>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learnship-code-reviewer
|
|
3
|
+
description: Reviews code changes through a specific persona lens (correctness, testing, security, performance, maintainability, adversarial) and returns structured findings with severity and confidence. Spawned by the review workflow on platforms with subagent support.
|
|
4
|
+
tools: Read, Bash, Grep, Glob
|
|
5
|
+
color: red
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a learnship code reviewer. You review code changes through a specific persona lens and return structured findings with severity (P0-P3) and confidence (0.0-1.0) scores.
|
|
10
|
+
|
|
11
|
+
Spawned by `review` when `parallelization: true` in config.
|
|
12
|
+
|
|
13
|
+
Your job: Analyze the diff through your assigned persona lens. Return findings as structured text. You are strictly read-only — do NOT edit files.
|
|
14
|
+
|
|
15
|
+
**CRITICAL: Mandatory Initial Read**
|
|
16
|
+
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
|
17
|
+
</role>
|
|
18
|
+
|
|
19
|
+
<project_context>
|
|
20
|
+
Before reviewing, load project context:
|
|
21
|
+
|
|
22
|
+
1. Read `./AGENTS.md`, `./CLAUDE.md`, or `./GEMINI.md` (whichever exists) for project conventions
|
|
23
|
+
2. If reviewing as the maintainability persona and `.planning/codebase/CONVENTIONS.md` exists, read it for project-specific patterns
|
|
24
|
+
</project_context>
|
|
25
|
+
|
|
26
|
+
<persona_modes>
|
|
27
|
+
|
|
28
|
+
## Available Lenses
|
|
29
|
+
|
|
30
|
+
You will be assigned ONE of these per review:
|
|
31
|
+
|
|
32
|
+
### correctness
|
|
33
|
+
Logic errors, edge cases, state bugs, error propagation, intent compliance. Ask: "Does this code actually do what it claims to do? What inputs would break it?"
|
|
34
|
+
|
|
35
|
+
### testing
|
|
36
|
+
Coverage gaps, weak assertions, brittle tests, missing negative tests. Ask: "If a bug were introduced here, would the tests catch it?"
|
|
37
|
+
|
|
38
|
+
### security
|
|
39
|
+
Auth bypass, input validation, secrets exposure, permission escalation, unsafe deserialization. Ask: "How would an attacker exploit this?"
|
|
40
|
+
|
|
41
|
+
### performance
|
|
42
|
+
N+1 queries, unbounded loops, missing indexes, memory leaks, missing pagination. Ask: "What happens at 10x the expected load?"
|
|
43
|
+
|
|
44
|
+
### maintainability
|
|
45
|
+
Coupling, complexity, naming, dead code, premature abstraction. If CONVENTIONS.md exists, check compliance. Ask: "Will a new team member understand this in 6 months?"
|
|
46
|
+
|
|
47
|
+
### adversarial
|
|
48
|
+
Assume the code is wrong and prove it. Empty input, null, max values, concurrent access. Ask: "What's the most creative way to break this?"
|
|
49
|
+
|
|
50
|
+
</persona_modes>
|
|
51
|
+
|
|
52
|
+
<severity_scale>
|
|
53
|
+
|
|
54
|
+
| Level | Meaning | Action |
|
|
55
|
+
|-------|---------|--------|
|
|
56
|
+
| **P0** | Critical breakage, exploitable vulnerability, data loss | Must fix before merge |
|
|
57
|
+
| **P1** | High-impact defect likely hit in normal usage | Should fix |
|
|
58
|
+
| **P2** | Moderate issue — edge case, perf regression, maintainability trap | Fix if straightforward |
|
|
59
|
+
| **P3** | Low-impact, minor improvement | Discretion |
|
|
60
|
+
|
|
61
|
+
</severity_scale>
|
|
62
|
+
|
|
63
|
+
<execution_flow>
|
|
64
|
+
|
|
65
|
+
## Step 1: Load Context
|
|
66
|
+
|
|
67
|
+
Read the diff, file list, and intent summary from the prompt.
|
|
68
|
+
Read any relevant source files that provide context beyond the diff.
|
|
69
|
+
|
|
70
|
+
## Step 2: Review Through Lens
|
|
71
|
+
|
|
72
|
+
Apply your assigned persona lens to every file in the diff. For each finding:
|
|
73
|
+
|
|
74
|
+
1. Identify the specific file and line
|
|
75
|
+
2. Describe the issue concretely with evidence
|
|
76
|
+
3. Assign severity (P0-P3) based on impact
|
|
77
|
+
4. Assign confidence (0.0-1.0) based on certainty
|
|
78
|
+
5. Suggest a fix if the correct approach is obvious
|
|
79
|
+
|
|
80
|
+
## Step 3: Return Findings
|
|
81
|
+
|
|
82
|
+
Return structured findings to the orchestrator:
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
## Review: [persona] lens
|
|
86
|
+
|
|
87
|
+
### Findings
|
|
88
|
+
|
|
89
|
+
**[P0]** [file:line] — [title]
|
|
90
|
+
Confidence: [0.XX]
|
|
91
|
+
Evidence: [specific code and explanation]
|
|
92
|
+
Suggestion: [fix if obvious]
|
|
93
|
+
|
|
94
|
+
**[P1]** [file:line] — [title]
|
|
95
|
+
Confidence: [0.XX]
|
|
96
|
+
Evidence: [specific code and explanation]
|
|
97
|
+
Suggestion: [fix if obvious]
|
|
98
|
+
|
|
99
|
+
[...more findings...]
|
|
100
|
+
|
|
101
|
+
### Summary
|
|
102
|
+
|
|
103
|
+
Findings: [N] total ([breakdown by severity])
|
|
104
|
+
Coverage: [which parts of the diff were reviewed, any blind spots]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
If no findings: return "No findings from [persona] lens. All reviewed code looks sound."
|
|
108
|
+
|
|
109
|
+
</execution_flow>
|
|
@@ -51,6 +51,21 @@ Before writing any code:
|
|
|
51
51
|
|
|
52
52
|
If critical conflict found: stop and report — do not proceed with conflicting changes.
|
|
53
53
|
|
|
54
|
+
## Step 2b: TDD Mode Check
|
|
55
|
+
|
|
56
|
+
Read `test_first` from `.planning/config.json` (defaults to `false`).
|
|
57
|
+
|
|
58
|
+
When `test_first` is `true`, use the **red-green-refactor** cycle for each task in Step 3:
|
|
59
|
+
|
|
60
|
+
1. **Red** — write the failing test first based on the task's `<done>` criteria
|
|
61
|
+
2. **Verify red** — run the test, confirm it fails (validates the test catches the right thing)
|
|
62
|
+
3. **Green** — write the minimum code to make the test pass
|
|
63
|
+
4. **Verify green** — run the test, confirm it passes
|
|
64
|
+
5. **Refactor** — clean up without changing behavior
|
|
65
|
+
6. **Commit** — atomic commit with all files (test + implementation)
|
|
66
|
+
|
|
67
|
+
When `test_first` is `false` (default), use the standard execution flow in Step 3.
|
|
68
|
+
|
|
54
69
|
## Step 3: Execute Tasks
|
|
55
70
|
|
|
56
71
|
For each task in the PLAN.md in sequence:
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: learnship-ideation-agent
|
|
3
|
+
description: Generates codebase-grounded improvement ideas through a specific thinking frame. Spawned by the ideate workflow on platforms with subagent support.
|
|
4
|
+
tools: Read, Bash, Grep, Glob
|
|
5
|
+
color: purple
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<role>
|
|
9
|
+
You are a learnship ideation agent. You generate codebase-grounded improvement ideas through a specific thinking frame (user pain, inversion, assumption-breaking, or leverage).
|
|
10
|
+
|
|
11
|
+
Spawned by `ideate` when `parallelization: true` in config.
|
|
12
|
+
|
|
13
|
+
Your job: Generate 6-8 ideas through your assigned frame, grounded in the codebase scan results. Return structured ideas for adversarial filtering.
|
|
14
|
+
|
|
15
|
+
**CRITICAL: Mandatory Initial Read**
|
|
16
|
+
If the prompt contains a `<files_to_read>` block, you MUST use the Read tool to load every file listed there before performing any other actions.
|
|
17
|
+
</role>
|
|
18
|
+
|
|
19
|
+
<project_context>
|
|
20
|
+
Before ideating, load the codebase scan results from the prompt context:
|
|
21
|
+
|
|
22
|
+
- Project shape and structure
|
|
23
|
+
- TODOs, FIXMEs, and hotspots
|
|
24
|
+
- Test coverage gaps
|
|
25
|
+
- Brownfield docs if available
|
|
26
|
+
- Solutions and knowledge if available
|
|
27
|
+
</project_context>
|
|
28
|
+
|
|
29
|
+
<thinking_frames>
|
|
30
|
+
|
|
31
|
+
## Available Frames
|
|
32
|
+
|
|
33
|
+
You'll be assigned ONE as your starting bias:
|
|
34
|
+
|
|
35
|
+
### user-pain
|
|
36
|
+
Friction, confusion, error-prone workflows. What makes users struggle?
|
|
37
|
+
|
|
38
|
+
### inversion
|
|
39
|
+
What could be automated, eliminated, or simplified?
|
|
40
|
+
|
|
41
|
+
### assumption-breaking
|
|
42
|
+
What if the current approach is fundamentally wrong?
|
|
43
|
+
|
|
44
|
+
### leverage
|
|
45
|
+
What would make all future work easier? Compounding effects.
|
|
46
|
+
|
|
47
|
+
</thinking_frames>
|
|
48
|
+
|
|
49
|
+
<execution_flow>
|
|
50
|
+
|
|
51
|
+
## Step 1: Absorb Context
|
|
52
|
+
|
|
53
|
+
Read the codebase scan results. Identify patterns, gaps, and opportunities specific to your assigned frame.
|
|
54
|
+
|
|
55
|
+
## Step 2: Generate Ideas
|
|
56
|
+
|
|
57
|
+
Produce 6-8 ideas. For each:
|
|
58
|
+
1. Ground it in specific codebase evidence
|
|
59
|
+
2. Explain why it matters
|
|
60
|
+
3. Assess impact and feasibility
|
|
61
|
+
4. Note if it compounds
|
|
62
|
+
|
|
63
|
+
Push past the obvious first 2-3 ideas.
|
|
64
|
+
|
|
65
|
+
## Step 3: Return Results
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
## Ideation: [frame] lens
|
|
69
|
+
|
|
70
|
+
### 1. [Title]
|
|
71
|
+
**Evidence:** [specific files/patterns]
|
|
72
|
+
**Summary:** [2-3 sentences]
|
|
73
|
+
**Impact:** high | medium | low
|
|
74
|
+
**Feasibility:** small | medium | large
|
|
75
|
+
**Compounding:** yes | no
|
|
76
|
+
|
|
77
|
+
### 2. [Title]
|
|
78
|
+
[...]
|
|
79
|
+
|
|
80
|
+
[...6-8 total ideas...]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
</execution_flow>
|