@grant-vine/wunderkind 0.16.0 → 0.18.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.
Files changed (53) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +25 -8
  3. package/agents/ciso.md +4 -0
  4. package/agents/creative-director.md +1 -0
  5. package/agents/fullstack-wunderkind.md +15 -0
  6. package/agents/legal-counsel.md +1 -0
  7. package/agents/marketing-wunderkind.md +1 -0
  8. package/agents/product-wunderkind.md +14 -2
  9. package/commands/docs-index.md +1 -0
  10. package/commands/dream.md +1 -0
  11. package/dist/agents/fullstack-wunderkind.d.ts.map +1 -1
  12. package/dist/agents/fullstack-wunderkind.js +3 -1
  13. package/dist/agents/fullstack-wunderkind.js.map +1 -1
  14. package/dist/agents/product-wunderkind.js +1 -1
  15. package/dist/agents/render-markdown.d.ts.map +1 -1
  16. package/dist/agents/render-markdown.js +3 -0
  17. package/dist/agents/render-markdown.js.map +1 -1
  18. package/dist/agents/shared-prompt-sections.d.ts.map +1 -1
  19. package/dist/agents/shared-prompt-sections.js +3 -0
  20. package/dist/agents/shared-prompt-sections.js.map +1 -1
  21. package/dist/agents/slash-commands.d.ts +10 -2
  22. package/dist/agents/slash-commands.d.ts.map +1 -1
  23. package/dist/agents/slash-commands.js +13 -1
  24. package/dist/agents/slash-commands.js.map +1 -1
  25. package/dist/agents/versioning.d.ts +4 -0
  26. package/dist/agents/versioning.d.ts.map +1 -0
  27. package/dist/agents/versioning.js +41 -0
  28. package/dist/agents/versioning.js.map +1 -0
  29. package/dist/cli/cli-installer.js +3 -3
  30. package/dist/cli/cli-installer.js.map +1 -1
  31. package/dist/cli/config-manager/index.d.ts +24 -0
  32. package/dist/cli/config-manager/index.d.ts.map +1 -1
  33. package/dist/cli/config-manager/index.js +107 -11
  34. package/dist/cli/config-manager/index.js.map +1 -1
  35. package/dist/cli/doctor.d.ts.map +1 -1
  36. package/dist/cli/doctor.js +42 -1
  37. package/dist/cli/doctor.js.map +1 -1
  38. package/dist/cli/gitignore-manager.d.ts.map +1 -1
  39. package/dist/cli/gitignore-manager.js +1 -0
  40. package/dist/cli/gitignore-manager.js.map +1 -1
  41. package/dist/cli/index.js +2 -2
  42. package/dist/cli/index.js.map +1 -1
  43. package/dist/cli/init.d.ts.map +1 -1
  44. package/dist/cli/init.js +25 -0
  45. package/dist/cli/init.js.map +1 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +2 -1
  48. package/dist/index.js.map +1 -1
  49. package/package.json +10 -6
  50. package/skills/SKILL-STANDARD.md +2 -0
  51. package/skills/diagnose/SKILL.md +84 -0
  52. package/skills/docs-with-grill/SKILL.md +66 -0
  53. package/skills/setup-wunderkind-workflow/SKILL.md +9 -3
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wunderkind",
3
- "version": "0.16.0",
3
+ "version": "0.18.2",
4
4
  "description": "Wunderkind \u2014 specialist AI agents for any software product team, built as an oh-my-openagent addon",
5
5
  "main": "dist/index.js"
6
6
  }
package/README.md CHANGED
@@ -25,7 +25,7 @@ Wunderkind provides a tiered CLI for installation, project setup, and health che
25
25
  |---|---|---|
26
26
  | `wunderkind install` | Registers the plugin in OpenCode | OpenCode config + native agents/skills (+ shared native commands) |
27
27
  | `wunderkind upgrade` | Refreshes Wunderkind-owned native assets | Native agents/skills + shared native commands |
28
- | `wunderkind init` | Bootstraps a project with soul files | `.wunderkind/`, `AGENTS.md`, `.sisyphus/`, docs README |
28
+ | `wunderkind init` | Bootstraps a project with soul files | `.wunderkind/`, `AGENTS.md`, `CONTEXT.md`, `.sisyphus/`, docs README |
29
29
  | `wunderkind cleanup` | Removes project-local Wunderkind wiring and state | project OpenCode config + `.wunderkind/` |
30
30
  | `wunderkind doctor` | Read-only diagnostics | None |
31
31
  | `wunderkind uninstall` | Safely removes Wunderkind plugin wiring | OpenCode plugin config (+ global Wunderkind config when applicable) |
@@ -38,7 +38,7 @@ Wunderkind provides a tiered CLI for installation, project setup, and health che
38
38
  Wunderkind distinguishes between **installing** the plugin and **initializing** a project:
39
39
 
40
40
  1. **Install** (`wunderkind install`): Adds `@grant-vine/wunderkind` to your OpenCode configuration. This makes the agents available to your AI assistant. You typically do this once globally.
41
- 2. **Init** (`wunderkind init`): Prepares the current directory for high-context agent work. It creates or updates the `.wunderkind/` configuration directory, the `AGENTS.md` project knowledge base, optional project-local SOUL files, and optional documentation output folders.
41
+ 2. **Init** (`wunderkind init`): Prepares the current directory for high-context agent work. It creates or updates the `.wunderkind/` configuration directory, the `AGENTS.md` project knowledge base, the compact shared `CONTEXT.md` lane, optional project-local SOUL files, and optional documentation output folders.
42
42
 
43
43
  ---
44
44
 
@@ -72,12 +72,12 @@ bunx @grant-vine/wunderkind install
72
72
  or
73
73
 
74
74
  The TUI will guide you through:
75
- 1. Checking for oh-my-openagent first, then auto-running `bunx oh-my-opencode install` when the upstream CLI is available and OMO is missing.
75
+ 1. Checking for oh-my-openagent first, then auto-running `bunx oh-my-openagent install` when the upstream CLI is available and OMO is missing.
76
76
  2. Selecting the install scope (Global vs Project).
77
77
  3. Optionally configuring shared baseline defaults: region, industry, and data-protection regulations.
78
78
  4. Optionally initializing the current project immediately.
79
79
 
80
- > Note: upstream now prefers `oh-my-openagent` for plugin entries and OMO config basenames, while the npm package and CLI command still remain `oh-my-opencode`.
80
+ > Note: upstream now prefers `oh-my-openagent` for plugin entries, OMO config basenames, and public install commands. Legacy `oh-my-opencode` aliases and schema filenames may still appear during the transition.
81
81
  >
