@radenadri/skills-alena 1.2.0 โ 1.2.1
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/README.md +68 -67
- package/commands/lmf.md +5 -2
- package/package.json +2 -2
- package/skills/lmf/SKILL.md +22 -3
- package/workflows/lmf.md +4 -2
package/README.md
CHANGED
|
@@ -24,31 +24,23 @@
|
|
|
24
24
|
|
|
25
25
|
**ALENA** is a personal toolkit for autonomous, networked AI agents. The long form is **Autonomous Layer for Executing Networked Agents**. Install once, use everywhere โ across **34+ supported agents** including Antigravity, Cursor, Claude Code, Gemini CLI, Windsurf, Copilot, and more.
|
|
26
26
|
|
|
27
|
-
### ๐ PRD Creation Flow
|
|
28
|
-
|
|
29
|
-
ALENA now ships a local PRD creation path for teams that want product clarification before implementation. The flow is built around:
|
|
30
|
-
|
|
31
|
-
- a wrapper skill at `skills/write-prd/`
|
|
32
|
-
- a Claude Code command at `commands/prd.md`
|
|
33
|
-
- an Antigravity workflow at `workflows/prd.md`
|
|
34
|
-
|
|
35
|
-
`write-prd` is not the same as `writing-plans`. `write-prd` is interview-first and product-first: it clarifies the user, problem, goals, non-goals, and success definition before drafting a reusable product requirements document. `writing-plans` starts after that, when the approved PRD needs to turn into implementation work.
|
|
36
|
-
|
|
37
27
|
---
|
|
38
28
|
|
|
39
|
-
|
|
29
|
+
## ๐ LLM Council v2 โ Agent Team Coordination
|
|
40
30
|
|
|
41
|
-
|
|
31
|
+
### The Problem
|
|
32
|
+
AI coding tasks fail at scale because no single agent can hold all context: database schemas, API routes, service dependencies, frontend components, and business logic โ simultaneously. Linear handoffs lose context. Role-switching in a single context window wastes tokens.
|
|
42
33
|
|
|
43
|
-
|
|
34
|
+
### The Solution: Real Subagent Spawning + Deterministic Orchestration
|
|
44
35
|
|
|
45
|
-
**Council v2**
|
|
36
|
+
**Council v2** replaces the old role-switching pattern with **real subagent spawning** via `Task()`. Each specialist agent gets a fresh 200k context window โ no shared context pollution. The orchestrator stays lean at ~10-15% context usage.
|
|
46
37
|
|
|
47
38
|
```
|
|
48
39
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
49
|
-
โ ๐ฏ ORCHESTRATOR (lean)
|
|
50
|
-
โ
|
|
51
|
-
โ
|
|
40
|
+
โ ๐ฏ ORCHESTRATOR (lean) โ
|
|
41
|
+
โ ~10-15% context usage โ
|
|
42
|
+
โ 13 deterministic CLI commands โ
|
|
43
|
+
โ Code-enforced quality gates โ
|
|
52
44
|
โโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโ
|
|
53
45
|
โ
|
|
54
46
|
Task() spawning
|
|
@@ -60,6 +52,17 @@ ALENA now ships a local PRD creation path for teams that want product clarificat
|
|
|
60
52
|
โโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโ
|
|
61
53
|
```
|
|
62
54
|
|
|
55
|
+
### Key Capabilities
|
|
56
|
+
|
|
57
|
+
| Capability | Description |
|
|
58
|
+
|:---|:---|
|
|
59
|
+
| ๐ง **Real subagent spawning** | Each agent gets a fresh 200k context via `Task()` โ no shared context pollution |
|
|
60
|
+
| ๐๏ธ **13 CLI commands** | Deterministic state machine for council orchestration (`council start`, `council next`, `council status`, etc.) |
|
|
61
|
+
| ๐ช **Code-enforced quality gates** | Agents cannot advance phases without passing automated gate checks |
|
|
62
|
+
| ๐ฏ **6 presets** | Full, Rapid, Debug, Architecture, Refactoring, Audit councils |
|
|
63
|
+
| ๐ **Lean orchestrator** | Orchestrator uses ~10-15% context โ delegates deep work to specialists |
|
|
64
|
+
| ๐ง **Memory Module** | Deep intelligence layer: schemas, routes, services, components, tech stack |
|
|
65
|
+
|
|
63
66
|
**What makes it different:**
|
|
64
67
|
- โ
**Real subagent spawning** โ each agent gets a fresh 200k context via `Task()`, no context pollution
|
|
65
68
|
- โ
**13 deterministic CLI commands** โ `council start`, `council next`, `council status`, etc.
|
|
@@ -72,6 +75,11 @@ ALENA now ships a local PRD creation path for teams that want product clarificat
|
|
|
72
75
|
|
|
73
76
|
## ๐ Version History
|
|
74
77
|
|
|
78
|
+
### 1.2.1 โ Improve `/lmf` for manual coding
|
|
79
|
+
|
|
80
|
+
- Update `lmf` so it remains learning-first but also includes copyable code blocks when implementation detail is needed.
|
|
81
|
+
- Position `/lmf` as the manual-coding alternative to `/execute` when the user wants to type the code themselves instead of having the agent apply it automatically.
|
|
82
|
+
|
|
75
83
|
### 1.2.0 โ Add `/prd` command
|
|
76
84
|
|
|
77
85
|
- Add `write-prd` skill. Add `/prd` command for Claude Code and Antigravity.
|
|
@@ -133,6 +141,22 @@ npx @radenadri/skills-alena list
|
|
|
133
141
|
|
|
134
142
|
After installing skills, your workflow depends on whether you're starting fresh or joining an existing codebase.
|
|
135
143
|
|
|
144
|
+
### First question: do you need a PRD?
|
|
145
|
+
|
|
146
|
+
If you only have an idea, a product problem, or a rough feature request, start with `/prd` before engineering planning.
|
|
147
|
+
|
|
148
|
+
- `/prd` clarifies the user, problem, goals, non-goals, constraints, and success metrics.
|
|
149
|
+
- `/discuss` locks implementation preferences and trade-off decisions before planning.
|
|
150
|
+
- `/plan` turns the approved PRD or clarified request into implementation work.
|
|
151
|
+
|
|
152
|
+
Think of it as:
|
|
153
|
+
|
|
154
|
+
```text
|
|
155
|
+
/prd = what and why
|
|
156
|
+
/discuss = preference and trade-off lock-in
|
|
157
|
+
/plan = how to build it
|
|
158
|
+
```
|
|
159
|
+
|
|
136
160
|
### ๐ข New Project (Greenfield)
|
|
137
161
|
|
|
138
162
|
> You're building something from scratch. No existing code, no legacy decisions.
|
|
@@ -141,6 +165,10 @@ After installing skills, your workflow depends on whether you're starting fresh
|
|
|
141
165
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
142
166
|
โ GREENFIELD WORKFLOW โ
|
|
143
167
|
โ โ
|
|
168
|
+
โ Step 0 โ /prd (optional) โ
|
|
169
|
+
โ Use when the project or feature idea is still fuzzy โ
|
|
170
|
+
โ Produces a product requirements document first โ
|
|
171
|
+
โ โผ โ
|
|
144
172
|
โ Step 1 โ /init-project โ
|
|
145
173
|
โ Creates .planning/ structure, ROADMAP, REQUIREMENTS โ
|
|
146
174
|
โ Bootstraps memory system + config.json โ
|
|
@@ -171,10 +199,13 @@ After installing skills, your workflow depends on whether you're starting fresh
|
|
|
171
199
|
# 1. Install skills
|
|
172
200
|
npx @radenadri/skills-alena add
|
|
173
201
|
|
|
174
|
-
# 2.
|
|
202
|
+
# 2. If the product idea is still fuzzy, start here:
|
|
203
|
+
/prd "describe the product or feature idea"
|
|
204
|
+
|
|
205
|
+
# 3. Then tell your AI agent:
|
|
175
206
|
/init-project
|
|
176
207
|
|
|
177
|
-
#
|
|
208
|
+
# 4. The agent will walk you through:
|
|
178
209
|
# โ Project context gathering
|
|
179
210
|
# โ Requirements capture
|
|
180
211
|
# โ Roadmap phases
|
|
@@ -198,20 +229,24 @@ npx @radenadri/skills-alena add
|
|
|
198
229
|
โ Writes: MEMORY.md with project brain โ
|
|
199
230
|
โ Captures: architecture, conventions, known issues โ
|
|
200
231
|
โ โผ โ
|
|
201
|
-
โ Step 3 โ /
|
|
232
|
+
โ Step 3 โ /prd (optional) โ
|
|
233
|
+
โ Use for new feature work that needs product clarity โ
|
|
234
|
+
โ Grounds the PRD in the real codebase constraints โ
|
|
235
|
+
โ โผ โ
|
|
236
|
+
โ Step 4 โ /discuss โ
|
|
202
237
|
โ "I want to add [feature] to this existing project" โ
|
|
203
238
|
โ Agent asks MCQ questions considering existing patterns โ
|
|
204
239
|
โ Quick-answer: "1A 2B 3C 4A" โ
|
|
205
240
|
โ โผ โ
|
|
206
|
-
โ Step
|
|
241
|
+
โ Step 5 โ /plan โ
|
|
207
242
|
โ Creates plan that respects existing architecture โ
|
|
208
243
|
โ References real files, real patterns, real conventions โ
|
|
209
244
|
โ โผ โ
|
|
210
|
-
โ Step
|
|
245
|
+
โ Step 6 โ /execute โ
|
|
211
246
|
โ Implements following existing patterns โ
|
|
212
247
|
โ codebase-conformity skill ensures consistency โ
|
|
213
248
|
โ โผ โ
|
|
214
|
-
โ Step
|
|
249
|
+
โ Step 7 โ /verify โ
|
|
215
250
|
โ Validates against plan + existing test suite โ
|
|
216
251
|
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
217
252
|
```
|
|
@@ -224,10 +259,15 @@ npx @radenadri/skills-alena add
|
|
|
224
259
|
# 2. Tell your AI agent:
|
|
225
260
|
/memory init
|
|
226
261
|
|
|
227
|
-
# 3. Let the agent scan your codebase
|
|
262
|
+
# 3. Let the agent scan your codebase
|
|
263
|
+
|
|
264
|
+
# 4. If the feature needs product clarification, do this next:
|
|
265
|
+
/prd "describe the feature or product problem"
|
|
266
|
+
|
|
267
|
+
# 5. Then lock implementation decisions:
|
|
228
268
|
/discuss add user preferences feature
|
|
229
269
|
|
|
230
|
-
#
|
|
270
|
+
# 6. Answer the MCQ questions, then:
|
|
231
271
|
/plan
|
|
232
272
|
/execute
|
|
233
273
|
```
|
|
@@ -319,7 +359,7 @@ Skills are deep instructional documents that teach AI agents HOW to think about
|
|
|
319
359
|
|:---:|:---|:---|
|
|
320
360
|
| 1 | ๐ก **brainstorming** | Creative ideation โ mind maps, structured exploration, and divergent thinking before any feature work |
|
|
321
361
|
| 2 | ๐ **write-prd** | Product requirements writing โ interview-first wrapper skill that turns feature ideas into structured PRDs before engineering planning โ โจ NEW |
|
|
322
|
-
| 3 | ๐งญ **lmf** | Learning-first mode flow โ wrapper skill that combines `brainstorming`, `writing-plans`, and `writing-documentation` into a tutorial-first orchestration pattern โ โจ NEW |
|
|
362
|
+
| 3 | ๐งญ **lmf** | Learning-first mode flow โ wrapper skill that combines `brainstorming`, `writing-plans`, and `writing-documentation` into a tutorial-first orchestration pattern with copyable code when manual implementation is needed โ โจ NEW |
|
|
323
363
|
| 4 | ๐ **writing-plans** | Task decomposition โ dependency-aware plans with effort estimates, risk assessments, and implementation waves |
|
|
324
364
|
| 5 | โ๏ธ **executing-plans** | Plan execution โ wave-based implementation with checkpoints, inline verification, and state tracking |
|
|
325
365
|
| 6 | ๐งช **test-driven-development** | TDD methodology โ red-green-refactor cycle, test architecture, fixture patterns, and coverage strategies |
|
|
@@ -396,7 +436,7 @@ Commands are Claude Code slash commands (`.md` files installed to `.claude/comma
|
|
|
396
436
|
| `/init-project` | ๐๏ธ Initialize a new project with `.planning/` directory โ `PROJECT.md`, `REQUIREMENTS.md`, `ROADMAP.md`, `STATE.md`, `config.json`. Uses `planning-tools.cjs` for deterministic bootstrapping. |
|
|
397
437
|
| `/discuss` | ๐ฌ Pre-planning MCQ decision capture โ presents multiple-choice questions with recommendations, quick-answer format (`1A 2B 3C`), locks decisions in CONTEXT.md |
|
|
398
438
|
| `/prd` | ๐ Product requirements drafting โ interview-first flow that uses the local `write-prd` wrapper skill to produce a reusable PRD before implementation planning โ โจ NEW |
|
|
399
|
-
| `/lmf` | ๐งญ Learning-first tutorial flow โ uses the local `lmf` wrapper skill to combine explanation, planning, and
|
|
439
|
+
| `/lmf` | ๐งญ Learning-first tutorial flow โ uses the local `lmf` wrapper skill to combine explanation, planning, and copyable code guidance before execution โ โจ NEW |
|
|
400
440
|
| `/plan` | ๐ Create a 2-3 task implementation plan with task anatomy (`<files>` `<action>` `<verify>` `<done>`), context budgets, and locked decision enforcement |
|
|
401
441
|
| `/execute` | โ๏ธ Execute an implementation plan with deviation protocol (4 categories), checkpoint system, and `planning-tools.cjs` state management |
|
|
402
442
|
| `/verify` | โ
Validate implementations against plans โ automated checks, compliance verification, regression testing, conversational UAT |
|
|
@@ -476,7 +516,7 @@ Workflows are Antigravity step-by-step execution scripts (`.md` files installed
|
|
|
476
516
|
| `/init-project` | ๐๏ธ Initialize project with `.planning/` structure |
|
|
477
517
|
| `/discuss` | ๐ฌ Pre-planning MCQ discussion with quick-answer |
|
|
478
518
|
| `/prd` | ๐ Product requirements workflow that mirrors the local `write-prd` wrapper skill in Antigravity โ โจ NEW |
|
|
479
|
-
| `/lmf` | ๐งญ Learning-first tutorial workflow that mirrors the local `lmf` wrapper skill in Antigravity โ โจ NEW |
|
|
519
|
+
| `/lmf` | ๐งญ Learning-first tutorial workflow that mirrors the local `lmf` wrapper skill in Antigravity, including copyable code when implementation is needed โ โจ NEW |
|
|
480
520
|
| `/plan-feature` | ๐ Plan a feature with research, design, and task decomposition |
|
|
481
521
|
| `/execute` | โ๏ธ Execute plans with wave-based steps and verification |
|
|
482
522
|
| `/verify` | โ
Validate implementation against plans |
|
|
@@ -650,45 +690,6 @@ Use `/memory init` to initialize, `/memory write` to save.
|
|
|
650
690
|
|
|
651
691
|
---
|
|
652
692
|
|
|
653
|
-
## ๐ LLM Council v2 โ Agent Team Coordination
|
|
654
|
-
|
|
655
|
-
### The Problem
|
|
656
|
-
AI coding tasks fail at scale because no single agent can hold all context: database schemas, API routes, service dependencies, frontend components, and business logic โ simultaneously. Linear handoffs lose context. Role-switching in a single context window wastes tokens.
|
|
657
|
-
|
|
658
|
-
### The Solution: Real Subagent Spawning + Deterministic Orchestration
|
|
659
|
-
|
|
660
|
-
**Council v2** replaces the old role-switching pattern with **real subagent spawning** via `Task()`. Each specialist agent gets a fresh 200k context window โ no shared context pollution. The orchestrator stays lean at ~10-15% context usage.
|
|
661
|
-
|
|
662
|
-
```
|
|
663
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
664
|
-
โ ๐ฏ ORCHESTRATOR (lean) โ
|
|
665
|
-
โ ~10-15% context usage โ
|
|
666
|
-
โ 13 deterministic CLI commands โ
|
|
667
|
-
โ Code-enforced quality gates โ
|
|
668
|
-
โโโโโโโโโโโโโโฆโโโโโโโโโโโโโโโโโโโ
|
|
669
|
-
โ
|
|
670
|
-
Task() spawning
|
|
671
|
-
โโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโ
|
|
672
|
-
โโโโโโโโผโโโ โโโโโโโโผโโโ โโโโผโโโโโ โโโโผโโโโโโโ
|
|
673
|
-
โ๐ฌResearchโ โ๐Plannerโ โโ๏ธExec โ โ๐Review โ
|
|
674
|
-
โ Fresh โ โ Fresh โ โ Fresh โ โ Fresh โ
|
|
675
|
-
โ 200k ctx โ โ 200k โ โ 200k โ โ 200k โ
|
|
676
|
-
โโโโโโโโโโโโ โโโโโโโโโโ โโโโโโโโ โโโโโโโโโโโ
|
|
677
|
-
```
|
|
678
|
-
|
|
679
|
-
### Key Capabilities
|
|
680
|
-
|
|
681
|
-
| Capability | Description |
|
|
682
|
-
|:---|:---|
|
|
683
|
-
| ๐ง **Real subagent spawning** | Each agent gets a fresh 200k context via `Task()` โ no shared context pollution |
|
|
684
|
-
| ๐๏ธ **13 CLI commands** | Deterministic state machine for council orchestration (`council start`, `council next`, `council status`, etc.) |
|
|
685
|
-
| ๐ช **Code-enforced quality gates** | Agents cannot advance phases without passing automated gate checks |
|
|
686
|
-
| ๐ฏ **6 presets** | Full, Rapid, Debug, Architecture, Refactoring, Audit councils |
|
|
687
|
-
| ๐ **Lean orchestrator** | Orchestrator uses ~10-15% context โ delegates deep work to specialists |
|
|
688
|
-
| ๐ง **Memory Module** | Deep intelligence layer: schemas, routes, services, components, tech stack |
|
|
689
|
-
|
|
690
|
-
---
|
|
691
|
-
|
|
692
693
|
## ๐ Project Structure
|
|
693
694
|
|
|
694
695
|
```
|
package/commands/lmf.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: lmf
|
|
3
|
-
description: "Run the learning-first /lmf flow for tutorial-style planning and
|
|
3
|
+
description: "Run the learning-first /lmf flow for tutorial-style planning, explanation, and copyable code before execution."
|
|
4
4
|
disable-model-invocation: true
|
|
5
5
|
argument-hint: "[topic-or-task]"
|
|
6
6
|
---
|
|
@@ -18,6 +18,7 @@ Guide the user through the request in a tutorial-first way using the local `lmf`
|
|
|
18
18
|
- Mental model
|
|
19
19
|
- Recommended path
|
|
20
20
|
- Step-by-step actions
|
|
21
|
+
- Copyable code
|
|
21
22
|
- Next move
|
|
22
23
|
4. Compose the existing ALENA skills inside the response:
|
|
23
24
|
- `brainstorming` for intent and trade-offs
|
|
@@ -26,11 +27,13 @@ Guide the user through the request in a tutorial-first way using the local `lmf`
|
|
|
26
27
|
5. Keep the output local-first and tutorial-first:
|
|
27
28
|
- Explain before optimizing
|
|
28
29
|
- Be specific to the current request and codebase
|
|
29
|
-
-
|
|
30
|
+
- Include copyable code blocks when the user needs to implement manually or when code would teach faster than prose
|
|
31
|
+
- Prefer complete file-level snippets over pseudo-code and placeholders
|
|
30
32
|
- Do not turn `/lmf` into a shell-script or helper-script instruction
|
|
31
33
|
|
|
32
34
|
## Success Criteria
|
|
33
35
|
|
|
34
36
|
- The user understands the problem shape before seeing the steps
|
|
35
37
|
- The response contains a clear recommendation with trade-offs
|
|
38
|
+
- The response includes copyable code when implementation detail is needed
|
|
36
39
|
- The next action is explicit enough to execute immediately
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radenadri/skills-alena",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "ALENA is a personal toolkit for autonomous, networked AI agents",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Adriana Eka Prayudha",
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
"tsup": "^8.0.0",
|
|
83
83
|
"typescript": "^5.3.0"
|
|
84
84
|
}
|
|
85
|
-
}
|
|
85
|
+
}
|
package/skills/lmf/SKILL.md
CHANGED
|
@@ -9,6 +9,8 @@ description: "Use when the user wants a learning-first walkthrough, tutorial-sty
|
|
|
9
9
|
|
|
10
10
|
This skill turns a request into a tutorial-first response that teaches the user what is happening before pushing them straight into implementation. It wraps `brainstorming`, `writing-plans`, and `writing-documentation` into one repeatable flow so `/lmf` can stay educational without becoming vague.
|
|
11
11
|
|
|
12
|
+
`/lmf` is also the manual-coding alternative to `/execute`: it should explain the work, show the shape of the implementation, and include copyable code blocks when code would help the user type the solution themselves instead of having the agent apply it automatically.
|
|
13
|
+
|
|
12
14
|
**Core principle:** Teach the mental model first, then the implementation path, then the concrete next action.
|
|
13
15
|
|
|
14
16
|
## The Iron Law
|
|
@@ -24,6 +26,7 @@ WHEN /LMF IS ACTIVE, EXPLAIN THE MENTAL MODEL BEFORE PRESCRIBING THE STEPS.
|
|
|
24
26
|
- The user wants explanation-heavy guidance for planning or documentation work
|
|
25
27
|
- The user needs to understand the "why" and "how" before they start coding
|
|
26
28
|
- The task benefits from combining design clarification, actionable planning, and reader-friendly documentation
|
|
29
|
+
- The user wants to implement the code manually and needs copyable code output instead of automatic execution
|
|
27
30
|
|
|
28
31
|
## When NOT to Use
|
|
29
32
|
|
|
@@ -44,18 +47,21 @@ YOU CANNOT:
|
|
|
44
47
|
- Turn /lmf into a helper-script instruction -- it must work through direct agent output
|
|
45
48
|
- Overwhelm the user with exhaustive theory when a shorter explanation would teach faster
|
|
46
49
|
- Claim the user is "ready to implement" without giving concrete next actions
|
|
50
|
+
- Omit copyable code when the user clearly needs to type the implementation by hand
|
|
51
|
+
- Use placeholder snippets, ellipses, or pseudo-code where real code is needed to teach the implementation
|
|
47
52
|
```
|
|
48
53
|
|
|
49
54
|
## Common Rationalizations (Don't Accept These)
|
|
50
55
|
|
|
51
56
|
| Rationalization | Reality |
|
|
52
57
|
|----------------|---------|
|
|
53
|
-
| "They asked for help, so I'll just give them the final code" | /lmf exists to teach before it ships code. |
|
|
58
|
+
| "They asked for help, so I'll just give them the final code" | /lmf exists to teach before it ships code, not to avoid code entirely. |
|
|
54
59
|
| "The concepts are obvious" | If they invoked /lmf, the concepts are not obvious enough yet. |
|
|
55
60
|
| "I'll explain after the steps" | Once the user is buried in steps, the teaching value is lost. |
|
|
56
61
|
| "A long theory dump is more educational" | Good teaching is selective, not bloated. |
|
|
57
62
|
| "The wrapper skill can just point to other skills" | A wrapper that does not synthesize is not doing its job. |
|
|
58
63
|
| "This request is too practical for tutorial mode" | Practical requests are exactly where explanation-first guidance matters. |
|
|
64
|
+
| "If I include code, it stops being /lmf" | /lmf should include code when the code helps the user learn and implement manually. |
|
|
59
65
|
|
|
60
66
|
## Iron Questions
|
|
61
67
|
|
|
@@ -68,7 +74,7 @@ YOU CANNOT:
|
|
|
68
74
|
6. What are the first concrete actions the user can take after reading this? (list them)
|
|
69
75
|
7. Did I teach the "why" before the "do this" instructions? (show the section order)
|
|
70
76
|
8. Did I keep the explanation specific to the request instead of generic tutorial filler? (prove it)
|
|
71
|
-
9. If I included code, does each snippet clarify a concept
|
|
77
|
+
9. If I included code, does each snippet clarify a concept and give the user something real to type? (justify it)
|
|
72
78
|
10. Can the user act on this output immediately without needing another translation step? (state how)
|
|
73
79
|
```
|
|
74
80
|
|
|
@@ -97,7 +103,8 @@ YOU CANNOT:
|
|
|
97
103
|
1. EXPLAIN the mental model first -- what this is, why it matters, and how to think about it.
|
|
98
104
|
2. GIVE the recommended approach second -- what path to take and why this path wins.
|
|
99
105
|
3. BREAK the work into concrete steps third -- ordered, actionable, and scoped.
|
|
100
|
-
4. INCLUDE
|
|
106
|
+
4. INCLUDE code when it reduces ambiguity, teaches a non-obvious concept faster, or lets the user implement the change manually.
|
|
107
|
+
5. WHEN code is needed, prefer complete, copyable code blocks over pseudo-code or placeholder fragments.
|
|
101
108
|
```
|
|
102
109
|
|
|
103
110
|
### Phase 4: Land the Next Action
|
|
@@ -106,6 +113,7 @@ YOU CANNOT:
|
|
|
106
113
|
1. END with the exact next move the user can take.
|
|
107
114
|
2. IF implementation is requested, bridge cleanly into execution instead of repeating the lesson.
|
|
108
115
|
3. IF documentation is requested, leave the user with wording or structure they can directly adopt.
|
|
116
|
+
4. IF the user wants to code manually, give them the exact files and code blocks they can type in themselves.
|
|
109
117
|
```
|
|
110
118
|
|
|
111
119
|
## Output Format
|
|
@@ -129,16 +137,27 @@ Use this structure unless the user asks for a different shape:
|
|
|
129
137
|
2. [Concrete action]
|
|
130
138
|
3. [Concrete action]
|
|
131
139
|
|
|
140
|
+
## Copyable Code
|
|
141
|
+
[Only include when code is needed to implement or clarify the request.
|
|
142
|
+
Prefer complete fenced blocks per file, with file names and no placeholder ellipses.]
|
|
143
|
+
|
|
132
144
|
## Next Move
|
|
133
145
|
[Immediate follow-up action]
|
|
134
146
|
```
|
|
135
147
|
|
|
148
|
+
When the request is implementation-oriented, `/lmf` should usually include a `Copyable Code` section after the explanation. The section should:
|
|
149
|
+
- name the file being created or edited
|
|
150
|
+
- provide complete, typeable code blocks for the core implementation
|
|
151
|
+
- avoid placeholders like `...`, `TODO`, or "fill this in"
|
|
152
|
+
- stay scoped to the minimum useful code that teaches the solution
|
|
153
|
+
|
|
136
154
|
## Red Flags -- STOP
|
|
137
155
|
|
|
138
156
|
- Opening with implementation steps before explaining the shape of the task
|
|
139
157
|
- Writing a generic tutorial that could apply to any repository
|
|
140
158
|
- Giving only theory with no next action
|
|
141
159
|
- Giving only steps with no explanation
|
|
160
|
+
- Giving only file instructions with no actual code when code is necessary to complete the task manually
|
|
142
161
|
- Using `/lmf` as a synonym for `/plan` or `/doc` without the learning-first layer
|
|
143
162
|
- Treating the wrapper skill as a duplicate copy of the underlying skills
|
|
144
163
|
|
package/workflows/lmf.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Run the learning-first /lmf flow for tutorial-style explanation, planning, and
|
|
2
|
+
description: Run the learning-first /lmf flow for tutorial-style explanation, planning, and copyable code guidance
|
|
3
3
|
---
|
|
4
4
|
|
|
5
5
|
## Steps
|
|
@@ -28,12 +28,14 @@ rg -n "$ARGUMENTS|lmf|tutorial|plan|README|CLAUDE|GEMINI" . --glob '!node_module
|
|
|
28
28
|
- **Mental Model** - how to think about the task
|
|
29
29
|
- **Recommended Path** - what to do and why
|
|
30
30
|
- **Step-by-Step** - concrete actions in order
|
|
31
|
+
- **Copyable Code** - complete code blocks for the files the user may type manually when code is needed
|
|
31
32
|
- **Next Move** - the immediate follow-up action
|
|
32
33
|
|
|
33
34
|
6. Keep `/lmf` tutorial-first:
|
|
34
35
|
- Explain before prescribing
|
|
35
36
|
- Stay local-first and grounded in the current repo
|
|
36
|
-
-
|
|
37
|
+
- Include copyable code when it teaches faster than prose or when the user wants to implement manually
|
|
38
|
+
- Avoid placeholder snippets, pseudo-code, or "fill this in later" examples
|
|
37
39
|
- Do not delegate to a local helper script
|
|
38
40
|
|
|
39
41
|
7. If the user wants to move from teaching mode to implementation, bridge cleanly into `/plan`, `/execute`, or direct execution as appropriate.
|