@grant-vine/wunderkind 0.10.5 → 0.10.7

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 (42) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +20 -8
  3. package/agents/ciso.md +26 -174
  4. package/agents/creative-director.md +15 -0
  5. package/agents/fullstack-wunderkind.md +29 -219
  6. package/agents/legal-counsel.md +15 -0
  7. package/agents/marketing-wunderkind.md +15 -0
  8. package/agents/product-wunderkind.md +26 -170
  9. package/dist/agents/ciso.d.ts.map +1 -1
  10. package/dist/agents/ciso.js +18 -177
  11. package/dist/agents/ciso.js.map +1 -1
  12. package/dist/agents/creative-director.d.ts.map +1 -1
  13. package/dist/agents/creative-director.js +6 -2
  14. package/dist/agents/creative-director.js.map +1 -1
  15. package/dist/agents/fullstack-wunderkind.d.ts.map +1 -1
  16. package/dist/agents/fullstack-wunderkind.js +21 -222
  17. package/dist/agents/fullstack-wunderkind.js.map +1 -1
  18. package/dist/agents/legal-counsel.d.ts.map +1 -1
  19. package/dist/agents/legal-counsel.js +6 -2
  20. package/dist/agents/legal-counsel.js.map +1 -1
  21. package/dist/agents/marketing-wunderkind.d.ts.map +1 -1
  22. package/dist/agents/marketing-wunderkind.js +6 -2
  23. package/dist/agents/marketing-wunderkind.js.map +1 -1
  24. package/dist/agents/product-wunderkind.d.ts.map +1 -1
  25. package/dist/agents/product-wunderkind.js +18 -173
  26. package/dist/agents/product-wunderkind.js.map +1 -1
  27. package/dist/agents/shared-prompt-sections.d.ts +2 -0
  28. package/dist/agents/shared-prompt-sections.d.ts.map +1 -1
  29. package/dist/agents/shared-prompt-sections.js +19 -0
  30. package/dist/agents/shared-prompt-sections.js.map +1 -1
  31. package/dist/cli/cleanup.d.ts +2 -0
  32. package/dist/cli/cleanup.d.ts.map +1 -0
  33. package/dist/cli/cleanup.js +48 -0
  34. package/dist/cli/cleanup.js.map +1 -0
  35. package/dist/cli/config-manager/index.js +1 -1
  36. package/dist/cli/config-manager/index.js.map +1 -1
  37. package/dist/cli/index.js +13 -0
  38. package/dist/cli/index.js.map +1 -1
  39. package/dist/cli/init.d.ts.map +1 -1
  40. package/dist/cli/init.js +98 -17
  41. package/dist/cli/init.js.map +1 -1
  42. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { buildPersistentContextSection } from "./shared-prompt-sections.js";
1
+ import { buildPersistentContextSection, buildSlashCommandHelpSection, buildSoulMaintenanceSection } from "./shared-prompt-sections.js";
2
2
  const MODE = "all";
3
3
  export const FULLSTACK_WUNDERKIND_METADATA = {
4
4
  category: "specialist",
@@ -33,6 +33,8 @@ export function createFullstackWunderkindAgent(model) {
33
33
  decisions: "architectural choices, library selections, schema decisions",
34
34
  blockers: "build failures, type errors not yet resolved, external blockers",
35
35
  });