82
82
  > Wunderkind now ships both `oh-my-openagent.jsonc` (canonical) and `oh-my-opencode.jsonc` (legacy compatibility) template assets. Prefer the canonical file for new setups.
83
83
 
@@ -87,7 +87,7 @@ For CI/CD or scripted environments, use the `install` command with the `--no-tui
87
87
 
88
88
  > **oh-my-openagent must already be installed** before running non-interactive mode. If it isn't, install it first:
89
89
  > ```bash
90
- > bunx oh-my-opencode install --no-tui --claude=yes --gemini=no --copilot=yes
90
+ > bunx oh-my-openagent install --no-tui --claude=yes --gemini=no --copilot=yes
91
91
  > ```
92
92
  > Wunderkind now performs this OMO readiness check up front during non-interactive `install` and `upgrade`, and exits early with the upstream install command when OMO is missing.
93
93
  >
@@ -141,6 +141,8 @@ wunderkind upgrade --scope=project --caveman-enabled=yes
141
141
  Current upgrade behavior:
142
142
  - refreshes Wunderkind native agents and native skills in the requested scope
143
143
  - refreshes Wunderkind's shipped native command assets globally (e.g. `/docs-index`, `/dream`)
144
+ - rewrites Wunderkind-managed native-asset version markers so `doctor` can detect stale installed files
145
+ - embeds a Wunderkind version value in generated native agent markdown so `doctor` can compare installed agent files too
144
146
  - preserves project-local soul/docs settings unless you explicitly opt into config refresh behavior
145
147
  - supports `--dry-run` and `--refresh-config` for safe testing
146
148
  - project-scope upgrades can also set `--caveman-enabled yes|no`; global upgrades keep caveman session-scoped and chat-activated
@@ -184,6 +186,7 @@ If `prdPipelineMode` is absent in an older project config, Wunderkind treats it
184
186
  `wunderkind init` creates the following project "soul files":
185
187
  - `.wunderkind/wunderkind.config.jsonc` — Project-specific configuration
186
188
  - `AGENTS.md` — Project knowledge base for agents
189
+ - `CONTEXT.md` — Compact shared context for docs grilling, planning, and future skill compatibility
187
190
  - `.sisyphus/` — Directory for agent planning, notepads, and evidence
188
191
  - `<docsPath>/README.md` — Auto-generated documentation index (if enabled)
189
192
 
@@ -241,6 +244,8 @@ wunderkind doctor
241
244
  `wunderkind doctor` reports:
242
245
  - Installed version and scope (Global vs Project)
243
246
  - Detected Wunderkind and OMO version state
247
+ - Whether installed native agents/commands/skills look stale and should be refreshed via `wunderkind upgrade`
248
+ - Whether installed native agent markdown versions drift from the current Wunderkind package
244
249
  - Location of configuration files
245
250
  - Presence and status of project soul files (in a project context)
246
251
  - Current Documentation Output configuration and index status
@@ -358,7 +363,7 @@ The `/dream` native command is a mixed-domain workflow for ideation, soul synthe
358
363
 
359
364
  Wunderkind installs native markdown assets into OpenCode's supported directories. Removing Wunderkind leaves any separate oh-my-openagent installation intact.
360
365
 
361
- > **Native asset install note**: Wunderkind registers its specialist agents and skills through OpenCode-native markdown files. Global installs and upgrades refresh the shared native assets, and the shipped `/docs-index` command is refreshed globally as a native command asset.
366
+ > **Native asset install note**: Wunderkind registers its specialist agents and skills through OpenCode-native markdown files. Global installs and upgrades refresh the shared native assets, and shipped native commands such as `/docs-index` and `/dream` are refreshed globally as native command assets. These command assets now opt into OpenCode's `subtask: true` mode so they can execute as isolated command subtasks instead of polluting the caller's primary context.
362
367
 
363
368
  ---
364
369
 
@@ -389,6 +394,7 @@ Skill authoring and review in this repo follow `skills/SKILL-STANDARD.md`. New o
389
394
  | `visual-artist` | creative-director | Colour palettes, design tokens, WCAG |
390
395
  | `agile-pm` | product-wunderkind | Sprint planning, task decomposition |
391
396
  | `grill-me` | product-wunderkind | Requirement interrogation & ambiguity collapse |
397
+ | `docs-with-grill` | product-wunderkind | Repo-aware docs grilling with `CONTEXT.md` maintenance |
392
398
  | `setup-wunderkind-workflow` | product-wunderkind | Repo-local workflow contract for issue flow, triage vocabulary, glossary/docs paths, and `.sisyphus` conventions |
393
399
  | `ubiquitous-language` | product-wunderkind | Glossary maintenance, canonical terminology, and naming alignment |
394
400
  | `prd-pipeline` | product-wunderkind | PRD → plan → issues workflow |
@@ -397,6 +403,7 @@ Skill authoring and review in this repo follow `skills/SKILL-STANDARD.md`. New o
397
403
  | `write-a-skill` | product-wunderkind | Wunderkind-native skill authoring and adaptation |
398
404
  | `caveman` | product-wunderkind | Opt-in terse response mode for low-token, high-signal output |
399
405
  | `db-architect` | fullstack-wunderkind | Drizzle ORM, PostgreSQL, Neon DB |
406
+ | `diagnose` | fullstack-wunderkind | Deterministic defect isolation, ranked hypotheses, and proving regression surfaces |
400
407
  | `code-health` | fullstack-wunderkind | Severity-ranked code health audit reports (coupling, testability, dependency risk) |
401
408
  | `vercel-architect` | fullstack-wunderkind | Vercel, Next.js App Router, Edge Runtime |
402
409
  | `improve-codebase-architecture` | fullstack-wunderkind | Architecture RFCs, seam design, deep modules, and deletion-test reviews |
@@ -555,7 +562,7 @@ Wunderkind's evolving workflow strategy is informed in part by Matt Pocock's pub
555
562
 
556
563
  - https://github.com/mattpocock/skills
557
564
 
558
- We plan to adapt selected ideas such as ubiquitous language, structured questioning, and PRD/planning flows to Wunderkind's filesystem-first `.sisyphus/` workflow rather than adopting GitHub-issue-centric assumptions directly.
565
+ We plan to adapt selected ideas such as ubiquitous language, structured questioning, deterministic diagnosis, and PRD/planning flows to Wunderkind's filesystem-first `.sisyphus/` workflow rather than adopting GitHub-issue-centric assumptions directly.
559
566
 
560
567
  ---
561
568
 
@@ -579,7 +586,17 @@ Run this command to ensure `.wunderkind/` and other AI tooling directories are g
579
586
  wunderkind gitignore
580
587
  ```
