kodelyth-ecc 1.5.0 → 1.5.2

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 CHANGED
@@ -2,6 +2,116 @@
2
2
 
3
3
  All notable changes to Kodelyth ECC are documented here.
4
4
 
5
+ ## v1.5.2 — Parallel Agents + Cross-Platform Lessons + AI Image Generation (May 2026)
6
+
7
+ ### The Parallel Era
8
+
9
+ 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.
10
+
11
+ ### Added
12
+
13
+ #### `image-architect` agent — Platform-aware AI image generation
14
+ - **Google Antigravity**: uses Gemini Imagen 3 natively — no API key, no setup
15
+ - **Codex CLI**: uses DALL-E 3 natively — no API key, no setup
16
+ - **Claude Code**: fal.ai MCP → SVG fallback
17
+ - **Windsurf / Cursor**: native model image gen → fal.ai → SVG fallback
18
+ - 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)
19
+ - Full prompt engineering guide built in — structured prompts for photorealistic and illustrated styles
20
+ - Always produces SVG fallback alongside AI-generated images
21
+ - Can generate full social kit (5 assets) in one command
22
+
23
+ #### `/project-launch` command — Parallel founding team for new projects
24
+ - Fires 5 agents simultaneously: `architect` + `pair-programmer` + `security-reviewer` + `tdd-guide` + `ux-reviewer`
25
+ - Each agent gets focused narrow context → cheaper per agent, runs in parallel
26
+ - Aggregated **Project Launch Report** with architecture, risk, threat model, test strategy, UX blueprint
27
+ - `--full` flag adds `performance-optimizer` + `api-guardian`
28
+ - Wall-clock time: ~10 min vs ~45 min sequential
29
+
30
+ #### `/team-review` command — Parallel full audit for existing projects
31
+ - Fires 4 agents simultaneously: `code-reviewer` + `security-reviewer` + `performance-optimizer` + `api-guardian`
32
+ - Scope options: whole repo, directory, `--changed` (git diff only), `--pre-release`
33
+ - Aggregated **Team Review Report** with severity ratings (CRITICAL / HIGH / MEDIUM / LOW)
34
+ - `--pre-release` adds `release-captain` for ship-readiness check
35
+ - Wall-clock time: ~15 min vs ~60 min sequential
36
+
37
+ #### `/lessons` command — Cross-platform project lessons
38
+ - Works on ALL platforms: Claude Code, Windsurf, Cursor, Codex, Antigravity, OpenCode
39
+ - `/lessons` — load and apply all lessons from `tasks/lessons.md` for this session
40
+ - `/lessons save` — extract corrections from current session, confirm, write to file
41
+ - `/lessons add "<rule>"` — add a manual rule instantly
42
+ - `/lessons clear` — review and prune stale rules
43
+ - On Claude Code: already automatic via hooks. On all other platforms: one command loads everything.
44
+
45
+ ### Updated
46
+
47
+ - `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.
48
+ - `rules/common/agent-intent-routing.md` — added routing patterns for `image-architect`, `/project-launch`, `/team-review`, `/lessons`. Added 7 new example routing decisions.
49
+
50
+ ### Token and Time Economics
51
+
52
+ | Operation | Sequential | Parallel (`/project-launch` or `/team-review`) |
53
+ |---|---|---|
54
+ | New project analysis | ~45 min, 1 large context | ~10 min, 5 focused contexts |
55
+ | Full codebase audit | ~60 min, 1 large context | ~15 min, 4 focused contexts |
56
+ | Token cost | 1 full session | ~2× tokens, cached prefix = ~10% on system prompt |
57
+ | Net | Slower, more tokens per insight | Faster, cheaper per insight |
58
+
59
+ ---
60
+
61
+ ## v1.5.1 — Compound Learning System (May 2026)
62
+
63
+ ### The Self-Improvement Loop
64
+
65
+ Every correction you make to Claude gets encoded permanently into your project. Next session, Claude doesn't repeat the mistake. The month after, it matches how you think. After a year, it works like a team member who has been here for years.
66
+
67
+ ### New: Three-Layer Compound Memory Architecture
68
+
69
+ | Layer | File | Scope | How it works |
70
+ |---|---|---|---|
71
+ | Project Lessons | `tasks/lessons.md` | Per-project | Hard rules from your corrections. Injected at session start. |
72
+ | Global Memory | `~/.kodelyth/memory/` | Cross-project | BM25 fuzzy recall of past solutions. Auto-fires on every prompt. |
73
+ | Intent Routing | 61 agents | Always-on | Routes your message to the right specialist from the first word. |
74
+
75
+ ### Added
76
+
77
+ #### `hooks/memory/capture-correction.js` (Stop hook)
78
+ - Scans session JSONL for user correction patterns (12 signal types: "no don't", "use X instead", "stop doing Y", "we always", "wrong approach", etc.)
79
+ - Extracts corrections as hard rules and appends to `tasks/lessons.md` in the project root
80
+ - Runs async at session end — zero latency impact
81
+ - Self-deduplicates: same rule never written twice
82
+
83
+ #### `hooks/memory/read-lessons.js` (SessionStart hook)
84
+ - Reads `tasks/lessons.md` at session start and injects rules as high-priority context
85
+ - Detects project tech stack (Node.js + framework, Go, Rust, Python, Java) and injects a project DNA brief
86
+ - Reads open items from `tasks/todo.md` and surfaces them at session start
87
+ - Fires before all other hooks — lessons are always loaded first
88
+
89
+ #### `rules/common/self-improvement-workflow.md`
90
+ - Encodes Boris Cherny's internal Claude Code team workflow (6 patterns)
91
+ - Extended with ECC's three-layer compound memory architecture
92
+ - Plan Node Default, Subagent Strategy, Self-Improvement Loop, Verification Before Done, Demand Elegance, Autonomous Bug Fixing
93
+ - Task Management Protocol: `tasks/todo.md` + `tasks/lessons.md` as first-class project artifacts
94
+
95
+ ### How Addiction Works
96
+
97
+ ```
98
+ Session 1: You say "use pnpm not npm"
99
+ → capture-correction.js writes: "- use pnpm not npm" to tasks/lessons.md
100
+
101
+ Session 2: read-lessons.js fires at start
102
+ → "PROJECT LESSONS — HARD RULES" injected into context
103
+ → Claude uses pnpm without being told
104
+
105
+ Month 1: 10+ lessons stacked
106
+ → Claude matches your style, your conventions, your preferences
107
+
108
+ Month 3: You open another AI tool
109
+ → It feels like a new hire who knows nothing about your project
110
+ → You come back
111
+ ```
112
+
113
+ ---
114
+
5
115
  ## v1.5.0 — Incident Response + Load Testing + Complete Visual Refresh (May 2026)
6
116
 
7
117
  ### Added — 2 New Specialist Agents
package/README.md CHANGED
@@ -8,13 +8,13 @@
8
8
  ![Antigravity](https://img.shields.io/badge/Antigravity-Ready-00ADD8)
9
9
  ![Cursor](https://img.shields.io/badge/Cursor-Ready-3b82f6)
10
10
  ![Codex](https://img.shields.io/badge/Codex-Ready-10b981)
11
- ![Version](https://img.shields.io/badge/version-1.5.0-orange)
12
- ![Agents](https://img.shields.io/badge/Agents-61-brightgreen)
11
+ ![Version](https://img.shields.io/badge/version-1.5.2-orange)
12
+ ![Agents](https://img.shields.io/badge/Agents-62-brightgreen)
13
13
  ![Skills](https://img.shields.io/badge/Skills-188-brightgreen)
14
14
  ![Memory](https://img.shields.io/badge/Local%20Memory-on-blueviolet)
15
15
  ![Auto Recall](https://img.shields.io/badge/Auto%20Chat%20Recall-on-blueviolet)
16
- ![Incident Response](https://img.shields.io/badge/Incident%20Commander-new-red)
17
- ![Load Testing](https://img.shields.io/badge/Load%20Tester-new-yellow)
16
+ ![Parallel Agents](https://img.shields.io/badge/Parallel%20Agents-new-red)
17
+ ![Image Generation](https://img.shields.io/badge/AI%20Image%20Gen-new-yellow)
18
18
 
19
19
  </div>
20
20
 
@@ -212,22 +212,91 @@ See `skills/kodelyth-memory/SKILL.md` for the full design + CLI reference.
212
212
 
213
213
  ---
214
214
 
215
+ ## Compound Learning System — Self-Improvement Loop (new in v1.5.1)
216
+
217
+ Every correction you give Claude gets encoded into your project permanently. The toolkit gets smarter every session without any effort from you.
218
+
219
+ ```
220
+ Session 1: You type "use pnpm not npm"
221
+ → Session ends
222
+ → capture-correction.js scans the JSONL
223
+ → Writes to tasks/lessons.md: "- use pnpm not npm"
224
+
225
+ Session 2: read-lessons.js fires at session start
226
+ → Injects: "PROJECT LESSONS — HARD RULES: - use pnpm not npm"
227
+ → Claude uses pnpm without being told
228
+
229
+ Month 1: 10+ corrections stacked
230
+ → Claude knows your naming style, preferred patterns, tech opinions
231
+ → Zero ramp-up time on any new task
232
+
233
+ Month 3: You try another tool
234
+ → It uses npm. It uses the wrong pattern. It asks basic questions.
235
+ → You come back.
236
+ ```
237
+
238
+ ### Three-layer compound memory architecture
239
+
240
+ | Layer | File | Scope | How it works |
241
+ |---|---|---|---|
242
+ | **Project Lessons** | `tasks/lessons.md` | Per-project | Hard rules from your corrections. Injected at session start as mandatory context. |
243
+ | **Global Memory** | `~/.kodelyth/memory/` | Cross-project | BM25 fuzzy recall of past solutions. Auto-fires on every prompt you type. |
244
+ | **Intent Routing** | 61 agents | Always-on | Routes your message to the right specialist from the first word. No names needed. |
245
+
246
+ ### How it works under the hood
247
+
248
+ **`capture-correction.js`** — Stop hook, runs async at session end:
249
+ - Scans session JSONL for 12 correction signal patterns (`"no don't"`, `"use X instead"`, `"stop doing Y"`, `"we always"`, `"wrong approach"`, etc.)
250
+ - Extracts them as plain-language rules
251
+ - Appends them to `tasks/lessons.md` with date grouping
252
+ - Creates the file automatically if it doesn't exist
253
+
254
+ **`read-lessons.js`** — SessionStart hook, fires first before any other hook:
255
+ - Reads `tasks/lessons.md` and formats rules as `PROJECT LESSONS — HARD RULES` block
256
+ - 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
257
+ - Surfaces open `tasks/todo.md` items into session context
258
+ - All injected as `additionalContext` — Claude sees it before your first message
259
+
260
+ **`rules/common/self-improvement-workflow.md`** — always-on rule:
261
+ - Boris Cherny's (Claude Code creator) internal team workflow, all 6 patterns
262
+ - Plan Node Default, Subagent Strategy, Self-Improvement Loop, Verification Before Done, Demand Elegance, Autonomous Bug Fixing
263
+ - Extended with ECC's three-layer compound memory protocol
264
+
265
+ ### `tasks/lessons.md` — your project's rulebook
266
+
267
+ 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.
268
+
269
+ ```markdown
270
+ # Claude Lessons
271
+
272
+ Project: **my-app**
273
+
274
+ ## 2026-05-06
275
+
276
+ - use pnpm not npm
277
+ - never add try/catch without logging the error first
278
+ - we use Zod for validation, not Yup
279
+ - component files go in src/components, not src/app
280
+ ```
281
+
282
+ ---
283
+
215
284
  ## What's Inside
216
285
 
217
286
  | Component | Count | Description |
218
287
  |---|---|---|
219
- | Agents | **61** | Specialist subagents — reviewers, planners, debuggers, architects, incident-commander, load-tester, memory |
288
+ | Agents | **62** | Specialist subagents — reviewers, planners, debuggers, architects, incident-commander, load-tester, memory, image-architect |
220
289
  | Skills | **188** | Domain knowledge — patterns, testing, security, DevOps, intent routing, memory |
221
290
  | Commands | **80** | Slash command workflows (`/tdd`, `/plan`, `/memory`, etc.) |
222
- | Hooks | **18+** | Quality gates, secret scanning, branch checks, memory inject + capture |
223
- | Rules | **16** | Always-on coding standards + intent routing + memory protocol |
291
+ | Hooks | **20+** | Quality gates, secret scanning, branch checks, memory inject + capture + correction + project DNA |
292
+ | Rules | **17** | Always-on coding standards + intent routing + memory protocol + self-improvement workflow |
224
293
  | Memory | **local** | BM25-indexed personal memory at `~/.kodelyth/memory/` (zero deps) |
225
294
 
226
295
  ---
227
296
 
228
297
  ## Agent Arsenal
229
298
 
230
- ### Kodelyth Exclusives — The 15 Agents That Make ECC
299
+ ### Kodelyth Exclusives — The 16 Agents That Make ECC
231
300
 
232
301
  | Agent | One-line job |
233
302
  |---|---|
@@ -246,6 +315,15 @@ See `skills/kodelyth-memory/SKILL.md` for the full design + CLI reference.
246
315
  | `release-captain` | Owns the release ritual — semver, tagging, publishing, rollback |
247
316
  | `env-debugger` | "Works on my machine" hunter — env, config, secrets, layers |
248
317
  | `flake-hunter` | Stabilizes flaky tests — never adds blind retries |
318
+ | `image-architect` | AI image generation — Gemini/DALL-E/fal.ai/SVG, platform-aware |
319
+
320
+ ### Parallel Commands — New in v1.5.2
321
+
322
+ | Command | What it does | Time saved |
323
+ |---|---|---|
324
+ | `/project-launch` | Fires 5 founding-team agents simultaneously on a new project | 45 min → 10 min |
325
+ | `/team-review` | Fires 4 audit agents simultaneously on existing code | 60 min → 15 min |
326
+ | `/lessons` | Loads project lessons on any platform (cross-platform) | Works everywhere |
249
327
 
250
328
  ### Agent Categories
251
329
 
@@ -273,7 +351,10 @@ Once installed (Claude Code target), these hooks run automatically with zero con
273
351
 
274
352
  | Hook | What it does |
275
353
  |---|---|
276
- | Session start | Loads context from previous session |
354
+ | Session start — lessons | Reads `tasks/lessons.md` and injects your hard rules + project DNA as context *(v1.5.1)* |
355
+ | Session start — memory | Loads relevant past solutions from global BM25 memory |
356
+ | Auto chat recall | Watches every prompt, injects relevant memories before AI responds |
357
+ | Correction capture | Detects when you correct Claude, encodes the rule to `tasks/lessons.md` *(v1.5.1)* |
277
358
  | Pre-commit | Catches `console.log`, secrets, bad commit messages |
278
359
  | Quality gate | Runs type checks and formatting after edits |
279
360
  | Git push reminder | Prompts review before pushing |
@@ -281,7 +362,6 @@ Once installed (Claude Code target), these hooks run automatically with zero con
281
362
  | Desktop notify | macOS notification when a long task finishes |
282
363
  | MCP health check | Validates MCP servers before calling them |
283
364
  | Test reminder | Prompts to write tests when code is edited without tests |
284
- | Smart suggest | After each response, suggests the next logical agent |
285
365
  | Branch name check | Blocks git branches that don't match naming convention |
286
366
 
287
367
  ---
@@ -460,7 +540,22 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for templates, checklists, and the full K
460
540
 
461
541
  ## Changelog
462
542
 
463
- See [CHANGELOG.md](CHANGELOG.md). v1.5.0 highlights:
543
+ See [CHANGELOG.md](CHANGELOG.md). v1.5.2 highlights:
544
+
545
+ - **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
546
+ - **Added:** `/project-launch` — 5 founding-team agents fire in parallel for new projects (45 min → 10 min)
547
+ - **Added:** `/team-review` — 4 audit agents fire in parallel for existing code (60 min → 15 min)
548
+ - **Added:** `/lessons` command — cross-platform lesson loading, works on Windsurf, Cursor, Codex, Antigravity, OpenCode
549
+ - **Updated:** intent routing with image generation, parallel commands, and lessons patterns
550
+
551
+ v1.5.1 highlights:
552
+
553
+ - **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
554
+ - **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
555
+ - **Added:** `rules/common/self-improvement-workflow.md` — Boris Cherny's internal Claude Code team workflow (6 patterns) + ECC three-layer compound memory architecture
556
+ - **Architecture:** Three-layer compound memory — `tasks/lessons.md` (project-local) + `~/.kodelyth/memory/` (global BM25) + 61 agents (intent routing)
557
+
558
+ v1.5.0 highlights:
464
559
 
465
560
  - **Added:** `incident-commander` — production incident response (triage, containment, postmortem) — distinct from `debug-detective`
466
561
  - **Added:** `load-tester` — load/stress testing with k6, Locust, Artillery — distinct from `performance-optimizer`
package/SECURITY.md CHANGED
@@ -4,8 +4,12 @@
4
4
 
5
5
  | Version | Supported |
6
6
  |---------|-----------|
7
- | 1.1.x | Yes — active |
8
- | 1.0.x | Noupgrade to 1.1.x |
7
+ | 1.5.x | Yes — current stable |
8
+ | 1.4.x | Yessecurity fixes only |
9
+ | 1.3.x | Yes — security fixes only |
10
+ | 1.2.x | No — upgrade to 1.5.x |
11
+ | 1.1.x | No — upgrade to 1.5.x |
12
+ | 1.0.x | No — upgrade to 1.5.x |
9
13
  | < 1.0 | No |
10
14
 
11
15
  ---
package/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.0
1
+ 1.5.2
@@ -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
@@ -0,0 +1,74 @@
1
+ ---
2
+ description: Parallel founding-team blast for new projects. Fires architect + security + UX + TDD + pair-programmer simultaneously. One command, 5 specialist reports at once.
3
+ ---
4
+
5
+ # /project-launch — Parallel Founding Team
6
+
7
+ Launch all founding-team agents in parallel on your new project. What would take 40+ minutes sequentially finishes in under 10 minutes as one parallel burst.
8
+
9
+ ## Usage
10
+
11
+ ```
12
+ /project-launch <description>
13
+ /project-launch "SaaS dashboard with Stripe billing, user auth, real-time data"
14
+ /project-launch --full # adds performance-optimizer and api-guardian to the team
15
+ ```
16
+
17
+ ## What Gets Launched in Parallel
18
+
19
+ Five specialist agents fire simultaneously, each with the same project description:
20
+
21
+ | Agent | Deliverable |
22
+ |---|---|
23
+ | `architect` | System design — components, data flow, boundaries, trade-offs |
24
+ | `pair-programmer` | Approach validation — risks, wrong turns, questions to answer before coding |
25
+ | `security-reviewer` | Threat model — auth, data exposure, OWASP risks for THIS project type |
26
+ | `tdd-guide` | Test strategy — what to test first, test pyramid, critical paths |
27
+ | `ux-reviewer` | UX blueprint — user flows, accessibility requirements, interaction risks |
28
+
29
+ With `--full`, also adds:
30
+ - `performance-optimizer` — scaling bottlenecks, caching strategy, query patterns
31
+ - `api-guardian` — API contract design, versioning strategy, breaking change risks
32
+
33
+ ## How It Works
34
+
35
+ 1. Read the project description from `$ARGUMENTS`
36
+ 2. If no description provided, ask for one in one sentence
37
+ 3. Spawn all 5 (or 7) agents simultaneously with `run_in_background: true`
38
+ 4. Each agent receives: the project description + its specialist brief
39
+ 5. Wait for all to complete
40
+ 6. Aggregate results into a structured **Project Launch Report**:
41
+
42
+ ```
43
+ ## PROJECT LAUNCH REPORT
44
+ ### Architecture (architect)
45
+ [findings]
46
+
47
+ ### Approach Risks (pair-programmer)
48
+ [findings]
49
+
50
+ ### Threat Model (security-reviewer)
51
+ [findings]
52
+
53
+ ### Test Strategy (tdd-guide)
54
+ [findings]
55
+
56
+ ### UX Blueprint (ux-reviewer)
57
+ [findings]
58
+ ```
59
+
60
+ 7. After report: ask "Which area do you want to go deeper on first?"
61
+
62
+ ## Token Efficiency
63
+
64
+ Each agent gets a **narrow, focused context** — just the project description + its specialist instructions. No agent carries the full conversation history. The system prompt (rules + agents) is cached across all parallel agents. Result: 5× the analysis at roughly 2× the token cost of a single sequential session.
65
+
66
+ ## When to Use
67
+
68
+ - Starting any non-trivial project (3+ components, real users, production intent)
69
+ - Before writing a single line of code
70
+ - When you want to catch architecture mistakes before they're baked in
71
+
72
+ ## Arguments
73
+
74
+ $ARGUMENTS