@nerdev/skillset 0.2.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 (567) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +351 -0
  3. package/bin/skillset.mjs +205 -0
  4. package/curations/README.md +53 -0
  5. package/curations/TEMPLATE/WHY.md +23 -0
  6. package/curations/TEMPLATE/overlay/SKILL.md +6 -0
  7. package/curations/impeccable/WHY.md +34 -0
  8. package/curations/impeccable/overlay/SKILL.md +116 -0
  9. package/package.json +43 -0
  10. package/scripts/ste-gate.mjs +39 -0
  11. package/scripts/ste-lint.py +201 -0
  12. package/scripts/sync.mjs +174 -0
  13. package/skills/ai-agent/agent-docs-writer/SKILL.md +105 -0
  14. package/skills/ai-agent/agent-docs-writer/references/principles.md +73 -0
  15. package/skills/ai-agent/agent-docs-writer/templates/AGENTS.template.md +44 -0
  16. package/skills/ai-agent/agent-docs-writer/templates/README.template.md +19 -0
  17. package/skills/ai-agent/ultra-context-engine/SKILL.md +941 -0
  18. package/skills/architecture/blueprint/SKILL.md +191 -0
  19. package/skills/architecture/code-tour/SKILL.md +204 -0
  20. package/skills/architecture/progress-guard/SKILL.md +148 -0
  21. package/skills/architecture/search-first/SKILL.md +97 -0
  22. package/skills/backend/api-design/SKILL.md +456 -0
  23. package/skills/backend/auth/SKILL.md +596 -0
  24. package/skills/backend/database/SKILL.md +431 -0
  25. package/skills/backend/realtime/SKILL.md +670 -0
  26. package/skills/backend/security/SKILL.md +590 -0
  27. package/skills/business/brag/SKILL.md +177 -0
  28. package/skills/business/brag/assets/music/README.md +20 -0
  29. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-1-by-ende-dot-app.music-cues.json +3846 -0
  30. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-1-by-ende-dot-app.music-cues.md +35 -0
  31. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-10-by-ende-dot-app.music-cues.json +1826 -0
  32. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-10-by-ende-dot-app.music-cues.md +35 -0
  33. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-11-by-ende-dot-app.music-cues.json +2266 -0
  34. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-11-by-ende-dot-app.music-cues.md +35 -0
  35. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-12-by-ende-dot-app.music-cues.json +2806 -0
  36. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-12-by-ende-dot-app.music-cues.md +35 -0
  37. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-9-by-ende-dot-app.music-cues.json +2796 -0
  38. package/skills/business/brag/assets/music/cues/happy-beats-business-moves-vol-9-by-ende-dot-app.music-cues.md +35 -0
  39. package/skills/business/brag/assets/music/happy-beats-business-moves-vol-1-by-ende-dot-app.mp3 +0 -0
  40. package/skills/business/brag/assets/music/happy-beats-business-moves-vol-10-by-ende-dot-app.mp3 +0 -0
  41. package/skills/business/brag/assets/music/happy-beats-business-moves-vol-11-by-ende-dot-app.mp3 +0 -0
  42. package/skills/business/brag/assets/music/happy-beats-business-moves-vol-12-by-ende-dot-app.mp3 +0 -0
  43. package/skills/business/brag/assets/music/happy-beats-business-moves-vol-9-by-ende-dot-app.mp3 +0 -0
  44. package/skills/business/brag/assets/sfx/casino/card-fan-1.ogg +0 -0
  45. package/skills/business/brag/assets/sfx/casino/card-fan-2.ogg +0 -0
  46. package/skills/business/brag/assets/sfx/casino/card-place-1.ogg +0 -0
  47. package/skills/business/brag/assets/sfx/casino/card-place-2.ogg +0 -0
  48. package/skills/business/brag/assets/sfx/casino/card-place-3.ogg +0 -0
  49. package/skills/business/brag/assets/sfx/casino/card-place-4.ogg +0 -0
  50. package/skills/business/brag/assets/sfx/casino/card-shove-1.ogg +0 -0
  51. package/skills/business/brag/assets/sfx/casino/card-shove-2.ogg +0 -0
  52. package/skills/business/brag/assets/sfx/casino/card-shove-3.ogg +0 -0
  53. package/skills/business/brag/assets/sfx/casino/card-shove-4.ogg +0 -0
  54. package/skills/business/brag/assets/sfx/casino/card-shuffle.ogg +0 -0
  55. package/skills/business/brag/assets/sfx/casino/card-slide-1.ogg +0 -0
  56. package/skills/business/brag/assets/sfx/casino/card-slide-2.ogg +0 -0
  57. package/skills/business/brag/assets/sfx/casino/card-slide-3.ogg +0 -0
  58. package/skills/business/brag/assets/sfx/casino/card-slide-4.ogg +0 -0
  59. package/skills/business/brag/assets/sfx/casino/card-slide-5.ogg +0 -0
  60. package/skills/business/brag/assets/sfx/casino/card-slide-6.ogg +0 -0
  61. package/skills/business/brag/assets/sfx/casino/card-slide-7.ogg +0 -0
  62. package/skills/business/brag/assets/sfx/casino/card-slide-8.ogg +0 -0
  63. package/skills/business/brag/assets/sfx/casino/cards-pack-open-1.ogg +0 -0
  64. package/skills/business/brag/assets/sfx/casino/cards-pack-open-2.ogg +0 -0
  65. package/skills/business/brag/assets/sfx/casino/chip-lay-1.ogg +0 -0
  66. package/skills/business/brag/assets/sfx/casino/chip-lay-2.ogg +0 -0
  67. package/skills/business/brag/assets/sfx/casino/chip-lay-3.ogg +0 -0
  68. package/skills/business/brag/assets/sfx/casino/chips-collide-1.ogg +0 -0
  69. package/skills/business/brag/assets/sfx/casino/chips-collide-2.ogg +0 -0
  70. package/skills/business/brag/assets/sfx/casino/chips-collide-3.ogg +0 -0
  71. package/skills/business/brag/assets/sfx/casino/chips-collide-4.ogg +0 -0
  72. package/skills/business/brag/assets/sfx/casino/chips-handle-1.ogg +0 -0
  73. package/skills/business/brag/assets/sfx/casino/chips-handle-2.ogg +0 -0
  74. package/skills/business/brag/assets/sfx/casino/chips-handle-3.ogg +0 -0
  75. package/skills/business/brag/assets/sfx/casino/chips-handle-4.ogg +0 -0
  76. package/skills/business/brag/assets/sfx/casino/chips-handle-6.ogg +0 -0
  77. package/skills/business/brag/assets/sfx/casino/chips-stack-1.ogg +0 -0
  78. package/skills/business/brag/assets/sfx/casino/chips-stack-2.ogg +0 -0
  79. package/skills/business/brag/assets/sfx/casino/chips-stack-3.ogg +0 -0
  80. package/skills/business/brag/assets/sfx/casino/chips-stack-4.ogg +0 -0
  81. package/skills/business/brag/assets/sfx/casino/chips-stack-5.ogg +0 -0
  82. package/skills/business/brag/assets/sfx/casino/chips-stack-6.ogg +0 -0
  83. package/skills/business/brag/assets/sfx/casino/dice-grab-1.ogg +0 -0
  84. package/skills/business/brag/assets/sfx/casino/dice-grab-2.ogg +0 -0
  85. package/skills/business/brag/assets/sfx/casino/dice-shake-1.ogg +0 -0
  86. package/skills/business/brag/assets/sfx/casino/dice-shake-2.ogg +0 -0
  87. package/skills/business/brag/assets/sfx/casino/dice-shake-3.ogg +0 -0
  88. package/skills/business/brag/assets/sfx/casino/dice-throw-1.ogg +0 -0
  89. package/skills/business/brag/assets/sfx/casino/dice-throw-2.ogg +0 -0
  90. package/skills/business/brag/assets/sfx/casino/dice-throw-3.ogg +0 -0
  91. package/skills/business/brag/assets/sfx/casino/die-throw-1.ogg +0 -0
  92. package/skills/business/brag/assets/sfx/casino/die-throw-2.ogg +0 -0
  93. package/skills/business/brag/assets/sfx/casino/die-throw-3.ogg +0 -0
  94. package/skills/business/brag/assets/sfx/casino/die-throw-4.ogg +0 -0
  95. package/skills/business/brag/assets/sfx/impact/footstep_carpet_000.ogg +0 -0
  96. package/skills/business/brag/assets/sfx/impact/footstep_carpet_003.ogg +0 -0
  97. package/skills/business/brag/assets/sfx/impact/footstep_carpet_004.ogg +0 -0
  98. package/skills/business/brag/assets/sfx/impact/footstep_concrete_000.ogg +0 -0
  99. package/skills/business/brag/assets/sfx/impact/footstep_concrete_001.ogg +0 -0
  100. package/skills/business/brag/assets/sfx/impact/footstep_concrete_002.ogg +0 -0
  101. package/skills/business/brag/assets/sfx/impact/footstep_concrete_003.ogg +0 -0
  102. package/skills/business/brag/assets/sfx/impact/footstep_concrete_004.ogg +0 -0
  103. package/skills/business/brag/assets/sfx/impact/footstep_grass_000.ogg +0 -0
  104. package/skills/business/brag/assets/sfx/impact/footstep_grass_001.ogg +0 -0
  105. package/skills/business/brag/assets/sfx/impact/footstep_grass_002.ogg +0 -0
  106. package/skills/business/brag/assets/sfx/impact/footstep_grass_003.ogg +0 -0
  107. package/skills/business/brag/assets/sfx/impact/footstep_grass_004.ogg +0 -0
  108. package/skills/business/brag/assets/sfx/impact/footstep_snow_000.ogg +0 -0
  109. package/skills/business/brag/assets/sfx/impact/footstep_snow_001.ogg +0 -0
  110. package/skills/business/brag/assets/sfx/impact/footstep_snow_002.ogg +0 -0
  111. package/skills/business/brag/assets/sfx/impact/footstep_snow_003.ogg +0 -0
  112. package/skills/business/brag/assets/sfx/impact/footstep_snow_004.ogg +0 -0
  113. package/skills/business/brag/assets/sfx/impact/footstep_wood_000.ogg +0 -0
  114. package/skills/business/brag/assets/sfx/impact/footstep_wood_001.ogg +0 -0
  115. package/skills/business/brag/assets/sfx/impact/footstep_wood_002.ogg +0 -0
  116. package/skills/business/brag/assets/sfx/impact/footstep_wood_003.ogg +0 -0
  117. package/skills/business/brag/assets/sfx/impact/footstep_wood_004.ogg +0 -0
  118. package/skills/business/brag/assets/sfx/impact/impactBell_heavy_000.ogg +0 -0
  119. package/skills/business/brag/assets/sfx/impact/impactBell_heavy_003.ogg +0 -0
  120. package/skills/business/brag/assets/sfx/impact/impactBell_heavy_004.ogg +0 -0
  121. package/skills/business/brag/assets/sfx/impact/impactGeneric_light_000.ogg +0 -0
  122. package/skills/business/brag/assets/sfx/impact/impactGeneric_light_001.ogg +0 -0
  123. package/skills/business/brag/assets/sfx/impact/impactGeneric_light_002.ogg +0 -0
  124. package/skills/business/brag/assets/sfx/impact/impactGeneric_light_003.ogg +0 -0
  125. package/skills/business/brag/assets/sfx/impact/impactGeneric_light_004.ogg +0 -0
  126. package/skills/business/brag/assets/sfx/impact/impactGlass_heavy_002.ogg +0 -0
  127. package/skills/business/brag/assets/sfx/impact/impactGlass_light_001.ogg +0 -0
  128. package/skills/business/brag/assets/sfx/impact/impactGlass_light_002.ogg +0 -0
  129. package/skills/business/brag/assets/sfx/impact/impactGlass_light_003.ogg +0 -0
  130. package/skills/business/brag/assets/sfx/impact/impactGlass_medium_000.ogg +0 -0
  131. package/skills/business/brag/assets/sfx/impact/impactGlass_medium_002.ogg +0 -0
  132. package/skills/business/brag/assets/sfx/impact/impactGlass_medium_004.ogg +0 -0
  133. package/skills/business/brag/assets/sfx/impact/impactMetal_heavy_000.ogg +0 -0
  134. package/skills/business/brag/assets/sfx/impact/impactMetal_heavy_002.ogg +0 -0
  135. package/skills/business/brag/assets/sfx/impact/impactMetal_heavy_004.ogg +0 -0
  136. package/skills/business/brag/assets/sfx/impact/impactMetal_light_002.ogg +0 -0
  137. package/skills/business/brag/assets/sfx/impact/impactMetal_light_003.ogg +0 -0
  138. package/skills/business/brag/assets/sfx/impact/impactMetal_medium_000.ogg +0 -0
  139. package/skills/business/brag/assets/sfx/impact/impactMetal_medium_001.ogg +0 -0
  140. package/skills/business/brag/assets/sfx/impact/impactMetal_medium_002.ogg +0 -0
  141. package/skills/business/brag/assets/sfx/impact/impactMetal_medium_003.ogg +0 -0
  142. package/skills/business/brag/assets/sfx/impact/impactMetal_medium_004.ogg +0 -0
  143. package/skills/business/brag/assets/sfx/impact/impactMining_001.ogg +0 -0
  144. package/skills/business/brag/assets/sfx/impact/impactPlank_medium_000.ogg +0 -0
  145. package/skills/business/brag/assets/sfx/impact/impactPlank_medium_001.ogg +0 -0
  146. package/skills/business/brag/assets/sfx/impact/impactPlank_medium_002.ogg +0 -0
  147. package/skills/business/brag/assets/sfx/impact/impactPlank_medium_003.ogg +0 -0
  148. package/skills/business/brag/assets/sfx/impact/impactPlank_medium_004.ogg +0 -0
  149. package/skills/business/brag/assets/sfx/impact/impactPlate_heavy_000.ogg +0 -0
  150. package/skills/business/brag/assets/sfx/impact/impactPlate_heavy_001.ogg +0 -0
  151. package/skills/business/brag/assets/sfx/impact/impactPlate_heavy_002.ogg +0 -0
  152. package/skills/business/brag/assets/sfx/impact/impactPlate_heavy_003.ogg +0 -0
  153. package/skills/business/brag/assets/sfx/impact/impactPlate_heavy_004.ogg +0 -0
  154. package/skills/business/brag/assets/sfx/impact/impactPlate_light_000.ogg +0 -0
  155. package/skills/business/brag/assets/sfx/impact/impactPlate_light_001.ogg +0 -0
  156. package/skills/business/brag/assets/sfx/impact/impactPlate_light_002.ogg +0 -0
  157. package/skills/business/brag/assets/sfx/impact/impactPlate_light_003.ogg +0 -0
  158. package/skills/business/brag/assets/sfx/impact/impactPlate_light_004.ogg +0 -0
  159. package/skills/business/brag/assets/sfx/impact/impactPlate_medium_000.ogg +0 -0
  160. package/skills/business/brag/assets/sfx/impact/impactPlate_medium_001.ogg +0 -0
  161. package/skills/business/brag/assets/sfx/impact/impactPlate_medium_002.ogg +0 -0
  162. package/skills/business/brag/assets/sfx/impact/impactPlate_medium_003.ogg +0 -0
  163. package/skills/business/brag/assets/sfx/impact/impactPlate_medium_004.ogg +0 -0
  164. package/skills/business/brag/assets/sfx/impact/impactPunch_heavy_000.ogg +0 -0
  165. package/skills/business/brag/assets/sfx/impact/impactPunch_heavy_001.ogg +0 -0
  166. package/skills/business/brag/assets/sfx/impact/impactPunch_heavy_002.ogg +0 -0
  167. package/skills/business/brag/assets/sfx/impact/impactPunch_heavy_003.ogg +0 -0
  168. package/skills/business/brag/assets/sfx/impact/impactPunch_heavy_004.ogg +0 -0
  169. package/skills/business/brag/assets/sfx/impact/impactPunch_medium_000.ogg +0 -0
  170. package/skills/business/brag/assets/sfx/impact/impactPunch_medium_001.ogg +0 -0
  171. package/skills/business/brag/assets/sfx/impact/impactPunch_medium_002.ogg +0 -0
  172. package/skills/business/brag/assets/sfx/impact/impactPunch_medium_003.ogg +0 -0
  173. package/skills/business/brag/assets/sfx/impact/impactPunch_medium_004.ogg +0 -0
  174. package/skills/business/brag/assets/sfx/impact/impactSoft_heavy_000.ogg +0 -0
  175. package/skills/business/brag/assets/sfx/impact/impactSoft_heavy_001.ogg +0 -0
  176. package/skills/business/brag/assets/sfx/impact/impactSoft_heavy_002.ogg +0 -0
  177. package/skills/business/brag/assets/sfx/impact/impactSoft_heavy_003.ogg +0 -0
  178. package/skills/business/brag/assets/sfx/impact/impactSoft_heavy_004.ogg +0 -0
  179. package/skills/business/brag/assets/sfx/impact/impactSoft_medium_000.ogg +0 -0
  180. package/skills/business/brag/assets/sfx/impact/impactSoft_medium_001.ogg +0 -0
  181. package/skills/business/brag/assets/sfx/impact/impactSoft_medium_002.ogg +0 -0
  182. package/skills/business/brag/assets/sfx/impact/impactSoft_medium_003.ogg +0 -0
  183. package/skills/business/brag/assets/sfx/impact/impactSoft_medium_004.ogg +0 -0
  184. package/skills/business/brag/assets/sfx/impact/impactTin_medium_000.ogg +0 -0
  185. package/skills/business/brag/assets/sfx/impact/impactTin_medium_001.ogg +0 -0
  186. package/skills/business/brag/assets/sfx/impact/impactTin_medium_002.ogg +0 -0
  187. package/skills/business/brag/assets/sfx/impact/impactTin_medium_003.ogg +0 -0
  188. package/skills/business/brag/assets/sfx/impact/impactTin_medium_004.ogg +0 -0
  189. package/skills/business/brag/assets/sfx/impact/impactWood_heavy_000.ogg +0 -0
  190. package/skills/business/brag/assets/sfx/impact/impactWood_heavy_001.ogg +0 -0
  191. package/skills/business/brag/assets/sfx/impact/impactWood_heavy_002.ogg +0 -0
  192. package/skills/business/brag/assets/sfx/impact/impactWood_heavy_003.ogg +0 -0
  193. package/skills/business/brag/assets/sfx/impact/impactWood_heavy_004.ogg +0 -0
  194. package/skills/business/brag/assets/sfx/impact/impactWood_light_000.ogg +0 -0
  195. package/skills/business/brag/assets/sfx/impact/impactWood_light_001.ogg +0 -0
  196. package/skills/business/brag/assets/sfx/impact/impactWood_light_002.ogg +0 -0
  197. package/skills/business/brag/assets/sfx/impact/impactWood_light_003.ogg +0 -0
  198. package/skills/business/brag/assets/sfx/impact/impactWood_light_004.ogg +0 -0
  199. package/skills/business/brag/assets/sfx/impact/impactWood_medium_000.ogg +0 -0
  200. package/skills/business/brag/assets/sfx/impact/impactWood_medium_001.ogg +0 -0
  201. package/skills/business/brag/assets/sfx/impact/impactWood_medium_002.ogg +0 -0
  202. package/skills/business/brag/assets/sfx/impact/impactWood_medium_003.ogg +0 -0
  203. package/skills/business/brag/assets/sfx/impact/impactWood_medium_004.ogg +0 -0
  204. package/skills/business/brag/assets/sfx/interface/bong_001.ogg +0 -0
  205. package/skills/business/brag/assets/sfx/interface/click_001.ogg +0 -0
  206. package/skills/business/brag/assets/sfx/interface/click_002.ogg +0 -0
  207. package/skills/business/brag/assets/sfx/interface/click_003.ogg +0 -0
  208. package/skills/business/brag/assets/sfx/interface/click_004.ogg +0 -0
  209. package/skills/business/brag/assets/sfx/interface/click_005.ogg +0 -0
  210. package/skills/business/brag/assets/sfx/interface/drop_001.ogg +0 -0
  211. package/skills/business/brag/assets/sfx/interface/drop_002.ogg +0 -0
  212. package/skills/business/brag/assets/sfx/interface/drop_003.ogg +0 -0
  213. package/skills/business/brag/assets/sfx/interface/error_005.ogg +0 -0
  214. package/skills/business/brag/assets/sfx/interface/error_006.ogg +0 -0
  215. package/skills/business/brag/assets/sfx/interface/glitch_002.ogg +0 -0
  216. package/skills/business/brag/assets/sfx/interface/glitch_004.ogg +0 -0
  217. package/skills/business/brag/assets/sfx/interface/select_008.ogg +0 -0
  218. package/skills/business/brag/assets/sfx/interface/switch_001.ogg +0 -0
  219. package/skills/business/brag/assets/sfx/interface/switch_002.ogg +0 -0
  220. package/skills/business/brag/assets/sfx/interface/switch_004.ogg +0 -0
  221. package/skills/business/brag/assets/sfx/interface/switch_005.ogg +0 -0
  222. package/skills/business/brag/assets/sfx/interface/switch_006.ogg +0 -0
  223. package/skills/business/brag/assets/sfx/interface/switch_007.ogg +0 -0
  224. package/skills/business/brag/assets/sfx/keyboard/keypress-001.wav +0 -0
  225. package/skills/business/brag/assets/sfx/keyboard/keypress-002.wav +0 -0
  226. package/skills/business/brag/assets/sfx/keyboard/keypress-003.wav +0 -0
  227. package/skills/business/brag/assets/sfx/keyboard/keypress-004.wav +0 -0
  228. package/skills/business/brag/assets/sfx/keyboard/keypress-005.wav +0 -0
  229. package/skills/business/brag/assets/sfx/keyboard/keypress-006.wav +0 -0
  230. package/skills/business/brag/assets/sfx/keyboard/keypress-007.wav +0 -0
  231. package/skills/business/brag/assets/sfx/keyboard/keypress-008.wav +0 -0
  232. package/skills/business/brag/assets/sfx/keyboard/keypress-009.wav +0 -0
  233. package/skills/business/brag/assets/sfx/keyboard/keypress-010.wav +0 -0
  234. package/skills/business/brag/assets/sfx/keyboard/keypress-011.wav +0 -0
  235. package/skills/business/brag/assets/sfx/keyboard/keypress-012.wav +0 -0
  236. package/skills/business/brag/assets/sfx/keyboard/keypress-013.wav +0 -0
  237. package/skills/business/brag/assets/sfx/keyboard/keypress-014.wav +0 -0
  238. package/skills/business/brag/assets/sfx/keyboard/keypress-015.wav +0 -0
  239. package/skills/business/brag/assets/sfx/keyboard/keypress-016.wav +0 -0
  240. package/skills/business/brag/assets/sfx/keyboard/keypress-017.wav +0 -0
  241. package/skills/business/brag/assets/sfx/keyboard/keypress-018.wav +0 -0
  242. package/skills/business/brag/assets/sfx/keyboard/keypress-019.wav +0 -0
  243. package/skills/business/brag/assets/sfx/keyboard/keypress-020.wav +0 -0
  244. package/skills/business/brag/assets/sfx/keyboard/keypress-021.wav +0 -0
  245. package/skills/business/brag/assets/sfx/keyboard/keypress-022.wav +0 -0
  246. package/skills/business/brag/assets/sfx/keyboard/keypress-023.wav +0 -0
  247. package/skills/business/brag/assets/sfx/keyboard/keypress-024.wav +0 -0
  248. package/skills/business/brag/assets/sfx/keyboard/keypress-025.wav +0 -0
  249. package/skills/business/brag/assets/sfx/keyboard/keypress-026.wav +0 -0
  250. package/skills/business/brag/assets/sfx/keyboard/keypress-027.wav +0 -0
  251. package/skills/business/brag/assets/sfx/keyboard/keypress-028.wav +0 -0
  252. package/skills/business/brag/assets/sfx/keyboard/keypress-029.wav +0 -0
  253. package/skills/business/brag/assets/sfx/keyboard/keypress-030.wav +0 -0
  254. package/skills/business/brag/assets/sfx/keyboard/keypress-031.wav +0 -0
  255. package/skills/business/brag/assets/sfx/keyboard/keypress-032.wav +0 -0
  256. package/skills/business/brag/assets/sfx/sfx-analysis.json +15584 -0
  257. package/skills/business/brag/assets/sfx/sfx-analysis.md +75 -0
  258. package/skills/business/brag/assets/sfx/ui/click1.ogg +0 -0
  259. package/skills/business/brag/assets/sfx/ui/click2.ogg +0 -0
  260. package/skills/business/brag/assets/sfx/ui/click3.ogg +0 -0
  261. package/skills/business/brag/assets/sfx/ui/click4.ogg +0 -0
  262. package/skills/business/brag/assets/sfx/ui/click5.ogg +0 -0
  263. package/skills/business/brag/assets/sfx/ui/mouseclick1.ogg +0 -0
  264. package/skills/business/brag/assets/sfx/ui/rollover1.ogg +0 -0
  265. package/skills/business/brag/assets/sfx/ui/rollover2.ogg +0 -0
  266. package/skills/business/brag/assets/sfx/ui/rollover4.ogg +0 -0
  267. package/skills/business/brag/assets/sfx/ui/rollover5.ogg +0 -0
  268. package/skills/business/brag/assets/sfx/ui/switch1.ogg +0 -0
  269. package/skills/business/brag/assets/sfx/ui/switch10.ogg +0 -0
  270. package/skills/business/brag/assets/sfx/ui/switch11.ogg +0 -0
  271. package/skills/business/brag/assets/sfx/ui/switch12.ogg +0 -0
  272. package/skills/business/brag/assets/sfx/ui/switch13.ogg +0 -0
  273. package/skills/business/brag/assets/sfx/ui/switch14.ogg +0 -0
  274. package/skills/business/brag/assets/sfx/ui/switch15.ogg +0 -0
  275. package/skills/business/brag/assets/sfx/ui/switch16.ogg +0 -0
  276. package/skills/business/brag/assets/sfx/ui/switch17.ogg +0 -0
  277. package/skills/business/brag/assets/sfx/ui/switch18.ogg +0 -0
  278. package/skills/business/brag/assets/sfx/ui/switch19.ogg +0 -0
  279. package/skills/business/brag/assets/sfx/ui/switch2.ogg +0 -0
  280. package/skills/business/brag/assets/sfx/ui/switch20.ogg +0 -0
  281. package/skills/business/brag/assets/sfx/ui/switch21.ogg +0 -0
  282. package/skills/business/brag/assets/sfx/ui/switch22.ogg +0 -0
  283. package/skills/business/brag/assets/sfx/ui/switch23.ogg +0 -0
  284. package/skills/business/brag/assets/sfx/ui/switch24.ogg +0 -0
  285. package/skills/business/brag/assets/sfx/ui/switch25.ogg +0 -0
  286. package/skills/business/brag/assets/sfx/ui/switch26.ogg +0 -0
  287. package/skills/business/brag/assets/sfx/ui/switch27.ogg +0 -0
  288. package/skills/business/brag/assets/sfx/ui/switch28.ogg +0 -0
  289. package/skills/business/brag/assets/sfx/ui/switch29.ogg +0 -0
  290. package/skills/business/brag/assets/sfx/ui/switch3.ogg +0 -0
  291. package/skills/business/brag/assets/sfx/ui/switch30.ogg +0 -0
  292. package/skills/business/brag/assets/sfx/ui/switch31.ogg +0 -0
  293. package/skills/business/brag/assets/sfx/ui/switch32.ogg +0 -0
  294. package/skills/business/brag/assets/sfx/ui/switch33.ogg +0 -0
  295. package/skills/business/brag/assets/sfx/ui/switch34.ogg +0 -0
  296. package/skills/business/brag/assets/sfx/ui/switch35.ogg +0 -0
  297. package/skills/business/brag/assets/sfx/ui/switch36.ogg +0 -0
  298. package/skills/business/brag/assets/sfx/ui/switch37.ogg +0 -0
  299. package/skills/business/brag/assets/sfx/ui/switch38.ogg +0 -0
  300. package/skills/business/brag/assets/sfx/ui/switch4.ogg +0 -0
  301. package/skills/business/brag/assets/sfx/ui/switch5.ogg +0 -0
  302. package/skills/business/brag/assets/sfx/ui/switch6.ogg +0 -0
  303. package/skills/business/brag/assets/sfx/ui/switch7.ogg +0 -0
  304. package/skills/business/brag/assets/sfx/ui/switch8.ogg +0 -0
  305. package/skills/business/brag/assets/sfx/ui/switch9.ogg +0 -0
  306. package/skills/business/brag/references/audio.md +307 -0
  307. package/skills/business/brag/references/step-1-inspect.md +133 -0
  308. package/skills/business/brag/references/step-2-plan.md +234 -0
  309. package/skills/business/brag/references/step-3-compose.md +210 -0
  310. package/skills/business/brag/references/step-4-deliver.md +168 -0
  311. package/skills/business/brag/references/tones.md +231 -0
  312. package/skills/business/brag/scripts/analyze_music_cues.py +309 -0
  313. package/skills/business/brag/scripts/pyproject.toml +14 -0
  314. package/skills/business/brag/scripts/uv.lock +819 -0
  315. package/skills/business/copywriting/SKILL.md +178 -0
  316. package/skills/business/customer-research/SKILL.md +259 -0
  317. package/skills/business/freelancing/SKILL.md +679 -0
  318. package/skills/business/launch/SKILL.md +273 -0
  319. package/skills/business/marketing-psychology/SKILL.md +364 -0
  320. package/skills/business/pricing/SKILL.md +233 -0
  321. package/skills/business/resume-revamp-jake-ats/SKILL.md +64 -0
  322. package/skills/business/startup-founder/SKILL.md +400 -0
  323. package/skills/business/startup-founder/references/funding.md +48 -0
  324. package/skills/business/startup-founder/references/further-reading.md +132 -0
  325. package/skills/business/startup-founder/references/gtm-tools.md +57 -0
  326. package/skills/business/startup-founder/references/legal-india.md +36 -0
  327. package/skills/business/startup-founder/references/marketing/README.md +16 -0
  328. package/skills/business/startup-founder/references/marketing/cold-email.md +172 -0
  329. package/skills/business/startup-founder/references/marketing/competitors.md +245 -0
  330. package/skills/business/startup-founder/references/marketing/customer-research.md +276 -0
  331. package/skills/business/startup-founder/references/marketing/free-tools.md +168 -0
  332. package/skills/business/startup-founder/references/marketing/launch.md +343 -0
  333. package/skills/business/startup-founder/references/marketing/marketing-plan.md +270 -0
  334. package/skills/business/startup-founder/references/marketing/pricing.md +237 -0
  335. package/skills/business/startup-founder/references/marketing/product-marketing.md +250 -0
  336. package/skills/business/startup-founder/references/validation.md +267 -0
  337. package/skills/devops/deployments/SKILL.md +339 -0
  338. package/skills/devops/git-ci/SKILL.md +372 -0
  339. package/skills/devops/performance/SKILL.md +523 -0
  340. package/skills/devops/testing/SKILL.md +558 -0
  341. package/skills/engineering/code-review/SKILL.md +149 -0
  342. package/skills/engineering/coding-standards/SKILL.md +229 -0
  343. package/skills/engineering/product-engineering/SKILL.md +219 -0
  344. package/skills/engineering/senior-engineer-prompts/SKILL.md +145 -0
  345. package/skills/engineering/tdd-workflow/SKILL.md +178 -0
  346. package/skills/engineering/verification-loop/SKILL.md +199 -0
  347. package/skills/nerdev/nerdev-abstraction/SKILL.md +412 -0
  348. package/skills/nerdev/nerdev-docs/SKILL.md +527 -0
  349. package/skills/nerdev/nerdev-docs/templates/adr-template.md +39 -0
  350. package/skills/nerdev/nerdev-docs/templates/contributing-template.md +140 -0
  351. package/skills/nerdev/nerdev-docs/templates/deploy-template.md +426 -0
  352. package/skills/nerdev/nerdev-docs/templates/design-template.md +105 -0
  353. package/skills/nerdev/nerdev-docs/templates/incident-template.md +66 -0
  354. package/skills/nerdev/nerdev-monorepo/SKILL.md +522 -0
  355. package/skills/quality/output-skill/SKILL.md +49 -0
  356. package/skills/quality/unslop/SKILL.md +67 -0
  357. package/skills/ui/animaxxing/SKILL.md +58 -0
  358. package/skills/ui/animaxxing/agents/openai.yaml +7 -0
  359. package/skills/ui/animaxxing/references/effect-restoration.md +26 -0
  360. package/skills/ui/animaxxing/references/motion-vocabulary.md +142 -0
  361. package/skills/ui/animaxxing/references/recipes/blast-off.md +119 -0
  362. package/skills/ui/animaxxing/references/recipes/particle-effects.md +718 -0
  363. package/skills/ui/animaxxing/references/recipes/particle-field.md +428 -0
  364. package/skills/ui/animaxxing/references/recipes/route-letters.md +205 -0
  365. package/skills/ui/animaxxing/references/recipes/speak-in.md +181 -0
  366. package/skills/ui/animaxxing/references/recipes/split-entrances.md +345 -0
  367. package/skills/ui/animaxxing/references/recipes/wave.md +144 -0
  368. package/skills/ui/animaxxing/references/text-stability.md +68 -0
  369. package/skills/ui/animaxxing/references/verification.md +44 -0
  370. package/skills/ui/ask-animation/SKILL.md +178 -0
  371. package/skills/ui/ask-base-ui/SKILL.md +400 -0
  372. package/skills/ui/ask-cmdk/SKILL.md +315 -0
  373. package/skills/ui/ask-command-menu/SKILL.md +262 -0
  374. package/skills/ui/ask-drawer/SKILL.md +235 -0
  375. package/skills/ui/ask-form/SKILL.md +229 -0
  376. package/skills/ui/ask-gsap/SKILL.md +435 -0
  377. package/skills/ui/ask-modal/SKILL.md +145 -0
  378. package/skills/ui/ask-motion/SKILL.md +339 -0
  379. package/skills/ui/ask-rhf/SKILL.md +388 -0
  380. package/skills/ui/ask-sonner/API.md +64 -0
  381. package/skills/ui/ask-sonner/SKILL.md +88 -0
  382. package/skills/ui/ask-table/SKILL.md +253 -0
  383. package/skills/ui/ask-tanstack-table/SKILL.md +490 -0
  384. package/skills/ui/ask-toast/SKILL.md +163 -0
  385. package/skills/ui/ask-vaul/SKILL.md +291 -0
  386. package/skills/ui/ask-virtual-list/SKILL.md +304 -0
  387. package/skills/ui/ask-virtuoso/SKILL.md +332 -0
  388. package/skills/ui/email-craft/SKILL.md +258 -0
  389. package/skills/ui/frontend-craftsmanship/SKILL.md +462 -0
  390. package/skills/ui/gsap-astro/SKILL.md +56 -0
  391. package/skills/ui/gsap-astro/agents/openai.yaml +7 -0
  392. package/skills/ui/gsap-astro/references/client-router-navigation.md +139 -0
  393. package/skills/ui/gsap-astro/references/initialization.md +87 -0
  394. package/skills/ui/gsap-astro/references/motion-system.md +152 -0
  395. package/skills/ui/gsap-astro/references/scripts-and-islands.md +65 -0
  396. package/skills/ui/gsap-astro/references/verification.md +44 -0
  397. package/skills/ui/gsap-core/SKILL.md +254 -0
  398. package/skills/ui/gsap-frameworks/SKILL.md +266 -0
  399. package/skills/ui/gsap-nextjs/SKILL.md +51 -0
  400. package/skills/ui/gsap-nextjs/agents/openai.yaml +7 -0
  401. package/skills/ui/gsap-nextjs/references/app-router-navigation.md +189 -0
  402. package/skills/ui/gsap-nextjs/references/initialization.md +87 -0
  403. package/skills/ui/gsap-nextjs/references/motion-system.md +158 -0
  404. package/skills/ui/gsap-nextjs/references/verification.md +40 -0
  405. package/skills/ui/gsap-nuxt/SKILL.md +56 -0
  406. package/skills/ui/gsap-nuxt/agents/openai.yaml +7 -0
  407. package/skills/ui/gsap-nuxt/references/initialization.md +87 -0
  408. package/skills/ui/gsap-nuxt/references/motion-system.md +161 -0
  409. package/skills/ui/gsap-nuxt/references/navigation.md +145 -0
  410. package/skills/ui/gsap-nuxt/references/page-transitions.md +107 -0
  411. package/skills/ui/gsap-nuxt/references/verification.md +42 -0
  412. package/skills/ui/gsap-performance/SKILL.md +79 -0
  413. package/skills/ui/gsap-plugins/SKILL.md +433 -0
  414. package/skills/ui/gsap-react/SKILL.md +136 -0
  415. package/skills/ui/gsap-react-router/SKILL.md +55 -0
  416. package/skills/ui/gsap-react-router/agents/openai.yaml +7 -0
  417. package/skills/ui/gsap-react-router/references/initialization.md +87 -0
  418. package/skills/ui/gsap-react-router/references/motion-system.md +158 -0
  419. package/skills/ui/gsap-react-router/references/react-router-navigation.md +165 -0
  420. package/skills/ui/gsap-react-router/references/route-lifetime.md +74 -0
  421. package/skills/ui/gsap-react-router/references/verification.md +42 -0
  422. package/skills/ui/gsap-scrolltrigger/SKILL.md +296 -0
  423. package/skills/ui/gsap-sveltekit/SKILL.md +54 -0
  424. package/skills/ui/gsap-sveltekit/agents/openai.yaml +7 -0
  425. package/skills/ui/gsap-sveltekit/references/initialization.md +87 -0
  426. package/skills/ui/gsap-sveltekit/references/motion-system.md +156 -0
  427. package/skills/ui/gsap-sveltekit/references/page-lifetime.md +63 -0
  428. package/skills/ui/gsap-sveltekit/references/sveltekit-navigation.md +160 -0
  429. package/skills/ui/gsap-sveltekit/references/verification.md +41 -0
  430. package/skills/ui/gsap-tanstack-router/SKILL.md +56 -0
  431. package/skills/ui/gsap-tanstack-router/agents/openai.yaml +7 -0
  432. package/skills/ui/gsap-tanstack-router/references/initialization.md +87 -0
  433. package/skills/ui/gsap-tanstack-router/references/motion-system.md +160 -0
  434. package/skills/ui/gsap-tanstack-router/references/route-lifetime.md +66 -0
  435. package/skills/ui/gsap-tanstack-router/references/tanstack-navigation.md +156 -0
  436. package/skills/ui/gsap-tanstack-router/references/verification.md +41 -0
  437. package/skills/ui/gsap-timeline/SKILL.md +107 -0
  438. package/skills/ui/gsap-utils/SKILL.md +284 -0
  439. package/skills/ui/gsap-vanilla/SKILL.md +63 -0
  440. package/skills/ui/gsap-vanilla/agents/openai.yaml +7 -0
  441. package/skills/ui/gsap-vanilla/references/cross-document-navigation.md +54 -0
  442. package/skills/ui/gsap-vanilla/references/initialization.md +87 -0
  443. package/skills/ui/gsap-vanilla/references/motion-system.md +150 -0
  444. package/skills/ui/gsap-vanilla/references/page-load.md +96 -0
  445. package/skills/ui/gsap-vanilla/references/spa-navigation.md +70 -0
  446. package/skills/ui/gsap-vanilla/references/verification.md +41 -0
  447. package/skills/ui/house-style/SKILL.md +366 -0
  448. package/skills/ui/imagegen/SKILL.md +49 -0
  449. package/skills/ui/imagegen/references/brandkit.md +48 -0
  450. package/skills/ui/imagegen/references/image-to-code.md +56 -0
  451. package/skills/ui/imagegen/references/mobile.md +58 -0
  452. package/skills/ui/imagegen/references/web.md +63 -0
  453. package/skills/ui/impeccable/SKILL.md +116 -0
  454. package/skills/ui/impeccable/reference/adapt.md +318 -0
  455. package/skills/ui/impeccable/reference/adapt.native.md +58 -0
  456. package/skills/ui/impeccable/reference/android.md +46 -0
  457. package/skills/ui/impeccable/reference/animate.md +89 -0
  458. package/skills/ui/impeccable/reference/audit.md +137 -0
  459. package/skills/ui/impeccable/reference/audit.native.md +139 -0
  460. package/skills/ui/impeccable/reference/bolder.md +33 -0
  461. package/skills/ui/impeccable/reference/clarify.md +94 -0
  462. package/skills/ui/impeccable/reference/colorize.md +86 -0
  463. package/skills/ui/impeccable/reference/craft-floor.md +44 -0
  464. package/skills/ui/impeccable/reference/craft.md +5 -0
  465. package/skills/ui/impeccable/reference/critique.md +806 -0
  466. package/skills/ui/impeccable/reference/degraded/asset-producer.md +37 -0
  467. package/skills/ui/impeccable/reference/degraded/documenter.md +24 -0
  468. package/skills/ui/impeccable/reference/degraded/finish-reviewer.md +38 -0
  469. package/skills/ui/impeccable/reference/degraded/manual-edit-applier.md +92 -0
  470. package/skills/ui/impeccable/reference/delight.md +70 -0
  471. package/skills/ui/impeccable/reference/distill.md +111 -0
  472. package/skills/ui/impeccable/reference/doctor.md +54 -0
  473. package/skills/ui/impeccable/reference/document.md +416 -0
  474. package/skills/ui/impeccable/reference/extract.md +69 -0
  475. package/skills/ui/impeccable/reference/generate.md +101 -0
  476. package/skills/ui/impeccable/reference/harden.md +345 -0
  477. package/skills/ui/impeccable/reference/hooks.md +111 -0
  478. package/skills/ui/impeccable/reference/init.md +131 -0
  479. package/skills/ui/impeccable/reference/ios.md +51 -0
  480. package/skills/ui/impeccable/reference/layout.md +84 -0
  481. package/skills/ui/impeccable/reference/live-setup.md +104 -0
  482. package/skills/ui/impeccable/reference/live.md +325 -0
  483. package/skills/ui/impeccable/reference/new-work.md +145 -0
  484. package/skills/ui/impeccable/reference/onboard.md +234 -0
  485. package/skills/ui/impeccable/reference/operate.md +61 -0
  486. package/skills/ui/impeccable/reference/optimize.md +258 -0
  487. package/skills/ui/impeccable/reference/overdrive.md +127 -0
  488. package/skills/ui/impeccable/reference/polish.md +105 -0
  489. package/skills/ui/impeccable/reference/quieter.md +99 -0
  490. package/skills/ui/impeccable/reference/routing.md +24 -0
  491. package/skills/ui/impeccable/reference/shape.md +59 -0
  492. package/skills/ui/impeccable/reference/typeset.md +80 -0
  493. package/skills/ui/impeccable/reference/visualize.md +46 -0
  494. package/skills/ui/impeccable/scripts/VERSION +1 -0
  495. package/skills/ui/impeccable/scripts/command-metadata.json +98 -0
  496. package/skills/ui/impeccable/scripts/data/font-index-failures.json +121 -0
  497. package/skills/ui/impeccable/scripts/data/font-index.json +1 -0
  498. package/skills/ui/impeccable/scripts/impeccable +206 -0
  499. package/skills/ui/impeccable/scripts/impeccable.cmd +214 -0
  500. package/skills/ui/impeccable/scripts/live-browser-dom.js +167 -0
  501. package/skills/ui/impeccable/scripts/live-browser-ignores.js +242 -0
  502. package/skills/ui/impeccable/scripts/live-browser-session.js +144 -0
  503. package/skills/ui/impeccable/scripts/live-browser.js +13510 -0
  504. package/skills/ui/impeccable/scripts/modern-screenshot.umd.js +14 -0
  505. package/skills/ui/motion/SKILL.md +207 -0
  506. package/skills/ui/pick-ui-library/SKILL.md +85 -0
  507. package/skills/ui/product-messaging/SKILL.md +163 -0
  508. package/skills/ui/product-site/SKILL.md +465 -0
  509. package/skills/ui/prototype/PICKER.md +197 -0
  510. package/skills/ui/prototype/SKILL.md +98 -0
  511. package/skills/ui/refero-design/SKILL.md +534 -0
  512. package/skills/ui/refero-design/agents/openai.yaml +4 -0
  513. package/skills/ui/refero-design/references/anti-ai-slop.md +292 -0
  514. package/skills/ui/refero-design/references/color.md +563 -0
  515. package/skills/ui/refero-design/references/copywriting.md +222 -0
  516. package/skills/ui/refero-design/references/craft-details.md +525 -0
  517. package/skills/ui/refero-design/references/example-workflow.md +264 -0
  518. package/skills/ui/refero-design/references/icons.md +166 -0
  519. package/skills/ui/refero-design/references/mcp-tools.md +258 -0
  520. package/skills/ui/refero-design/references/motion.md +504 -0
  521. package/skills/ui/refero-design/references/typography.md +737 -0
  522. package/skills/ui/refero-design/references/visual-workflow.md +105 -0
  523. package/skills/ui/style-animaxxing/SKILL.md +48 -0
  524. package/skills/ui/style-animaxxing/agents/openai.yaml +7 -0
  525. package/skills/ui/style-animaxxing/references/motion-vocabulary.md +51 -0
  526. package/skills/ui/style-animaxxing/references/tokens.md +288 -0
  527. package/skills/ui/style-animaxxing/references/typography-and-layout.md +149 -0
  528. package/skills/ui/style-animaxxing/references/verification.md +38 -0
  529. package/skills/ui/typography-picker/SKILL.md +305 -0
  530. package/skills/ui/ui-core/SKILL.md +345 -0
  531. package/skills/ui/ui-core/references/accessibility.md +85 -0
  532. package/skills/ui/ui-core/references/build.md +666 -0
  533. package/skills/ui/ui-core/references/copy.md +70 -0
  534. package/skills/ui/ui-core/references/dark-mode.md +76 -0
  535. package/skills/ui/ui-core/references/direction.md +99 -0
  536. package/skills/ui/ui-core/references/redesign.md +74 -0
  537. package/skills/ui/ui-core/references/responsive.md +77 -0
  538. package/skills/ui/ui-core/references/styles.md +42 -0
  539. package/skills/ui/ui-core/references/system.md +190 -0
  540. package/skills/ui/ui-core/references/verify.md +37 -0
  541. package/skills/ui/ui-engineering/SKILL.md +436 -0
  542. package/skills/ui/ui-engineering/references/avatars.md +74 -0
  543. package/skills/ui/ui-engineering/references/card-patterns.md +66 -0
  544. package/skills/ui/ui-engineering/references/floating-actions.md +65 -0
  545. package/skills/ui/ui-engineering/references/navigation.md +81 -0
  546. package/skills/ui/ui-engineering/references/overlays.md +74 -0
  547. package/skills/ui/ui-engineering/references/pagination.md +71 -0
  548. package/skills/ui/ui-engineering/references/progress-indicators.md +77 -0
  549. package/skills/ui/ui-engineering/references/quality-bar.md +293 -0
  550. package/skills/ui/ui-engineering/references/search.md +68 -0
  551. package/skills/ui/ui-engineering/references/tailwind-architecture.md +81 -0
  552. package/skills/ui/ui-theme-picker/SKILL.md +522 -0
  553. package/skills/ui/ui-theme-picker/references/component-sources.md +223 -0
  554. package/skills/ui/ui-theme-picker/references/styles.md +298 -0
  555. package/skills/ui/vitepress-docs/SKILL.md +439 -0
  556. package/skills/ui/vitepress-docs/references/components.md +333 -0
  557. package/skills/ui/vitepress-docs/references/layout.md +128 -0
  558. package/skills/ui/vitepress-docs/references/tokens.md +87 -0
  559. package/skills/ui/vitepress-docs/references/typography.md +76 -0
  560. package/skills/workflow/careful/SKILL.md +48 -0
  561. package/skills/workflow/context-restore/SKILL.md +69 -0
  562. package/skills/workflow/context-save/SKILL.md +96 -0
  563. package/skills/workflow/health/SKILL.md +99 -0
  564. package/skills/workflow/learn/SKILL.md +95 -0
  565. package/skills/workflow/office-hours/SKILL.md +136 -0
  566. package/skills/workflow/ship/SKILL.md +95 -0
  567. package/vendor.json +80 -0