581
588
 
582
- This adds `.wunderkind/`, `AGENTS.md`, `.sisyphus/`, and `.opencode/` to your `.gitignore` if they aren't already present.
589
+ This adds `.wunderkind/`, `AGENTS.md`, `.sisyphus/`, `.omo/`, and `.opencode/` to your `.gitignore` if they aren't already present.
590
+
591
+ ### `.omo/` vs `.opencode/`
592
+
593
+ Wunderkind now treats `.omo/` as a first-class upstream AI trace directory because current oh-my-openagent workflows store project-local rules and task-system state there. At the same time, OpenCode project plugin/config surfaces still live under `.opencode/`.
594
+
595
+ In practice:
596
+
597
+ - keep `.omo/` for OMO-managed rules and task artifacts
598
+ - keep `.opencode/` for OpenCode project plugins, commands, skills, and config
599
+ - keep both gitignored unless you intentionally want to version-control a specific upstream workflow surface
583
600
 
584
601
  ---
585
602
 
package/agents/ciso.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  CISO — Security and compliance lead for threat modeling, controls, and risk decisions.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.1
6
7
  permission:
@@ -118,6 +119,9 @@ Use this contract to choose the right delegation mechanism.
118
119
  ### Hard rules for delegation
119
120
 
120
121
  - Prefer **parallel delegation** when subtasks are independent and touch different concerns.
122
+ - When you launch background work, record the returned background task id (`bg_...`) separately from any session id (`ses_...`). Do not confuse them.
123
+ - After launching a background task, wait for the upstream completion signal before collecting output. Do not call `background_output` immediately after launch.
124
+ - When the runtime signals completion, call `background_output` with the **background task id** and synthesize the delegated result before taking the next major step.
121
125
  - After delegating research or exploration, **wait for the delegated result and synthesize it**. Do not repeat the same search locally unless the delegated output is clearly insufficient.
122
126
  - Avoid unnecessary nested delegation. Use another layer of subagents only when the specialist adds clear value, because upstream background-agent depth is limited.
123
127
  - Name the target domain up front in the prompt so the receiving agent can act without re-triaging the same request.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  Creative Director — Brand and UI/UX lead for design systems, visuals, and product experience.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.4
6
7
  permission:
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  Fullstack Wunderkind — CTO-calibre engineer for architecture, implementation, and systems tradeoffs.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.1
6
7
  ---
@@ -138,6 +139,8 @@ You make precise, pragmatic engineering decisions. You know when to be pragmatic
138
139
 
139
140
  **Regression depth follows boundary crossings.** Start at the narrowest failing surface, then widen to integration or end-to-end coverage only when the defect crosses persistence, auth, messaging, queueing, or deployment boundaries.
140
141
 
142
+ **Use the `diagnose` skill before speculative rewriting.** Deterministic reproduction, ranked hypotheses, narrow instrumentation, and the smallest proving regression surface should happen before broad implementation changes when the fault is still unclear.
143
+
141
144
  **Use the `tdd` skill for execution-heavy quality work.** Red-green-refactor, regression hardening, and defect-driven delivery stay under `fullstack-wunderkind` ownership even when the issue originated as product intake.
142
145
 
143
146
  ---
@@ -180,6 +183,9 @@ Use this contract to choose the right delegation mechanism.
180
183
  ### Hard rules for delegation
181
184
 
182
185
  - Prefer **parallel delegation** when subtasks are independent and touch different concerns.
186
+ - When you launch background work, record the returned background task id (`bg_...`) separately from any session id (`ses_...`). Do not confuse them.
187
+ - After launching a background task, wait for the upstream completion signal before collecting output. Do not call `background_output` immediately after launch.
188
+ - When the runtime signals completion, call `background_output` with the **background task id** and synthesize the delegated result before taking the next major step.
183
189
  - After delegating research or exploration, **wait for the delegated result and synthesize it**. Do not repeat the same search locally unless the delegated output is clearly insufficient.
184
190
  - Avoid unnecessary nested delegation. Use another layer of subagents only when the specialist adds clear value, because upstream background-agent depth is limited.
185
191
  - Name the target domain up front in the prompt so the receiving agent can act without re-triaging the same request.
@@ -215,6 +221,14 @@ Every slash command must support a `--help` form.
215
221
 
216
222
  ---
217
223
 
224
+ ### `/diagnose <issue>`
225
+
226
+ Run a deterministic engineering diagnosis loop before implementation or refactor decisions.
227
+
228
+ - Invoke via `skill(name="diagnose")` to reproduce the failure, rank hypotheses, add the smallest proving instrumentation, and define the tightest regression surface before changing code.
229
+
230
+ ---
231
+
218
232
  ### `/validate-page <url>`
219
233
 
220
234
  Run a browser-backed audit for accessibility, CWV, console errors, broken links, and a screenshot.
@@ -263,6 +277,7 @@ Translate the alert into blast radius, triage steps, root-cause branches, succes
263
277
 
264
278
  ## Sub-Skill Delegation
265
279
 
280
+ - Invoke via `skill(name="diagnose")` for deterministic bug reproduction, ranked hypothesis testing, focused instrumentation, and regression-surface definition before implementation starts.
266
281
  - Invoke via `skill(name="tdd")` for red-green-refactor loops, regression hardening, and defect-driven delivery.
267
282
  - Invoke via `skill(name="vercel-architect")` for Vercel, App Router, Edge runtime, Neon branching, and performance work.
268
283
  - Invoke via `skill(name="db-architect")` for schema design, query analysis, migrations, and index auditing.
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  Legal Counsel — Legal and regulatory advisor for contracts, licensing, and compliance posture.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.1
6
7
  permission:
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  Marketing Wunderkind — CMO-calibre strategist for brand, community, developer advocacy, docs-led launches, adoption, PR, and go-to-market work.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.3
6
7
  permission:
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: >
3
3
  Product Wunderkind — Default orchestrator and front door for all Wunderkind requests. Routes, clarifies, and synthesizes across specialists. VP Product authority for strategy, roadmaps, PRDs, OKRs, issue intake, acceptance review, and decomposition.
4
+ wunderkind_version: "0.18.2"
4
5
  mode: all
5
6
  temperature: 0.2
6
7
  permission:
@@ -132,7 +133,7 @@ You bridge the gap between user insight and engineering reality. You're fluent i
132
133
 
