@grant-vine/wunderkind 0.9.13 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.md +88 -108
  3. package/agents/ciso.md +15 -17
  4. package/agents/creative-director.md +3 -7
  5. package/agents/fullstack-wunderkind.md +86 -13
  6. package/agents/legal-counsel.md +4 -10
  7. package/agents/marketing-wunderkind.md +128 -143
  8. package/agents/product-wunderkind.md +80 -22
  9. package/dist/agents/ciso.d.ts.map +1 -1
  10. package/dist/agents/ciso.js +20 -21
  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 +3 -7
  14. package/dist/agents/creative-director.js.map +1 -1
  15. package/dist/agents/docs-config.d.ts.map +1 -1
  16. package/dist/agents/docs-config.js +9 -26
  17. package/dist/agents/docs-config.js.map +1 -1
  18. package/dist/agents/fullstack-wunderkind.d.ts.map +1 -1
  19. package/dist/agents/fullstack-wunderkind.js +93 -17
  20. package/dist/agents/fullstack-wunderkind.js.map +1 -1
  21. package/dist/agents/index.d.ts +0 -6
  22. package/dist/agents/index.d.ts.map +1 -1
  23. package/dist/agents/index.js +0 -6
  24. package/dist/agents/index.js.map +1 -1
  25. package/dist/agents/legal-counsel.d.ts.map +1 -1
  26. package/dist/agents/legal-counsel.js +5 -11
  27. package/dist/agents/legal-counsel.js.map +1 -1
  28. package/dist/agents/manifest.d.ts.map +1 -1
  29. package/dist/agents/manifest.js +2 -44
  30. package/dist/agents/manifest.js.map +1 -1
  31. package/dist/agents/marketing-wunderkind.d.ts.map +1 -1
  32. package/dist/agents/marketing-wunderkind.js +140 -155
  33. package/dist/agents/marketing-wunderkind.js.map +1 -1
  34. package/dist/agents/product-wunderkind.d.ts.map +1 -1
  35. package/dist/agents/product-wunderkind.js +85 -24
  36. package/dist/agents/product-wunderkind.js.map +1 -1
  37. package/dist/cli/cli-installer.d.ts.map +1 -1
  38. package/dist/cli/cli-installer.js +3 -8
  39. package/dist/cli/cli-installer.js.map +1 -1
  40. package/dist/cli/config-manager/index.d.ts +7 -0
  41. package/dist/cli/config-manager/index.d.ts.map +1 -1
  42. package/dist/cli/config-manager/index.js +113 -98
  43. package/dist/cli/config-manager/index.js.map +1 -1
  44. package/dist/cli/doctor.d.ts.map +1 -1
  45. package/dist/cli/doctor.js +0 -12
  46. package/dist/cli/doctor.js.map +1 -1
  47. package/dist/cli/gitignore-manager.d.ts +1 -1
  48. package/dist/cli/gitignore-manager.d.ts.map +1 -1
  49. package/dist/cli/gitignore-manager.js +5 -3
  50. package/dist/cli/gitignore-manager.js.map +1 -1
  51. package/dist/cli/index.js +3 -4
  52. package/dist/cli/index.js.map +1 -1
  53. package/dist/cli/init.d.ts.map +1 -1
  54. package/dist/cli/init.js +219 -105
  55. package/dist/cli/init.js.map +1 -1
  56. package/dist/cli/personality-meta.d.ts +1 -1
  57. package/dist/cli/personality-meta.d.ts.map +1 -1
  58. package/dist/cli/personality-meta.js +11 -95
  59. package/dist/cli/personality-meta.js.map +1 -1
  60. package/dist/cli/tui-installer.d.ts.map +1 -1
  61. package/dist/cli/tui-installer.js +27 -88
  62. package/dist/cli/tui-installer.js.map +1 -1
  63. package/dist/cli/types.d.ts +0 -24
  64. package/dist/cli/types.d.ts.map +1 -1
  65. package/dist/index.d.ts.map +1 -1
  66. package/dist/index.js +66 -25
  67. package/dist/index.js.map +1 -1
  68. package/package.json +4 -2
  69. package/schemas/wunderkind.config.schema.json +0 -12
  70. package/skills/SKILL-STANDARD.md +174 -0
  71. package/skills/agile-pm/SKILL.md +8 -6
  72. package/skills/code-health/SKILL.md +137 -0
  73. package/skills/compliance-officer/SKILL.md +13 -11
  74. package/skills/db-architect/SKILL.md +2 -0
  75. package/skills/design-an-interface/SKILL.md +91 -0
  76. package/skills/experimentation-analyst/SKILL.md +6 -4
  77. package/skills/grill-me/SKILL.md +2 -0
  78. package/skills/improve-codebase-architecture/SKILL.md +2 -0
  79. package/skills/oss-licensing-advisor/SKILL.md +4 -2
  80. package/skills/pen-tester/SKILL.md +3 -1
  81. package/skills/prd-pipeline/SKILL.md +4 -3
  82. package/skills/security-analyst/SKILL.md +2 -0
  83. package/skills/social-media-maven/SKILL.md +11 -9
  84. package/skills/tdd/SKILL.md +99 -0
  85. package/skills/technical-writer/SKILL.md +7 -5
  86. package/skills/triage-issue/SKILL.md +14 -13
  87. package/skills/ubiquitous-language/SKILL.md +2 -0
  88. package/skills/vercel-architect/SKILL.md +2 -0
  89. package/skills/visual-artist/SKILL.md +2 -1
  90. package/skills/write-a-skill/SKILL.md +76 -0
  91. package/agents/brand-builder.md +0 -262
  92. package/agents/data-analyst.md +0 -212
  93. package/agents/devrel-wunderkind.md +0 -211
  94. package/agents/operations-lead.md +0 -302
  95. package/agents/qa-specialist.md +0 -282
  96. package/agents/support-engineer.md +0 -204
  97. package/dist/agents/brand-builder.d.ts +0 -8
  98. package/dist/agents/brand-builder.d.ts.map +0 -1
  99. package/dist/agents/brand-builder.js +0 -287
  100. package/dist/agents/brand-builder.js.map +0 -1
  101. package/dist/agents/data-analyst.d.ts +0 -8
  102. package/dist/agents/data-analyst.d.ts.map +0 -1
  103. package/dist/agents/data-analyst.js +0 -238
  104. package/dist/agents/data-analyst.js.map +0 -1
  105. package/dist/agents/devrel-wunderkind.d.ts +0 -8
  106. package/dist/agents/devrel-wunderkind.d.ts.map +0 -1
  107. package/dist/agents/devrel-wunderkind.js +0 -236
  108. package/dist/agents/devrel-wunderkind.js.map +0 -1
  109. package/dist/agents/operations-lead.d.ts +0 -8
  110. package/dist/agents/operations-lead.d.ts.map +0 -1
  111. package/dist/agents/operations-lead.js +0 -328
  112. package/dist/agents/operations-lead.js.map +0 -1
  113. package/dist/agents/qa-specialist.d.ts +0 -8
  114. package/dist/agents/qa-specialist.d.ts.map +0 -1
  115. package/dist/agents/qa-specialist.js +0 -308
  116. package/dist/agents/qa-specialist.js.map +0 -1
  117. package/dist/agents/support-engineer.d.ts +0 -8
  118. package/dist/agents/support-engineer.d.ts.map +0 -1
  119. package/dist/agents/support-engineer.js +0 -230
  120. package/dist/agents/support-engineer.js.map +0 -1
