wizz-method 1.3.2 → 1.4.1

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 (225) hide show
  1. package/.claude-plugin/marketplace.json +4 -4
  2. package/README.md +1 -1
  3. package/evals/routing/dataset.json +290 -0
  4. package/evals/routing/run-routing-eval.mjs +89 -0
  5. package/package.json +11 -3
  6. package/skills-registry.yaml +72 -25
  7. package/src/modules/wizz/agents/wizz-ads/SKILL.md +1 -1
  8. package/src/modules/wizz/agents/wizz-copy/SKILL.md +1 -1
  9. package/src/modules/wizz/agents/wizz-designer/SKILL.md +6 -8
  10. package/src/modules/wizz/agents/wizz-growth/SKILL.md +1 -1
  11. package/src/modules/wizz/agents/wizz-maestro/SKILL.md +6 -5
  12. package/src/modules/wizz/agents/wizz-memoria/SKILL.md +1 -1
  13. package/src/modules/wizz/agents/wizz-qa/SKILL.md +1 -1
  14. package/src/modules/wizz/agents/wizz-seo/SKILL.md +1 -1
  15. package/src/modules/wizz/agents/wizz-social/SKILL.md +1 -1
  16. package/src/skills-lib/ai-product-design/SKILL.md +85 -0
  17. package/src/skills-lib/ai-product-design/references/LICENSE +21 -0
  18. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/bias-detection-design/SKILL.md +37 -0
  19. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/consent-and-agency/SKILL.md +37 -0
  20. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/escalation-design/SKILL.md +40 -0
  21. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/guardrail-design/SKILL.md +36 -0
  22. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/harm-anticipation/SKILL.md +108 -0
  23. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/transparency-patterns/SKILL.md +36 -0
  24. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/trust-calibration/SKILL.md +102 -0
  25. package/src/skills-lib/ai-product-design/references/ai-alignment-reasoning/value-specification/SKILL.md +39 -0
  26. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/agent-role-design/SKILL.md +37 -0
  27. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/failure-recovery/SKILL.md +37 -0
  28. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/handoff-protocols/SKILL.md +45 -0
  29. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/human-in-the-loop/SKILL.md +39 -0
  30. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/observability-design/SKILL.md +48 -0
  31. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/state-management/SKILL.md +95 -0
  32. package/src/skills-lib/ai-product-design/references/design-agent-orchestration/task-decomposition/SKILL.md +36 -0
  33. package/src/skills-lib/ai-product-design/references/evaluation/comparative-evaluation/SKILL.md +39 -0
  34. package/src/skills-lib/ai-product-design/references/evaluation/failure-taxonomy/SKILL.md +47 -0
  35. package/src/skills-lib/ai-product-design/references/evaluation/heuristic-evaluation-ai/SKILL.md +46 -0
  36. package/src/skills-lib/ai-product-design/references/evaluation/longitudinal-measurement/SKILL.md +38 -0
  37. package/src/skills-lib/ai-product-design/references/evaluation/output-quality-rubrics/SKILL.md +41 -0
  38. package/src/skills-lib/ai-product-design/references/evaluation/task-success-metrics/SKILL.md +35 -0
  39. package/src/skills-lib/ai-product-design/references/evaluation/user-satisfaction-signals/SKILL.md +50 -0
  40. package/src/skills-lib/ai-product-design/references/model-interaction-design/context-window-design/SKILL.md +28 -0
  41. package/src/skills-lib/ai-product-design/references/model-interaction-design/conversation-patterns/SKILL.md +37 -0
  42. package/src/skills-lib/ai-product-design/references/model-interaction-design/feedback-loops/SKILL.md +35 -0
  43. package/src/skills-lib/ai-product-design/references/model-interaction-design/frustration-detection/SKILL.md +91 -0
  44. package/src/skills-lib/ai-product-design/references/model-interaction-design/generative-ui/SKILL.md +34 -0
  45. package/src/skills-lib/ai-product-design/references/model-interaction-design/mixed-initiative-flow/SKILL.md +39 -0
  46. package/src/skills-lib/ai-product-design/references/model-interaction-design/multimodal-orchestration/SKILL.md +94 -0
  47. package/src/skills-lib/ai-product-design/references/model-interaction-design/progressive-disclosure/SKILL.md +33 -0
  48. package/src/skills-lib/ai-product-design/references/prompt-architecture/chain-of-thought-design/SKILL.md +45 -0
  49. package/src/skills-lib/ai-product-design/references/prompt-architecture/constraint-specification/SKILL.md +50 -0
  50. package/src/skills-lib/ai-product-design/references/prompt-architecture/context-engineering/SKILL.md +45 -0
  51. package/src/skills-lib/ai-product-design/references/prompt-architecture/few-shot-patterns/SKILL.md +47 -0
  52. package/src/skills-lib/ai-product-design/references/prompt-architecture/prompt-versioning/SKILL.md +42 -0
  53. package/src/skills-lib/ai-product-design/references/prompt-architecture/system-prompt-structure/SKILL.md +50 -0
  54. package/src/skills-lib/ai-product-design/references/prompt-architecture/template-design/SKILL.md +42 -0
  55. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/behavioral-consistency/SKILL.md +36 -0
  56. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/cultural-adaptation/SKILL.md +38 -0
  57. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/domain-voice/SKILL.md +51 -0
  58. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/emotional-design/SKILL.md +51 -0
  59. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/error-personality/SKILL.md +45 -0
  60. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/persona-architecture/SKILL.md +38 -0
  61. package/src/skills-lib/ai-product-design/references/system-behavior-shaping/tone-calibration/SKILL.md +39 -0
  62. package/src/skills-lib/algorithmic-art/LICENSE.txt +202 -0
  63. package/src/skills-lib/algorithmic-art/SKILL.md +405 -0
  64. package/src/skills-lib/algorithmic-art/templates/generator_template.js +223 -0
  65. package/src/skills-lib/algorithmic-art/templates/viewer.html +599 -0
  66. package/src/skills-lib/animate/README.md +41 -0
  67. package/src/skills-lib/animate/SKILL.md +179 -0
  68. package/src/skills-lib/animate/examples/animate-height.tsx +75 -0
  69. package/src/skills-lib/animate/examples/app-store-card.tsx +164 -0
  70. package/src/skills-lib/animate/examples/card-hover.tsx +79 -0
  71. package/src/skills-lib/animate/examples/feedback-popover.tsx +119 -0
  72. package/src/skills-lib/animate/examples/multi-step-flow.tsx +128 -0
  73. package/src/skills-lib/animate/examples/shared-layout.tsx +64 -0
  74. package/src/skills-lib/animate/examples/text-reveal.tsx +70 -0
  75. package/src/skills-lib/animate/examples/toast-stacking.tsx +95 -0
  76. package/src/skills-lib/animate/references/css-animations.md +232 -0
  77. package/src/skills-lib/animate/references/easing-and-timing.md +105 -0
  78. package/src/skills-lib/animate/references/framer-motion.md +356 -0
  79. package/src/skills-lib/animate/references/performance-accessibility.md +185 -0
  80. package/src/skills-lib/auth-and-secrets/SKILL.md +38 -10
  81. package/src/skills-lib/canvas-design/LICENSE.txt +202 -0
  82. package/src/skills-lib/canvas-design/SKILL.md +130 -0
  83. package/src/skills-lib/canvas-design/canvas-fonts/ArsenalSC-OFL.txt +93 -0
  84. package/src/skills-lib/canvas-design/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
  85. package/src/skills-lib/canvas-design/canvas-fonts/BigShoulders-Bold.ttf +0 -0
  86. package/src/skills-lib/canvas-design/canvas-fonts/BigShoulders-OFL.txt +93 -0
  87. package/src/skills-lib/canvas-design/canvas-fonts/BigShoulders-Regular.ttf +0 -0
  88. package/src/skills-lib/canvas-design/canvas-fonts/Boldonse-OFL.txt +93 -0
  89. package/src/skills-lib/canvas-design/canvas-fonts/Boldonse-Regular.ttf +0 -0
  90. package/src/skills-lib/canvas-design/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
  91. package/src/skills-lib/canvas-design/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
  92. package/src/skills-lib/canvas-design/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
  93. package/src/skills-lib/canvas-design/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
  94. package/src/skills-lib/canvas-design/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
  95. package/src/skills-lib/canvas-design/canvas-fonts/CrimsonPro-OFL.txt +93 -0
  96. package/src/skills-lib/canvas-design/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
  97. package/src/skills-lib/canvas-design/canvas-fonts/DMMono-OFL.txt +93 -0
  98. package/src/skills-lib/canvas-design/canvas-fonts/DMMono-Regular.ttf +0 -0
  99. package/src/skills-lib/canvas-design/canvas-fonts/EricaOne-OFL.txt +94 -0
  100. package/src/skills-lib/canvas-design/canvas-fonts/EricaOne-Regular.ttf +0 -0
  101. package/src/skills-lib/canvas-design/canvas-fonts/GeistMono-Bold.ttf +0 -0
  102. package/src/skills-lib/canvas-design/canvas-fonts/GeistMono-OFL.txt +93 -0
  103. package/src/skills-lib/canvas-design/canvas-fonts/GeistMono-Regular.ttf +0 -0
  104. package/src/skills-lib/canvas-design/canvas-fonts/Gloock-OFL.txt +93 -0
  105. package/src/skills-lib/canvas-design/canvas-fonts/Gloock-Regular.ttf +0 -0
  106. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
  107. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
  108. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
  109. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
  110. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
  111. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
  112. package/src/skills-lib/canvas-design/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
  113. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
  114. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
  115. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
  116. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSans-OFL.txt +93 -0
  117. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
  118. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
  119. package/src/skills-lib/canvas-design/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
  120. package/src/skills-lib/canvas-design/canvas-fonts/Italiana-OFL.txt +93 -0
  121. package/src/skills-lib/canvas-design/canvas-fonts/Italiana-Regular.ttf +0 -0
  122. package/src/skills-lib/canvas-design/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
  123. package/src/skills-lib/canvas-design/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
  124. package/src/skills-lib/canvas-design/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
  125. package/src/skills-lib/canvas-design/canvas-fonts/Jura-Light.ttf +0 -0
  126. package/src/skills-lib/canvas-design/canvas-fonts/Jura-Medium.ttf +0 -0
  127. package/src/skills-lib/canvas-design/canvas-fonts/Jura-OFL.txt +93 -0
  128. package/src/skills-lib/canvas-design/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
  129. package/src/skills-lib/canvas-design/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
  130. package/src/skills-lib/canvas-design/canvas-fonts/Lora-Bold.ttf +0 -0
  131. package/src/skills-lib/canvas-design/canvas-fonts/Lora-BoldItalic.ttf +0 -0
  132. package/src/skills-lib/canvas-design/canvas-fonts/Lora-Italic.ttf +0 -0
  133. package/src/skills-lib/canvas-design/canvas-fonts/Lora-OFL.txt +93 -0
  134. package/src/skills-lib/canvas-design/canvas-fonts/Lora-Regular.ttf +0 -0
  135. package/src/skills-lib/canvas-design/canvas-fonts/NationalPark-Bold.ttf +0 -0
  136. package/src/skills-lib/canvas-design/canvas-fonts/NationalPark-OFL.txt +93 -0
  137. package/src/skills-lib/canvas-design/canvas-fonts/NationalPark-Regular.ttf +0 -0
  138. package/src/skills-lib/canvas-design/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
  139. package/src/skills-lib/canvas-design/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
  140. package/src/skills-lib/canvas-design/canvas-fonts/Outfit-Bold.ttf +0 -0
  141. package/src/skills-lib/canvas-design/canvas-fonts/Outfit-OFL.txt +93 -0
  142. package/src/skills-lib/canvas-design/canvas-fonts/Outfit-Regular.ttf +0 -0
  143. package/src/skills-lib/canvas-design/canvas-fonts/PixelifySans-Medium.ttf +0 -0
  144. package/src/skills-lib/canvas-design/canvas-fonts/PixelifySans-OFL.txt +93 -0
  145. package/src/skills-lib/canvas-design/canvas-fonts/PoiretOne-OFL.txt +93 -0
  146. package/src/skills-lib/canvas-design/canvas-fonts/PoiretOne-Regular.ttf +0 -0
  147. package/src/skills-lib/canvas-design/canvas-fonts/RedHatMono-Bold.ttf +0 -0
  148. package/src/skills-lib/canvas-design/canvas-fonts/RedHatMono-OFL.txt +93 -0
  149. package/src/skills-lib/canvas-design/canvas-fonts/RedHatMono-Regular.ttf +0 -0
  150. package/src/skills-lib/canvas-design/canvas-fonts/Silkscreen-OFL.txt +93 -0
  151. package/src/skills-lib/canvas-design/canvas-fonts/Silkscreen-Regular.ttf +0 -0
  152. package/src/skills-lib/canvas-design/canvas-fonts/SmoochSans-Medium.ttf +0 -0
  153. package/src/skills-lib/canvas-design/canvas-fonts/SmoochSans-OFL.txt +93 -0
  154. package/src/skills-lib/canvas-design/canvas-fonts/Tektur-Medium.ttf +0 -0
  155. package/src/skills-lib/canvas-design/canvas-fonts/Tektur-OFL.txt +93 -0
  156. package/src/skills-lib/canvas-design/canvas-fonts/Tektur-Regular.ttf +0 -0
  157. package/src/skills-lib/canvas-design/canvas-fonts/WorkSans-Bold.ttf +0 -0
  158. package/src/skills-lib/canvas-design/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
  159. package/src/skills-lib/canvas-design/canvas-fonts/WorkSans-Italic.ttf +0 -0
  160. package/src/skills-lib/canvas-design/canvas-fonts/WorkSans-OFL.txt +93 -0
  161. package/src/skills-lib/canvas-design/canvas-fonts/WorkSans-Regular.ttf +0 -0
  162. package/src/skills-lib/canvas-design/canvas-fonts/YoungSerif-OFL.txt +93 -0
  163. package/src/skills-lib/canvas-design/canvas-fonts/YoungSerif-Regular.ttf +0 -0
  164. package/src/skills-lib/design-motion-principles/SKILL.md +122 -0
  165. package/src/skills-lib/design-motion-principles/references/accessibility.md +52 -0
  166. package/src/skills-lib/design-motion-principles/references/anti-checklist.md +274 -0
  167. package/src/skills-lib/design-motion-principles/references/audit-checklist.md +137 -0
  168. package/src/skills-lib/design-motion-principles/references/creation-gotchas.md +36 -0
  169. package/src/skills-lib/design-motion-principles/references/demo-shell.html +275 -0
  170. package/src/skills-lib/design-motion-principles/references/emil-kowalski.md +121 -0
  171. package/src/skills-lib/design-motion-principles/references/jakub-krehel.md +80 -0
  172. package/src/skills-lib/design-motion-principles/references/jhey-tompkins.md +122 -0
  173. package/src/skills-lib/design-motion-principles/references/motion-cookbook.md +529 -0
  174. package/src/skills-lib/design-motion-principles/references/output-format.md +346 -0
  175. package/src/skills-lib/design-motion-principles/references/performance.md +82 -0
  176. package/src/skills-lib/design-motion-principles/references/report-template.html +1006 -0
  177. package/src/skills-lib/design-motion-principles/workflows/audit.md +203 -0
  178. package/src/skills-lib/design-motion-principles/workflows/create.md +87 -0
  179. package/src/skills-lib/desktop-security/SKILL.md +35 -4
  180. package/src/skills-lib/premium-landing-ui-researcher/SKILL.md +52 -2083
  181. package/src/skills-lib/premium-landing-ui-researcher/references/audit-protocol.md +124 -0
  182. package/src/skills-lib/premium-landing-ui-researcher/references/component-sources.md +336 -0
  183. package/src/skills-lib/premium-landing-ui-researcher/references/core-goal.md +62 -0
  184. package/src/skills-lib/premium-landing-ui-researcher/references/dashboard-and-portfolio-modes.md +92 -0
  185. package/src/skills-lib/premium-landing-ui-researcher/references/handoffs.md +55 -0
  186. package/src/skills-lib/premium-landing-ui-researcher/references/landing-page-strategy.md +227 -0
  187. package/src/skills-lib/premium-landing-ui-researcher/references/mandatory-process.md +36 -0
  188. package/src/skills-lib/premium-landing-ui-researcher/references/output-format-and-quality.md +129 -0
  189. package/src/skills-lib/premium-landing-ui-researcher/references/prompt-templates.md +206 -0
  190. package/src/skills-lib/premium-landing-ui-researcher/references/site-levels.md +515 -0
  191. package/src/skills-lib/premium-landing-ui-researcher/references/source-first-protocol.md +144 -0
  192. package/src/skills-lib/premium-landing-ui-researcher/references/source-links.md +39 -0
  193. package/src/skills-lib/premium-landing-ui-researcher/references/stack-and-visual-direction.md +118 -0
  194. package/src/skills-lib/taste-skill/SKILL.md +33 -1177
  195. package/src/skills-lib/taste-skill/references/anti-slop-tells.md +110 -0
  196. package/src/skills-lib/taste-skill/references/architecture-conventions.md +39 -0
  197. package/src/skills-lib/taste-skill/references/block-library.md +61 -0
  198. package/src/skills-lib/taste-skill/references/brief-and-dials.md +89 -0
  199. package/src/skills-lib/taste-skill/references/dark-mode.md +23 -0
  200. package/src/skills-lib/taste-skill/references/design-directives.md +191 -0
  201. package/src/skills-lib/taste-skill/references/design-systems.md +267 -0
  202. package/src/skills-lib/taste-skill/references/motion-patterns.md +167 -0
  203. package/src/skills-lib/taste-skill/references/pattern-vocabulary.md +78 -0
  204. package/src/skills-lib/taste-skill/references/performance-a11y.md +33 -0
  205. package/src/skills-lib/taste-skill/references/preflight-checklist.md +73 -0
  206. package/src/skills-lib/taste-skill/references/redesign-protocol.md +52 -0
  207. package/src/skills-lib/web-security/SKILL.md +74 -6
  208. package/src/skills-lib/wizz-router/SKILL.md +21 -243
  209. package/src/skills-lib/wizz-router/references/auditoria-360.md +21 -0
  210. package/src/skills-lib/wizz-router/references/routing-table-flat.md +95 -0
  211. package/src/squads/advisory-board/agents/ray-dalio.md +0 -20
  212. package/tools/hooks/README.md +17 -0
  213. package/tools/hooks/security-defensive-context.js +70 -0
  214. package/tools/hooks/session-rules.js +38 -0
  215. package/tools/hooks/wizz-router-enforce.js +188 -0
  216. package/tools/installer/modules/skills-lib.js +70 -1
  217. package/tools/sync-global.mjs +84 -0
  218. package/.claude/settings.local.json +0 -8
  219. package/src/core-skills/wizz-party-mode/scripts/__pycache__/resolve_party.cpython-314.pyc +0 -0
  220. package/src/skills-lib/ui-ux-pro-max/scripts/__pycache__/core.cpython-314.pyc +0 -0
  221. package/src/skills-lib/ui-ux-pro-max/scripts/__pycache__/design_system.cpython-314.pyc +0 -0
  222. package/src/skills-lib/ui-ux-pro-max/scripts/__pycache__/search.cpython-314.pyc +0 -0
  223. package/src/skills-lib/ui-ux-pro-max/scripts/graphify-out/cache/0964cef300f753b5cee0cc49777ca97035c85d45c212099405d9ee4da36e523f.json +0 -1
  224. package/src/skills-lib/ui-ux-pro-max/scripts/graphify-out/cache/21a40f6810c3a6f17acc3580f106171daf78c7b41bbd066bc80448a821ea0adf.json +0 -1
  225. package/src/skills-lib/ui-ux-pro-max/scripts/graphify-out/cache/69ea15a020ac81b8459e37ef63654398a50c1035fc01c43d8069df217389f7f3.json +0 -1
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: constraint-specification
3
+ description: Defining output format, length, tone, and content boundaries within prompts.
4
+ ---
5
+ # Constraint Specification
6
+ Constraints are the rules that shape AI output — what format to use, how long to be, what to include, what to exclude. Well-specified constraints produce predictable, useful outputs. Vague constraints produce inconsistent results.
7
+ ## Types of Constraints
8
+ **Format constraints:**
9
+ - Output structure (JSON, markdown, plain text, bullet points, prose)
10
+ - Section headings and organisation
11
+ - Required fields and optional fields
12
+ - Data types and schemas
13
+ **Length constraints:**
14
+ - Word count ranges (not exact numbers — models are bad at counting)
15
+ - Section length proportions ("spend 60% on analysis, 40% on recommendations")
16
+ - Minimum and maximum bounds
17
+ - Conciseness directives ("be brief" vs. "be thorough")
18
+ **Content constraints:**
19
+ - Topics to include and exclude
20
+ - Required information elements
21
+ - Prohibited content
22
+ - Source restrictions (only use provided context, don't use external knowledge)
23
+ **Tone constraints:**
24
+ - Formality level
25
+ - Emotional register
26
+ - Audience-appropriate language
27
+ - Voice and style guidelines
28
+ **Quality constraints:**
29
+ - Accuracy requirements ("cite sources", "flag uncertainty")
30
+ - Completeness requirements ("address all aspects of the question")
31
+ - Originality requirements ("don't repeat the question back")
32
+ - Actionability requirements ("every recommendation must be implementable")
33
+ ## Writing Effective Constraints
34
+ - **Be specific**: "Keep responses under 200 words" beats "be concise"
35
+ - **Prioritise**: When constraints conflict, state which wins. "Accuracy over brevity."
36
+ - **Provide examples**: Show what a constrained output looks like
37
+ - **Test boundaries**: What happens at the edge of each constraint?
38
+ - **Separate hard and soft constraints**: Hard constraints must always be met. Soft constraints are preferences.
39
+ ## Constraint Interactions
40
+ Constraints interact and can conflict:
41
+ - "Be thorough" vs. "Keep it under 100 words"
42
+ - "Be creative" vs. "Follow this exact format"
43
+ - "Be helpful" vs. "Don't give medical advice"
44
+ Resolve conflicts explicitly in the prompt. Don't make the model guess which constraint takes priority.
45
+ ## Design Artefacts
46
+ - Constraint specification documents per output type
47
+ - Constraint priority hierarchies
48
+ - Constraint test cases (inputs designed to stress each constraint)
49
+ - Constraint violation examples (what bad looks like)
50
+ - Constraint evolution logs (how constraints changed and why)
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: context-engineering
3
+ description: Designing what information goes into the context window and in what order.
4
+ ---
5
+ # Context Engineering
6
+ The context window is finite. What goes into it — and in what order — determines the quality of every output. Context engineering is the practice of deliberately designing the information architecture of the context window.
7
+ ## The Context Budget
8
+ Every context window has a token budget. Allocate it deliberately:
9
+ - **System prompt**: The foundational instructions (typically 5-20% of the budget)
10
+ - **Retrieved context**: Documents, data, and information pulled in for the current task
11
+ - **Conversation history**: Previous turns in the conversation
12
+ - **User input**: The current request
13
+ - **Working space**: Room for the model to generate its response
14
+ These compete for space. More retrieved context means less conversation history. A longer system prompt means less room for everything else.
15
+ ## Information Architecture in Context
16
+ Order matters. The model pays different amounts of attention to different positions:
17
+ - **Beginning**: High attention. Put your most important instructions here.
18
+ - **Middle**: Lower attention. This is where information can get lost in long contexts.
19
+ - **End**: High attention. The most recent information (user input) naturally goes here.
20
+ - **Adjacent to the task**: Information placed right before the user's question gets more attention than information earlier in the context.
21
+ ## Context Selection
22
+ Not everything should go into the context. Design selection criteria:
23
+ - **Relevance**: Does this information help answer the current question?
24
+ - **Recency**: Is this the most up-to-date information available?
25
+ - **Specificity**: Is this specific enough to be useful, or is it too generic?
26
+ - **Redundancy**: Is this information already covered elsewhere in the context?
27
+ - **Authority**: Is this from a reliable source?
28
+ ## Context Strategies
29
+ - **Retrieval-augmented generation (RAG)**: Pull relevant documents into the context dynamically
30
+ - **Summarisation**: Compress older context into summaries to free up space
31
+ - **Prioritised history**: Keep recent and important conversation turns, drop less important ones
32
+ - **Structured context**: Organise information with clear headers and sections so the model can navigate it
33
+ - **Context caching**: Pre-compute and cache frequently used context blocks
34
+ ## Context Quality Signals
35
+ How to tell if your context engineering is working:
36
+ - **Output relevance**: Do outputs address the actual question using the provided context?
37
+ - **Hallucination rate**: Is the model making things up because the context is insufficient?
38
+ - **Context utilisation**: Is the model actually using the provided context, or ignoring it?
39
+ - **Consistency**: Are outputs consistent when the same context is provided?
40
+ ## Design Artefacts
41
+ - Context budget allocation documents
42
+ - Information architecture diagrams for the context window
43
+ - Context selection criteria per feature
44
+ - Retrieval strategy specifications
45
+ - Context quality monitoring metrics
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: few-shot-patterns
3
+ description: Crafting examples that steer AI behavior effectively.
4
+ ---
5
+ # Few-Shot Patterns
6
+ Few-shot prompting provides examples of input-output pairs that demonstrate the desired behavior. The AI learns the pattern from the examples and applies it to new inputs. The quality of examples directly determines the quality of outputs.
7
+ ## Why Examples Work
8
+ Examples communicate what instructions alone cannot:
9
+ - **Implicit patterns**: The AI picks up on format, style, and reasoning patterns from examples without being told explicitly
10
+ - **Ambiguity resolution**: When instructions could be interpreted multiple ways, examples show which interpretation you want
11
+ - **Quality calibration**: Examples set the bar for output quality, length, and depth
12
+ - **Edge case handling**: Examples of tricky cases teach the AI how to handle similar situations
13
+ ## Example Design Principles
14
+ **Diversity**: Examples should cover different scenarios, not repeat the same type
15
+ - Include easy cases, hard cases, and edge cases
16
+ - Vary the input format and content
17
+ - Show different valid output formats if applicable
18
+ **Clarity**: Each example should demonstrate one clear pattern
19
+ - Avoid examples that could be interpreted multiple ways
20
+ - Make the mapping from input to output obvious
21
+ - Remove irrelevant variation between examples
22
+ **Quality**: Examples set the ceiling for output quality
23
+ - Every example should be one you'd be happy to ship
24
+ - If the example has a flaw, the AI will replicate that flaw
25
+ - Invest time in crafting examples — they're worth more than instructions
26
+ **Ordering**: The position of examples matters
27
+ - Put the most representative example first
28
+ - Put edge cases after common cases
29
+ - End with an example closest to the expected input type
30
+ ## How Many Examples
31
+ - **Zero-shot**: No examples. Relies entirely on instructions. Good for simple, well-understood tasks.
32
+ - **One-shot**: Single example. Enough when the pattern is straightforward.
33
+ - **Few-shot (3-5)**: Multiple examples. Best for complex patterns or nuanced quality requirements.
34
+ - **Many-shot (5+)**: Diminishing returns but useful for highly variable tasks or when consistency is critical.
35
+ Balance example count against context window cost. More examples means less room for other context.
36
+ ## Anti-Patterns
37
+ - **Identical examples**: All examples are basically the same, teaching nothing about variation
38
+ - **Perfect-only examples**: No examples of how to handle imperfect inputs or edge cases
39
+ - **Contradictory examples**: Examples that demonstrate inconsistent patterns
40
+ - **Low-quality examples**: Sloppy examples produce sloppy outputs
41
+ - **Outdated examples**: Examples that no longer reflect current requirements
42
+ ## Design Artefacts
43
+ - Example libraries per task type
44
+ - Example quality rubrics
45
+ - Example selection guidelines
46
+ - Example maintenance and update schedules
47
+ - Example effectiveness testing results
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: prompt-versioning
3
+ description: Managing prompt iterations, testing changes, and tracking what works.
4
+ ---
5
+ # Prompt Versioning
6
+ Prompts are code. They should be versioned, tested, reviewed, and deployed with the same rigor as software. Treating prompts as casual text that anyone can edit leads to quality regressions, inconsistent behavior, and debugging nightmares.
7
+ ## Why Version Prompts
8
+ - **Accountability**: Know who changed what and when
9
+ - **Rollback**: Revert to a previous version when a change causes problems
10
+ - **Testing**: Compare performance of different versions
11
+ - **Collaboration**: Multiple people can work on prompts without overwriting each other
12
+ - **Audit trail**: Understand how the prompt evolved and why
13
+ ## Versioning Practices
14
+ - **Source control**: Store prompts in version control (Git, etc.), not in application configuration
15
+ - **Meaningful commits**: Each change should explain what was changed and why
16
+ - **Change categories**: Classify changes as bug fixes, improvements, new features, or experiments
17
+ - **Review process**: Prompt changes should be reviewed before deployment, like code reviews
18
+ - **Semantic versioning**: Major changes (behavioral shift), minor changes (new capability), patches (bug fixes)
19
+ ## Testing Prompt Changes
20
+ Before deploying a prompt change:
21
+ - **Regression testing**: Run the golden test set against the new version. Did anything get worse?
22
+ - **Targeted testing**: Test the specific scenario the change was designed to improve
23
+ - **Edge case testing**: Test edge cases related to the change
24
+ - **A/B testing**: For significant changes, run both versions in production and compare
25
+ - **User testing**: For major persona or behavioral changes, test with real users
26
+ ## Prompt Change Management
27
+ - **Staging environment**: Test prompt changes in a non-production environment first
28
+ - **Gradual rollout**: Deploy to a percentage of users, monitor, then expand
29
+ - **Feature flags**: Toggle prompt features on and off without deployment
30
+ - **Monitoring**: Watch quality metrics closely after any prompt change
31
+ - **Rollback plan**: Always know how to revert if the change causes problems
32
+ ## Common Versioning Mistakes
33
+ - **Untracked changes**: Editing prompts in production without recording the change
34
+ - **Untested changes**: Deploying changes without testing against known scenarios
35
+ - **Big bang changes**: Changing many things at once, making it impossible to know what helped or hurt
36
+ - **Lost context**: Changing a prompt without understanding why the previous version was written that way
37
+ ## Design Artefacts
38
+ - Prompt repository structure
39
+ - Change review checklists
40
+ - Testing protocols per change type
41
+ - Deployment and rollback procedures
42
+ - Prompt change request templates
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: system-prompt-structure
3
+ description: Anatomy of effective system prompts — role, context, constraints, format.
4
+ ---
5
+ # System Prompt Structure
6
+ A system prompt is the most important piece of design in an AI product. It defines who the AI is, what it knows, how it behaves, and what it produces. It's the equivalent of a brand guide, interaction spec, and behavioral contract rolled into one document.
7
+ ## Anatomy of a System Prompt
8
+ A well-structured system prompt has distinct sections, each serving a specific purpose:
9
+ **1. Identity and Role**
10
+ Who is the AI? What's its purpose? This anchors everything that follows.
11
+ - "You are a senior UX researcher helping design teams..."
12
+ - Keep it specific. "You are a helpful assistant" is too vague to produce consistent behavior.
13
+ **2. Context and Knowledge**
14
+ What does the AI know? What's its domain? What information is it working with?
15
+ - Domain boundaries: what it's an expert in and what's outside its scope
16
+ - Background information relevant to the task
17
+ - User context: who it's talking to and what they need
18
+ **3. Behavioral Rules**
19
+ How should the AI behave? What are the do's and don'ts?
20
+ - Tone and voice specifications
21
+ - Response format preferences
22
+ - Guardrails and prohibited behaviors
23
+ - Interaction style (ask clarifying questions, be concise, think step by step)
24
+ **4. Output Specifications**
25
+ What should the AI produce? In what format?
26
+ - Expected output structure
27
+ - Length guidelines
28
+ - Format requirements (markdown, JSON, plain text)
29
+ - Quality criteria
30
+ **5. Examples (optional but powerful)**
31
+ Concrete demonstrations of expected behavior.
32
+ - Input-output pairs showing ideal responses
33
+ - Edge cases showing how to handle tricky situations
34
+ ## Structure Principles
35
+ - **Order matters**: Models pay more attention to content at the beginning and end of the prompt. Put the most important instructions first.
36
+ - **Specificity beats length**: A short, specific prompt outperforms a long, vague one.
37
+ - **Positive instructions beat negative**: "Do X" is clearer than "Don't do Y" — though both have their place.
38
+ - **Separation of concerns**: Keep identity, rules, and output specs in distinct sections.
39
+ - **Testability**: Every instruction in the prompt should be testable. If you can't tell whether the AI followed it, rewrite it.
40
+ ## Common Structural Mistakes
41
+ - **Kitchen sink prompts**: Cramming every possible instruction in. The model can't prioritise.
42
+ - **Contradictory instructions**: Rules that conflict with each other, forcing the model to guess which to follow.
43
+ - **Implicit expectations**: Assuming the model knows what you want without saying it.
44
+ - **Scattered instructions**: The same topic addressed in multiple places, creating inconsistency.
45
+ - **Static prompts**: Never updating the prompt based on what actually works.
46
+ ## Design Artefacts
47
+ - System prompt document with labelled sections
48
+ - Prompt requirement specifications (what the prompt must achieve)
49
+ - Prompt review checklists
50
+ - Version history with change rationale
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: template-design
3
+ description: Creating reusable, parameterised prompt templates for consistent outputs.
4
+ ---
5
+ # Template Design
6
+ A prompt template is a reusable prompt structure with variable slots that get filled at runtime. Templates create consistency across similar tasks and make prompt management scalable.
7
+ ## Template Anatomy
8
+ A template has:
9
+ - **Fixed text**: The parts that stay the same every time (instructions, format, role)
10
+ - **Variables**: Slots that get filled with specific content (user input, retrieved data, configuration)
11
+ - **Conditional sections**: Parts that appear or disappear based on context
12
+ - **Default values**: What fills a variable if no specific value is provided
13
+ ## Designing Variables
14
+ Each variable should be:
15
+ - **Named clearly**: `{user_query}` not `{input1}`
16
+ - **Typed**: Is it free text, a selection from options, a number, a boolean?
17
+ - **Bounded**: What are valid values? What's the maximum length?
18
+ - **Documented**: What is this variable for? Where does its value come from?
19
+ - **Defaulted**: What happens if the value is missing?
20
+ ## Template Patterns
21
+ - **Task template**: A template for a specific type of task. Variables capture the task-specific details while instructions remain constant.
22
+ - **Persona template**: A template where the persona is variable but the task structure is fixed. Useful for multi-persona products.
23
+ - **Format template**: A template where the output format is variable but the analysis approach is fixed.
24
+ - **Escalation template**: A base template with additional sections that activate at higher complexity levels.
25
+ ## Template Composition
26
+ Complex prompts can be built from smaller templates:
27
+ - **Base template**: Core instructions that apply to everything
28
+ - **Task overlay**: Task-specific instructions layered on top
29
+ - **Context injection**: Retrieved information inserted at a specific point
30
+ - **User preferences**: Personal settings that modify behavior
31
+ ## Template Quality Criteria
32
+ - **Consistency**: The template produces reliably similar outputs for similar inputs
33
+ - **Flexibility**: The variables allow enough variation for diverse use cases
34
+ - **Clarity**: The template is easy to read, maintain, and modify
35
+ - **Testability**: You can verify the template works with a standard set of test inputs
36
+ - **Maintainability**: Changes to one part don't break other parts
37
+ ## Design Artefacts
38
+ - Template library with documentation
39
+ - Variable specifications per template
40
+ - Test input sets for each template
41
+ - Template versioning and change log
42
+ - Composition rules for combining templates
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: behavioral-consistency
3
+ description: Ensuring the AI behaves predictably across sessions, edge cases, and modalities.
4
+ ---
5
+ # Behavioral Consistency
6
+ Users build mental models of how the AI behaves. Consistency is what makes those models reliable. Inconsistency — even if each individual response is good — erodes trust.
7
+ ## Dimensions of Consistency
8
+ - **Across sessions**: The AI should behave the same way whether it's the user's first conversation or their hundredth
9
+ - **Across topics**: Switching subjects shouldn't change the AI's personality or approach
10
+ - **Across modalities**: The AI should feel the same in chat, voice, and email
11
+ - **Across users**: Different users get the same quality and character (unless personalisation is designed)
12
+ - **Across time**: The AI shouldn't randomly change behavior after updates without user awareness
13
+ ## Sources of Inconsistency
14
+ - **Temperature and sampling**: Randomness in generation creates natural variation
15
+ - **Context sensitivity**: Different conversation histories lead to different behaviors
16
+ - **Prompt drift**: System prompts evolve over time without consistency checks
17
+ - **Edge cases**: Unusual inputs trigger unpredictable responses
18
+ - **Model updates**: New model versions may shift behavior subtly
19
+ ## Designing for Consistency
20
+ - **Behavioral specifications**: Document expected behavior for common and edge-case scenarios
21
+ - **Golden responses**: Maintain a library of reference responses that define the standard
22
+ - **Regression testing**: When anything changes, test against the golden response library
23
+ - **Consistency metrics**: Track behavioral variance across sessions and users
24
+ - **User expectations**: Set and maintain expectations about what the AI does and how
25
+ ## Consistency vs. Adaptation
26
+ Consistency doesn't mean rigidity. The AI should adapt to:
27
+ - User preferences (if designed for personalisation)
28
+ - Contextual needs (tone shifts as discussed in tone-calibration)
29
+ - Learning from feedback (if memory systems exist)
30
+ The key is that adaptation should be predictable and explainable, not random.
31
+ ## Design Artefacts
32
+ - Behavioral specification documents
33
+ - Golden response libraries
34
+ - Regression test suites
35
+ - Consistency monitoring dashboards
36
+ - Adaptation rules (what changes and what stays constant)
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: cultural-adaptation
3
+ description: Adapting AI behavior for different cultural contexts, languages, and norms.
4
+ ---
5
+ # Cultural Adaptation
6
+ AI products are used globally. Cultural adaptation means designing AI behavior that respects and responds to different cultural contexts — not just translating words, but adapting interaction patterns, values, and communication styles.
7
+ ## Dimensions of Cultural Variation
8
+ - **Communication style**: Direct (say what you mean) vs. indirect (imply, suggest, contextualise)
9
+ - **Formality norms**: When titles and honorifics matter. When first names are appropriate.
10
+ - **Power distance**: How authority and hierarchy affect communication expectations
11
+ - **Individualism vs. collectivism**: Whether the AI addresses individual needs or group harmony
12
+ - **Uncertainty tolerance**: How much ambiguity and hedging is comfortable
13
+ - **Time orientation**: Whether efficiency or thoroughness is valued more
14
+ - **Emotional expression**: Whether emotional language is expected or uncomfortable
15
+ ## Adaptation Strategies
16
+ - **Language adaptation**: Not just translation but localisation of idioms, examples, and references
17
+ - **Tone shifting**: More formal in high-power-distance cultures. More direct in low-context cultures.
18
+ - **Content adaptation**: Examples and references that are culturally relevant and appropriate
19
+ - **Interaction pattern adaptation**: Some cultures expect more back-and-forth before getting to the point
20
+ - **Visual and format adaptation**: Date formats, number formats, reading direction, colour associations
21
+ ## What NOT to Do
22
+ - Don't stereotype — cultural dimensions are tendencies, not rules for individuals
23
+ - Don't assume culture from language — English speakers come from many cultures
24
+ - Don't flatten diversity — there's enormous variation within any cultural group
25
+ - Don't treat Western norms as the default and everything else as adaptation
26
+ - Don't ignore intersectionality — culture interacts with age, profession, context, and personality
27
+ ## Designing Cultural Adaptation
28
+ - **Research**: Understand the cultural contexts your users operate in
29
+ - **Flexibility**: Build adaptation as a capability, not a fixed set of cultural profiles
30
+ - **User control**: Let users adjust cultural dimensions of AI behavior
31
+ - **Testing**: Test with users from the actual cultural contexts, not assumptions
32
+ - **Humility**: Accept that you'll get things wrong and build in feedback mechanisms
33
+ ## Design Artefacts
34
+ - Cultural dimension profiles for target markets
35
+ - Localisation specifications beyond translation
36
+ - Cultural adaptation testing protocols
37
+ - User control designs for cultural preferences
38
+ - Cultural sensitivity review checklists
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: domain-voice
3
+ description: Tailoring AI behavior for specific professional domains.
4
+ ---
5
+ # Domain Voice
6
+ A coding assistant, a medical advisor, a creative writing partner, and a legal research tool should not sound the same. Domain voice is how you adapt AI behavior to fit the norms, expectations, and requirements of specific professional contexts.
7
+ ## Domain Voice Components
8
+ - **Vocabulary**: The terminology and jargon appropriate to the domain
9
+ - **Precision level**: How exact the AI needs to be (legal and medical demand high precision; creative work tolerates ambiguity)
10
+ - **Citation norms**: Whether and how the AI references sources (academic style, legal citation, informal attribution)
11
+ - **Risk tolerance**: How cautious the AI should be about uncertain outputs
12
+ - **Authority stance**: Whether the AI positions itself as expert, assistant, or peer
13
+ - **Ethical boundaries**: Domain-specific ethical considerations (medical ethics, legal privilege, creative attribution)
14
+ ## Domain Voice Profiles
15
+ **Medical/Health:**
16
+ - High precision, extensive hedging
17
+ - Always recommends professional consultation
18
+ - Careful distinction between information and advice
19
+ - Sensitive to patient dignity and autonomy
20
+ **Legal:**
21
+ - Very high precision, formal register
22
+ - Explicit disclaimers about not constituting legal advice
23
+ - Jurisdiction awareness
24
+ - Careful with privileged information
25
+ **Creative:**
26
+ - Lower precision, higher expressiveness
27
+ - Encouraging and exploratory tone
28
+ - Comfortable with ambiguity and multiple interpretations
29
+ - Collaborative rather than authoritative
30
+ **Technical/Engineering:**
31
+ - High precision, moderate formality
32
+ - Code-aware, specification-oriented
33
+ - Direct and concise
34
+ - Comfortable with technical depth
35
+ **Education:**
36
+ - Adaptive precision based on learner level
37
+ - Encouraging and patient
38
+ - Socratic when appropriate
39
+ - Scaffolded explanation style
40
+ ## Designing Domain Voice
41
+ 1. **Research the domain**: Talk to practitioners. Understand their communication norms.
42
+ 2. **Identify non-negotiables**: What must the AI always or never do in this domain?
43
+ 3. **Map to persona**: How does domain voice overlay on the base persona?
44
+ 4. **Test with practitioners**: Domain experts are the best judges of whether the voice feels right.
45
+ 5. **Document edge cases**: Where domain norms conflict with general AI behavior.
46
+ ## Design Artefacts
47
+ - Domain voice profiles per professional context
48
+ - Domain vocabulary guides (terms to use, terms to avoid)
49
+ - Domain-specific guardrail specifications
50
+ - Practitioner testing protocols
51
+ - Domain voice evaluation rubrics
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: emotional-design
3
+ description: How the AI responds to user frustration, confusion, delight, and distress.
4
+ ---
5
+ # Emotional Design
6
+ Users bring emotions to AI interactions. Frustration when it doesn't work. Delight when it does something unexpected. Distress when dealing with difficult topics. The AI's response to these emotions is a design decision.
7
+ ## Emotional States to Design For
8
+ - **Frustration**: The AI isn't working, isn't understanding, or is being unhelpful. The user is losing patience.
9
+ - **Confusion**: The user doesn't understand the AI's output or doesn't know what to do next.
10
+ - **Delight**: The AI exceeded expectations. The user is pleasantly surprised.
11
+ - **Distress**: The user is dealing with something emotionally difficult — health, loss, conflict, crisis.
12
+ - **Boredom**: The AI is too slow, too verbose, or too repetitive.
13
+ - **Anxiety**: The user is uncertain about whether to trust the AI's output for something important.
14
+ - **Anger**: The user is upset with the AI specifically — it made a mistake, was inappropriate, or was unhelpful.
15
+ ## Response Strategies
16
+ **For frustration:**
17
+ - Acknowledge the difficulty without being patronising
18
+ - Simplify — offer a more direct path
19
+ - Don't repeat the same failed approach
20
+ - Offer to try a different angle or escalate
21
+ **For confusion:**
22
+ - Explain differently, don't just repeat
23
+ - Use examples and analogies
24
+ - Break complex outputs into smaller steps
25
+ - Check understanding before continuing
26
+ **For distress:**
27
+ - Increase warmth and reduce formality
28
+ - Don't try to fix the emotion — acknowledge it
29
+ - Provide relevant resources (crisis lines, professional help) when appropriate
30
+ - Slow the pace — don't rush to the next step
31
+ **For delight:**
32
+ - Don't overexplain or undercut the moment
33
+ - Build on the momentum
34
+ - Note what worked for future reference
35
+ **For anger at the AI:**
36
+ - Acknowledge the mistake without excessive apology
37
+ - Fix the problem rather than explaining why it happened
38
+ - Give the user control to redirect
39
+ ## Emotional Detection Signals
40
+ The AI can infer emotion from:
41
+ - Language intensity and word choice
42
+ - Punctuation and formatting (caps, exclamation marks, short sentences)
43
+ - Repetition (asking the same thing multiple times signals frustration)
44
+ - Explicit statements ("I'm confused" / "This is frustrating")
45
+ - Behavioural signals (regeneration, abandonment, rapid-fire inputs)
46
+ ## Design Artefacts
47
+ - Emotional response protocol per emotional state
48
+ - Detection signal inventory
49
+ - Response template library for each emotional context
50
+ - Escalation triggers for high-distress scenarios
51
+ - Emotional design testing scenarios
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: error-personality
3
+ description: How the AI communicates mistakes, uncertainty, and limitations gracefully.
4
+ ---
5
+ # Error Personality
6
+ Every AI makes mistakes. Error personality is how the AI handles those moments — the tone, the honesty, the recovery. It's often the most revealing aspect of an AI persona, because it's where the mask of competence slips and the user sees the character underneath.
7
+ ## Types of AI Errors
8
+ - **Factual errors**: The AI says something wrong
9
+ - **Misunderstanding**: The AI interprets the user's intent incorrectly
10
+ - **Capability failures**: The AI can't do what was asked
11
+ - **Tone mismatches**: The AI's tone is wrong for the situation
12
+ - **Incomplete outputs**: The AI delivers part of what was needed
13
+ - **Hallucinations**: The AI presents fiction as fact with confidence
14
+ ## Error Communication Patterns
15
+ **The Honest Acknowledgment:**
16
+ "I got that wrong. Here's the corrected version." — Direct, no excessive apology, immediately fixes the problem.
17
+ **The Uncertain Hedge:**
18
+ "I'm not fully confident in this — you might want to verify." — Flags uncertainty before the user discovers the error.
19
+ **The Redirect:**
20
+ "I can't do that, but here's what I can help with." — Turns a limitation into an alternative path.
21
+ **The Learning Response:**
22
+ "Thanks for the correction — I'll keep that in mind." — Acknowledges the user's input and signals adaptation.
23
+ ## Error Anti-Patterns
24
+ - **Over-apologising**: "I'm so sorry! I'm really sorry! I apologise!" — Grating and insincere at scale
25
+ - **Deflection**: "That's a complex topic" — avoiding acknowledgment of the error
26
+ - **Confidence despite error**: Doubling down on wrong information when challenged
27
+ - **Blaming the user**: "Your question was ambiguous" — even when it was
28
+ - **Existential crisis**: "As an AI, I have many limitations..." — nobody asked for self-reflection
29
+ ## Designing Error Personality
30
+ The error personality should match the overall persona:
31
+ - A professional persona acknowledges errors crisply and fixes them
32
+ - A warm persona is more empathetic about errors but still moves to resolution
33
+ - A playful persona can use light humour ("Oops, let me try that again") but never at the user's expense
34
+ ## Calibrating Error Severity Response
35
+ Not all errors deserve the same response:
36
+ - **Minor errors**: Quick fix, minimal fuss ("Updated — good catch")
37
+ - **Significant errors**: Clear acknowledgment, corrected output, brief explanation
38
+ - **Serious errors**: Full acknowledgment, apology, corrected output, steps to prevent recurrence
39
+ - **Harmful errors**: Immediate acknowledgment, correction, escalation if needed
40
+ ## Design Artefacts
41
+ - Error response templates per severity level
42
+ - Error personality guidelines aligned with overall persona
43
+ - Error detection and self-correction patterns
44
+ - User correction handling protocols
45
+ - Error severity classification rubric
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: persona-architecture
3
+ description: Defining AI character, voice, and personality traits.
4
+ ---
5
+ # Persona Architecture
6
+ An AI persona is not a gimmick. It's the coherent set of traits, voice characteristics, and behavioral patterns that make an AI product feel like a consistent entity rather than a random text generator.
7
+ ## Persona Components
8
+ - **Character traits**: Is the AI warm or professional? Playful or serious? Confident or cautious? Define 3-5 core traits.
9
+ - **Voice**: The consistent way the AI sounds — word choice, sentence structure, rhythm. A financial AI sounds different from a creative writing AI.
10
+ - **Knowledge stance**: What does the AI present itself as knowing? Expert, generalist, learning companion, or tool?
11
+ - **Relationship model**: How does the AI relate to the user? Assistant, collaborator, coach, peer, or service provider?
12
+ - **Boundaries**: What won't this persona do? Joke about? Engage with? The boundaries define the persona as much as the traits do.
13
+ ## Designing a Persona
14
+ Start with the product's purpose and user needs, not with "wouldn't it be fun if the AI was sassy":
15
+ 1. **Who are the users?** Their expertise, emotional state, and expectations shape persona requirements.
16
+ 2. **What's the task?** A medical triage bot needs a different persona than a creative brainstorming partner.
17
+ 3. **What relationship serves the user?** Sometimes authority builds trust. Sometimes equality builds rapport.
18
+ 4. **What's the brand?** The AI persona must align with the organisation's broader identity.
19
+ 5. **What are the risks?** An overly casual persona in a serious context causes harm. An overly formal persona in a creative context stifles use.
20
+ ## Persona Documentation
21
+ A persona specification should include:
22
+ - **Trait definitions**: Each trait with examples of how it manifests in language
23
+ - **Voice guide**: Vocabulary preferences, sentence patterns, phrases to use and avoid
24
+ - **Behavioral rules**: How the persona handles specific situations (disagreement, error, praise, confusion)
25
+ - **Anti-persona**: What this persona is explicitly NOT (prevents drift)
26
+ - **Example outputs**: 5-10 sample responses showing the persona in action across different scenarios
27
+ ## Persona Anti-Patterns
28
+ - **The uncanny friend**: AI pretending to be a human friend. Users see through it and lose trust.
29
+ - **The personality void**: No discernible character. Outputs feel generic and forgettable.
30
+ - **The inconsistent character**: Persona shifts randomly between responses.
31
+ - **The inappropriate persona**: Playful when the situation is serious. Formal when warmth is needed.
32
+ - **The over-persona**: So much personality that it gets in the way of actually being useful.
33
+ ## Design Artefacts
34
+ - Persona specification document
35
+ - Voice and tone guide
36
+ - Example response library
37
+ - Anti-persona definition
38
+ - Persona evaluation rubric
@@ -0,0 +1,39 @@
1
+ ---
2
+ name: tone-calibration
3
+ description: Adjusting formality, warmth, confidence, and style per context.
4
+ ---
5
+ # Tone Calibration
6
+ Tone is how the persona sounds in a specific moment. The persona stays constant. The tone adapts. A warm, helpful persona might use an encouraging tone when teaching and a direct tone when correcting.
7
+ ## Tone Dimensions
8
+ - **Formality**: Casual ("Hey, here's an idea") to formal ("Please find the analysis below")
9
+ - **Warmth**: Cool and professional to warm and empathetic
10
+ - **Confidence**: Tentative ("This might work") to authoritative ("The best approach is")
11
+ - **Pace**: Brief and snappy to detailed and thorough
12
+ - **Directness**: Diplomatic and hedged to blunt and straightforward
13
+ - **Energy**: Calm and measured to enthusiastic and energetic
14
+ ## Tone Triggers
15
+ Tone should shift based on context signals:
16
+ - **User emotion**: Frustrated users need calmer, more empathetic tone. Excited users can handle more energy.
17
+ - **Task type**: Creative tasks benefit from playful tone. Analytical tasks benefit from precise tone.
18
+ - **Stakes**: High-stakes outputs need careful, confident tone. Low-stakes outputs can be lighter.
19
+ - **Conversation stage**: Opening exchanges are warmer. Deep working sessions are more direct.
20
+ - **User preference**: Some users prefer casual. Others prefer formal. Design for adaptation.
21
+ ## The Tone Matrix
22
+ Create a matrix mapping contexts to tone settings:
23
+ | Context | Formality | Warmth | Confidence | Pace | Directness |
24
+ |---------|-----------|--------|------------|------|------------|
25
+ | Onboarding | Low | High | Medium | Moderate | Low |
26
+ | Error recovery | Low | High | Low | Slow | Medium |
27
+ | Expert task | Medium | Medium | High | Variable | High |
28
+ | Creative brainstorm | Low | Medium | Medium | Fast | Low |
29
+ | Sensitive topic | High | High | Low | Slow | Low |
30
+ ## Tone Consistency Rules
31
+ - Tone shifts should be gradual, not jarring
32
+ - The persona's core traits should be recognisable regardless of tone
33
+ - Tone should respond to the user's tone (mirroring, not mimicking)
34
+ - Avoid tone whiplash — don't go from playful to grave in one turn without transition
35
+ ## Design Artefacts
36
+ - Tone matrix mapping contexts to dimension settings
37
+ - Tone trigger definitions
38
+ - Example outputs at different tone settings
39
+ - Tone shift transition guidelines