@@ -0,0 +1,388 @@
1
+ ---
2
+ name: ask-rhf
3
+ description: Library guide for React Hook Form + Zod: performant forms, validation, server actions, field arrays, TypeScript. Load via ask-form pattern skill.
4
+ ---
5
+
6
+ # Ask RHF: React Hook Form + Zod
7
+
8
+ **When to use:** All forms: simple to complex, server actions, multi-step, file uploads.
9
+
10
+ **Packages:** `react-hook-form`, `@hookform/resolvers/zod`, `zod`
11
+
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm i react-hook-form @hookform/resolvers zod
17
+ ```
18
+
19
+
20
+ ## Core Setup
21
+
22
+ ```tsx
23
+ 'use client'
24
+
25
+ import { useForm } from 'react-hook-form'
26
+ import { zodResolver } from '@hookform/resolvers/zod'
27
+ import { z } from 'zod'
28
+
29
+ // Schema (single source of truth)
30
+ const schema = z.object({
31
+ name: z.string().min(1, 'Required').max(100),
32
+ email: z.string().email('Invalid email'),
33
+ role: z.enum(['admin', 'member', 'viewer']),
34
+ bio: z.string().max(500).optional(),
35
+ tags: z.array(z.string()).max(5).optional(),
36
+ })
37
+
38
+ type FormData = z.infer<typeof schema>
39
+
40
+ // Component
41
+ export function MyForm({ defaultValues }: { defaultValues?: Partial<FormData> }) {
42
+ const form = useForm<FormData>({
43
+ resolver: zodResolver(schema),
44
+ defaultValues,
45
+ mode: 'onBlur', // Validate on blur, not onChange
46
+ })
47
+
48
+ const onSubmit = async (data: FormData) => {
49
+ // Handle submit
50
+ }
51
+
52
+ return (
53
+ <form onSubmit={form.handleSubmit(onSubmit)} noValidate>
54
+ {/* Fields */}
55
+ </form>
56
+ )
57
+ }
58
+ ```
59
+
60
+
61
+ ## Field Components (Reusable)
62
+
63
+ ```tsx
64
+ // components/ui/FormField.tsx
65
+ 'use client'
66
+
67
+ import { Controller, ControllerProps, FieldPath, FieldValues, useFormContext } from 'react-hook-form'
68
+ import { cn } from '@/lib/utils'
69
+ import { Label } from '@/components/ui/Label'
70
+ import { Input } from '@/components/ui/Input'
71
+ import { Textarea } from '@/components/ui/Textarea'
72
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/Select'
73
+
74
+ interface FormFieldProps<T extends FieldValues> extends ControllerProps<T> {
75
+ label: string
76
+ description?: string
77
+ type?: 'input' | 'textarea' | 'select' | 'checkbox'
78
+ selectOptions?: { value: string; label: string }[]
79
+ }
80
+
81
+ export function FormField<T extends FieldValues>({
82
+ name,
83
+ label,
84
+ description,
85
+ type = 'input',
86
+ selectOptions,
87
+ className,
88
+ rules,
89
+ ...props
90
+ }: FormFieldProps<T>) {
91
+ const { control, formState: { errors } } = useFormContext()
92
+ const error = errors[name as keyof T]
93
+
94
+ return (
95
+ <div className={cn('space-y-1.5', className)}>
96
+ <Label htmlFor={name as string}>{label}</Label>
97
+ <Controller
98
+ name={name}
99
+ control={control}
100
+ rules={rules}
101
+ render={({ field: { onChange, onBlur, value, ref, name } }) => {
102
+ const commonProps = {
103
+ id: name,
104
+ onChange,
105
+ onBlur,
106
+ value,
107
+ ref,
108
+ 'aria-invalid': error ? 'true' : 'false',
109
+ 'aria-describedby': error ? `${name}-error` : description ? `${name}-desc` : undefined,
110
+ className: cn(error && 'border-red-500 focus:border-red-500 focus:ring-red-500'),
111
+ ...props,
112
+ }
113
+
114
+ switch (type) {
115
+ case 'textarea':
116
+ return <Textarea {...commonProps} />
117
+ case 'select':
118
+ return (
119
+ <Select onValueChange={onChange} defaultValue={value as string}>
120
+ <SelectTrigger {...commonProps}>
121
+ <SelectValue placeholder="Select..." />
122
+ </SelectTrigger>
123
+ <SelectContent>
124
+ {selectOptions?.map(opt => (
125
+ <SelectItem key={opt.value} value={opt.value}>{opt.label}</SelectItem>
126
+ ))}
127
+ </SelectContent>
128
+ </Select>
129
+ )
130
+ case 'checkbox':
131
+ return (
132
+ <div className="flex items-center gap-2">
133
+ <input type="checkbox" {...commonProps} className="h-4 w-4 rounded border-gray-300" />
134
+ <Label htmlFor={name as string}>{label}</Label>
135
+ </div>
136
+ )
137
+ default:
138
+ return <Input {...commonProps} />
139
+ }
140
+ }}
141
+ />
142
+ {description && !error && <p id={`${name}-desc`} className="text-sm text-gray-500">{description}</p>}
143
+ {error && <p id={`${name}-error`} className="text-sm text-red-600" role="alert">{error.message}</p>}
144
+ </div>
145
+ )
146
+ }
147
+ ```
148
+
149
+
150
+ ## Server Actions + Toast Feedback
151
+
152
+ ```tsx
153
+ 'use client'
154
+
155
+ import { useForm } from 'react-hook-form'
156
+ import { zodResolver } from '@hookform/resolvers/zod'
157
+ import { toast } from 'sonner'
158
+ import { useRouter } from 'next/navigation'
159
+
160
+ export function CreateProjectForm() {
161
+ const router = useRouter()
162
+ const form = useForm<ProjectInput>({
163
+ resolver: zodResolver(projectSchema),
164
+ mode: 'onBlur',
165
+ })
166
+
167
+ const onSubmit = async (data: ProjectInput) => {
168
+ const toastId = toast.loading('Creating project…')
169
+ try {
170
+ const project = await createProjectAction(data)
171
+ toast.success('Project created', {
172
+ id: toastId,
173
+ action: { label: 'View', onClick: () => router.push(`/projects/${project.id}`) },
174
+ })
175
+ form.reset()
176
+ } catch (err) {
177
+ toast.error('Failed to create', { id: toastId })
178
+ if (err.fieldErrors) {
179
+ Object.entries(err.fieldErrors).forEach(([field, messages]) => {
180
+ form.setError(field as keyof ProjectInput, { message: messages[0] })
181
+ })
182
+ }
183
+ }
184
+ }
185
+
186
+ return (
187
+ <Form {...form}>
188
+ <form onSubmit={form.handleSubmit(onSubmit)} className="space-y-4">
189
+ <FormField name="name" label="Project Name" placeholder="My Project" />
190
+ <FormField name="description" label="Description" type="textarea" placeholder="Optional" />
191
+ <FormField name="visibility" label="Visibility" type="select" selectOptions={[
192
+ { value: 'private', label: 'Private' },
193
+ { value: 'team', label: 'Team' },
194
+ { value: 'public', label: 'Public' },
195
+ ]} />
196
+ <div className="flex justify-end gap-2 pt-4">
197
+ <Button type="button" variant="outline" onClick={onCancel}>Cancel</Button>
198
+ <Button type="submit" disabled={form.formState.isSubmitting}>
199
+ {form.formState.isSubmitting ? 'Creating…' : 'Create Project'}
200
+ </Button>
201
+ </div>
202
+ </form>
203
+ </Form>
204
+ )
205
+ }
206
+ ```
207
+
208
+
209
+ ## Field Arrays (Dynamic Fields)
210
+
211
+ ```tsx
212
+ import { useFieldArray, Controller } from 'react-hook-form'
213
+
214
+ function TagArray({ control }: { control: Control<FormData> }) {
215
+ const { fields, append, remove, move } = useFieldArray({ control, name: 'tags' })
216
+
217
+ return (
218
+ <div className="space-y-2">
219
+ {fields.map((field, index) => (
220
+ <div key={field.id} className="flex items-center gap-2">
221
+ <Controller
222
+ name={`tags.${index}`}
223
+ control={control}
224
+ rules={{ required: 'Tag required' }}
225
+ render={({ field }) => (
226
+ <Input {...field} placeholder="Tag" className="flex-1" />
227
+ )}
228
+ />
229
+ <Button type="button" variant="ghost" size="icon" onClick={() => remove(index)}>
230
+ <Trash2 className="h-4 w-4 text-red-500" />
231
+ </Button>
232
+ {index > 0 && (
233
+ <Button type="button" variant="ghost" size="icon" onClick={() => move(index, index - 1)}>
234
+ <ChevronUp className="h-4 w-4" />
235
+ </Button>
236
+ )}
237
+ {index < fields.length - 1 && (
238
+ <Button type="button" variant="ghost" size="icon" onClick={() => move(index, index + 1)}>
239
+ <ChevronDown className="h-4 w-4" />
240
+ </Button>
241
+ )}
242
+ </div>
243
+ ))}
244
+ <Button type="button" variant="outline" onClick={() => append('')}>Add Tag</Button>
245
+ </div>
246
+ )
247
+ }
248
+ ```
249
+
250
+
251
+ ## Watch / Conditional Fields
252
+
253
+ ```tsx
254
+ const { watch } = form
255
+ const showAdvanced = watch('advancedMode')
256
+
257
+ return (
258
+ <div>
259
+ <FormField name="advancedMode" label="Advanced" type="checkbox" />
260
+ {showAdvanced && (
261
+ <div className="space-y-4 mt-4 border-t pt-4">
262
+ <FormField name="customDomain" label="Custom Domain" />
263
+ <FormField name="webhookUrl" label="Webhook URL" />
264
+ </div>
265
+ )}
266
+ </div>
267
+ )
268
+ ```
269
+
270
+
271
+ ## Dirty Tracking + Warn on Leave
272
+
273
+ ```tsx
274
+ import { useEffect } from 'react'
275
+ import { useForm } from 'react-hook-form'
276
+
277
+ function FormWithDirtyCheck() {
278
+ const form = useForm({ mode: 'onBlur' })
279
+ const isDirty = form.formState.isDirty
280
+
281
+ useEffect(() => {
282
+ function handleBeforeUnload(e: BeforeUnloadEvent) {
283
+ if (isDirty) {
284
+ e.preventDefault()
285
+ e.returnValue = ''
286
+ }
287
+ }
288
+ window.addEventListener('beforeunload', handleBeforeUnload)
289
+ return () => window.removeEventListener('beforeunload', handleBeforeUnload)
290
+ }, [isDirty])
291
+
292
+ // ...
293
+ }
294
+ ```
295
+
296
+
297
+ ## File Upload
298
+
299
+ ```tsx
300
+ import { useState } from 'react'
301
+
302
+ function FileUpload({ control, name, label }: { control: Control<FormData>; name: string; label: string }) {
303
+ const [preview, setPreview] = useState<string | null>(null)
304
+
305
+ return (
306
+ <Controller
307
+ name={name}
308
+ control={control}
309
+ render={({ field }) => (
310
+ <div className="space-y-2">
311
+ <Label>{label}</Label>
312
+ <div className="border-2 border-dashed rounded-lg p-6 text-center hover:border-primary transition-colors">
313
+ <input
314
+ type="file"
315
+ accept="image/*"
316
+ className="hidden"
317
+ id={name}
318
+ ref={field.ref}
319
+ onChange={(e) => {
320
+ const file = e.target.files?.[0]
321
+ if (file) {
322
+ field.onChange(file)
323
+ const reader = new FileReader()
324
+ reader.onloadend = () => setPreview(reader.result as string)
325
+ reader.readAsDataURL(file)
326
+ }
327
+ }}
328
+ />
329
+ <label htmlFor={name} className="cursor-pointer">
330
+ <Upload className="mx-auto h-10 w-10 text-gray-400" />
331
+ <p className="mt-2 text-sm text-gray-600">Click or drag to upload</p>
332
+ </label>
333
+ </div>
334
+ {preview && (
335
+ <div className="relative w-24 h-24 rounded-lg overflow-hidden">
336
+ <img src={preview} alt="Preview" className="w-full h-full object-cover" />
337
+ <Button type="button" variant="destructive" size="icon" className="absolute -top-2 -right-2" onClick={() => { field.onChange(undefined); setPreview(null) }}>
338
+ <X className="h-4 w-4" />
339
+ </Button>
340
+ </div>
341
+ )}
342
+ </div>
343
+ )}
344
+ />
345
+ )
346
+ }
347
+ ```
348
+
349
+
350
+ ## TypeScript: FormProvider Context
351
+
352
+ ```tsx
353
+ // Form wrapper with typed context
354
+ import { FormProvider, useForm } from 'react-hook-form'
355
+
356
+ export function Form<T extends FieldValues>({
357
+ children,
358
+ ...props
359
+ }: React.ComponentPropsWithoutRef<'form'> & { resolver: Resolver<T>; defaultValues?: T }) {
360
+ const methods = useForm<T>(props)
361
+ return <FormProvider {...methods}><form {...props}>{children}</form></FormProvider>
362
+ }
363
+
364
+ // Usage
365
+ <Form resolver={zodResolver(schema)} defaultValues={defaults}>
366
+ <FormField name="name" label="Name" />
367
+ </Form>
368
+ ```
369
+
370
+
371
+ ## Common Patterns
372
+
373
+ | Pattern | Implementation |
374
+ |---------|----------------|
375
+ | Debounced validation | `mode: 'onBlur'` + `debounce` in `onChange` |
376
+ | Dependent fields | `watch()` + conditional rendering |
377
+ | Cross-field validation | `superRefine` in Zod schema |
378
+ | Async validation | `refine` with async in Zod |
379
+ | Reset after submit | `form.reset()` in `onSubmit` success |
380
+ | Prefill from server | `defaultValues` from server data |
381
+
382
+
383
+ ## Related Skills
384
+
385
+ - `ui/ask-form` - Pattern guide for forms
386
+ - `ui/ask-toast` - Toast feedback on submit
387
+ - `ui/ask-modal` - Form in dialog
388
+ - `ui/ui-engineering` - Master orchestrator
@@ -0,0 +1,64 @@
1
+ # Sonner API Reference
2
+
3
+ Exact props, types, and defaults. Options passed to `toast()` override the same options set via the Toaster's `toastOptions`.
4
+
5
+ ## `<Toaster />`
6
+
7
+ | Prop | Type | Default | Description |
8
+ | --- | --- | --- | --- |
9
+ | `theme` | `string` | `'light'` | `'light'`, `'dark'`, or `'system'`. |
10
+ | `richColors` | `boolean` | `false` | Makes error and success states more colorful. |
11
+ | `expand` | `boolean` | `false` | Toasts expanded by default (otherwise they expand on hover). |
12
+ | `visibleToasts` | `number` | `3` | Amount of visible toasts. |
13
+ | `id` | `string` | - | Toaster id, targeted by `toast()`'s `toasterId` option. |
14
+ | `position` | `string` | `'bottom-right'` | `top-left`, `top-center`, `top-right`, `bottom-left`, `bottom-center`, `bottom-right`. |
15
+ | `closeButton` | `boolean` | `false` | Adds a close button to all toasts. |
16
+ | `offset` | `string \| number \| object` | `'32px'` | Offset from screen edges. Object form is per-side: `{ bottom: '24px', right: '16px' }`. |
17
+ | `mobileOffset` | `string \| number \| object` | `'16px'` | Offset when screen width < 600px. |
18
+ | `swipeDirections` | `array` | based on position | Allowed swipe-to-dismiss directions. |
19
+ | `dir` | `string` | `'ltr'` | Text directionality. |
20
+ | `hotkey` | `string` | `⌥/alt + T` | Keyboard shortcut that focuses the toaster area. |
21
+ | `invert` | `boolean` | `false` | Dark toasts in light mode and vice versa. |
22
+ | `toastOptions` | `object` | - | Default options applied to every toast (any `toast()` option below). |
23
+ | `gap` | `number` | `14` | Gap between toasts when expanded. |
24
+ | `icons` | `object` | - | Replace default icons: `{ success, info, warning, error, loading }`; `null` removes one. |
25
+
26
+ ## `toast()` options
27
+
28
+ `toast(message, options)` , message is a string, JSX, or a function returning JSX. Returns the toast's id.
29
+
30
+ | Option | Type | Default | Description |
31
+ | --- | --- | --- | --- |
32
+ | `description` | `ReactNode` | - | Renders underneath the title; also accepts a function returning JSX. |
33
+ | `closeButton` | `boolean` | `false` | Adds a close button. |
34
+ | `invert` | `boolean` | `false` | Dark toast in light mode and vice versa. |
35
+ | `duration` | `number` | `4000` | Milliseconds before auto-close. `Infinity` persists the toast. |
36
+ | `position` | `string` | `'bottom-right'` | Position of this toast. |
37
+ | `dismissible` | `boolean` | `true` | If `false`, the user cannot dismiss the toast. |
38
+ | `icon` | `ReactNode` | - | Icon in front of the text; `null` removes the default. |
39
+ | `action` | `ReactNode \| { label, onClick }` | - | Primary button; clicking closes the toast unless `onClick` calls `event.preventDefault()`. |
40
+ | `cancel` | `ReactNode \| { label, onClick }` | - | Secondary button; clicking closes the toast. |
41
+ | `actionButtonStyle` | `object` | `{}` | Styles for the action button. |
42
+ | `cancelButtonStyle` | `object` | `{}` | Styles for the cancel button. |
43
+ | `id` | `string` | - | Custom id; calling `toast()` again with the same id updates the existing toast. |
44
+ | `testId` | `string` | - | Rendered as `data-testid` for e2e tests. |
45
+ | `toasterId` | `string` | - | Id of the toaster to render this toast in. |
46
+ | `style` | `object` | - | Inline styles for the toast. |
47
+ | `classNames` | `object` | - | Classes per part: `{ toast, title, description, actionButton, cancelButton, closeButton }`. Needs `!important` unless `unstyled`. |
48
+ | `unstyled` | `boolean` | `false` | Removes all default styles. |
49
+ | `onDismiss` | `(toast) => void` | - | Fires when the close button is clicked or the toast is swiped away. |
50
+ | `onAutoClose` | `(toast) => void` | - | Fires when the toast closes automatically after `duration`. |
51
+ | `containerAriaLabel` | `string` | `'Notifications'` | ARIA label for the toast container. |
52
+
53
+ ## Functions
54
+
55
+ | Function | Purpose |
56
+ | --- | --- |
57
+ | `toast(message, opts?)` | Render a toast; returns its id. |
58
+ | `toast.success / .error / .info / .warning(message, opts?)` | Typed toast with matching icon. |
59
+ | `toast.loading(message, opts?)` | Toast with a spinner; update it by id. |
60
+ | `toast.promise(promise, { loading, success, error })` | Loading toast that resolves with the promise; `success`/`error` accept strings, JSX, functions of the result, or objects of toast options. |
61
+ | `toast.custom((t) => jsx, opts?)` | Headless toast , your JSX, Sonner's behavior. |
62
+ | `toast.dismiss(id?)` | Dismiss one toast, or all when called without an id. |
63
+ | `toast.getActiveToasts()` | All active toasts, usable outside React. |
64
+ | `useSonner()` | React hook returning `{ toasts }`. |
@@ -0,0 +1,88 @@
1
+ ---
2
+ name: ask-sonner
3
+ description: Guide to Sonner, the React toast library , install and wire up the Toaster, pick the right toast() call, promise and loading toasts, updating, dismissing and persisting toasts, styling, theming and icons, positioning and multiple toasters. Use when working with Sonner or troubleshooting it , toasts that don't appear, appear twice, lose their styles, ignore Tailwind classes, sit behind a modal, or don't follow dark mode.
4
+ ---
5
+
6
+ # Working With Sonner
7
+
8
+ ## Initial Response
9
+
10
+ When this skill is first invoked without a specific question, respond only with:
11
+
12
+ > I'm ready to help you set up, style, and troubleshoot Sonner, my knowledge comes from its author, Emil Kowalski.
13
+
14
+ Do not provide any other information until the user asks a question.
15
+
16
+ A guide skill for [Sonner](https://sonner.emilkowal.ski), the toast library. When a task involves Sonner , wiring it up, rendering toasts, styling them, or fixing them , answer from this file first. Full prop tables for `<Toaster />` and `toast()` live in [API.md](API.md); read it when you need an exact prop name, type, or default.
17
+
18
+ ## Setup
19
+
20
+ Two pieces, and only two:
21
+
22
+ 1. **One `<Toaster />`, mounted once**, as close to the root as possible (in Next.js: `layout.tsx` , it works inside server components). Never render it per-page or conditionally; a second mounted Toaster duplicates every toast.
23
+ 2. **`toast()` called from client code** , event handlers, effects, callbacks. It's a plain function, no hook or provider needed, but it does nothing on the server: in a server action, return the result and call `toast()` in the client code that receives it.
24
+
25
+ ```jsx
26
+ import { Toaster } from 'sonner'; // once, in layout
27
+ import { toast } from 'sonner'; // anywhere client-side
28
+ ```
29
+
30
+ ## Picking the right call
31
+
32
+ | You want | Call |
33
+ | --- | --- |
34
+ | Plain message | `toast('Title')` , add `{ description }` for a second line |
35
+ | Success / error / info / warning icon | `toast.success('…')`, `toast.error('…')`, etc. |
36
+ | Spinner while you manage state yourself | `toast.loading('…')`, then update it by id |
37
+ | Loading → success/error tied to a promise | `toast.promise(promise, { loading, success, error })` , success/error accept functions receiving the resolved value/error |
38
+ | Button that does something | `{ action: { label, onClick } }` , closes the toast unless `onClick` calls `event.preventDefault()`; `cancel` is the secondary variant |
39
+ | Custom JSX, default toast shell | `toast(<jsx />)` |
40
+ | Custom JSX, no styles at all | `toast.custom((t) => <jsx />)` , headless, `t` gives you the id to dismiss |
41
+
42
+ ## Recipes
43
+
44
+ **Update a toast** , call `toast()` again with the same `id`; only the props you pass change. Switching to `toast.success(…, { id })` changes the type. This is how loading → success flows work without `toast.promise`:
45
+
46
+ ```jsx
47
+ const id = toast.loading('Uploading…');
48
+ toast.success('Uploaded', { id });
49
+ ```
50
+
51
+ **Persist** , `{ duration: Infinity }`. **Dismiss** , `toast.dismiss(id)`, or `toast.dismiss()` for all. **Read active toasts** , `useSonner()` in React, `toast.getActiveToasts()` outside it.
52
+
53
+ **Links or components in the text** , pass a function for the title or description: `toast(() => <a href="…">View</a>)`.
54
+
55
+ **Multiple toasters** , give each an `id` and target with `toast('…', { toasterId: 'canvas' })`. Without `toasterId`, every toaster renders the toast.
56
+
57
+ **Close callbacks** , `onDismiss` fires on close button or swipe; `onAutoClose` fires on timeout. They are separate; there is no single "closed" callback.
58
+
59
+ ## Styling , the escalation ladder
60
+
61
+ Climb only as far as the change requires; jumping to the top rung too early is fine (it's the recommended end state), lingering in the middle is not.
62
+
63
+ 1. **Defaults** , plus `richColors` on the Toaster for colorful success/error, `invert` to flip against the theme.
64
+ 2. **Inline tweaks** , `toastOptions={{ style: {…} }}` on the Toaster for all toasts, or `style` per `toast()` call.
65
+ 3. **Classes on parts** , `toastOptions={{ classNames: { toast, title, description, actionButton, cancelButton, closeButton } }}`. Sonner's injected styles win the cascade, so every class needs `!important` (Tailwind: `!text-red-900`). If you're marking more than a few things important, stop , go headless.
66
+ 4. **Headless** , `toast.custom()` with your own JSX, keeping Sonner's positioning, stacking, and swipe. The recommended approach for a design-system toast: wrap it in your own `toast()` abstraction. (`unstyled: true` exists as a halfway house, but headless gives more control for the same effort.)
67
+
68
+ **Icons** , swap defaults per-type with the Toaster's `icons` prop, per-toast with `icon`, remove with `null`.
69
+
70
+ **Theme** , `theme` defaults to `'light'` and does not track the OS. Pass `theme="system"`, or wire your theme provider: `<Toaster theme={resolvedTheme} />` from `next-themes`.
71
+
72
+ ## Troubleshooting
73
+
74
+ | Symptom | Cause → fix |
75
+ | --- | --- |
76
+ | Toast never appears | No `<Toaster />` mounted, or it unmounted (conditional render, per-page placement). Mount one at the root. If calling from a server action: `toast()` is client-only , call it with the action's result on the client. |
77
+ | Same toast appears twice | Two Toasters mounted (layout **and** page) , keep one. Or `toast()` fired in an effect under React StrictMode's dev double-invoke , fire from the event handler instead, or pass a stable `id` so the second call updates rather than duplicates. |
78
+ | Tailwind/CSS classes have no effect | Default styles override them. Mark them `!important`, or use `unstyled` / headless (see the ladder above). |
79
+ | Toasts render completely unstyled (common in Astro, view transitions) | Sonner's injected stylesheet was lost , import it explicitly in a layout: `import 'sonner/dist/styles.css'`. |
80
+ | Unstyled inside Shadow DOM | Styles land in `document.head`, not the shadow root. Copy the style tag whose text includes `[data-sonner-toaster]` into the shadow root. |
81
+ | Toast behind a modal/overlay, or clipped | An ancestor creates a stacking context (`transform`, `filter`, `overflow`) or the overlay out-z-indexes the toaster. Move `<Toaster />` to the document root, outside any dialog/portal container. |
82
+ | Dark mode ignored | `theme` defaults to `'light'` , set `theme="system"` or pass the resolved theme (see Theme above). |
83
+ | Success/error look gray, not green/red | That's the default. Add `richColors` to the Toaster. |
84
+ | Toast never closes | `duration: Infinity`, `dismissible: false`, or a `toast.promise` whose promise never settles , the loading toast waits forever. |
85
+ | `toast.promise` stuck on loading | It needs a promise (or a function returning one) as its first argument, and the promise must actually resolve/reject. |
86
+ | Swipe-to-dismiss goes the wrong way / doesn't work | Directions derive from `position`. Override with `swipeDirections` on the Toaster. |
87
+ | Toast shows up in every toaster | Multiple toasters need targeting: give each Toaster an `id` and pass `toasterId` in the `toast()` call. |
88
+ | Toasts too close to the screen edge on mobile | `offset` (desktop, default 32px) and `mobileOffset` (<600px, default 16px) , numbers, CSS strings, or per-side objects. |