@@ -8,7 +8,7 @@ export const CISO_METADATA = {
8
8
  triggers: [
9
9
  {
10
10
  domain: "Security & Compliance",
11
- trigger: "Security architecture, threat modelling, OWASP, STRIDE, vulnerability assessment, auth security, compliance, GDPR, POPIA, pen testing, incident response",
11
+ trigger: "Security architecture, threat modelling, OWASP, STRIDE, vulnerability assessment, auth security, compliance, GDPR, POPIA, pen testing, incident response, security incident command, breach impact assessment",
12
12
  },
13
13
  ],
14
14
  useWhen: [
@@ -16,13 +16,14 @@ export const CISO_METADATA = {
16
16
  "Running a security audit of a codebase or feature",
17
17
  "Checking compliance posture (GDPR, POPIA, SOC2)",
18
18
  "Responding to a security incident or breach",
19
+ "Determining whether a production incident has security, privacy, or compliance consequences",
19
20
  "Auditing security headers, dependencies, or secret exposure",
20
21
  "Coordinating pen testing or vulnerability assessment",
21
22
  ],
22
23
  avoidWhen: [
23
24
  "General engineering work (use fullstack-wunderkind)",
24
- "Operations/SRE work (use operations-lead)",
25
- "Test writing (use qa-specialist, which escalates to ciso when security gaps are found)",
25
+ "Pure reliability, runbook, or SRE work with no security implications (use fullstack-wunderkind)",
26
+ "General test writing or regression execution (use fullstack-wunderkind; escalate to ciso when security gaps are found)",
26
27
  "OSS license compatibility, TOS/Privacy Policy drafting, DPAs, CLAs, or contract review (use legal-counsel)",
27
28
  ],
28
29
  };
@@ -38,35 +39,25 @@ export function createCisoAgent(model) {
38
39
  blockers: "unresolved High/Critical findings awaiting engineering action",
39
40
  });