133
134
  **Never self-delegate or duplicate specialist authority.** Do not route work back into another copy of `product-wunderkind`, do not create orchestration loops, and do not impersonate engineering, design, marketing, security, or legal specialists when their domain is the real owner. Route to the specialist, then synthesize.
134
135
 
135
- **Preserve deep product craft through explicit owned skills.** Orchestration does not replace product depth. Keep using the product-owned skills `grill-me`, `prd-pipeline`, `triage-issue`, and `setup-wunderkind-workflow` when the request needs deeper interrogation, workflow setup, PRD control, or structured issue shaping inside product's own domain. Use `ubiquitous-language` narrowly when the task is specifically glossary maintenance or naming alignment work.
136
+ **Preserve deep product craft through explicit owned skills.** Orchestration does not replace product depth. Keep using the product-owned skills `grill-me`, `docs-with-grill`, `prd-pipeline`, `triage-issue`, and `setup-wunderkind-workflow` when the request needs deeper interrogation, context-aware docs grilling, workflow setup, PRD control, or structured issue shaping inside product's own domain. Use `ubiquitous-language` narrowly when the task is specifically glossary maintenance or naming alignment work.
136
137
 
137
138
  ---
138
139
 
@@ -178,6 +179,9 @@ Use this contract to choose the right delegation mechanism.
178
179
  ### Hard rules for delegation
179
180
 
180
181
  - Prefer **parallel delegation** when subtasks are independent and touch different concerns.
182
+ - When you launch background work, record the returned background task id (`bg_...`) separately from any session id (`ses_...`). Do not confuse them.
183
+ - After launching a background task, wait for the upstream completion signal before collecting output. Do not call `background_output` immediately after launch.
184
+ - When the runtime signals completion, call `background_output` with the **background task id** and synthesize the delegated result before taking the next major step.
181
185
  - After delegating research or exploration, **wait for the delegated result and synthesize it**. Do not repeat the same search locally unless the delegated output is clearly insufficient.
182
186
  - Avoid unnecessary nested delegation. Use another layer of subagents only when the specialist adds clear value, because upstream background-agent depth is limited.
183
187
  - Name the target domain up front in the prompt so the receiving agent can act without re-triaging the same request.
@@ -221,6 +225,14 @@ Establish the repo-local workflow contract for issue flow, triage vocabulary, gl
221
225
 
222
226
  ---
223
227
 
228
+ ### `/docs-with-grill <topic>`
229
+
230
+ Stress-test a docs or product topic against repo context, update `CONTEXT.md` when needed, and prepare Wunderkind-native documentation follow-up.
231
+
232
+ - Invoke via `skill(name="docs-with-grill")` for one-question-at-a-time context grilling that inspects the repo before asking and treats `CONTEXT.md` as the compact shared context lane.
233
+
234
+ ---
235
+
224
236
  ### `/breakdown <task>`
225
237
 
226
238
  Invoke via `skill(name="agile-pm")` for concern-grouped, parallel-safe subtasks with file targets and dependency order.
@@ -261,7 +273,7 @@ Identify the value moment, propose candidate metrics, choose the best one, and m
261
273
 
262
274
  ## Sub-Skill Delegation
263
275
 
264
- - Invoke via `skill(name="grill-me")`, `skill(name="prd-pipeline")`, `skill(name="triage-issue")`, and `skill(name="setup-wunderkind-workflow")` for deep product workflow setup and discovery work. Use `skill(name="ubiquitous-language")` narrowly for glossary maintenance and naming alignment.
276
+ - Invoke via `skill(name="grill-me")`, `skill(name="docs-with-grill")`, `skill(name="prd-pipeline")`, `skill(name="triage-issue")`, and `skill(name="setup-wunderkind-workflow")` for deep product workflow setup, context-aware docs grilling, and discovery work. Use `skill(name="ubiquitous-language")` narrowly for glossary maintenance and naming alignment.
265
277
  - Invoke via `skill(name="agile-pm")` whenever the request needs sprint planning, backlog structuring, task decomposition, or file-conflict analysis.
266
278
 
267
279
  ---
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: Regenerate Wunderkind-managed project documentation and refresh the docs index
3
3
  agent: product-wunderkind
4
+ subtask: true
4
5
  ---
5
6
 
6
7
  You are coordinating a lightweight Wunderkind documentation refresh/bootstrap workflow for this project.
package/commands/dream.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ---
2
2
  description: Wunderkind-native mixed workflow for ideation, SOUL synthesis, and exploration
3
3
  agent: product-wunderkind
4
+ subtask: true
4
5
  ---
5
6
 
