kodelyth-ecc 1.5.1 → 1.5.3
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/CHANGELOG.md +128 -0
- package/README.md +131 -12
- package/VERSION +1 -1
- package/agents/image-architect.md +190 -0
- package/commands/lessons.md +92 -0
- package/commands/project-launch.md +74 -0
- package/commands/team-review.md +90 -0
- package/package.json +6 -2
- package/rules/common/agent-intent-routing.md +262 -109
- package/rules/common/self-improvement-workflow.md +15 -0
- package/social/card-agents.svg +67 -66
- package/social/card-install.svg +35 -54
- package/social/card-main.svg +23 -41
- package/social/facebook-v150.svg +81 -102
- package/social/github-social-preview.svg +81 -107
- package/social/readme-hero.svg +63 -104
- package/social/x-card-agents-grid.svg +82 -92
- package/social/x-card-free.svg +41 -31
- package/social/x-card-hook.svg +69 -35
- package/wiki/Agent-Reference.md +192 -398
- package/wiki/FAQ.md +207 -229
- package/wiki/Home.md +137 -114
- package/wiki/Hook-Reference.md +231 -197
- package/wiki/Installation-Guide.md +191 -208
- package/wiki/Platform-Support.md +207 -187
- package/wiki/Skill-Reference.md +195 -211
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,134 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to Kodelyth ECC are documented here.
|
|
4
4
|
|
|
5
|
+
## v1.5.3 — God-Tier Intent Routing Expansion (May 2026)
|
|
6
|
+
|
|
7
|
+
### The Routing Overhaul
|
|
8
|
+
|
|
9
|
+
Intent routing was already powerful. Now it's semantic. The AI no longer pattern-matches against keyword lists — it reads intent behind words, reasons about emotion, and catches every natural-language description of a problem without the user knowing any command names.
|
|
10
|
+
|
|
11
|
+
### What Changed
|
|
12
|
+
|
|
13
|
+
#### `rules/common/agent-intent-routing.md` — complete expansion
|
|
14
|
+
|
|
15
|
+
**Semantic reasoning preamble (new):**
|
|
16
|
+
- The AI is now explicitly instructed to reason about *intent behind words*, not keyword-match
|
|
17
|
+
- Code paste detection: user pastes a block of code with no text → auto-routes to `code-reviewer`
|
|
18
|
+
- Stack trace paste detection: user pastes an error log with no text → auto-routes to `debug-detective`
|
|
19
|
+
- Emotion as a routing signal: frustration, excitement, confusion, worry all trigger routing
|
|
20
|
+
- "The signal tables are examples, not exhaustive lists" — AI uses reasoning, not lookup tables
|
|
21
|
+
|
|
22
|
+
**Expanded signal coverage (2–3x more per agent):**
|
|
23
|
+
|
|
24
|
+
| Agent | Added signals |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `debug-detective` | "nothing works", "driving me crazy", "acting weird", "stopped working", "broken again", naked stack trace paste |
|
|
27
|
+
| `code-reviewer` | "take a look at this", "eyes on this", "would you write it differently?", "before I merge", naked code paste |
|
|
28
|
+
| `kodelyth-advisor` | "can someone help me", "any advice", "am I doing this right?", "what would you do here?" |
|
|
29
|
+
| `ux-reviewer` | "the UI is confusing", "hard to use", "nobody can find the button", "users are confused" |
|
|
30
|
+
| `performance-optimizer` | "make this faster", "optimize this", "the API is slow", "reduce the load time" |
|
|
31
|
+
| `security-reviewer` | "is this safe", "any security issues", "I'm worried this might be insecure" |
|
|
32
|
+
| `migration-guide` | "this is deprecated", "moving to the new version", "old way is removed" |
|
|
33
|
+
| `doc-updater` | "nobody knows how this works", "there are no docs", "write documentation" |
|
|
34
|
+
| `refactor-cleaner` | "cruft", "old stuff hanging around", "vestigial code", "this is copy-pasted everywhere" |
|
|
35
|
+
| `chief-of-staff` | "draft an email", "reply to this", "how should I say this", "status update" |
|
|
36
|
+
| `seo-specialist` | "my page doesn't rank", "Google isn't indexing" |
|
|
37
|
+
|
|
38
|
+
**`/project-launch` — catches all new-build language:**
|
|
39
|
+
- "help me build a todo app" → caught
|
|
40
|
+
- "I have this idea for an app" → caught
|
|
41
|
+
- "I'm starting a new side project" → caught
|
|
42
|
+
- "I want to make a ..." → caught
|
|
43
|
+
- "new SaaS", "startup idea", "I want to launch" → caught
|
|
44
|
+
- Key rule: any non-trivial new build defaults to `/project-launch`
|
|
45
|
+
|
|
46
|
+
**`/team-review` — catches all broad review language:**
|
|
47
|
+
- "can you review my code?" → caught (key rule: narrow = language reviewer, broad = /team-review)
|
|
48
|
+
- "is this ready to ship?" → caught
|
|
49
|
+
- "about to go live" → caught
|
|
50
|
+
- "go through my code" → caught
|
|
51
|
+
|
|
52
|
+
**`image-architect` — catches implicit visual need:**
|
|
53
|
+
- "my site looks plain" → caught
|
|
54
|
+
- "make it look good" → caught
|
|
55
|
+
- "the page looks bare" → caught
|
|
56
|
+
- "give it some flair" → caught
|
|
57
|
+
- "I need something for the homepage" → caught
|
|
58
|
+
|
|
59
|
+
**`/lessons` — catches habit encoding:**
|
|
60
|
+
- "from now on always X" → caught
|
|
61
|
+
- "make it a rule that" → caught
|
|
62
|
+
- "I want you to always" → caught
|
|
63
|
+
- Proactive session-start offer: if `tasks/lessons.md` exists → "Found project lessons. Load them now?"
|
|
64
|
+
|
|
65
|
+
**Updated routing examples table:**
|
|
66
|
+
- 36 examples (up from 22)
|
|
67
|
+
- Natural human phrases: "help me build a todo app", "my site looks plain", "can you review my code?", "from now on never use var", naked code/trace paste
|
|
68
|
+
|
|
69
|
+
### Why This Matters
|
|
70
|
+
|
|
71
|
+
Before v1.5.3: routing worked if you said the right words. "Generate an image" → routed. "My site looks boring" → not routed.
|
|
72
|
+
|
|
73
|
+
After v1.5.3: routing works from the first word of any natural description. The AI reads intent, not phrases. You never need to know a command name. You never need to know an agent exists.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## v1.5.2 — Parallel Agents + Cross-Platform Lessons + AI Image Generation (May 2026)
|
|
78
|
+
|
|
79
|
+
### The Parallel Era
|
|
80
|
+
|
|
81
|
+
ECC becomes fully multi-platform and multi-agent. Five agents can now run simultaneously on a single task. Image generation works natively on every platform. Lessons work everywhere, not just Claude Code.
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
|
|
85
|
+
#### `image-architect` agent — Platform-aware AI image generation
|
|
86
|
+
- **Google Antigravity**: uses Gemini Imagen 3 natively — no API key, no setup
|
|
87
|
+
- **Codex CLI**: uses DALL-E 3 natively — no API key, no setup
|
|
88
|
+
- **Claude Code**: fal.ai MCP → SVG fallback
|
|
89
|
+
- **Windsurf / Cursor**: native model image gen → fal.ai → SVG fallback
|
|
90
|
+
- Knows exact dimensions for every use case: hero (1920×1080), OG (1200×630), Twitter (1200×675), LinkedIn (1584×396), square (1080×1080), GitHub preview (1280×640)
|
|
91
|
+
- Full prompt engineering guide built in — structured prompts for photorealistic and illustrated styles
|
|
92
|
+
- Always produces SVG fallback alongside AI-generated images
|
|
93
|
+
- Can generate full social kit (5 assets) in one command
|
|
94
|
+
|
|
95
|
+
#### `/project-launch` command — Parallel founding team for new projects
|
|
96
|
+
- Fires 5 agents simultaneously: `architect` + `pair-programmer` + `security-reviewer` + `tdd-guide` + `ux-reviewer`
|
|
97
|
+
- Each agent gets focused narrow context → cheaper per agent, runs in parallel
|
|
98
|
+
- Aggregated **Project Launch Report** with architecture, risk, threat model, test strategy, UX blueprint
|
|
99
|
+
- `--full` flag adds `performance-optimizer` + `api-guardian`
|
|
100
|
+
- Wall-clock time: ~10 min vs ~45 min sequential
|
|
101
|
+
|
|
102
|
+
#### `/team-review` command — Parallel full audit for existing projects
|
|
103
|
+
- Fires 4 agents simultaneously: `code-reviewer` + `security-reviewer` + `performance-optimizer` + `api-guardian`
|
|
104
|
+
- Scope options: whole repo, directory, `--changed` (git diff only), `--pre-release`
|
|
105
|
+
- Aggregated **Team Review Report** with severity ratings (CRITICAL / HIGH / MEDIUM / LOW)
|
|
106
|
+
- `--pre-release` adds `release-captain` for ship-readiness check
|
|
107
|
+
- Wall-clock time: ~15 min vs ~60 min sequential
|
|
108
|
+
|
|
109
|
+
#### `/lessons` command — Cross-platform project lessons
|
|
110
|
+
- Works on ALL platforms: Claude Code, Windsurf, Cursor, Codex, Antigravity, OpenCode
|
|
111
|
+
- `/lessons` — load and apply all lessons from `tasks/lessons.md` for this session
|
|
112
|
+
- `/lessons save` — extract corrections from current session, confirm, write to file
|
|
113
|
+
- `/lessons add "<rule>"` — add a manual rule instantly
|
|
114
|
+
- `/lessons clear` — review and prune stale rules
|
|
115
|
+
- On Claude Code: already automatic via hooks. On all other platforms: one command loads everything.
|
|
116
|
+
|
|
117
|
+
### Updated
|
|
118
|
+
|
|
119
|
+
- `rules/common/self-improvement-workflow.md` — added explicit cross-platform lesson loading instructions. Non-Claude-Code platforms instructed to proactively read `tasks/lessons.md` at session start.
|
|
120
|
+
- `rules/common/agent-intent-routing.md` — added routing patterns for `image-architect`, `/project-launch`, `/team-review`, `/lessons`. Added 7 new example routing decisions.
|
|
121
|
+
|
|
122
|
+
### Token and Time Economics
|
|
123
|
+
|
|
124
|
+
| Operation | Sequential | Parallel (`/project-launch` or `/team-review`) |
|
|
125
|
+
|---|---|---|
|
|
126
|
+
| New project analysis | ~45 min, 1 large context | ~10 min, 5 focused contexts |
|
|
127
|
+
| Full codebase audit | ~60 min, 1 large context | ~15 min, 4 focused contexts |
|
|
128
|
+
| Token cost | 1 full session | ~2× tokens, cached prefix = ~10% on system prompt |
|
|
129
|
+
| Net | Slower, more tokens per insight | Faster, cheaper per insight |
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
5
133
|
## v1.5.1 — Compound Learning System (May 2026)
|
|
6
134
|
|
|
7
135
|
### The Self-Improvement Loop
|
package/README.md
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|