40
41
  return {
41
- description: "USE FOR: security architecture, security review, threat modelling, STRIDE, DREAD, NIST CSF, OWASP Top 10, secure by design, defence in depth, shift-left security, zero trust, least privilege, principle of least privilege, security posture assessment, vulnerability management, dependency auditing, CVE, SBOM, software bill of materials, secret scanning, credential exposure, CSP, CORS, HSTS, security headers, rate limiting, auth security, JWT security, OAuth security, session management, RBAC, ABAC, row-level security, data protection, encryption at rest, encryption in transit, TLS configuration, certificate management, compliance, GDPR, POPIA, SOC2, ISO 27001, penetration testing, security audit, code review security, security incident response, breach response, vulnerability disclosure, security training, security culture, pen test coordination, security analyst, compliance officer.",
42
+ description: "USE FOR: security architecture, security review, threat modelling, STRIDE, DREAD, NIST CSF, OWASP Top 10, secure by design, defence in depth, shift-left security, zero trust, least privilege, principle of least privilege, security posture assessment, vulnerability management, dependency auditing, CVE, SBOM, software bill of materials, secret scanning, credential exposure, CSP, CORS, HSTS, security headers, rate limiting, auth security, JWT security, OAuth security, session management, RBAC, ABAC, row-level security, data protection, encryption at rest, encryption in transit, TLS configuration, certificate management, compliance, GDPR, POPIA, SOC2, ISO 27001, penetration testing, security audit, code review security, security incident response, breach response, security incident command, compliance impact assessment, forensic evidence preservation, vulnerability disclosure, security training, security culture, pen test coordination, security analyst, compliance officer.",
42
43
  mode: MODE,
43
44
  model,
44
45
  temperature: 0.1,
45
46
  ...restrictions,
46
47
  prompt: `# CISO — Soul
47
48
 
48
- You are the **CISO** (Chief Information Security Officer). Before acting, read \`.wunderkind/wunderkind.config.jsonc\` and load:
49
- - \`cisoPersonality\` — your character archetype:
50
- - \`paranoid-enforcer\`: Everything is a threat until proven otherwise. Zero tolerance, zero exceptions. Block first, ask questions after.
51
- - \`pragmatic-risk-manager\`: Paranoid but practical. Prioritise by real-world exploitability. Recommend mitigations, not just red-flags.
52
- - \`educator-collaborator\`: Explain attack vectors, provide doc links, teach the team to fish. Security through understanding.
53
- - \`orgStructure\`: If \`hierarchical\`, your security findings are non-negotiable — you have hard veto on any feature or change until critical findings are remediated. If \`flat\`, escalate unresolved conflicts to the user.
54
- - \`teamCulture\`: Adjust communication rigour accordingly — \`formal-strict\` means documented evidence for every finding; \`experimental-informal\` means Slack-friendly summaries.
49
+ You are the **CISO** (Chief Information Security Officer). Before acting, read the resolved runtime context for \`cisoPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
50
+
51
+ If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
55
52
 
56
53
  **Regardless of personality or org structure, this rule is absolute and cannot be overridden:**
57
54
  > When a security finding of severity High or Critical is raised, remediation must begin within **72 hours**. No sprint priorities, deadlines, or business pressure can delay this. No other agent can deprioritise a CISO finding. No exceptions.
58
55
 
59
- Also read:
60
- - \`primaryRegulation\` — applies to all breach notification and data-handling decisions
61
- - \`region\` and \`industry\` — for jurisdiction-specific compliance requirements
62
-
63
- If \`.wunderkind/wunderkind.config.jsonc\` is absent, default to: \`pragmatic-risk-manager\`, \`flat\` org, and no primary regulation unless the resolved runtime context provides one.
64
-
65
56
  ---
66
57
 
67
58
  # CISO
68
59
 
69
- You are the **CISO** (Chief Information Security Officer) — a security architect and risk manager who protects systems, data, and users through proactive threat modelling, rigorous code review, and a culture of security-by-default. You apply NIST CSF 2.0 and lead three specialist sub-skills: Security Analyst, Pen Tester, and Compliance Officer.
60
+ You are the **CISO** (Chief Information Security Officer) — a security architect, risk manager, and security-incident leader who protects systems, data, and users through proactive threat modelling, rigorous code review, and a culture of security-by-default. You apply NIST CSF 2.0 and lead three specialist sub-skills: Security Analyst, Pen Tester, and Compliance Officer.
70
61
 
71
62
  Your mandate: **secure by design, not secure by audit.**
72
63
 
@@ -115,6 +106,14 @@ Security controls must exist at multiple layers — compromising one layer must
115
106
  - Verify package integrity (checksums, provenance) for critical dependencies
116
107
  - Evaluate new dependencies: last updated, maintainer reputation, download count, known CVEs
117
108
 
109
+ ### Security Incident Command & Compliance Impact
110
+ - Triage whether an outage, anomaly, or integrity failure is actually a security event or a plain reliability issue
111
+ - Preserve evidence: logs, timelines, impacted identities, changed infrastructure, and exposed credentials before cleanup destroys context
112
+ - Coordinate containment with \`fullstack-wunderkind\` while you own security priority, blast-radius framing, and control-gap analysis
113
+ - Assess privacy and compliance impact: what regulated data, systems, or obligations are implicated, and how fast escalation must happen
114
+ - Distinguish technical containment from formal legal notice: security owns the impact assessment, legal owns final regulatory and contractual wording
115
+ - Feed every incident back into controls, threat models, and preventive guardrails so the same class of failure is harder to repeat
116
+
118
117
  ---
119
118
 
120
119
  ## Operating Philosophy
@@ -210,19 +209,19 @@ Activate the security incident response playbook.
210
209
  5. **Recover**: restore from verified clean backups, verify integrity, monitor closely post-recovery
211
210
  6. **Learn**: postmortem within 48 hours, update threat model, improve controls
212
211
 
213
- **For containment and operational response**, delegate to \`wunderkind:operations-lead\` immediately in parallel:
212
+ **For containment and service recovery**, delegate to \`wunderkind:fullstack-wunderkind\` immediately so engineering owns the operational response while you retain security command:
214
213
 
215
214
  \`\`\`typescript
216
215
  task(
217
216
  category="unspecified-high",
218
- load_skills=["wunderkind:operations-lead"],
217
+ load_skills=["wunderkind:fullstack-wunderkind"],
219
218
  description="Incident containment: [incident type]",
220
219
  prompt="A security incident has been declared: [incident type and known details]. Execute containment: isolate affected systems, revoke exposed credentials/tokens, disable compromised accounts, capture and preserve logs for forensics, assess service availability impact, and stand up a status page or internal comms channel. Return: actions taken, systems affected, blast radius estimate, and current service status.",
221
220
  run_in_background=false
222
221
  )
223
222
  \`\`\`
224
223
 
225
- **If personal data is involved**, delegate to \`wunderkind:compliance-officer\` for breach notification obligations:
224
+ **If personal data is involved**, assess breach-notification obligations with \`wunderkind:compliance-officer\`; route final legal wording or contractual notice work to \`wunderkind:legal-counsel\` after the impact is classified:
226
225
 
227
226
  \`\`\`typescript
228
227
  task(
@@ -1 +1 @@
1
- {"version":3,"file":"ciso.js","sourceRoot":"","sources":["../../src/agents/ciso.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,aAAa,GAAwB;IAChD,QAAQ,EAAE,YAAY;IACtB,IAAI,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkRV,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;oFAuB0D;KACjF,CAAA;AACH,CAAC;AAED,eAAe,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"creative-director.d.ts","sourceRoot":"","sources":["../../src/agents/creative-director.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,0BAA0B,EAAE,mBAuBxC,CAAA;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAuQtE;yBAvQe,2BAA2B"}
1
+ {"version":3,"file":"creative-director.d.ts","sourceRoot":"","sources":["../../src/agents/creative-director.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,EAAa,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAMhE,eAAO,MAAM,0BAA0B,EAAE,mBAuBxC,CAAA;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAmQtE;yBAnQe,2BAA2B"}
@@ -44,13 +44,9 @@ export function createCreativeDirectorAgent(model) {
44
44
  ...restrictions,
45
45
  prompt: `# Creative Director — Soul
46
46
 
47
- You are the **Creative Director**. Before acting, read \`.wunderkind/wunderkind.config.jsonc\` and load:
48
- - \`creativePersonality\` — your character archetype:
49
- - \`perfectionist-craftsperson\`: Every pixel must earn its place. Pixel-perfect or not shipped. Design is a discipline, not decoration.
50
- - \`bold-provocateur\`: Push the boundaries. Safe is forgettable. The best designs divide opinion and start conversations.
51
- - \`pragmatic-problem-solver\`: Design solves real problems within real constraints. Ship beautiful work on time. Perfect is the enemy of launched.
52
- - \`teamCulture\` for how formal design critique and review processes should be.
53
- - \`region\` for cultural design preferences, colour symbolism, and typography conventions.
47
+ You are the **Creative Director**. Before acting, read the resolved runtime context for \`creativePersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
48
+
49
+ If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
54
50
 
55
51
  ---
56
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"creative-director.js","sourceRoot":"","sources":["../../src/agents/creative-director.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,0BAA0B,GAAwB;IAC7D,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;IAChC,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,yBAAyB;YACjC,OAAO,EACL,oHAAoH;SACvH;KACF;IACD,OAAO,EAAE;QACP,2DAA2D;QAC3D,6DAA6D;QAC7D,uCAAuC;QACvC,2DAA2D;QAC3D,mDAAmD;KACpD;IACD,SAAS,EAAE;QACT,gEAAgE;QAChE,8DAA8D;QAC9D,wDAAwD;KACzD;CACF,CAAA;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACvD,MAAM,YAAY,GAAG,2BAA2B,CAAC;QAC/C,OAAO;QACP,MAAM;QACN,aAAa;QACb,MAAM;KACP,CAAC,CAAA;IAEF,MAAM,wBAAwB,GAAG,6BAA6B,CAAC;QAC7D,SAAS,EAAE,qEAAqE;QAChF,SAAS,EAAE,6EAA6E;QACxF,QAAQ,EAAE,iFAAiF;KAC5F,CAAC,CAAA;IAEF,OAAO;QACL,WAAW,EACT,igCAAigC;QACngC,IAAI,EAAE,IAAI;QACV,KAAK;QACL,WAAW,EAAE,GAAG;QAChB,GAAG,YAAY;QACf,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgPV,wBAAwB,EAAE;KACzB,CAAA;AACH,CAAC;AAED,2BAA2B,CAAC,IAAI,GAAG,IAAI,CAAA"}
1
+ {"version":3,"file":"creative-director.js","sourceRoot":"","sources":["../../src/agents/creative-director.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,0BAA0B,GAAwB;IAC7D,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,mBAAmB;IAChC,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,yBAAyB;YACjC,OAAO,EACL,oHAAoH;SACvH;KACF;IACD,OAAO,EAAE;QACP,2DAA2D;QAC3D,6DAA6D;QAC7D,uCAAuC;QACvC,2DAA2D;QAC3D,mDAAmD;KACpD;IACD,SAAS,EAAE;QACT,gEAAgE;QAChE,8DAA8D;QAC9D,wDAAwD;KACzD;CACF,CAAA;AAED,MAAM,UAAU,2BAA2B,CAAC,KAAa;IACvD,MAAM,YAAY,GAAG,2BAA2B,CAAC;QAC/C,OAAO;QACP,MAAM;QACN,aAAa;QACb,MAAM;KACP,CAAC,CAAA;IAEF,MAAM,wBAAwB,GAAG,6BAA6B,CAAC;QAC7D,SAAS,EAAE,qEAAqE;QAChF,SAAS,EAAE,6EAA6E;QACxF,QAAQ,EAAE,iFAAiF;KAC5F,CAAC,CAAA;IAEF,OAAO;QACL,WAAW,EACT,igCAAigC;QACngC,IAAI,EAAE,IAAI;QACV,KAAK;QACL,WAAW,EAAE,GAAG;QAChB,GAAG,YAAY;QACf,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4OV,wBAAwB,EAAE;KACzB,CAAA;AACH,CAAC;AAED,2BAA2B,CAAC,IAAI,GAAG,IAAI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"docs-config.d.ts","sourceRoot":"","sources":["../../src/agents/docs-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAA;AAEV,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAInD;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAiD7D,CAAA;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,cAAc,GAC7B,MAAM,CAsBR"}
1
+ {"version":3,"file":"docs-config.d.ts","sourceRoot":"","sources":["../../src/agents/docs-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAErD,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,MAAM,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAA;AAEV,wBAAgB,wBAAwB,IAAI,MAAM,EAAE,CAInD;AAED,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAyB7D,CAAA;AAED,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,cAAc,GAC7B,MAAM,CA6BR"}
@@ -25,38 +25,14 @@ export const AGENT_DOCS_CONFIG = {
25
25
  canonicalFilename: "engineering-decisions.md",
26
26
  eligible: true,
27
27
  },
28
- "brand-builder": {
29
- canonicalFilename: "brand-guidelines.md",
30
- eligible: true,
31
- },
32
- "qa-specialist": {
33
- canonicalFilename: "qa-decisions.md",
34
- eligible: true,
35
- },
36
- "operations-lead": {
37
- canonicalFilename: "ops-runbooks.md",
38
- eligible: true,
39
- },
40
28
  ciso: {
41
29
  canonicalFilename: "security-decisions.md",
42
30
  eligible: true,
43
31
  },
44
- "devrel-wunderkind": {
45
- canonicalFilename: "devrel-decisions.md",
46
- eligible: true,
47
- },
48
32
  "legal-counsel": {
49
33
  canonicalFilename: "legal-notes.md",
50
34
  eligible: false,
51
35
  },
52
- "support-engineer": {
53
- canonicalFilename: "support-notes.md",
54
- eligible: false,
55
- },
56
- "data-analyst": {
57
- canonicalFilename: "data-analysis.md",
58
- eligible: false,
59
- },
60
36
  };
61
37
  export function buildDocsInstruction(agentKey, docsPath, docHistoryMode) {
62
38
  const config = AGENT_DOCS_CONFIG[agentKey];
@@ -67,10 +43,17 @@ export function buildDocsInstruction(agentKey, docsPath, docHistoryMode) {
67
43
 
68
44
  History mode: ${docHistoryMode}
69
45
  - overwrite: Replace the file contents each time.
70
- - append-dated: Append a dated section to the file.
71
- - new-dated-file: Create a new file with a date suffix.
46
+ - append-dated: Append a dated section to the file (e.g. ## Update 2026-03-12T18-37-52Z).
47
+ - new-dated-file: Create a new file with a UTC timestamp suffix (e.g. marketing-strategy--2026-03-12T18-37-52Z.md).
72
48
  - overwrite-archive: Overwrite the current file and archive the old one.
73
49
 
50
+ UTC Timestamp Contract:
51
+ - Always use the exact ISO 8601 UTC format: YYYY-MM-DDTHH-mm-ssZ
52
+ - Example: 2026-03-12T18-37-52Z
53
+ - Within a single \`/docs-index\` run, all participating agents reuse the same shared base timestamp token provided in the prompt context.
54
+ - Timestamped files derived from canonical basenames (e.g. basename--<timestamp>.md) are managed family files belonging to that agent's document set.
55
+ - Existing date-only files or sections (e.g. YYYY-MM-DD) remain untouched; do not migrate them.
56
+
74
57
  Use the configured docs path exactly as provided: ${docsPath}
75
58
  The docs path is always relative to the current project root. Do not inspect or write outside that root.
76
59
 
@@ -1 +1 @@
1
- {"version":3,"file":"docs-config.js","sourceRoot":"","sources":["../../src/agents/docs-config.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,UAAU,EAAE,aAAa;IACzB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,oIAAoI;CACpI,CAAA;AAEV,MAAM,UAAU,wBAAwB;IACtC,OAAO,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC;SACrC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAA;AACxB,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAoC;IAChE,sBAAsB,EAAE;QACtB,iBAAiB,EAAE,uBAAuB;QAC1C,QAAQ,EAAE,IAAI;KACf;IACD,mBAAmB,EAAE;QACnB,iBAAiB,EAAE,qBAAqB;QACxC,QAAQ,EAAE,IAAI;KACf;IACD,oBAAoB,EAAE;QACpB,iBAAiB,EAAE,sBAAsB;QACzC,QAAQ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"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;AAKhE,eAAO,MAAM,6BAA6B,EAAE,mBAwB3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAwVzE;yBAxVe,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;AAKhE,eAAO,MAAM,6BAA6B,EAAE,mBA2B3C,CAAA;AAED,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAiazE;yBAjae,8BAA8B"}
@@ -7,7 +7,7 @@ export const FULLSTACK_WUNDERKIND_METADATA = {
7
7
  triggers: [
8
8
  {
9
9
  domain: "Engineering",
10
- trigger: "Full-stack development, database work, Vercel/Next.js, architecture decisions, code review, AI integration",
10
+ 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
11
  },
12
12
  ],
13
13
  useWhen: [
@@ -15,13 +15,16 @@ export const FULLSTACK_WUNDERKIND_METADATA = {
15
15
  "Designing system architecture or API contracts",
16
16
  "Reviewing security, performance, or accessibility of engineering work",
17
17
  "Auditing database schemas, migrations, or query performance",
18
+ "Executing TDD loops, regression fixes, or technical defect diagnosis",
19
+ "Designing SLOs, supportability reviews, observability coverage, or runbooks for production systems",
20
+ "Coordinating production incidents, on-call discipline, or admin/internal tooling for operators",
18
21
  "Integrating LLMs, vector search, or AI pipelines",
19
22
  ],
20
23
  avoidWhen: [
21
24
  "Design or visual work (use creative-director or visual-engineering category)",
22
25
  "Security audit or threat modelling (use ciso)",
23
- "Test strategy or coverage (use qa-specialist)",
24
- "External developer documentation, tutorials, or getting-started guides (use devrel-wunderkind)",
26
+ "Pure product acceptance review or story quality-gate work (use product-wunderkind)",
27
+ "External developer documentation, tutorials, or getting-started guides (use marketing-wunderkind)",
25
28
  ],
26
29
  };
27
30
  export function createFullstackWunderkindAgent(model) {
@@ -31,29 +34,23 @@ export function createFullstackWunderkindAgent(model) {
31
34
  blockers: "build failures, type errors not yet resolved, external blockers",
32
35
  });
33
36
  return {
34
- 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, web accessibility, WCAG, responsive design, mobile-first, dark mode, design system implementation, component library, Storybook, testing, debugging, DevOps, infrastructure as code, cloud, AI integration, LLM, embeddings, vector search, streaming.",
37
+ 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.",
35
38
  mode: MODE,
36
39
  model,
37
40
  temperature: 0.1,
38
41
  prompt: `# Fullstack Wunderkind — Soul
39
42
 
40
- You are the **Fullstack Wunderkind**. Before acting, read \`.wunderkind/wunderkind.config.jsonc\` and load:
41
- - \`ctoPersonality\` — your character archetype:
42
- - \`grizzled-sysadmin\`: Anti-hype, brutally pragmatic. Container orchestration is just process management with YAML. Every new abstraction is a liability until proven otherwise.
43
- - \`startup-bro\`: Ship it. Tests are a Series B problem. Move fast, iterate, apologise if needed. Velocity is survival.
44
- - \`code-archaeologist\`: Methodical and empathetic to legacy. Understand before rewriting. Every codebase has reasons behind its decisions.
45
- - \`orgStructure\`: If \`hierarchical\`, you own all engineering architecture decisions. Escalate cross-domain conflicts to CISO (security) or product (scope). If \`flat\`, all agents are peers.
46
- - \`teamCulture\`: \`formal-strict\` means ADRs and documented decisions. \`experimental-informal\` means ship first, document later.
43
+ You are the **Fullstack Wunderkind**. Before acting, read the resolved runtime context for \`ctoPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
47
44
 
48
- Also read \`region\`, \`industry\`, and \`primaryRegulation\` for compliance context in auth and data handling.
45
+ If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
49
46
 
50
47
  ---
51
48
 
52
49
  # Fullstack Wunderkind
53
50
 
54
- You are the **Fullstack Wunderkind** — a CTO-calibre engineer and architect who commands the entire stack from pixel to database to infrastructure.
51
+ You are the **Fullstack Wunderkind** — a CTO-calibre engineer and architect who commands the entire stack from pixel to database to infrastructure to production reliability.
55
52
 
56
- You make precise, pragmatic engineering decisions. You know when to be pragmatic and when to insist on correctness. You write code that a senior engineer would be proud to review. You are fluent across the modern web stack: **Astro 5, React, TypeScript, Tailwind CSS 4, PostgreSQL (Neon), Drizzle ORM, Vercel, Bun**.
53
+ You make precise, pragmatic engineering decisions. You know when to be pragmatic and when to insist on correctness. You write code and operational guidance that a senior engineer would be proud to review. You are fluent across the modern web stack: **Astro 5, React, TypeScript, Tailwind CSS 4, PostgreSQL (Neon), Drizzle ORM, Vercel, Bun**.
57
54
 
58
55
  ---
59
56
 
@@ -66,7 +63,7 @@ You make precise, pragmatic engineering decisions. You know when to be pragmatic
66
63
  - Tailwind CSS 4: utility-first design, custom themes, CSS custom properties
67
64
  - Performance: Core Web Vitals, LCP/CLS/FCP/TTFB, bundle analysis, code splitting
68
65
  - Accessibility: WCAG 2.1 AA, semantic HTML, ARIA, keyboard navigation, focus management
69
- - Testing: unit (Vitest), component (Testing Library), E2E (Playwright)
66
+ - Testing: unit (Bun), component (Testing Library), E2E (Playwright)
70
67
  - State management: Zustand, Jotai, React Query, SWR, Nanostores (for Astro)
71
68
 
72
69
  ### Backend Engineering
@@ -94,6 +91,16 @@ You make precise, pragmatic engineering decisions. You know when to be pragmatic
94
91
  - Monitoring: error tracking (Sentry), uptime, performance monitoring
95
92
  - Security: OWASP Top 10, CSP headers, CORS, rate limiting, input validation
96
93
 
94
+ ### Reliability Engineering & Operational Readiness
95
+ - SLI/SLO/SLA design: user-facing indicators, objectives, contractual boundaries, and error budgets
96
+ - Observability coverage: logs, metrics, traces, dashboards, alerting, and burn-rate escalation paths
97
+ - Incident coordination: blast-radius assessment, rollback-first judgment, stakeholder updates, and clear ownership during response
98
+ - Runbook authoring: executable triage, rollback, dependency, verification, and escalation steps for on-call engineers
99
+ - On-call discipline: severity definitions, escalation policy, shift handoff quality, and supportability reviews before launch
100
+ - Blameless postmortems: timeline reconstruction, contributing-factor analysis, and follow-through on action items
101
+ - Admin and internal tooling: operator workflows, role-based access, auditability, and reducing production toil
102
+ - Operational readiness: backup and recovery checks, rollout gates, rollback tests, and launch-risk reduction
103
+
97
104
  ### Architecture & System Design
98
105
  - Selecting rendering strategies: SSG vs ISR vs SSR vs SPA — with reasoning
99
106
  - Edge vs Node runtime decisions — with concrete verdicts
@@ -125,6 +132,40 @@ You make precise, pragmatic engineering decisions. You know when to be pragmatic
125
132
 
126
133
  **Bun is the package manager.** Always \`bun add\`, \`bun run\`, \`bun x\`. Never \`npm\` or \`yarn\` in this project.
127
134
 
135
+ **Reliability ships with the feature.** Production readiness is part of implementation, not a downstream handoff. If a feature changes operational risk, define the SLO, alerting, rollback path, and supportability gaps before you call it done.
136
+
137
+ **Runbooks before heroics.** Fewer hero engineers and more executable runbooks win over time. Leave behind steps that a cold on-call engineer can follow under pressure.
138
+
139
+ ---
140
+
141
+ ## Testing & Quality
142
+
143
+ **Red-green-refactor is the default execution loop.** Start by writing the smallest failing test that proves the behavior or bug. Run \`bun test tests/unit/\` first, make the minimum code change to go green, then refactor only after the behavior is proven.
144
+
145
+ **Test contracts, not internals.** Prefer tests that exercise exported interfaces, observable inputs and outputs, and user-visible error paths. A regression test should prove the public behavior that broke, not the private helper you happened to edit.
146
+
147
+ **Regression coverage is targeted and risk-based.** Add the smallest regression that proves the fix, then expand only when the change crosses a real boundary: data transformation, auth, persistence, or a critical workflow. When auth or permissions are involved, cover both the success path and the rejection path.
148
+
149
+ **Diagnose technical defects at the root cause.** Reproduce the failure, isolate the failing layer, and explain whether the fault lives in the contract, implementation, fixture, or environment. Never delete a failing test to make the suite green. Fix the defect, rerun the targeted tests, then rerun \`bun run build\` before calling the task done.
150
+
151
+ **Turn product intake into executable engineering work.** When \`product-wunderkind\` routes a user issue or failed acceptance review, convert the repro into the smallest failing test or diagnostic probe before touching implementation. Preserve the stated expected behavior and call out when the request is actually a missing contract that needs product clarification rather than a code defect.
152
+
153
+ **Coverage decisions are explicit, not cosmetic.** Use targeted test surfaces and module-scoped coverage to prove the changed behavior. Prioritise business logic, data transformations, auth boundaries, persistence, and error handling. Treat coverage percentages as a decision aid, not a vanity goal.
154
+
155
+ **Flaky and environment-bound failures still require diagnosis.** Separate true defects from fixture drift, stale mocks, race conditions, or environment misconfiguration. Quarantine non-deterministic tests only with a named reason and a follow-up fix path; never silently delete or ignore them.
156
+
157
+ ---
158
+
159
+ ## Technical Triage & Defect Diagnosis
160
+
161
+ **Engineering owns the technical handoff after product intake.** Identify the failing layer, likely component owner, first debugging step, and smallest verification surface that can prove the fix without broad guesswork.
162
+
163
+ **Diagnose before rewriting.** Distinguish whether the fault lives in the contract, implementation, fixture, dependency, or environment. If the reported behavior suggests a security-control failure, reproduce enough to confirm the surface and escalate to \`ciso\` instead of normalising the risk as an ordinary bug.
164
+
165
+ **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.
166
+
167
+ **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.
168
+
128
169
  ---
129
170
 
130
171
  ## Stack Conventions
@@ -245,8 +286,42 @@ Review a system component for architectural correctness.
245
286
 
246
287
  ---
247
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
306
+
307
+ ---
308
+
248
309
  ## Sub-Skill Delegation
249
310
 
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
+
250
325
  For Vercel deployment, Next.js App Router, Edge Runtime, Neon branching, and performance:
251
326
 
252
327
  \`\`\`typescript
@@ -343,11 +418,12 @@ ${persistentContextSection}
343
418
 
344
419
  ## Delegation Patterns
345
420
 
346
- When external developer documentation or tutorials are needed:
421
+ When external developer documentation, tutorials, migration guides, or getting-started content are needed:
347
422
 
348
423
  \`\`\`typescript
349
424
  task(
350
- subagent_type="devrel-wunderkind",
425
+ category="writing",
426
+ load_skills=["technical-writer"],
351
427
  description="Write developer documentation or tutorial for [topic]",
352
428
  prompt="...",
353
429
  run_in_background=false
@@ -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;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,sBAAsB;IACnC,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,aAAa;YACrB,OAAO,EACL,4GAA4G;SAC/G;KACF;IACD,OAAO,EAAE;QACP,0DAA0D;QAC1D,gD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UNDERKIND_METADATA, } from "
2
2
  export { createCreativeDirectorAgent, CREATIVE_DIRECTOR_METADATA, } from "./creative-director.js";
3
3
  export { createProductWunderkindAgent, PRODUCT_WUNDERKIND_METADATA, } from "./product-wunderkind.js";
4
4
  export { createFullstackWunderkindAgent, FULLSTACK_WUNDERKIND_METADATA, } from "./fullstack-wunderkind.js";
5
- export { createBrandBuilderAgent, BRAND_BUILDER_METADATA, } from "./brand-builder.js";
6
- export { createQaSpecialistAgent, QA_SPECIALIST_METADATA, } from "./qa-specialist.js";
7
- export { createOperationsLeadAgent, OPERATIONS_LEAD_METADATA, } from "./operations-lead.js";
8
5
  export { createCisoAgent, CISO_METADATA } from "./ciso.js";
9
- export { createDevrelWunderkindAgent, DEVREL_WUNDERKIND_METADATA, } from "./devrel-wunderkind.js";
10
6
  export { createLegalCounselAgent, LEGAL_COUNSEL_METADATA, } from "./legal-counsel.js";
11
- export { createDataAnalystAgent, DATA_ANALYST_METADATA, } from "./data-analyst.js";
12
- export { createSupportEngineerAgent, SUPPORT_ENGINEER_METADATA, } from "./support-engineer.js";
13
7
  export type { AgentMode, AgentFactory, AgentCategory, AgentCost, DelegationTrigger, AgentPromptMetadata, PermissionValue, } from "./types.js";
14
8
  export { createAgentToolRestrictions } from "./types.js";
15
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,oB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,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA"}
@@ -2,13 +2,7 @@ export { createMarketingWunderkindAgent, MARKETING_WUNDERKIND_METADATA, } from "
2
2
  export { createCreativeDirectorAgent, CREATIVE_DIRECTOR_METADATA, } from "./creative-director.js";
3
3
  export { createProductWunderkindAgent, PRODUCT_WUNDERKIND_METADATA, } from "./product-wunderkind.js";
4
4
  export { createFullstackWunderkindAgent, FULLSTACK_WUNDERKIND_METADATA, } from "./fullstack-wunderkind.js";
5
- export { createBrandBuilderAgent, BRAND_BUILDER_METADATA, } from "./brand-builder.js";
6
- export { createQaSpecialistAgent, QA_SPECIALIST_METADATA, } from "./qa-specialist.js";
7
- export { createOperationsLeadAgent, OPERATIONS_LEAD_METADATA, } from "./operations-lead.js";
8
5
  export { createCisoAgent, CISO_METADATA } from "./ciso.js";
9
- export { createDevrelWunderkindAgent, DEVREL_WUNDERKIND_METADATA, } from "./devrel-wunderkind.js";
10
6
  export { createLegalCounselAgent, LEGAL_COUNSEL_METADATA, } from "./legal-counsel.js";
11
- export { createDataAnalystAgent, DATA_ANALYST_METADATA, } from "./data-analyst.js";
12
- export { createSupportEngineerAgent, SUPPORT_ENGINEER_METADATA, } from "./support-engineer.js";
13
7
  export { createAgentToolRestrictions } from "./types.js";
14
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC1D,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,0BAA0B,EAC1B,yBAAyB,GAC1B,MAAM,uBAAuB,CAAA;AAU9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agents/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,GAC5B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAC1D,OAAO,EACL,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAU3B,OAAO,EAAE,2BAA2B,EAAE,MAAM,YAAY,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,CAgOlE;yBAhOe,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,CA0NlE;yBA1Ne,uBAAuB"}
@@ -21,7 +21,7 @@ export const LEGAL_COUNSEL_METADATA = {
21
21
  ],
22
22
  avoidWhen: [
23
23
  "Security architecture, threat modelling, or technical controls are needed (use ciso)",
24
- "Incident response execution or on-call procedures are needed (use operations-lead)",
24
+ "Incident response execution, runbooks, or on-call procedures are needed (use fullstack-wunderkind)",
25
25
  "Engineering implementation is needed (use fullstack-wunderkind)",
26
26
  ],
27
27
  };
@@ -45,15 +45,9 @@ export function createLegalCounselAgent(model) {
45
45
  ...restrictions,
46
46
  prompt: `# Legal Counsel — Soul
47
47
 
48
- You are the **Legal Counsel**. Before acting, read \`.wunderkind/wunderkind.config.jsonc\` and load:
49
- - \`legalPersonality\` — your character archetype:
50
- - \`cautious-gatekeeper\`: When in doubt, don't. Legal certainty before any commitment. Every ambiguity is a risk. Flag first, clear later.
51
- - \`pragmatic-advisor\`: Legal reality without legal paralysis. Every risk has a probability and a mitigation. Give clear risk levels and actionable recommendations.
52
- - \`plain-english-counselor\`: No one reads legalese. Plain-English summaries first. Full legal language available on request. Accessibility is a legal service.
53
- - \`primaryRegulation\` and \`secondaryRegulation\` — the primary legal frameworks applicable to this project
54
- - \`region\` — the governing jurisdiction for contract defaults and regulatory requirements
55
- - \`industry\` — sector-specific legal obligations (FinTech, HealthTech, etc.)
56
- - \`teamCulture\` — formal-strict gets formal legal language; pragmatic-balanced gets plain-English summaries alongside
48
+ You are the **Legal Counsel**. Before acting, read the resolved runtime context for \`legalPersonality\`, \`teamCulture\`, \`orgStructure\`, \`region\`, \`industry\`, and applicable regulations.
49
+
50
+ If a project-local SOUL overlay is present, treat it as additive guidance that refines the neutral base prompt for this project.
57
51
 
58
52
  Always include a disclaimer: "This is AI-generated legal analysis for informational purposes. Review with qualified legal counsel before relying on it."
59
53
 
@@ -230,7 +224,7 @@ Escalate to \`wunderkind:ciso\` directly.
230
224
 
231
225
  When the question is about incident response execution or SLO breach:
232
226
 
233
- Escalate to \`wunderkind:operations-lead\` directly.
227
+ Escalate to \`wunderkind:fullstack-wunderkind\` directly.
234
228
 
235
229
  (Legal Counsel is fully advisory — no sub-skill delegation via \`task()\`.)
236
230
 
@@ -1 +1 @@
1
- {"version":3,"file":"legal-counsel.js","sourceRoot":"","sources":["../../src/agents/legal-counsel.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,sBAAsB,GAAwB;IACzD,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE;QACR;YACE,MAAM,EAAE,oBAAoB;YAC5B,OAAO,EACL,wJAAwJ;SAC3J;KACF;IACD,OAAO,EAAE;QACP,sEAAsE;QACtE,sFAAsF;QACtF,4CAA4C;QAC5C,6EAA6E;QAC7E,+DAA+D;QAC/D,qEAAqE;KACtE;IACD,SAAS,EAAE;QACT,sFAAsF;QACtF,oFAAoF;QACpF,iEAAiE;KAClE;CACF,CAAA;A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AAoB,UAAwD,CAAA"}
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/agents/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAQ9C,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,yBAAyB,EAuCnE,CAAA;AAEV,eAAO,MAAM,oBAAoB,UAAwD,CAAA"}