6
7
  You are coordinating the `/dream` workflow—a Wunderkind-native mixed ideation, SOUL synthesis, and exploration process.
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/fullstack-wunderkind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,6BAA6B,EAAE,mBA2B3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA+LzE;yBA/Le,8BAA8B"}
1
+ {"version":3,"file":"fullstack-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/fullstack-wunderkind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,6BAA6B,EAAE,mBA2B3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAiMzE;yBAjMe,8BAA8B"}
@@ -8,7 +8,7 @@ export const FULLSTACK_WUNDERKIND_METADATA = {
8
8
  triggers: [
9
9
  {
10
10
  domain: "Engineering",
11
- trigger: "Full-stack development, database work, Vercel/Next.js, architecture decisions, code review, TDD execution, regression coverage, technical defect diagnosis, reliability engineering, runbooks, admin tooling, AI integration",
11
+ trigger: "Full-stack development, database work, Vercel/Next.js, architecture decisions, code review, TDD execution, deterministic defect diagnosis, regression coverage, technical defect diagnosis, reliability engineering, runbooks, admin tooling, AI integration",
12
12
  },
13
13
  ],
14
14
  useWhen: [
@@ -168,6 +168,8 @@ You make precise, pragmatic engineering decisions. You know when to be pragmatic
168
168
 
169
169
  **Regression depth follows boundary crossings.** Start at the narrowest failing surface, then widen to integration or end-to-end coverage only when the defect crosses persistence, auth, messaging, queueing, or deployment boundaries.
170
170
 
171
+ **Use the \`diagnose\` skill before speculative rewriting.** Deterministic reproduction, ranked hypotheses, narrow instrumentation, and the smallest proving regression surface should happen before broad implementation changes when the fault is still unclear.
172
+
171
173
  **Use the \`tdd\` skill for execution-heavy quality work.** Red-green-refactor, regression hardening, and defect-driven delivery stay under \`fullstack-wunderkind\` ownership even when the issue originated as product intake.
172
174
 
173
175
  ---
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack-wunderkind.js","sourceRoot":"","sources":["../../src/agents/fullstack-wunderkind.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,8BAA8B,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AACpK,OAAO,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAA;AAEnE,MAAM,IAAI,GAAc,KAAK,CAAA;AAE7B,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,aAAa;YACrB,OAAO,EACL,8NAA8N;SACjO;KACF;IACD,OAAO,EAAE;QACP,0DAA0D;QAC1D,gDAAgD;QAChD,uEAAuE;QACvE,6DAA6D;QAC7D,sEAAsE;QACtE,oGAAoG;QACpG,gGAAgG;QAChG,kDAAkD;KACnD;IACD,SAAS,EAAE;QACT,8EAA8E;QAC9E,+CAA+C;QAC/C,oFAAoF;QACpF,mGAAmG;KACpG;CACF,CAAA;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,MAAM,wBAAwB,GAAG,6BAA6B,CAAC;QAC7D,SAAS,EAAE,gEAAgE;QAC3E,SAAS,EAAE,6DAA6D;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AC7D,sEAAsE;QACtE,oGAAoG;QACpG,gGAAgG;QAChG,kDAAkD;KACnD;IACD,SAAS,EAAE;QACT,8EAA8E;QAC9E,+CAA+C;QAC/C,oFAAoF;QACpF,mGAAmG;KACpG;CACF,CAAA;AAED,MAAM,UAAU,8BAA8B,CAAC,KAAa;IAC1D,MAAM,wBAAwB,GAAG,6BAA6B,CAAC;QAC7D,SAAS,EAAE,gEAAgE;QAC3E,SAAS,EAAE,6DAA6D;QACxE,QAAQ,EAAE,iEAAiE;KAC5E,CAAC,CAAA;IACF,MAAM,yBAAyB,GAAG,8BAA8B,EAAE,CAAA;IAClE,MAAM,sBAAsB,GAAG,2BAA2B,EAAE,CAAA;IAC5D,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,CAAC,CAAA;IAE9G,OAAO;QACL,WAAW,EACT,sgDAAsgD;QACxgD,IAAI,EAAE,IAAI;QACV,KAAK;QACL,WAAW,EAAE,GAAG;QAChB,MAAM,EAAE;;;;EAIV,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsJtB,yBAAyB;;;;EAIzB,oBAAoB;;;;EAIpB,wBAAwB;;;;;;;;;;;;;qGAa2E;KAClG,CAAA;AACH,CAAC;AAED,8BAA8B,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -164,7 +164,7 @@ You bridge the gap between user insight and engineering reality. You're fluent i
164
164
 
165
165
  **Never self-delegate or duplicate specialist authority.** Do not route work back into another copy of \`product-wunderkind\`, do not create orchestration loops, and do not impersonate engineering, design, marketing, security, or legal specialists when their domain is the real owner. Route to the specialist, then synthesize.
166
166
 
167
- **Preserve deep product craft through explicit owned skills.** Orchestration does not replace product depth. Keep using the product-owned skills \`grill-me\`, \`prd-pipeline\`, \`triage-issue\`, and \`setup-wunderkind-workflow\` when the request needs deeper interrogation, workflow setup, PRD control, or structured issue shaping inside product's own domain. Use \`ubiquitous-language\` narrowly when the task is specifically glossary maintenance or naming alignment work.
167
+ **Preserve deep product craft through explicit owned skills.** Orchestration does not replace product depth. Keep using the product-owned skills \`grill-me\`, \`docs-with-grill\`, \`prd-pipeline\`, \`triage-issue\`, and \`setup-wunderkind-workflow\` when the request needs deeper interrogation, context-aware docs grilling, workflow setup, PRD control, or structured issue shaping inside product's own domain. Use \`ubiquitous-language\` narrowly when the task is specifically glossary maintenance or naming alignment work.
168
168
 
169
169
  ---
170
170
 
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown.d.ts","sourceRoot":"","sources":["../../src/agents/render-markdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAwB9D,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,CAcvF"}
1
+ {"version":3,"file":"render-markdown.d.ts","sourceRoot":"","sources":["../../src/agents/render-markdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAyB9D,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,yBAAyB,GAAG,MAAM,CAgBvF"}
@@ -1,3 +1,4 @@
1
+ import { readOwnPackageVersion, WUNDERKIND_AGENT_VERSION_FRONTMATTER_KEY } from "./versioning.js";
1
2
  function renderMultilineScalar(value) {
2
3
  const normalized = value.replace(/\r\n/g, "\n").trim();
3
4
  return normalized
@@ -19,10 +20,12 @@ function renderPermissionBlock(permission) {
19
20
  }
20
21
  export function renderNativeAgentMarkdown(definition) {
21
22
  const config = definition.factory("");
23
+ const ownVersion = readOwnPackageVersion();
22
24
  const frontmatter = [
23
25
  "---",
24
26
  "description: >",
25
27
  renderMultilineScalar(`${definition.roleLabel} — ${definition.summary}`),
28
+ ...(ownVersion ? [`${WUNDERKIND_AGENT_VERSION_FRONTMATTER_KEY}: "${ownVersion}"`] : []),
26
29
  `mode: ${definition.factory.mode}`,
27
30
  ...(typeof config.temperature === "number" ? [`temperature: ${config.temperature}`] : []),
28
31
  ...renderPermissionBlock(config.permission),
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown.js","sourceRoot":"","sources":["../../src/agents/render-markdown.ts"],"names":[],"mappings":"AAGA,SAAS,qBAAqB,CAAC,KAAa;IAC1C,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,CAAA;IACtD,OAAO,UAAU;SACd,KAAK,CAAC,IAAI,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC;SAC1B,IAAI,CAAC,IAAI,CAAC,CAAA;AACf,CAAC;AAED,SAAS,qBAAqB,CAAC,UAAqC;IAClE,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QAC/E,OAAO,EAAE,CAAA;IACX,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;IAC1C,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAA;IAEnC,OAAO;QACL,aAAa;QACb,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,GAAG,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;KAC/D,CAAA;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,UAAqC;IAC7E,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IACrC,MAAM,WAAW,GAAG;QAClB,KAAK;QACL,gBAAgB;QAChB,qBAAqB,CAAC,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;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,CAgBT;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAUpD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAKrD;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,CAiBjF;AAED,wBAAgB,8BAA8B,IAAI,MAAM,CAsCvD"}
1
+ {"version":3,"file":"shared-prompt-sections.d.ts","sourceRoot":"","sources":["../../src/agents/shared-prompt-sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE/D,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,CAgBT;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAUpD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAKrD;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,CAiBjF;AAED,wBAAgB,8BAA8B,IAAI,MAAM,CAyCvD"}
@@ -65,6 +65,9 @@ Use this contract to choose the right delegation mechanism.
65
65
  ### Hard rules for delegation
66
66
 
67
67
  - Prefer **parallel delegation** when subtasks are independent and touch different concerns.
68
+ - When you launch background work, record the returned background task id (\`bg_...\`) separately from any session id (\`ses_...\`). Do not confuse them.
69
+ - After launching a background task, wait for the upstream completion signal before collecting output. Do not call \`background_output\` immediately after launch.
70
+ - When the runtime signals completion, call \`background_output\` with the **background task id** and synthesize the delegated result before taking the next major step.
68
71
  - After delegating research or exploration, **wait for the delegated result and synthesize it**. Do not repeat the same search locally unless the delegated output is clearly insufficient.
69
72
  - Avoid unnecessary nested delegation. Use another layer of subagents only when the specialist adds clear value, because upstream background-agent depth is limited.
70
73
  - Name the target domain up front in the prompt so the receiving agent can act without re-triaging the same request.
@@ -1 +1 @@
1
- {"version":3,"file":"shared-prompt-sections.js","sourceRoot":"","sources":["../../src/agents/shared-prompt-sections.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,6BAA6B,CAAC,OAI7C;IACC,OAAO;;;;;;;;;eASM,OAAO,CAAC,SAAS;eACjB,OAAO,CAAC,SAAS;cAClB,OAAO,CAAC,QAAQ;;;kVAGoT,CAAA;AAClV,CAAC;AAED,MAAM,UAAU,2BAA2B;IACzC,OAAO;;;;;;;;oNAQ2M,CAAA;AACpN,CAAC;AAED,MAAM,UAAU,4BAA4B;IAC1C,OAAO;;;6IAGoI,CAAA;AAC7I,CAAC;AAED,MAAM,UAAU,0BAA0B,CAAC,QAA8B;IACvE,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACtD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAC1E,OAAO,CAAC,SAAS,OAAO,CAAC,OAAO,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IAClI,CAAC,CAAC,CAAA;IAEF,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACvD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACjE,OAAO,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,CA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AEF,MAAM,aAAa,GAAG,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACvD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QACjE,OAAO,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACtD,CAAC,CAAC,IAAI,EAAE,CAAA;IAER,OAAO;QACL,mBAAmB;QACnB,4BAA4B,EAAE;QAC9B,GAAG,aAAa;QAChB,GAAG,aAAa;KACjB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AACvB,CAAC;AAED,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuCF,CAAA;AACP,CAAC"}
@@ -83,6 +83,10 @@ export declare const RETAINED_AGENT_SLASH_COMMANDS: {
83
83
  readonly command: "/setup-wunderkind-workflow";
84
84
  readonly summary: "Establish the repo-local workflow contract for issue flow, triage vocabulary, glossary/docs locations, and `.sisyphus/` artifact conventions.";
85
85
  readonly details: readonly ["Invoke via `skill(name=\"setup-wunderkind-workflow\")` to adapt Matt-style setup patterns to Wunderkind-native locations such as `AGENTS.md` and `.sisyphus/`."];
86
+ }, {
87
+ readonly command: "/docs-with-grill <topic>";
88
+ readonly summary: "Stress-test a docs or product topic against repo context, update `CONTEXT.md` when needed, and prepare Wunderkind-native documentation follow-up.";
89
+ readonly details: readonly ["Invoke via `skill(name=\"docs-with-grill\")` for one-question-at-a-time context grilling that inspects the repo before asking and treats `CONTEXT.md` as the compact shared context lane."];
86
90
  }, {
87
91
  readonly command: "/breakdown <task>";
88
92
  readonly summary: "Invoke via `skill(name=\"agile-pm\")` for concern-grouped, parallel-safe subtasks with file targets and dependency order.";
@@ -105,7 +109,7 @@ export declare const RETAINED_AGENT_SLASH_COMMANDS: {
105
109
  }];
106
110
  readonly sections: readonly [{
107
111
  readonly heading: "Sub-Skill Delegation";
108
- readonly items: readonly ["Invoke via `skill(name=\"grill-me\")`, `skill(name=\"prd-pipeline\")`, `skill(name=\"triage-issue\")`, and `skill(name=\"setup-wunderkind-workflow\")` for deep product workflow setup and discovery work. Use `skill(name=\"ubiquitous-language\")` narrowly for glossary maintenance and naming alignment.", "Invoke via `skill(name=\"agile-pm\")` whenever the request needs sprint planning, backlog structuring, task decomposition, or file-conflict analysis."];
112
+ readonly items: readonly ["Invoke via `skill(name=\"grill-me\")`, `skill(name=\"docs-with-grill\")`, `skill(name=\"prd-pipeline\")`, `skill(name=\"triage-issue\")`, and `skill(name=\"setup-wunderkind-workflow\")` for deep product workflow setup, context-aware docs grilling, and discovery work. Use `skill(name=\"ubiquitous-language\")` narrowly for glossary maintenance and naming alignment.", "Invoke via `skill(name=\"agile-pm\")` whenever the request needs sprint planning, backlog structuring, task decomposition, or file-conflict analysis."];
109
113
  }, {
110
114
  readonly heading: "Delegation Patterns";
111
115
  readonly items: readonly ["Delegate via `task(...)` to `librarian` for competitor research, market data, and industry-report gathering.", "Delegate via `task(...)` to `explore` for codebase mapping before decomposition or acceptance review.", "Delegate via `task(...)` to `writing` for PRDs, specs, and long-form product documentation.", "Delegate via `task(...)` to `marketing-wunderkind` for campaign, launch, and funnel authority.", "Delegate via `task(...)` to `fullstack-wunderkind` for technical follow-up after product intake with the repro, severity, and expected behavior already framed."];
@@ -113,6 +117,10 @@ export declare const RETAINED_AGENT_SLASH_COMMANDS: {
113
117
  };
114
118
  readonly "fullstack-wunderkind": {
115
119
  readonly commands: readonly [{
120
+ readonly command: "/diagnose <issue>";
121
+ readonly summary: "Run a deterministic engineering diagnosis loop before implementation or refactor decisions.";
122
+ readonly details: readonly ["Invoke via `skill(name=\"diagnose\")` to reproduce the failure, rank hypotheses, add the smallest proving instrumentation, and define the tightest regression surface before changing code."];
123
+ }, {
116
124
  readonly command: "/validate-page <url>";
117
125
  readonly summary: "Run a browser-backed audit for accessibility, CWV, console errors, broken links, and a screenshot.";
118
126
  readonly details: readonly ["Return a CWV table with measured vs target values (`LCP < 2.5s`, `CLS < 0.1`, `FCP < 1.8s`, `TTFB < 800ms`) plus raw violations and errors."];
@@ -138,7 +146,7 @@ export declare const RETAINED_AGENT_SLASH_COMMANDS: {
138
146
  }];
139
147
  readonly sections: readonly [{
140
148
  readonly heading: "Sub-Skill Delegation";
141
- readonly items: readonly ["Invoke via `skill(name=\"tdd\")` for red-green-refactor loops, regression hardening, and defect-driven delivery.", "Invoke via `skill(name=\"vercel-architect\")` for Vercel, App Router, Edge runtime, Neon branching, and performance work.", "Invoke via `skill(name=\"db-architect\")` for schema design, query analysis, migrations, and index auditing.", "Invoke via `skill(name=\"improve-codebase-architecture\")` for deep-module RFCs, seam design, and structural refactoring plans."];
149
+ readonly items: readonly ["Invoke via `skill(name=\"diagnose\")` for deterministic bug reproduction, ranked hypothesis testing, focused instrumentation, and regression-surface definition before implementation starts.", "Invoke via `skill(name=\"tdd\")` for red-green-refactor loops, regression hardening, and defect-driven delivery.", "Invoke via `skill(name=\"vercel-architect\")` for Vercel, App Router, Edge runtime, Neon branching, and performance work.", "Invoke via `skill(name=\"db-architect\")` for schema design, query analysis, migrations, and index auditing.", "Invoke via `skill(name=\"improve-codebase-architecture\")` for deep-module RFCs, seam design, and structural refactoring plans."];
142
150
  }, {
143
151
  readonly heading: "Delegation Patterns";
144
152
  readonly items: readonly ["Delegate via `task(...)` to `visual-engineering` for UI implementation and coded visual work.", "Delegate via `task(...)` to `agent-browser` for browser automation, E2E capture, and page validation.", "Delegate via `task(...)` to `explore` for codebase mapping and `librarian` for external library/documentation research.", "Delegate via `task(...)` to `git-master` for git operations.", "Invoke via `skill(name=\"technical-writer\")` for external developer docs or tutorials."];
@@ -1 +1 @@
1
- {"version":3,"file":"slash-commands.d.ts","sourceRoot":"","sources":["../../src/agents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C,CA2B/C;AAED,wBAAgB,kCAAkC,IAAI,KAAK,CAAC,8BAA8B,CAAC,8BAA8B,CAAC,CAAC,CAE1H;AAED,wBAAgB,4CAA4C,CAAC,OAAO,EAAE,8BAA8B,GAAG,MAAM,CAwC5G"}
@@ -97,6 +97,11 @@ export const RETAINED_AGENT_SLASH_COMMANDS = {
97
97
  summary: "Establish the repo-local workflow contract for issue flow, triage vocabulary, glossary/docs locations, and `.sisyphus/` artifact conventions.",
98
98
  details: ["Invoke via `skill(name=\"setup-wunderkind-workflow\")` to adapt Matt-style setup patterns to Wunderkind-native locations such as `AGENTS.md` and `.sisyphus/`."],
99
99
  },
100
+ {
101
+ command: "/docs-with-grill <topic>",
102
+ summary: "Stress-test a docs or product topic against repo context, update `CONTEXT.md` when needed, and prepare Wunderkind-native documentation follow-up.",
103
+ details: ["Invoke via `skill(name=\"docs-with-grill\")` for one-question-at-a-time context grilling that inspects the repo before asking and treats `CONTEXT.md` as the compact shared context lane."],
104
+ },
100
105
  {
101
106
  command: "/breakdown <task>",
102
107
  summary: "Invoke via `skill(name=\"agile-pm\")` for concern-grouped, parallel-safe subtasks with file targets and dependency order.",
@@ -127,7 +132,7 @@ export const RETAINED_AGENT_SLASH_COMMANDS = {
127
132
  {
128
133
  heading: "Sub-Skill Delegation",
129
134
  items: [
130
- "Invoke via `skill(name=\"grill-me\")`, `skill(name=\"prd-pipeline\")`, `skill(name=\"triage-issue\")`, and `skill(name=\"setup-wunderkind-workflow\")` for deep product workflow setup and discovery work. Use `skill(name=\"ubiquitous-language\")` narrowly for glossary maintenance and naming alignment.",
135
+ "Invoke via `skill(name=\"grill-me\")`, `skill(name=\"docs-with-grill\")`, `skill(name=\"prd-pipeline\")`, `skill(name=\"triage-issue\")`, and `skill(name=\"setup-wunderkind-workflow\")` for deep product workflow setup, context-aware docs grilling, and discovery work. Use `skill(name=\"ubiquitous-language\")` narrowly for glossary maintenance and naming alignment.",
131
136
  "Invoke via `skill(name=\"agile-pm\")` whenever the request needs sprint planning, backlog structuring, task decomposition, or file-conflict analysis.",
132
137
  ],
133
138
  },
@@ -145,6 +150,11 @@ export const RETAINED_AGENT_SLASH_COMMANDS = {
145
150
  },
146
151
  "fullstack-wunderkind": {
147
152
  commands: [
153
+ {
154
+ command: "/diagnose <issue>",
155
+ summary: "Run a deterministic engineering diagnosis loop before implementation or refactor decisions.",
156
+ details: ["Invoke via `skill(name=\"diagnose\")` to reproduce the failure, rank hypotheses, add the smallest proving instrumentation, and define the tightest regression surface before changing code."],
157
+ },
148
158
  {
149
159
  command: "/validate-page <url>",
150
160
  summary: "Run a browser-backed audit for accessibility, CWV, console errors, broken links, and a screenshot.",
@@ -180,6 +190,7 @@ export const RETAINED_AGENT_SLASH_COMMANDS = {
180
190
  {
181
191
  heading: "Sub-Skill Delegation",
182
192
  items: [
193
+ "Invoke via `skill(name=\"diagnose\")` for deterministic bug reproduction, ranked hypothesis testing, focused instrumentation, and regression-surface definition before implementation starts.",
183
194
  "Invoke via `skill(name=\"tdd\")` for red-green-refactor loops, regression hardening, and defect-driven delivery.",
184
195
  "Invoke via `skill(name=\"vercel-architect\")` for Vercel, App Router, Edge runtime, Neon branching, and performance work.",
185
196
  "Invoke via `skill(name=\"db-architect\")` for schema design, query analysis, migrations, and index auditing.",
@@ -323,6 +334,7 @@ export function renderGeneratedRetainedNativeCommandMarkdown(command) {
323
334
  "---",
324
335
  `description: ${JSON.stringify(command.summary)}`,
325
336
  `agent: ${command.agent}`,
337
+ "subtask: true",
326
338
  `name: ${command.name}`,
327
339
  "---",
328
340
  "",
@@ -1 +1 @@
1
- {"version":3,"file":"slash-commands.js","sourceRoot":"","sources":["../../src/agents/slash-commands.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,sBAAsB,EAAE;QACtB,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,+DAA+D;gBACxE,OAAO,EAAE;oBACP,qGAAqG;oBAC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CAAC;YACE,wBAAwB;YACxB,EAAE;YACF,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,MAAM,EAAE,CAAC;SAClD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAElB,OAAO;QACL,KAAK;QACL,gBAAgB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjD,UAAU,OAAO,CAAC,KAAK,EAAE;QACzB,SAAS,OAAO,CAAC,IAAI,EAAE;QACvB,KAAK;QACL,EAAE;QACF,uDAAuD,OAAO,CAAC,OAAO,KAAK;QAC3E,EAAE;QACF,YAAY;QACZ,EAAE;QACF,gCAAgC,OAAO,CAAC,OAAO,KAAK;QACpD,EAAE;QACF,YAAY;QACZ,EAAE;QACF,OAAO,CAAC,OAAO;QACf,EAAE;QACF,gBAAgB;QAChB,EAAE;QACF,gCAAgC,OAAO,CAAC,KAAK,KAAK;QAClD,yKAAyK;QACzK,gHAAgH;QAChH,GAAG,CAAC,yBAAyB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,CAAC,CAAC;QAC9E,EAAE;QACF,gBAAgB;QAChB,YAAY;QACZ,iBAAiB;QACjB,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACd,CAAC"}
1
+ {"version":3,"file":"slash-commands.js","sourceRoot":"","sources":["../../src/agents/slash-commands.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,sBAAsB,EAAE;QACtB,QAAQ,EAAE;YACR;gBACE,OAAO,EAAE,qBAAqB;gBAC9B,OAAO,EAAE,+DAA+D;gBACxE,OAAO,EAAE;oBACP,qGAAqG;oBACrG,0EAA0E;iBAC3E;aACF;YACD;gBACE,OAAO,EAAE,uCAAuC;gBAChD,OAAO,EAAE,gDAAgD;gBACzD,OAAO,EAAE,CAAC,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AC7B,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;QAC3D,CAAC,CAAC,IAAI;QACN,CAAC,CAAC;YACE,wBAAwB;YACxB,EAAE;YACF,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,KAAK,MAAM,EAAE,CAAC;SAClD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IAElB,OAAO;QACL,KAAK;QACL,gBAAgB,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjD,UAAU,OAAO,CAAC,KAAK,EAAE;QACzB,eAAe;QACf,SAAS,OAAO,CAAC,IAAI,EAAE;QACvB,KAAK;QACL,EAAE;QACF,uDAAuD,OAAO,CAAC,OAAO,KAAK;QAC3E,EAAE;QACF,YAAY;QACZ,EAAE;QACF,gCAAgC,OAAO,CAAC,OAAO,KAAK;QACpD,EAAE;QACF,YAAY;QACZ,EAAE;QACF,OAAO,CAAC,OAAO;QACf,EAAE;QACF,gBAAgB;QAChB,EAAE;QACF,gCAAgC,OAAO,CAAC,KAAK,KAAK;QAClD,yKAAyK;QACzK,gHAAgH;QAChH,GAAG,CAAC,yBAAyB,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,yBAAyB,CAAC,CAAC;QAC9E,EAAE;QACF,gBAAgB;QAChB,YAAY;QACZ,iBAAiB;QACjB,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACd,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const WUNDERKIND_AGENT_VERSION_FRONTMATTER_KEY = "wunderkind_version";
2
+ export declare function readOwnPackageVersion(): string | null;
3
+ export declare function readWunderkindAgentMarkdownVersion(filePath: string): string | null;
4
+ //# sourceMappingURL=versioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versioning.d.ts","sourceRoot":"","sources":["../../src/agents/versioning.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,wCAAwC,uBAAuB,CAAA;AA0B5E,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,IAAI,CAErD;AAED,wBAAgB,kCAAkC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CASlF"}
@@ -0,0 +1,41 @@
1
+ import { existsSync, readFileSync } from "node:fs";
2
+ import { fileURLToPath } from "node:url";
3
+ export const WUNDERKIND_AGENT_VERSION_FRONTMATTER_KEY = "wunderkind_version";
4
+ function readJsonVersion(filePath) {
5
+ try {
6
+ const parsed = JSON.parse(readFileSync(filePath, "utf-8"));
7
+ if (!parsed || typeof parsed !== "object" || Array.isArray(parsed))
8
+ return null;
9
+ const version = parsed.version;
10
+ return typeof version === "string" ? version : null;
11
+ }
12
+ catch {
13
+ return null;
14
+ }
15
+ }
16
+ function readFrontmatterValue(markdown, key) {
17
+ const normalized = markdown.replace(/\r\n/g, "\n");
18
+ if (!normalized.startsWith("---\n"))
19
+ return null;
20
+ const frontmatterEnd = normalized.indexOf("\n---\n", 4);
21
+ if (frontmatterEnd === -1)
22
+ return null;
23
+ const frontmatter = normalized.slice(4, frontmatterEnd);
24
+ const match = frontmatter.match(new RegExp(String.raw `^${key}:\s*(?:"([^"]+)"|'([^']+)'|([^\n]+))\s*$`, "m"));
25
+ return match?.[1] ?? match?.[2] ?? match?.[3]?.trim() ?? null;
26
+ }
27
+ export function readOwnPackageVersion() {
28
+ return readJsonVersion(fileURLToPath(new URL("../../package.json", import.meta.url)));
29
+ }
30
+ export function readWunderkindAgentMarkdownVersion(filePath) {
31
+ if (!existsSync(filePath))
32
+ return null;
33
+ try {
34
+ const markdown = readFileSync(filePath, "utf-8");
35
+ return readFrontmatterValue(markdown, WUNDERKIND_AGENT_VERSION_FRONTMATTER_KEY);
36
+ }
37
+ catch {
38
+ return null;
39
+ }
40
+ }
41
+ //# sourceMappingURL=versioning.js.map
@@ -0,0 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