|
|
9
9
|

|
|
10
10
|

|
|
11
|
-

|
|
12
|
+

|
|
13
13
|

|
|
14
14
|

|
|
15
15
|

|
|
16
|
-

|
|
17
|
+

|
|
18
18
|
|
|
19
19
|
</div>
|
|
20
20
|
|
|
21
|
-
**Kodelyth ECC** is a production-grade AI coding toolkit — **
|
|
21
|
+
**Kodelyth ECC** is a production-grade AI coding toolkit — **62 specialist agents, 188 skills, 80 commands**, a god-tier **semantic intent-routing system**, and **local self-learning memory** that gets smarter at helping *you* every session.
|
|
22
22
|
|
|
23
23
|
Works with **Claude Code**, **Windsurf**, **Cursor**, **Codex CLI**, **Google Antigravity**, and **OpenCode**.
|
|
24
24
|
|
|
@@ -118,7 +118,17 @@ invoke security-reviewer
|
|
|
118
118
|
|---|---|
|
|
119
119
|
| "I'm stuck, no idea where to start" | `kodelyth-advisor` |
|
|
120
120
|
| "I've been debugging this for hours" | `debug-detective` |
|
|
121
|
+
| "nothing works, driving me crazy" | `debug-detective` |
|
|
121
122
|
| "Should I use Context or Zustand?" | `pair-programmer` |
|
|
123
|
+
| "help me build a todo app" | `/project-launch` |
|
|
124
|
+
| "I have this idea for a SaaS dashboard" | `/project-launch` |
|
|
125
|
+
| "I'm starting a new side project" | `/project-launch` |
|
|
126
|
+
| "can you review my code?" | `code-reviewer` or `/team-review` |
|
|
127
|
+
| "review my project before I deploy" | `/team-review` |
|
|
128
|
+
| "is my project ready to ship?" | `/team-review` |
|
|
129
|
+
| "my site looks plain, needs visuals" | `image-architect` |
|
|
130
|
+
| "I need an OG image for my app" | `image-architect` |
|
|
131
|
+
| "remember we always use pnpm here" | `/lessons` |
|
|
122
132
|
| "Build failed on Vercel" | `build-error-resolver` |
|
|
123
133
|
| "Is this JWT signing secure?" | `security-reviewer` |
|
|
124
134
|
| "Why is this so slow?" | `performance-optimizer` |
|
|
@@ -129,6 +139,8 @@ invoke security-reviewer
|
|
|
129
139
|
| "Cut a 1.4 release" | `release-captain` |
|
|
130
140
|
| "Add accessibility to this form" | `ux-reviewer` |
|
|
131
141
|
| "Open-source this project" | `opensource-forker` (chain) |
|
|
142
|
+
| [paste code with no text] | `code-reviewer` |
|
|
143
|
+
| [paste stack trace with no text] | `debug-detective` |
|
|
132
144
|
|
|
133
145
|
The AI **always announces** which agent is taking over (`→ Routing to <agent>`) and **always teaches** you the explicit form for next time (`Tip: type "use <agent>"`). No silent personality changes.
|
|
134
146
|
|
|
@@ -212,22 +224,91 @@ See `skills/kodelyth-memory/SKILL.md` for the full design + CLI reference.
|
|
|
212
224
|
|
|
213
225
|
---
|
|
214
226
|
|
|
227
|
+
## Compound Learning System — Self-Improvement Loop (new in v1.5.1)
|
|
228
|
+
|
|
229
|
+
Every correction you give Claude gets encoded into your project permanently. The toolkit gets smarter every session without any effort from you.
|
|
230
|
+
|
|
231
|
+
```
|
|
232
|
+
Session 1: You type "use pnpm not npm"
|
|
233
|
+
→ Session ends
|
|
234
|
+
→ capture-correction.js scans the JSONL
|
|
235
|
+
→ Writes to tasks/lessons.md: "- use pnpm not npm"
|
|
236
|
+
|
|
237
|
+
Session 2: read-lessons.js fires at session start
|
|
238
|
+
→ Injects: "PROJECT LESSONS — HARD RULES: - use pnpm not npm"
|
|
239
|
+
→ Claude uses pnpm without being told
|
|
240
|
+
|
|
241
|
+
Month 1: 10+ corrections stacked
|
|
242
|
+
→ Claude knows your naming style, preferred patterns, tech opinions
|
|
243
|
+
→ Zero ramp-up time on any new task
|
|
244
|
+
|
|
245
|
+
Month 3: You try another tool
|
|
246
|
+
→ It uses npm. It uses the wrong pattern. It asks basic questions.
|
|
247
|
+
→ You come back.
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Three-layer compound memory architecture
|
|
251
|
+
|
|
252
|
+
| Layer | File | Scope | How it works |
|
|
253
|
+
|---|---|---|---|
|
|
254
|
+
| **Project Lessons** | `tasks/lessons.md` | Per-project | Hard rules from your corrections. Injected at session start as mandatory context. |
|
|
255
|
+
| **Global Memory** | `~/.kodelyth/memory/` | Cross-project | BM25 fuzzy recall of past solutions. Auto-fires on every prompt you type. |
|
|
256
|
+
| **Intent Routing** | 61 agents | Always-on | Routes your message to the right specialist from the first word. No names needed. |
|
|
257
|
+
|
|
258
|
+
### How it works under the hood
|
|
259
|
+
|
|
260
|
+
**`capture-correction.js`** — Stop hook, runs async at session end:
|
|
261
|
+
- Scans session JSONL for 12 correction signal patterns (`"no don't"`, `"use X instead"`, `"stop doing Y"`, `"we always"`, `"wrong approach"`, etc.)
|
|
262
|
+
- Extracts them as plain-language rules
|
|
263
|
+
- Appends them to `tasks/lessons.md` with date grouping
|
|
264
|
+
- Creates the file automatically if it doesn't exist
|
|
265
|
+
|
|
266
|
+
**`read-lessons.js`** — SessionStart hook, fires first before any other hook:
|
|
267
|
+
- Reads `tasks/lessons.md` and formats rules as `PROJECT LESSONS — HARD RULES` block
|
|
268
|
+
- Detects project DNA automatically: Node.js + framework (Next.js, React, NestJS, etc.), Go, Rust, Python, Java/Gradle, package manager (pnpm/bun/yarn/npm), test runner
|
|
269
|
+
- Surfaces open `tasks/todo.md` items into session context
|
|
270
|
+
- All injected as `additionalContext` — Claude sees it before your first message
|
|
271
|
+
|
|
272
|
+
**`rules/common/self-improvement-workflow.md`** — always-on rule:
|
|
273
|
+
- Boris Cherny's (Claude Code creator) internal team workflow, all 6 patterns
|
|
274
|
+
- Plan Node Default, Subagent Strategy, Self-Improvement Loop, Verification Before Done, Demand Elegance, Autonomous Bug Fixing
|
|
275
|
+
- Extended with ECC's three-layer compound memory protocol
|
|
276
|
+
|
|
277
|
+
### `tasks/lessons.md` — your project's rulebook
|
|
278
|
+
|
|
279
|
+
Edit it freely. Add rules manually. Remove rules that no longer apply. It's a plain markdown file at `tasks/lessons.md` in your project root. The more corrections you give, the more precisely it matches how you work.
|
|
280
|
+
|
|
281
|
+
```markdown
|
|
282
|
+
# Claude Lessons
|
|
283
|
+
|
|
284
|
+
Project: **my-app**
|
|
285
|
+
|
|
286
|
+
## 2026-05-06
|
|
287
|
+
|
|
288
|
+
- use pnpm not npm
|
|
289
|
+
- never add try/catch without logging the error first
|
|
290
|
+
- we use Zod for validation, not Yup
|
|
291
|
+
- component files go in src/components, not src/app
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
---
|
|
295
|
+
|
|
215
296
|
## What's Inside
|
|
216
297
|
|
|
217
298
|
| Component | Count | Description |
|
|
218
299
|
|---|---|---|
|
|
219
|
-
| Agents | **
|
|
300
|
+
| Agents | **62** | Specialist subagents — reviewers, planners, debuggers, architects, incident-commander, load-tester, memory, image-architect |
|
|
220
301
|
| Skills | **188** | Domain knowledge — patterns, testing, security, DevOps, intent routing, memory |
|
|
221
302
|
| Commands | **80** | Slash command workflows (`/tdd`, `/plan`, `/memory`, etc.) |
|
|
222
|
-
| Hooks | **
|
|
223
|
-
| Rules | **
|
|
303
|
+
| Hooks | **20+** | Quality gates, secret scanning, branch checks, memory inject + capture + correction + project DNA |
|
|
304
|
+
| Rules | **17** | Always-on coding standards + intent routing + memory protocol + self-improvement workflow |
|
|
224
305
|
| Memory | **local** | BM25-indexed personal memory at `~/.kodelyth/memory/` (zero deps) |
|
|
225
306
|
|
|
226
307
|
---
|
|
227
308
|
|
|
228
309
|
## Agent Arsenal
|
|
229
310
|
|
|
230
|
-
### Kodelyth Exclusives — The
|
|
311
|
+
### Kodelyth Exclusives — The 16 Agents That Make ECC
|
|
231
312
|
|
|
232
313
|
| Agent | One-line job |
|
|
233
314
|
|---|---|
|
|
@@ -246,6 +327,15 @@ See `skills/kodelyth-memory/SKILL.md` for the full design + CLI reference.
|
|
|
246
327
|
| `release-captain` | Owns the release ritual — semver, tagging, publishing, rollback |
|
|
247
328
|
| `env-debugger` | "Works on my machine" hunter — env, config, secrets, layers |
|
|
248
329
|
| `flake-hunter` | Stabilizes flaky tests — never adds blind retries |
|
|
330
|
+
| `image-architect` | AI image generation — Gemini/DALL-E/fal.ai/SVG, platform-aware |
|
|
331
|
+
|
|
332
|
+
### Parallel Commands — New in v1.5.2
|
|
333
|
+
|
|
334
|
+
| Command | What it does | Time saved |
|
|
335
|
+
|---|---|---|
|
|
336
|
+
| `/project-launch` | Fires 5 founding-team agents simultaneously on a new project | 45 min → 10 min |
|
|
337
|
+
| `/team-review` | Fires 4 audit agents simultaneously on existing code | 60 min → 15 min |
|
|
338
|
+
| `/lessons` | Loads project lessons on any platform (cross-platform) | Works everywhere |
|
|
249
339
|
|
|
250
340
|
### Agent Categories
|
|
251
341
|
|
|
@@ -273,7 +363,10 @@ Once installed (Claude Code target), these hooks run automatically with zero con
|
|
|
273
363
|
|
|
274
364
|
| Hook | What it does |
|
|
275
365
|
|---|---|
|
|
276
|
-
| Session start |
|
|
366
|
+
| Session start — lessons | Reads `tasks/lessons.md` and injects your hard rules + project DNA as context *(v1.5.1)* |
|
|
367
|
+
| Session start — memory | Loads relevant past solutions from global BM25 memory |
|
|
368
|
+
| Auto chat recall | Watches every prompt, injects relevant memories before AI responds |
|
|
369
|
+
| Correction capture | Detects when you correct Claude, encodes the rule to `tasks/lessons.md` *(v1.5.1)* |
|
|
277
370
|
| Pre-commit | Catches `console.log`, secrets, bad commit messages |
|
|
278
371
|
| Quality gate | Runs type checks and formatting after edits |
|
|
279
372
|
| Git push reminder | Prompts review before pushing |
|
|
@@ -281,7 +374,6 @@ Once installed (Claude Code target), these hooks run automatically with zero con
|
|
|
281
374
|
| Desktop notify | macOS notification when a long task finishes |
|
|
282
375
|
| MCP health check | Validates MCP servers before calling them |
|
|
283
376
|
| Test reminder | Prompts to write tests when code is edited without tests |
|
|
284
|
-
| Smart suggest | After each response, suggests the next logical agent |
|
|
285
377
|
| Branch name check | Blocks git branches that don't match naming convention |
|
|
286
378
|
|
|
287
379
|
---
|
|
@@ -460,7 +552,34 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for templates, checklists, and the full K
|
|
|
460
552
|
|
|
461
553
|
## Changelog
|
|
462
554
|
|
|
463
|
-
See [CHANGELOG.md](CHANGELOG.md). v1.5.
|
|
555
|
+
See [CHANGELOG.md](CHANGELOG.md). v1.5.3 highlights:
|
|
556
|
+
|
|
557
|
+
- **Routing overhaul:** intent routing now reads *semantic intent*, not keywords. The AI reasons about what you mean, not what you typed.
|
|
558
|
+
- **Code paste detection:** paste code with no text → auto-routes to `code-reviewer`
|
|
559
|
+
- **Stack trace detection:** paste an error log with no text → auto-routes to `debug-detective`
|
|
560
|
+
- **Emotion as signal:** frustration, confusion, excitement all trigger routing
|
|
561
|
+
- **2–3x more signals per agent** — `debug-detective`, `code-reviewer`, `kodelyth-advisor`, `ux-reviewer`, `performance-optimizer` all expanded with natural human phrases
|
|
562
|
+
- **`/project-launch`** now catches: "help me build a todo app", "I have this idea", "I'm starting a new side project"
|
|
563
|
+
- **`/team-review`** now catches: "can you review my code?", "about to go live", "go through my code"
|
|
564
|
+
- **`image-architect`** now catches: "my site looks plain", "make it look good", "give it some flair"
|
|
565
|
+
- **`/lessons`** now catches: "from now on always X", proactive session-start offer when `tasks/lessons.md` exists
|
|
566
|
+
|
|
567
|
+
v1.5.2 highlights:
|
|
568
|
+
|
|
569
|
+
- **Added:** `image-architect` agent — platform-aware AI image generation. Gemini Imagen 3 on Antigravity, DALL-E 3 on Codex, fal.ai on Claude Code, SVG fallback everywhere
|
|
570
|
+
- **Added:** `/project-launch` — 5 founding-team agents fire in parallel for new projects (45 min → 10 min)
|
|
571
|
+
- **Added:** `/team-review` — 4 audit agents fire in parallel for existing code (60 min → 15 min)
|
|
572
|
+
- **Added:** `/lessons` command — cross-platform lesson loading, works on Windsurf, Cursor, Codex, Antigravity, OpenCode
|
|
573
|
+
- **Updated:** intent routing with image generation, parallel commands, and lessons patterns
|
|
574
|
+
|
|
575
|
+
v1.5.1 highlights:
|
|
576
|
+
|
|
577
|
+
- **Added:** `capture-correction.js` Stop hook — detects 12 correction signal patterns in session JSONL, encodes them as hard rules to `tasks/lessons.md` automatically at session end
|
|
578
|
+
- **Added:** `read-lessons.js` SessionStart hook — injects `tasks/lessons.md` rules + project DNA (stack, framework, package manager, open todos) as session context before first message
|
|
579
|
+
- **Added:** `rules/common/self-improvement-workflow.md` — Boris Cherny's internal Claude Code team workflow (6 patterns) + ECC three-layer compound memory architecture
|
|
580
|
+
- **Architecture:** Three-layer compound memory — `tasks/lessons.md` (project-local) + `~/.kodelyth/memory/` (global BM25) + 61 agents (intent routing)
|
|
581
|
+
|
|
582
|
+
v1.5.0 highlights:
|
|
464
583
|
|
|
465
584
|
- **Added:** `incident-commander` — production incident response (triage, containment, postmortem) — distinct from `debug-detective`
|
|
466
585
|
- **Added:** `load-tester` — load/stress testing with k6, Locust, Artillery — distinct from `performance-optimizer`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.5.
|
|
1
|
+
1.5.3
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: image-architect
|
|
3
|
+
description: AI image generation specialist. Generates hero sections, OG images, social cards, thumbnails, and UI mockups. Platform-aware — uses native image generation on Antigravity (Gemini Imagen 3) and Codex (DALL-E 3), fal.ai MCP on Claude Code and Windsurf, and falls back to production-quality SVG on any platform with no API key. Knows exact dimensions, aspect ratios, and prompt engineering for every use case.
|
|
4
|
+
tools: [Bash, Write, Read]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# image-architect
|
|
8
|
+
|
|
9
|
+
You are an AI image generation specialist. You generate production-quality images for web products — hero sections, OG cards, social thumbnails, UI mockups, and marketing assets. You are platform-aware: you use the best image generation capability available on whatever platform the user is running.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Platform Detection — Use Native First
|
|
14
|
+
|
|
15
|
+
Before generating anything, identify the platform and pick the right generation method:
|
|
16
|
+
|
|
17
|
+
### Google Antigravity (Gemini)
|
|
18
|
+
Gemini has **native image generation** via Imagen 3. Use it directly — no API key needed, no extra setup.
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
Generate an image using Imagen 3:
|
|
22
|
+
Prompt: [your optimised prompt]
|
|
23
|
+
Aspect ratio: [ratio]
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Imagen 3 produces photorealistic and illustrated images at high quality. Use it as the primary method on Antigravity.
|
|
27
|
+
|
|
28
|
+
### OpenAI Codex CLI
|
|
29
|
+
Codex runs on GPT-4o which has access to **DALL-E 3** natively. Use it directly.
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
Generate an image with DALL-E 3:
|
|
33
|
+
Prompt: [your optimised prompt]
|
|
34
|
+
Size: [1792x1024 for landscape / 1024x1024 for square / 1024x1792 for portrait]
|
|
35
|
+
Quality: hd
|
|
36
|
+
Style: natural (for photos) or vivid (for illustrations)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
DALL-E 3 is the default on Codex — no configuration needed.
|
|
40
|
+
|
|
41
|
+
### Claude Code
|
|
42
|
+
Use **fal.ai MCP** if configured. Check with:
|
|
43
|
+
```bash
|
|
44
|
+
# If fal-ai MCP is in ~/.claude.json, it's available
|
|
45
|
+
```
|
|
46
|
+
If fal.ai is available: use `fal-ai/flux/schnell` (fast) or `fal-ai/flux-pro` (highest quality).
|
|
47
|
+
If not: fall back to production SVG.
|
|
48
|
+
|
|
49
|
+
### Windsurf / Cursor
|
|
50
|
+
Check if the configured model supports image generation (GPT-4o → DALL-E 3, Gemini → Imagen).
|
|
51
|
+
If not: use fal.ai MCP if configured, otherwise SVG fallback.
|
|
52
|
+
|
|
53
|
+
### Any Platform — SVG Fallback
|
|
54
|
+
When no image generation API is available: produce a **production-quality SVG** that rivals designed graphics. SVG is always available, instant, zero cost, and infinitely scalable.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Generation Priority by Platform
|
|
59
|
+
|
|
60
|
+
| Platform | 1st choice | 2nd choice | Always available |
|
|
61
|
+
|---|---|---|---|
|
|
62
|
+
| Google Antigravity | Gemini Imagen 3 (native) | fal.ai | SVG |
|
|
63
|
+
| Codex CLI | DALL-E 3 (native) | fal.ai | SVG |
|
|
64
|
+
| Claude Code | fal.ai MCP | — | SVG |
|
|
65
|
+
| Windsurf | GPT-4o/DALL-E or Gemini/Imagen | fal.ai | SVG |
|
|
66
|
+
| Cursor | GPT-4o/DALL-E or Gemini/Imagen | fal.ai | SVG |
|
|
67
|
+
| OpenCode | fal.ai | — | SVG |
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Prompt Engineering
|
|
72
|
+
|
|
73
|
+
Great prompts = great images. Always structure prompts with:
|
|
74
|
+
|
|
75
|
+
**For photorealistic (hero, product, team):**
|
|
76
|
+
```
|
|
77
|
+
[subject], [style], [lighting], [composition], [mood], [technical quality]
|
|
78
|
+
Example: "Developer at workstation, cinematic lighting, shallow depth of field,
|
|
79
|
+
dark moody atmosphere, electric blue monitor glow, sharp focus on hands and keyboard"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
**For illustrated / graphic (OG cards, social, thumbnails):**
|
|
83
|
+
```
|
|
84
|
+
[style] illustration of [subject], [color palette], [composition], [brand feel]
|
|
85
|
+
Example: "Flat design illustration of interconnected AI agents, electric purple and
|
|
86
|
+
cyan on dark navy, geometric shapes, minimal, tech startup aesthetic"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Negative prompt (always include for AI models):**
|
|
90
|
+
```
|
|
91
|
+
blurry, watermark, text, low quality, pixelated, distorted faces, extra limbs
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Imagen 3 specific:** Describe scenes in natural English. Detailed is better. Include "high resolution", "professional", "commercial photography style" for photorealistic.
|
|
95
|
+
|
|
96
|
+
**DALL-E 3 specific:** Use "vivid" style for illustrations, "natural" for photos. DALL-E 3 follows instructions very literally — be specific about what NOT to include.
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## Aspect Ratios by Use Case
|
|
101
|
+
|
|
102
|
+
| Use case | Dimensions | Notes |
|
|
103
|
+
|---|---|---|
|
|
104
|
+
| Hero section (desktop) | 1920×1080 | 16:9, save as `public/images/hero.jpg` |
|
|
105
|
+
| OG / social preview | 1200×630 | GitHub, Twitter, Facebook, WhatsApp |
|
|
106
|
+
| Twitter / X card | 1200×675 | 16:9 crop of OG |
|
|
107
|
+
| Facebook post | 1200×630 | Same as OG |
|
|
108
|
+
| LinkedIn banner | 1584×396 | 4:1 panoramic |
|
|
109
|
+
| Square post | 1080×1080 | Instagram, universal |
|
|
110
|
+
| Product thumbnail | 800×600 | 4:3 |
|
|
111
|
+
| Mobile hero | 1080×1920 | 9:16 portrait |
|
|
112
|
+
| GitHub social preview | 1280×640 | 2:1 exact |
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## SVG Fallback — Production Standard
|
|
117
|
+
|
|
118
|
+
When generating SVG (no image API available or user prefers it):
|
|
119
|
+
|
|
120
|
+
- Use `<linearGradient>` / `<radialGradient>` for depth and atmosphere
|
|
121
|
+
- Use `<filter>` with `feGaussianBlur` for glow effects on key elements
|
|
122
|
+
- Use `<defs>` to keep the file clean
|
|
123
|
+
- Match brand colors from `package.json`, README, or ask the user
|
|
124
|
+
- Typography: use `font-family="'Segoe UI', system-ui, -apple-system, sans-serif"`
|
|
125
|
+
- Always include `viewBox` for responsive scaling — no hardcoded pixel sizes in layout
|
|
126
|
+
- Keep files under 50KB — complex art belongs in AI-generated formats
|
|
127
|
+
- No placeholder boxes — every element should look intentional and designed
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Deliverables by Request Type
|
|
132
|
+
|
|
133
|
+
### Hero section
|
|
134
|
+
- AI image: 1920×1080, saved to `public/images/hero.jpg` or `public/hero.png`
|
|
135
|
+
- SVG version: same composition as lightweight vector at `public/images/hero.svg`
|
|
136
|
+
- CSS tip: `background: linear-gradient(to bottom, transparent 60%, #000 100%)` over the image for text legibility
|
|
137
|
+
|
|
138
|
+
### OG / GitHub / social preview
|
|
139
|
+
- 1200×630 with: product name, tagline, logo area, brand gradient
|
|
140
|
+
- Works as-is on GitHub, Twitter, Facebook, LinkedIn, WhatsApp preview cards
|
|
141
|
+
- Save as `public/og-image.svg` (SVG) or `public/og-image.png` (AI-generated)
|
|
142
|
+
|
|
143
|
+
### Full social kit (when user asks for complete set)
|
|
144
|
+
Generate all 5 in sequence:
|
|
145
|
+
1. OG card — 1200×630
|
|
146
|
+
2. Twitter/X card — 1200×675
|
|
147
|
+
3. Facebook post — 1200×630
|
|
148
|
+
4. LinkedIn banner — 1584×396
|
|
149
|
+
5. Square post — 1080×1080
|
|
150
|
+
|
|
151
|
+
### Product thumbnail / feature card
|
|
152
|
+
- 800×600 or square depending on use case
|
|
153
|
+
- Clean, icon-forward composition
|
|
154
|
+
- Consistent palette with the brand
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Workflow
|
|
159
|
+
|
|
160
|
+
1. Identify the platform (Antigravity → Gemini, Codex → DALL-E 3, Claude Code → fal.ai/SVG)
|
|
161
|
+
2. Ask (or infer from context): what is this image for? what is the product/brand?
|
|
162
|
+
3. Confirm dimensions and style direction with one short question
|
|
163
|
+
4. Generate the optimised prompt
|
|
164
|
+
5. Produce the image (native) or SVG
|
|
165
|
+
6. Save to the appropriate path and report what was created
|
|
166
|
+
7. Ask: "Want any adjustments — colors, mood, composition, text overlay?"
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## Intent Routing Triggers
|
|
171
|
+
|
|
172
|
+
The routing rule will send users here when they say:
|
|
173
|
+
- "generate a hero image / banner / thumbnail"
|
|
174
|
+
- "I need an OG image / social preview / GitHub card"
|
|
175
|
+
- "make a social card / cover image"
|
|
176
|
+
- "create product visuals / marketing images"
|
|
177
|
+
- "design a header / background image"
|
|
178
|
+
- "generate images for the landing page"
|
|
179
|
+
- "create a GitHub social preview"
|
|
180
|
+
- "I need visuals / artwork / graphics"
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Constraints
|
|
185
|
+
|
|
186
|
+
- Never generate images of real people by name
|
|
187
|
+
- Never generate NSFW content
|
|
188
|
+
- Always save files to `public/`, `assets/`, or `src/assets/` depending on the project structure
|
|
189
|
+
- Always produce an SVG version alongside AI-generated images
|
|
190
|
+
- When unsure of brand colors, ask before generating — wrong colors waste API credits
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Load, view, and save project lessons from tasks/lessons.md. Works on ALL platforms — Claude Code, Windsurf, Cursor, Codex, Antigravity, OpenCode.
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# /lessons — Project Self-Improvement
|
|
6
|
+
|
|
7
|
+
Cross-platform command for the Compound Learning System. Works everywhere, with or without hooks.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
/lessons → load and show all lessons for this session
|
|
13
|
+
/lessons save → extract corrections from this session and write to tasks/lessons.md
|
|
14
|
+
/lessons add "<rule>" → add a manual rule immediately
|
|
15
|
+
/lessons clear → show lessons and ask which to remove
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## What This Command Does
|
|
19
|
+
|
|
20
|
+
### `/lessons` (no args) — Load lessons
|
|
21
|
+
|
|
22
|
+
1. Check if `tasks/lessons.md` exists in the project root
|
|
23
|
+
2. Read all lesson rules (lines starting with `-`)
|
|
24
|
+
3. Inject them as **PROJECT LESSONS — HARD RULES** for this session
|
|
25
|
+
4. Print a summary of how many rules are active
|
|
26
|
+
5. Apply them immediately — do not wait for another message
|
|
27
|
+
|
|
28
|
+
If `tasks/lessons.md` does not exist yet, say:
|
|
29
|
+
> "No lessons file found. Corrections you give me this session will build it. Run `/lessons save` at the end of the session to write them."
|
|
30
|
+
|
|
31
|
+
### `/lessons save` — Capture session corrections
|
|
32
|
+
|
|
33
|
+
Scan the current conversation for user corrections:
|
|
34
|
+
- Phrases matching: "no don't", "use X instead", "stop doing Y", "wrong approach", "we always", "we never", "I told you", "that's not how we", "use X not Y"
|
|
35
|
+
- Extract each as a plain-language rule
|
|
36
|
+
- Show the extracted rules to the user before writing
|
|
37
|
+
- Ask: "Write these N rules to tasks/lessons.md?"
|
|
38
|
+
- On confirmation: create `tasks/` if needed, append rules with today's date
|
|
39
|
+
|
|
40
|
+
### `/lessons add "<rule>"` — Add a manual rule
|
|
41
|
+
|
|
42
|
+
Immediately append the rule to `tasks/lessons.md`:
|
|
43
|
+
```
|
|
44
|
+
## 2026-05-06
|
|
45
|
+
- <rule>
|
|
46
|
+
```
|
|
47
|
+
Confirm: "Rule added. It will be active from the next session (or reload with /lessons)."
|
|
48
|
+
|
|
49
|
+
### `/lessons clear` — Review and prune
|
|
50
|
+
|
|
51
|
+
Show all current rules numbered. Ask: "Which numbers to remove? (e.g. 1,3,5 or 'all')"
|
|
52
|
+
Remove selected lines and rewrite the file.
|
|
53
|
+
|
|
54
|
+
## Format of tasks/lessons.md
|
|
55
|
+
|
|
56
|
+
```markdown
|
|
57
|
+
# Claude Lessons
|
|
58
|
+
|
|
59
|
+
Project: **project-name**
|
|
60
|
+
|
|
61
|
+
Auto-generated by Kodelyth ECC. Edit freely — add, remove, reword. These are YOUR rules.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 2026-05-06
|
|
66
|
+
|
|
67
|
+
- use pnpm not npm
|
|
68
|
+
- never add try/catch without logging the error first
|
|
69
|
+
- we use Zod for validation, not Yup
|
|
70
|
+
|
|
71
|
+
## 2026-05-10
|
|
72
|
+
|
|
73
|
+
- component files go in src/components, not src/app
|
|
74
|
+
- always use early returns, never deeply nested if blocks
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Platform Notes
|
|
78
|
+
|
|
79
|
+
| Platform | Auto-load at start | Auto-capture at end | Manual via /lessons |
|
|
80
|
+
|---|---|---|---|
|
|
81
|
+
| Claude Code | Yes (SessionStart hook) | Yes (Stop hook) | Yes |
|
|
82
|
+
| Windsurf | No | No | Yes — run `/lessons` at start of every session |
|
|
83
|
+
| Cursor | No | No | Yes — run `/lessons` at start of every session |
|
|
84
|
+
| Codex CLI | No | No | Yes — run `/lessons` at start of every session |
|
|
85
|
+
| Antigravity | No | No | Yes — run `/lessons` at start of every session |
|
|
86
|
+
| OpenCode | No | No | Yes — run `/lessons` at start of every session |
|
|
87
|
+
|
|
88
|
+
**Tip for non-Claude-Code platforms:** Add `/lessons` as your first message in every session on this project. Takes 2 seconds and loads all your hard-earned rules instantly.
|
|
89
|
+
|
|
90
|
+
## Arguments
|
|
91
|
+
|
|
92
|
+
$ARGUMENTS
|