36
+ const soulMaintenanceSection = buildSoulMaintenanceSection();
37
+ const slashCommandHelpSection = buildSlashCommandHelpSection();
36
38
  return {
37
39
  description: "USE FOR: full-stack development, frontend, backend, infrastructure, database, Astro, React, Next.js, TypeScript, JavaScript, Tailwind CSS, CSS, HTML, Node.js, Vercel deployment, Vercel, serverless, edge functions, API design, REST API, GraphQL, tRPC, authentication, authorisation, JWT, OAuth, session management, PostgreSQL, Neon DB, Drizzle ORM, schema design, migrations, query optimisation, EXPLAIN ANALYZE, index audit, ERD, database architecture, performance optimisation, Core Web Vitals, Lighthouse, bundle analysis, code splitting, lazy loading, ISR, SSR, SSG, App Router, Edge Runtime, Neon DB branching, preview URLs, CI/CD, GitHub Actions, automated testing, unit tests, integration tests, end-to-end tests, Playwright, security, OWASP, data privacy, architecture decisions, system design, microservices, monorepo, refactoring, code review, technical debt, dependency management, bun, npm, package management, environment variables, secrets management, logging, monitoring, error tracking, SRE, reliability engineering, SLO, SLI, SLA, error budget, incident response, postmortem, runbook, supportability review, observability, tracing, on-call, admin panel, admin tooling, internal tooling, web accessibility, WCAG, responsive design, mobile-first, dark mode, design system implementation, component library, Storybook, testing, debugging, technical triage, defect diagnosis, TDD execution, regression coverage, coverage analysis, DevOps, infrastructure as code, cloud, AI integration, LLM, embeddings, vector search, streaming.",
38
40
  mode: MODE,
@@ -42,7 +44,7 @@ export function createFullstackWunderkindAgent(model) {
42
44
 
43
45
  You are the **Fullstack Wunderkind**. Before acting, read the resolved runtime context for \`ctoPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
44
46
 
45
- If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
47
+ ${soulMaintenanceSection}
46
48
 
47
49
  ---
48
50
 
@@ -192,243 +194,40 @@ const db = drizzle(neon(process.env.DATABASE_URL!));
192
194
 
193
195
  ## Slash Commands
194
196
 
195
- ### \`/validate-page <url>\`
196
- Full page audit: accessibility, Core Web Vitals, broken links, console errors.
197
+ ${slashCommandHelpSection}
197
198
 
198
- \`\`\`typescript
199
- task(
200
- category="unspecified-low",
201
- load_skills=["agent-browser"],
202
- description="Full page audit of [url]",
203
- prompt="Navigate to [url], waitUntil: networkidle. 1) Inject axe-core (https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.10.0/axe.min.js) and run axe.run({ runOnly: ['color-contrast', 'heading-order'] }). 2) Capture console errors. 3) Measure CWV via PerformanceObserver (LCP, CLS, FCP, TTFB) with 4s timeout. 4) Check 30 links via fetch HEAD for 4xx/5xx. 5) Screenshot to /tmp/page-validate.png. Return: CWV metrics, console errors, broken links, axe violations.",
204
- run_in_background=false
205
- )
206
- \`\`\`
207
-
208
- Output a CWV table vs targets:
209
- | Metric | Measured | Target | Status |
210
- |--------|----------|--------|--------|
211
- | LCP | ? | <2.5s | ✅/❌ |
212
- | CLS | ? | <0.1 | ✅/❌ |
213
- | FCP | ? | <1.8s | ✅/❌ |
214
- | TTFB | ? | <800ms | ✅/❌ |
215
-
216
- ---
217
-
218
- ### \`/bundle-analyze\`
219
- Analyse Next.js bundle sizes and flag heavy dependencies.
220
-
221
- \`\`\`typescript
222
- task(
223
- category="unspecified-low",
224
- load_skills=["vercel-architect"],
225
- description="Bundle analysis for current Next.js project",
226
- prompt="Run /bundle-analyze. Install @next/bundle-analyzer, build with ANALYZE=true, report largest chunks. Flag: lodash (replace with lodash-es), moment.js (replace with dayjs), components >50KB (wrap with dynamic import). Return treemap summary and replacement recommendations.",
227
- run_in_background=false
228
- )
229
- \`\`\`
230
-
231
- ---
232
-
233
- ### \`/db-audit\`
234
- Full database health check: schema, indexes, slow queries.
235
-
236
- \`\`\`typescript
237
- task(
238
- category="unspecified-high",
239
- load_skills=["db-architect"],
240
- description="Full database audit",
241
- prompt="Run /index-audit and /migration-diff. Report: missing FK indexes, unused indexes, sequential scan hotspots, and drift between Drizzle schema and live database. Flag all destructive operations — do not execute them, only report with recommended SQL.",
242
- run_in_background=false
243
- )
244
- \`\`\`
199
+ Use these command intents as compact execution patterns:
245
200
 
246
- ---
247
-
248
- ### \`/edge-vs-node <filepath>\`
249
- Determine whether a route/middleware file can run on Edge Runtime.
250
-
251
- \`\`\`typescript
252
- task(
253
- category="unspecified-low",
254
- load_skills=["vercel-architect"],
255
- description="Edge compatibility check for [filepath]",
256
- prompt="Run /edge-vs-node [filepath]. Check for Node-only imports (fs, path, os, child_process, node:*), Node globals (Buffer, __dirname), and incompatible ORMs (prisma, pg, mysql2). Return VERDICT: EDGE COMPATIBLE or NODE REQUIRED with reasons and fix instructions.",
257
- run_in_background=false
258
- )
259
- \`\`\`
260
-
261
- ---
262
-
263
- ### \`/security-audit\`
264
- Quick OWASP Top 10 check on the codebase. Delegates to \`wunderkind:ciso\` for comprehensive coverage.
265
-
266
- \`\`\`typescript
267
- task(
268
- category="unspecified-high",
269
- load_skills=["wunderkind:ciso"],
270
- description="OWASP security audit of current codebase",
271
- prompt="Perform a security audit covering OWASP Top 10:2025. Check: 1) Hardcoded secrets or API keys in source files. 2) All user inputs validated/sanitised before DB queries. 3) SQL injection vectors (raw query strings with interpolation). 4) Auth middleware coverage — which routes are protected? 5) CORS configuration, CSP headers, HSTS. 6) Missing rate limiting on auth and sensitive endpoints. 7) Dependency vulnerabilities via bun audit. 8) Data minimisation and consent tracking for compliance. Return: prioritised findings by severity (Critical/High/Medium/Low) with exact file paths and recommended fixes.",
272
- run_in_background=false
273
- )
274
- \`\`\`
275
-
276
- ---
277
-
278
- ### \`/architecture-review <component>\`
279
- Review a system component for architectural correctness.
280
-
281
- 1. Read the component, its dependencies, and callers
282
- 2. Assess: separation of concerns, coupling, cohesion, single responsibility
283
- 3. Flag: circular dependencies, god objects, leaky abstractions, performance traps
284
- 4. Propose: minimal refactoring steps with before/after code examples
285
- 5. Estimate: effort (hours), risk (low/med/high), impact (low/med/high)
286
-
287
- ---
288
-
289
- ### \`/supportability-review <service>\`
290
- Run a production-readiness and supportability review before launch.
291
-
292
- 1. Check observability coverage across logs, metrics, traces, dashboards, and alerting
293
- 2. Verify rollback, backup, recovery, and on-call ownership are explicit and tested
294
- 3. Confirm the service has an executable runbook, dependency map, and escalation path
295
- 4. Return a launch scorecard with blockers, near-term fixes, and evidence gaps
296
-
297
- ---
298
-
299
- ### \`/runbook <service> <alert>\`
300
- Write or refine a production runbook for a service and alert.
301
-
302
- 1. Translate the alert into plain-English impact and likely blast radius
303
- 2. List numbered triage and rollback steps with exact commands or dashboards
304
- 3. Document the most likely root-cause branches and how to verify each one
305
- 4. Define success checks, escalation conditions, and post-incident follow-up
201
+ - \`/validate-page <url>\` — run a browser-backed audit for accessibility, CWV, console errors, broken links, and a screenshot; return a CWV table with measured vs target values (\`LCP < 2.5s\`, \`CLS < 0.1\`, \`FCP < 1.8s\`, \`TTFB < 800ms\`) plus the raw violations and errors.
202
+ - \`/bundle-analyze\` — use \`vercel-architect\` to identify largest chunks, heavy dependencies, and concrete replacement opportunities.
203
+ - \`/db-audit\` — use \`db-architect\` for schema, index, migration-drift, and slow-query review; report destructive actions without executing them.
204
+ - \`/edge-vs-node <filepath>\` use \`vercel-architect\` to decide runtime compatibility and explain blockers.
205
+ - \`/security-audit\` — escalate comprehensive OWASP/security-control review to \`ciso\`.
206
+ - \`/architecture-review <component>\` — assess separation of concerns, coupling, traps, and minimal refactor steps with effort/risk.
207
+ - \`/supportability-review <service>\` — review observability, rollback readiness, on-call ownership, and launch blockers.
208
+ - \`/runbook <service> <alert>\` — translate the alert into blast radius, triage steps, root-cause branches, success checks, and escalation conditions.
306
209
 
307
210
  ---
308
211
 
309
212
  ## Sub-Skill Delegation
310
213
 
311
- For red-green-refactor implementation, regression hardening, and defect-driven delivery:
312
-
313
- \`\`\`typescript
314
- task(
315
- category="unspecified-high",
316
- load_skills=["tdd"],
317
- description="[specific bugfix or behavior]",
318
- prompt="...",
319
- run_in_background=false
320
- )
321
- \`\`\`
322
-
323
- ---
324
-
325
- For Vercel deployment, Next.js App Router, Edge Runtime, Neon branching, and performance:
326
-
327
- \`\`\`typescript
328
- task(
329
- category="unspecified-high",
330
- load_skills=["vercel-architect"],
331
- description="[specific Vercel/Next.js task]",
332
- prompt="...",
333
- run_in_background=false
334
- )
335
- \`\`\`
336
-
337
- For database schema design, Drizzle ORM, query analysis, migrations, and index auditing:
338
-
339
- \`\`\`typescript
340
- task(
341
- category="unspecified-high",
342
- load_skills=["db-architect"],
343
- description="[specific database task]",
344
- prompt="...",
345
- run_in_background=false
346
- )
347
- \`\`\`
214
+ - Use \`tdd\` for red-green-refactor loops, regression hardening, and defect-driven delivery.
215
+ - Use \`vercel-architect\` for Vercel, App Router, Edge runtime, Neon branching, and performance work.
216
+ - Use \`db-architect\` for schema design, query analysis, migrations, and index auditing.
348
217
 
349
218
  ---
350
219
 
351
220
  ## Delegation Patterns
352
221
 
353
- For UI implementation and visual engineering:
354
-
355
- \`\`\`typescript
356
- task(
357
- category="visual-engineering",
358
- load_skills=["frontend-ui-ux"],
359
- description="Implement [component/page]",
360
- prompt="...",
361
- run_in_background=false
362
- )
363
- \`\`\`
364
-
365
- For browser automation, E2E testing, and page validation:
366
-
367
- \`\`\`typescript
368
- task(
369
- category="unspecified-low",
370
- load_skills=["agent-browser"],
371
- description="[browser task]",
372
- prompt="...",
373
- run_in_background=false
374
- )
375
- \`\`\`
376
-
377
- For exploring codebase structure and patterns:
378
-
379
- \`\`\`typescript
380
- task(
381
- subagent_type="explore",
382
- load_skills=[],
383
- description="Map [module/pattern] in codebase",
384
- prompt="...",
385
- run_in_background=true
386
- )
387
- \`\`\`
388
-
389
- For researching library APIs, best practices, and external documentation:
390
-
391
- \`\`\`typescript
392
- task(
393
- subagent_type="librarian",
394
- load_skills=[],
395
- description="Research [library/pattern]",
396
- prompt="...",
397
- run_in_background=true
398
- )
399
- \`\`\`
400
-
401
- For git operations (commits, branches, history):
402
-
403
- \`\`\`typescript
404
- task(
405
- category="quick",
406
- load_skills=["git-master"],
407
- description="[git operation]",
408
- prompt="...",
409
- run_in_background=false
410
- )
411
- \`\`\`
412
-
413
- ---
222
+ - Use \`visual-engineering\` for UI implementation and coded visual work.
223
+ - Use \`agent-browser\` for browser automation, E2E capture, and page validation.
224
+ - Use \`explore\` for codebase mapping and \`librarian\` for external library/documentation research.
225
+ - Use \`git-master\` for git operations and \`technical-writer\` for external developer docs or tutorials.
414
226
 
415
227
  ---
416
228
 
417
229
  ${persistentContextSection}
418
230
 
419
- ## Delegation Patterns
420
-
421
- When external developer documentation, tutorials, migration guides, or getting-started content are needed:
422
-
423
- \`\`\`typescript
424
- task(
425
- category="writing",
426
- load_skills=["technical-writer"],
427
- description="Write developer documentation or tutorial for [topic]",
428
- prompt="...",
429
- run_in_background=false
430
- )
431
- \`\`\`
432
231
  ---
433
232
 
434
233
  ## Hard Rules (Non-Negotiable)
@@ -1 +1 @@
1
- {"version":3,"file":"fullstack-wunderkind.js","sourceRoot":"","sources":["../../src/agents/fullstack-wunderkind.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,IAAI,GAAc,KAAK,CAAA;AAE7B,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,QAAQ,EAAE,YAAY;I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;EAsJtB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCvB,wBAAwB;;;;;;;;;;;;;qGAa2E;KAClG,CAAA;AACH,CAAC;AAED,8BAA8B,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"legal-counsel.d.ts","sourceRoot":"","sources":["../../src/agents/legal-counsel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,sBAAsB,EAAE,mBAwBpC,CAAA;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA0NlE;yBA1Ne,uBAAuB"}
1
+ {"version":3,"file":"legal-counsel.d.ts","sourceRoot":"","sources":["../../src/agents/legal-counsel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,sBAAsB,EAAE,mBAwBpC,CAAA;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA8NlE;yBA9Ne,uBAAuB"}
@@ -1,5 +1,5 @@
1
1
  import { createAgentToolRestrictions } from "./types.js";
2
- import { buildPersistentContextSection } from "./shared-prompt-sections.js";
2
+ import { buildPersistentContextSection, buildSlashCommandHelpSection, buildSoulMaintenanceSection } from "./shared-prompt-sections.js";
3
3
  const MODE = "all";
4
4
  export const LEGAL_COUNSEL_METADATA = {
5
5
  category: "specialist",
@@ -37,6 +37,8 @@ export function createLegalCounselAgent(model) {
37
37
  decisions: "license compatibility conclusions, risk acceptance decisions, contract clause recommendations",
38
38
  blockers: "ambiguous license terms requiring external counsel, missing regulatory clarity, unresolved IP questions",
39
39
  });
40
+ const soulMaintenanceSection = buildSoulMaintenanceSection();
41
+ const slashCommandHelpSection = buildSlashCommandHelpSection();
40
42
  return {
41
43
  description: "USE FOR: legal counsel, general counsel, legal advice, OSS license, open source license, MIT license, Apache 2.0, GPL, LGPL, AGPL, copyleft, SPDX, license compatibility, license compliance, license audit, third-party license, dependency license, terms of service, TOS, terms and conditions, privacy policy, privacy notice, GDPR privacy, CCPA privacy, data processing agreement, DPA, data protection agreement, controller processor agreement, contributor license agreement, CLA, individual CLA, corporate CLA, developer certificate of origin, DCO, SaaS agreement, MSA, master service agreement, enterprise agreement, subscription agreement, BAA, business associate agreement, HIPAA BAA, vendor agreement, procurement, contract review, contract negotiation, IP risk, intellectual property, copyright, trademark, patent risk, FOSS compliance, OpenChain, REUSE, regulatory obligation, legal obligation, compliance obligation, data subject rights, right to erasure, right to access, data breach notification obligation, incident response legal, regulatory notification, GDPR article 33, POPIA notification, legal risk, liability, indemnification, limitation of liability, force majeure, governing law, jurisdiction, dispute resolution.",
42
44
  mode: MODE,
@@ -47,7 +49,7 @@ export function createLegalCounselAgent(model) {
47
49
 
48
50
  You are the **Legal Counsel**. Before acting, read the resolved runtime context for \`legalPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
49
51
 
50
- If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
52
+ ${soulMaintenanceSection}
51
53
 
52
54
  Always include a disclaimer: "This is AI-generated legal analysis for informational purposes. Review with qualified legal counsel before relying on it."
53
55
 
@@ -117,6 +119,8 @@ Your mandate: **legal clarity without legal paralysis.**
117
119
 
118
120
  ## Slash Commands
119
121
 
122
+ ${slashCommandHelpSection}
123
+
120
124
  ### \`/license-audit\`
121
125
  Audit all dependencies for license compatibility with the project's own license; flag copyleft risk.
122
126
 
@@ -1 +1 @@
1
- {"version":3,"file":"legal-counsel.js","sourceRoot":"","sources":["../../src/agents/legal-counsel.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,M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;;;;;;;;;;;;;;;;EAsEtB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmHvB,wBAAwB;;;;;;;;2GAQiF;KACxG,CAAA;AACH,CAAC;AAED,uBAAuB,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/marketing-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,mBAyB3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA+QzE;yBA/Qe,8BAA8B"}
1
+ {"version":3,"file":"marketing-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/marketing-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,mBAyB3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAmRzE;yBAnRe,8BAA8B"}
@@ -1,5 +1,5 @@
1
1
  import { createAgentToolRestrictions } from "./types.js";
2
- import { buildPersistentContextSection } from "./shared-prompt-sections.js";
2
+ import { buildPersistentContextSection, buildSlashCommandHelpSection, buildSoulMaintenanceSection } from "./shared-prompt-sections.js";
3
3
  const MODE = "all";
4
4
  export const MARKETING_WUNDERKIND_METADATA = {
5
5
  category: "specialist",
@@ -38,6 +38,8 @@ export function createMarketingWunderkindAgent(model) {
38
38
  decisions: "positioning choices, channel mix, narrative priorities, developer-audience tradeoffs",
39
39
  blockers: "approval bottlenecks, missing assets, unclear product details, access gaps for live audits",
40
40
  });
41
+ const soulMaintenanceSection = buildSoulMaintenanceSection();
42
+ const slashCommandHelpSection = buildSlashCommandHelpSection();
41
43
  return {
42
44
  description: "USE FOR: brand strategy, go-to-market, positioning, messaging, content strategy, SEO, SEM, paid media, lifecycle marketing, attribution, CRO, PR, press releases, thought leadership, community strategy, forum strategy, ambassador programs, sponsorships, events, creator partnerships, social media strategy, launch planning, product marketing, developer advocacy, developer education strategy, docs-led launches, API docs planning, tutorials, migration guides, onboarding journeys, DX audits, time-to-first-value improvement, open source community programs, newsletter strategy, competitor analysis, audience research, retention strategy, funnel analysis, campaign performance analysis, marketing measurement, channel ROI interpretation, brand-community ROI gating.",
43
45
  mode: MODE,
@@ -48,7 +50,7 @@ export function createMarketingWunderkindAgent(model) {
48
50
 
49
51
  You are the **Marketing Wunderkind**. Before acting, read the resolved runtime context for \`cmoPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
50
52
 
51
- If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
53
+ ${soulMaintenanceSection}
52
54
 
53
55
  ---
54
56
 
@@ -127,6 +129,8 @@ Your north star: **make the right audience care, convert, and succeed.**
127
129
 
128
130
  ## Slash Commands
129
131
 
132
+ ${slashCommandHelpSection}
133
+
130
134
  ### \`/gtm-plan <product>\`
131
135
  Build a full go-to-market strategy for a product, feature, or release.
132
136
 
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-wunderkind.js","sourceRoot":"","sources":["../../src/agents/marketing-wunderkind.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,IAAI,GAAc,KAAK,CAAA;AAE7B,MAAM,CAAC,MAAM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BAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkKvB,wBAAwB;;IAEtB;KACD,CAAA;AACH,CAAC;AAED,8BAA8B,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"product-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/product-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,2BAA2B,EAAE,mBA0BzC,CAAA;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CA4WvE;yBA5We,4BAA4B"}
1
+ {"version":3,"file":"product-wunderkind.d.ts","sourceRoot":"","sources":["../../src/agents/product-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,2BAA2B,EAAE,mBA0BzC,CAAA;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAiNvE;yBAjNe,4BAA4B"}
@@ -1,5 +1,5 @@
1
1
  import { createAgentToolRestrictions } from "./types.js";
2
- import { buildPersistentContextSection } from "./shared-prompt-sections.js";
2
+ import { buildPersistentContextSection, buildSlashCommandHelpSection, buildSoulMaintenanceSection } from "./shared-prompt-sections.js";
3
3
  const MODE = "all";
4
4
  export const PRODUCT_WUNDERKIND_METADATA = {
5
5
  category: "specialist",
@@ -38,6 +38,8 @@ export function createProductWunderkindAgent(model) {
38
38
  decisions: "scope decisions, feature cuts, OKR changes",
39
39
  blockers: "dependency blocks, missing research, stakeholder misalignment",
40
40
  });
41
+ const soulMaintenanceSection = buildSoulMaintenanceSection();
42
+ const slashCommandHelpSection = buildSlashCommandHelpSection();
41
43
  return {
42
44
  description: "USE FOR: product strategy, product roadmap, OKRs, product vision, product discovery, user research, customer interviews, jobs to be done, personas, user stories, epics, sprint planning, backlog management, backlog prioritisation, story points, agile, scrum, kanban, lean, task decomposition, work breakdown structure, dependency ordering, parallel task safety, file conflict check, concern grouping, feature prioritisation, MoSCoW, RICE scoring, Kano model, go-to-market, product launch, product metrics, AARRR, North Star metric, product analytics, feature adoption analysis, usage interpretation, A/B testing, experiment readout, feature flags, rollout strategy, stakeholder management, product communication, PRD, product requirements document, user journey mapping, service design, product-market fit, pivots, product positioning, competitive analysis, product ops, product tooling, Jira, Linear, Notion, product principles, product culture, team structure, squad model, cross-functional collaboration, technical product management, API product management, platform strategy, data product management, AI product management, bug triage, issue intake, repro shaping, severity assessment, acceptance review, INVEST gating, escalation doctrine.",
43
45
  mode: MODE,
@@ -48,7 +50,7 @@ export function createProductWunderkindAgent(model) {
48
50
 
49
51
  You are the **Product Wunderkind**. Before acting, read the resolved runtime context for \`productPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
50
52
 
51
- If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
53
+ ${soulMaintenanceSection}
52
54
 
53
55
  ---
54
56
 
@@ -192,111 +194,16 @@ You bridge the gap between user insight and engineering reality. You're fluent i
192
194
 
193
195
  ## Slash Commands
194
196
 
195
- ### \`/breakdown <task description>\`
196
- Decompose a high-level requirement into agent-ready, parallel-safe subtasks.
197
+ ${slashCommandHelpSection}
197
198
 
198
- Load \`agile-pm\` for deep decomposition execution:
199
+ Use these command intents as compact execution patterns:
199
200
 
200
- \`\`\`typescript
201
- task(
202
- category="unspecified-high",
203
- load_skills=["agile-pm"],
204
- description="Decompose task: [task description]",
205
- prompt="Run /breakdown [task description]. Map the project structure first using explore. Then decompose into concern-grouped subtasks with exact file targets, dependency graph, and parallel safety assessment. Format: ### Concern N: [Name] | Files: path/to/file.ts | Tasks: [bullet list]",
206
- run_in_background=false
207
- )
208
- \`\`\`
209
-
210
- ---
211
-
212
- ### \`/sprint-plan\`
213
- Plan a sprint from a backlog or feature list.
214
-
215
- Load \`agile-pm\` for sprint structure:
216
-
217
- \`\`\`typescript
218
- task(
219
- category="unspecified-high",
220
- load_skills=["agile-pm"],
221
- description="Plan sprint from backlog",
222
- prompt="Run /sprint-plan. Read backlog from BACKLOG.md or provided list. Estimate with Fibonacci points (20 points capacity for a 2-week sprint). Group tasks by concern for parallel work. Output sprint table with tasks, points, file targets, dependencies, and stretch goals.",
223
- run_in_background=false
224
- )
225
- \`\`\`
226
-
227
- ---
228
-
229
- ### \`/prd <feature>\`
230
- Write a product requirements document for a feature.
231
-
232
- **Output structure:**
233
- - **Context**: Why does this exist? What's the business/user problem?
234
- - **Goals**: What does success look like? (Measurable outcomes)
235
- - **Non-Goals**: Explicitly what this PRD does NOT cover
236
- - **User Stories**: Key scenarios in "As a [user], I want [goal] so that [reason]" format
237
- - **Requirements**: Functional (must do) and non-functional (performance, security, accessibility)
238
- - **Open Questions**: Known unknowns that need resolution before build
239
- - **Success Metrics**: How will we measure impact post-launch?
240
- - **Timeline**: Rough phases and dependencies
241
-
242
- **After the PRD is drafted**, run an acceptance review against the user stories and escalate any technical delivery gaps to \`wunderkind:fullstack-wunderkind\`:
243
-
244
- \`\`\`typescript
245
- task(
246
- category="unspecified-high",
247
- load_skills=["wunderkind:fullstack-wunderkind"],
248
- description="Technical acceptance follow-up for [feature] PRD",
249
- prompt="Review the stories and acceptance criteria in the [feature] PRD after product acceptance review. Validate the technical contract for each story, identify missing regression coverage, missing rejection-path tests, and any implementation-risk gaps that would block delivery. Return: a story-by-story technical follow-up with the failing scenario, the expected behavior, and the smallest verification surface needed.",
250
- run_in_background=false
251
- )
252
- \`\`\`
253
-
254
- ---
255
-
256
- ### \`/okr-design <level> <objective>\`
257
- Design OKRs for a company, team, or individual level.
258
-
259
- 1. Refine the Objective: inspiring, qualitative, time-bound, memorable
260
- 2. Generate 3-5 Key Results: measurable, outcome-focused (not output), owner-assignable
261
- 3. Validate alignment: does achieving these KRs guarantee the Objective?
262
- 4. Flag risks: what could cause us to hit KRs but miss the Objective spirit?
263
-
264
- **Output format:**
265
- \`\`\`
266
- O: [Objective — qualitative, inspiring]
267
- KR1: [Metric] from [baseline] to [target] by [date]
268
- KR2: [Metric] from [baseline] to [target] by [date]
269
- KR3: [Metric] from [baseline] to [target] by [date]
270
- \`\`\`
271
-
272
- ---
273
-
274
- ### \`/file-conflict-check\`
275
- Analyse a set of tasks for file collision risk before parallel execution.
276
-
277
- Load \`agile-pm\`:
278
-
279
- \`\`\`typescript
280
- task(
281
- category="unspecified-high",
282
- load_skills=["agile-pm"],
283
- description="Check file conflicts in current task list",
284
- prompt="Run /file-conflict-check. Identify all file paths from the active task list. Build an inverted index of file → tasks. Flag any file targeted by 2+ tasks. Output conflict matrix with severity (HIGH/MEDIUM/LOW) and recommended sequential ordering.",
285
- run_in_background=false
286
- )
287
- \`\`\`
288
-
289
- ---
290
-
291
- ### \`/north-star <product>\`
292
- Define a North Star metric framework for a product.
293
-
294
- 1. Identify the core value moment: when does a user first experience the product's magic?
295
- 2. Propose 2-3 candidate North Star metrics with rationale
296
- 3. Select the best one: breadth (reach), depth (engagement), or frequency
297
- 4. Define 3-5 input metrics that drive the North Star
298
- 5. Map the input metrics to team/squad ownership
299
- 6. Design a weekly/monthly review cadence
201
+ - \`/breakdown <task>\` — delegate to \`agile-pm\` for concern-grouped, parallel-safe subtasks with exact file targets and dependency order.
202
+ - \`/sprint-plan\` — delegate to \`agile-pm\` for a sprint plan with points, file targets, dependencies, and stretch work.
203
+ - \`/prd <feature>\` — produce Context, Goals, Non-Goals, User Stories, Requirements, Open Questions, Success Metrics, and Timeline; then request a technical acceptance follow-up from \`fullstack-wunderkind\`.
204
+ - \`/okr-design <level> <objective>\` — refine the objective, propose 3-5 measurable KRs, validate alignment, and flag objective-vs-KR risks.
205
+ - \`/file-conflict-check\` — use \`agile-pm\` to build a file-to-task conflict matrix with severity and safe sequencing.
206
+ - \`/north-star <product>\` identify the value moment, propose candidate metrics, choose the best one, map input metrics, and define review cadence.
300
207
 
301
208
  ---
302
209
 
@@ -309,79 +216,17 @@ Keep these product-owned skills explicit and available for deep product work:
309
216
  - \`ubiquitous-language\` for domain glossary and canonical terminology alignment
310
217
  - \`triage-issue\` for structured issue intake, repro shaping, and backlog-ready handoff
311
218
 
312
- For detailed sprint planning, backlog management, task decomposition, and file conflict checking:
313
-
314
- \`\`\`typescript
315
- task(
316
- category="unspecified-high",
317
- load_skills=["agile-pm"],
318
- description="[specific agile/PM task]",
319
- prompt="...",
320
- run_in_background=false
321
- )
322
- \`\`\`
219
+ Use \`agile-pm\` whenever the request needs sprint planning, backlog structuring, task decomposition, or file-conflict analysis.
323
220
 
324
221
  ---
325
222
 
326
223
  ## Delegation Patterns
327
224
 
328
- When researching competitors, market data, or industry reports:
329
-
330
- \`\`\`typescript
331
- task(
332
- subagent_type="librarian",
333
- load_skills=[],
334
- description="Research [topic] for product strategy",
335
- prompt="...",
336
- run_in_background=true
337
- )
338
- \`\`\`
339
-
340
- When mapping and exploring codebase structure for task decomposition:
341
-
342
- \`\`\`typescript
343
- task(
344
- subagent_type="explore",
345
- load_skills=[],
346
- description="Map project structure for decomposition",
347
- prompt="...",
348
- run_in_background=true
349
- )
350
- \`\`\`
351
-
352
- When writing PRDs, specs, or product documentation:
353
-
354
- \`\`\`typescript
355
- task(
356
- category="writing",
357
- load_skills=[],
358
- description="Write [PRD/spec/doc] for [feature]",
359
- prompt="...",
360
- run_in_background=false
361
- )
362
- \`\`\`
363
-
364
- When campaign, launch, or funnel questions need specialist marketing authority:
365
-
366
- \`\`\`typescript
367
- task(
368
- load_skills=["wunderkind:marketing-wunderkind"],
369
- description="Route campaign or funnel analysis for [feature/launch]",
370
- prompt="Handle the channel, launch, attribution, or funnel question for [feature/launch]. Return the interpretation, the main performance drivers, and the recommended next marketing action.",
371
- run_in_background=false
372
- )
373
- \`\`\`
374
-
375
- When a user-reported issue needs technical execution after product intake:
376
-
377
- \`\`\`typescript
378
- task(
379
- load_skills=["wunderkind:fullstack-wunderkind"],
380
- description="Technical follow-up for user-reported issue: [description]",
381
- prompt="Product has already captured the user report, repro shape, severity, and expected behavior for [description]. Diagnose the likely root cause, identify the smallest failing surface, and return the next engineering action with verification notes.",
382
- run_in_background=false
383
- )
384
- \`\`\`
225
+ - Use \`librarian\` for competitor research, market data, and industry-report gathering.
226
+ - Use \`explore\` for codebase mapping before decomposition or acceptance review.
227
+ - Use \`writing\` for PRDs, specs, and long-form product documentation.
228
+ - Route campaign, launch, and funnel authority to \`marketing-wunderkind\`.
229
+ - Route technical follow-up after product intake to \`fullstack-wunderkind\` with the repro, severity, and expected behavior already framed.
385
230
  ---
386
231
 
387
232
  ${persistentContextSection}
@@ -1 +1 @@
1
- {"version":3,"file":"product-wunderkind.js","sourceRoot":"","sources":["../../src/agents/product-wunderkind.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAE3E,MAAM,IAAI,GAAc,KAAK,CAAA;AAE7B,MAAM,CAAC,MAAM,2BAA2B,GAAwB;IAC9D,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,oBAAoB;IACjC,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EACL,2LAA2L;SAC9L;KACF;IACD,OAAO,EAAE;QACP,+DAA+D;QAC/D,uCAAuC;QACvC,kCAAkC;QAClC,kDAAkD;QAClD,mGAAmG;QACnG,iFAAiF;QACjF,gGAAgG;QAChG,yCAAyC;KAC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,IAAI,GAAG,IAAI,CAAA"}
@@ -3,4 +3,6 @@ export declare function buildPersistentContextSection(options: {
3
3
  decisions: string;
4
4
  blockers: string;
5
5
  }): string;
6
+ export declare function buildSoulMaintenanceSection(): string;
7
+ export declare function buildSlashCommandHelpSection(): string;
6
8
  //# sourceMappingURL=shared-prompt-sections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-prompt-sections.d.ts","sourceRoot":"","sources":["../../src/agents/shared-prompt-sections.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,CAeT"}
1
+ {"version":3,"file":"shared-prompt-sections.d.ts","sourceRoot":"","sources":["../../src/agents/shared-prompt-sections.ts"],"names":[],"mappings":"AAAA,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,GAAG,MAAM,CAeT;AAED,wBAAgB,2BAA2B,IAAI,MAAM,CAYpD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAKrD"}