contextos-agents 1.5.0

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 (310) hide show
  1. package/.agents/AGENTS.md +421 -0
  2. package/.agents/adapters/aider/export.js +137 -0
  3. package/.agents/adapters/claude/export.js +55 -0
  4. package/.agents/adapters/copilot/export.js +107 -0
  5. package/.agents/adapters/cursor/export.js +210 -0
  6. package/.agents/adapters/gemini/export.js +115 -0
  7. package/.agents/adapters/shared.js +119 -0
  8. package/.agents/adapters/zed/export.js +111 -0
  9. package/.agents/core/profiles/backend.yaml +47 -0
  10. package/.agents/core/profiles/enterprise.yaml +46 -0
  11. package/.agents/core/profiles/frontend.yaml +46 -0
  12. package/.agents/core/profiles/hackathon.yaml +45 -0
  13. package/.agents/core/profiles/mvp.yaml +43 -0
  14. package/.agents/core/profiles/startup.yaml +48 -0
  15. package/.agents/core/skills/adapters/EXAMPLES.md +19 -0
  16. package/.agents/core/skills/adapters/SKILL.md +105 -0
  17. package/.agents/core/skills/adapters/TROUBLESHOOTING.md +7 -0
  18. package/.agents/core/skills/adapters/VALIDATION.json +12 -0
  19. package/.agents/core/skills/adapters/skill.yaml +10 -0
  20. package/.agents/core/skills/architecture-diagrams/SKILL.md +108 -0
  21. package/.agents/core/skills/architecture-diagrams/VALIDATION.json +12 -0
  22. package/.agents/core/skills/architecture-diagrams/skill.yaml +8 -0
  23. package/.agents/core/skills/brutalist-design/SKILL.md +150 -0
  24. package/.agents/core/skills/brutalist-design/VALIDATION.json +12 -0
  25. package/.agents/core/skills/brutalist-design/skill.yaml +8 -0
  26. package/.agents/core/skills/context-manager/EXAMPLES.md +19 -0
  27. package/.agents/core/skills/context-manager/SKILL.md +126 -0
  28. package/.agents/core/skills/context-manager/TROUBLESHOOTING.md +7 -0
  29. package/.agents/core/skills/context-manager/VALIDATION.json +12 -0
  30. package/.agents/core/skills/context-manager/skill.yaml +10 -0
  31. package/.agents/core/skills/context-os/EXAMPLES.md +21 -0
  32. package/.agents/core/skills/context-os/SKILL.md +169 -0
  33. package/.agents/core/skills/context-os/TROUBLESHOOTING.md +7 -0
  34. package/.agents/core/skills/context-os/VALIDATION.json +12 -0
  35. package/.agents/core/skills/context-os/packs.yaml +59 -0
  36. package/.agents/core/skills/context-os/references/context-rules.md +68 -0
  37. package/.agents/core/skills/context-os/references/pipeline.md +119 -0
  38. package/.agents/core/skills/context-os/references/project-graph.md +103 -0
  39. package/.agents/core/skills/context-os/rules.yaml +135 -0
  40. package/.agents/core/skills/context-os/skill.yaml +10 -0
  41. package/.agents/core/skills/database/EXAMPLES.md +74 -0
  42. package/.agents/core/skills/database/SKILL.md +101 -0
  43. package/.agents/core/skills/database/TROUBLESHOOTING.md +18 -0
  44. package/.agents/core/skills/database/VALIDATION.json +11 -0
  45. package/.agents/core/skills/database/skill.yaml +25 -0
  46. package/.agents/core/skills/ddd/EXAMPLES.md +42 -0
  47. package/.agents/core/skills/ddd/SKILL.md +247 -0
  48. package/.agents/core/skills/ddd/TROUBLESHOOTING.md +19 -0
  49. package/.agents/core/skills/ddd/VALIDATION.json +12 -0
  50. package/.agents/core/skills/ddd/ddd.md +178 -0
  51. package/.agents/core/skills/ddd/skill.yaml +10 -0
  52. package/.agents/core/skills/decisions/EXAMPLES.md +35 -0
  53. package/.agents/core/skills/decisions/SKILL.md +90 -0
  54. package/.agents/core/skills/decisions/TROUBLESHOOTING.md +13 -0
  55. package/.agents/core/skills/decisions/VALIDATION.json +12 -0
  56. package/.agents/core/skills/decisions/skill.yaml +10 -0
  57. package/.agents/core/skills/docker/EXAMPLES.md +56 -0
  58. package/.agents/core/skills/docker/SKILL.md +63 -0
  59. package/.agents/core/skills/docker/TROUBLESHOOTING.md +18 -0
  60. package/.agents/core/skills/docker/VALIDATION.json +11 -0
  61. package/.agents/core/skills/docker/skill.yaml +23 -0
  62. package/.agents/core/skills/engineering-workflow/EXAMPLES.md +57 -0
  63. package/.agents/core/skills/engineering-workflow/SKILL.md +343 -0
  64. package/.agents/core/skills/engineering-workflow/TROUBLESHOOTING.md +19 -0
  65. package/.agents/core/skills/engineering-workflow/VALIDATION.json +12 -0
  66. package/.agents/core/skills/engineering-workflow/skill.yaml +13 -0
  67. package/.agents/core/skills/fastapi/EXAMPLES.md +36 -0
  68. package/.agents/core/skills/fastapi/SKILL.md +148 -0
  69. package/.agents/core/skills/fastapi/TROUBLESHOOTING.md +19 -0
  70. package/.agents/core/skills/fastapi/VALIDATION.json +12 -0
  71. package/.agents/core/skills/fastapi/fastapi.md +112 -0
  72. package/.agents/core/skills/fastapi/skill.yaml +10 -0
  73. package/.agents/core/skills/gemini-precision/SKILL.md +169 -0
  74. package/.agents/core/skills/gemini-precision/VALIDATION.json +12 -0
  75. package/.agents/core/skills/gemini-precision/skill.yaml +9 -0
  76. package/.agents/core/skills/generators/EXAMPLES.md +19 -0
  77. package/.agents/core/skills/generators/SKILL.md +112 -0
  78. package/.agents/core/skills/generators/TROUBLESHOOTING.md +7 -0
  79. package/.agents/core/skills/generators/VALIDATION.json +12 -0
  80. package/.agents/core/skills/generators/skill.yaml +10 -0
  81. package/.agents/core/skills/generators/templates/API.md +77 -0
  82. package/.agents/core/skills/generators/templates/ARCHITECTURE.md +70 -0
  83. package/.agents/core/skills/generators/templates/DATABASE.md +42 -0
  84. package/.agents/core/skills/generators/templates/DECISION.md +46 -0
  85. package/.agents/core/skills/generators/templates/PRD.md +67 -0
  86. package/.agents/core/skills/generators/templates/PROJECT_GRAPH.md +56 -0
  87. package/.agents/core/skills/generators/templates/ROADMAP.md +51 -0
  88. package/.agents/core/skills/generators/templates/TASKS.md +43 -0
  89. package/.agents/core/skills/generators/templates/UI.md +73 -0
  90. package/.agents/core/skills/graphify/EXAMPLES.md +73 -0
  91. package/.agents/core/skills/graphify/SKILL.md +130 -0
  92. package/.agents/core/skills/graphify/VALIDATION.json +12 -0
  93. package/.agents/core/skills/graphify/skill.yaml +13 -0
  94. package/.agents/core/skills/gstack-roles/EXAMPLES.md +23 -0
  95. package/.agents/core/skills/gstack-roles/SKILL.md +152 -0
  96. package/.agents/core/skills/gstack-roles/TROUBLESHOOTING.md +13 -0
  97. package/.agents/core/skills/gstack-roles/VALIDATION.json +12 -0
  98. package/.agents/core/skills/gstack-roles/skill.yaml +12 -0
  99. package/.agents/core/skills/impeccable-design/EXAMPLES.md +26 -0
  100. package/.agents/core/skills/impeccable-design/SKILL.md +201 -0
  101. package/.agents/core/skills/impeccable-design/TROUBLESHOOTING.md +19 -0
  102. package/.agents/core/skills/impeccable-design/VALIDATION.json +12 -0
  103. package/.agents/core/skills/impeccable-design/skill.yaml +14 -0
  104. package/.agents/core/skills/interview-me/SKILL.md +97 -0
  105. package/.agents/core/skills/interview-me/VALIDATION.json +12 -0
  106. package/.agents/core/skills/interview-me/skill.yaml +8 -0
  107. package/.agents/core/skills/microservices/EXAMPLES.md +38 -0
  108. package/.agents/core/skills/microservices/SKILL.md +164 -0
  109. package/.agents/core/skills/microservices/TROUBLESHOOTING.md +19 -0
  110. package/.agents/core/skills/microservices/VALIDATION.json +12 -0
  111. package/.agents/core/skills/microservices/microservices.md +119 -0
  112. package/.agents/core/skills/microservices/skill.yaml +10 -0
  113. package/.agents/core/skills/minimalist-design/SKILL.md +113 -0
  114. package/.agents/core/skills/minimalist-design/VALIDATION.json +12 -0
  115. package/.agents/core/skills/minimalist-design/skill.yaml +8 -0
  116. package/.agents/core/skills/nestjs/EXAMPLES.md +40 -0
  117. package/.agents/core/skills/nestjs/SKILL.md +139 -0
  118. package/.agents/core/skills/nestjs/TROUBLESHOOTING.md +19 -0
  119. package/.agents/core/skills/nestjs/VALIDATION.json +12 -0
  120. package/.agents/core/skills/nestjs/nestjs.md +103 -0
  121. package/.agents/core/skills/nestjs/skill.yaml +10 -0
  122. package/.agents/core/skills/nextjs/EXAMPLES.md +40 -0
  123. package/.agents/core/skills/nextjs/SKILL.md +163 -0
  124. package/.agents/core/skills/nextjs/TROUBLESHOOTING.md +19 -0
  125. package/.agents/core/skills/nextjs/VALIDATION.json +12 -0
  126. package/.agents/core/skills/nextjs/nextjs.md +67 -0
  127. package/.agents/core/skills/nextjs/skill.yaml +10 -0
  128. package/.agents/core/skills/node/EXAMPLES.md +80 -0
  129. package/.agents/core/skills/node/SKILL.md +128 -0
  130. package/.agents/core/skills/node/TROUBLESHOOTING.md +19 -0
  131. package/.agents/core/skills/node/VALIDATION.json +12 -0
  132. package/.agents/core/skills/node/node.md +87 -0
  133. package/.agents/core/skills/node/skill.yaml +10 -0
  134. package/.agents/core/skills/performance/EXAMPLES.md +30 -0
  135. package/.agents/core/skills/performance/SKILL.md +75 -0
  136. package/.agents/core/skills/performance/TROUBLESHOOTING.md +19 -0
  137. package/.agents/core/skills/performance/VALIDATION.json +12 -0
  138. package/.agents/core/skills/performance/performance.md +52 -0
  139. package/.agents/core/skills/performance/skill.yaml +10 -0
  140. package/.agents/core/skills/ponytail-mindset/EXAMPLES.md +45 -0
  141. package/.agents/core/skills/ponytail-mindset/SKILL.md +193 -0
  142. package/.agents/core/skills/ponytail-mindset/TROUBLESHOOTING.md +19 -0
  143. package/.agents/core/skills/ponytail-mindset/VALIDATION.json +12 -0
  144. package/.agents/core/skills/ponytail-mindset/skill.yaml +14 -0
  145. package/.agents/core/skills/react/EXAMPLES.md +79 -0
  146. package/.agents/core/skills/react/SKILL.md +132 -0
  147. package/.agents/core/skills/react/TROUBLESHOOTING.md +19 -0
  148. package/.agents/core/skills/react/VALIDATION.json +12 -0
  149. package/.agents/core/skills/react/react.md +93 -0
  150. package/.agents/core/skills/react/skill.yaml +10 -0
  151. package/.agents/core/skills/react-best-practices/SKILL.md +155 -0
  152. package/.agents/core/skills/react-best-practices/VALIDATION.json +12 -0
  153. package/.agents/core/skills/react-best-practices/skill.yaml +10 -0
  154. package/.agents/core/skills/redesign-audit/SKILL.md +117 -0
  155. package/.agents/core/skills/redesign-audit/VALIDATION.json +12 -0
  156. package/.agents/core/skills/redesign-audit/skill.yaml +8 -0
  157. package/.agents/core/skills/security/EXAMPLES.md +64 -0
  158. package/.agents/core/skills/security/SKILL.md +158 -0
  159. package/.agents/core/skills/security/TROUBLESHOOTING.md +19 -0
  160. package/.agents/core/skills/security/VALIDATION.json +12 -0
  161. package/.agents/core/skills/security/security.md +106 -0
  162. package/.agents/core/skills/security/skill.yaml +10 -0
  163. package/.agents/core/skills/soft-design/SKILL.md +108 -0
  164. package/.agents/core/skills/soft-design/VALIDATION.json +12 -0
  165. package/.agents/core/skills/soft-design/skill.yaml +8 -0
  166. package/.agents/core/skills/state-management/EXAMPLES.md +56 -0
  167. package/.agents/core/skills/state-management/SKILL.md +48 -0
  168. package/.agents/core/skills/state-management/TROUBLESHOOTING.md +18 -0
  169. package/.agents/core/skills/state-management/VALIDATION.json +11 -0
  170. package/.agents/core/skills/state-management/skill.yaml +22 -0
  171. package/.agents/core/skills/subagent-orchestrator/SKILL.md +100 -0
  172. package/.agents/core/skills/subagent-orchestrator/VALIDATION.json +12 -0
  173. package/.agents/core/skills/subagent-orchestrator/skill.yaml +8 -0
  174. package/.agents/core/skills/system-design/EXAMPLES.md +75 -0
  175. package/.agents/core/skills/system-design/SKILL.md +419 -0
  176. package/.agents/core/skills/system-design/TROUBLESHOOTING.md +19 -0
  177. package/.agents/core/skills/system-design/VALIDATION.json +12 -0
  178. package/.agents/core/skills/system-design/skill.yaml +13 -0
  179. package/.agents/core/skills/system-design/system-design.md +112 -0
  180. package/.agents/core/skills/testing/EXAMPLES.md +71 -0
  181. package/.agents/core/skills/testing/SKILL.md +70 -0
  182. package/.agents/core/skills/testing/TROUBLESHOOTING.md +18 -0
  183. package/.agents/core/skills/testing/VALIDATION.json +11 -0
  184. package/.agents/core/skills/testing/skill.yaml +26 -0
  185. package/.agents/core/skills/typescript/EXAMPLES.md +64 -0
  186. package/.agents/core/skills/typescript/SKILL.md +112 -0
  187. package/.agents/core/skills/typescript/TROUBLESHOOTING.md +19 -0
  188. package/.agents/core/skills/typescript/VALIDATION.json +12 -0
  189. package/.agents/core/skills/typescript/skill.yaml +10 -0
  190. package/.agents/core/skills/typescript/typescript.md +71 -0
  191. package/.agents/core/skills/ui-design/EXAMPLES.md +21 -0
  192. package/.agents/core/skills/ui-design/SKILL.md +124 -0
  193. package/.agents/core/skills/ui-design/TROUBLESHOOTING.md +19 -0
  194. package/.agents/core/skills/ui-design/VALIDATION.json +12 -0
  195. package/.agents/core/skills/ui-design/skill.yaml +10 -0
  196. package/.agents/core/skills/ui-design/ui.md +88 -0
  197. package/.agents/core/skills/ui-ux-pro/EXAMPLES.md +62 -0
  198. package/.agents/core/skills/ui-ux-pro/SKILL.md +375 -0
  199. package/.agents/core/skills/ui-ux-pro/TROUBLESHOOTING.md +19 -0
  200. package/.agents/core/skills/ui-ux-pro/VALIDATION.json +12 -0
  201. package/.agents/core/skills/ui-ux-pro/skill.yaml +13 -0
  202. package/.agents/core/skills/ux-design/EXAMPLES.md +36 -0
  203. package/.agents/core/skills/ux-design/SKILL.md +116 -0
  204. package/.agents/core/skills/ux-design/TROUBLESHOOTING.md +19 -0
  205. package/.agents/core/skills/ux-design/VALIDATION.json +12 -0
  206. package/.agents/core/skills/ux-design/skill.yaml +10 -0
  207. package/.agents/core/skills/ux-design/ux.md +80 -0
  208. package/.agents/core/skills/vercel-optimize/SKILL.md +83 -0
  209. package/.agents/core/skills/vercel-optimize/VALIDATION.json +12 -0
  210. package/.agents/core/skills/vercel-optimize/skill.yaml +10 -0
  211. package/.agents/core/skills/web-accessibility/EXAMPLES.md +39 -0
  212. package/.agents/core/skills/web-accessibility/SKILL.md +170 -0
  213. package/.agents/core/skills/web-accessibility/TROUBLESHOOTING.md +19 -0
  214. package/.agents/core/skills/web-accessibility/VALIDATION.json +12 -0
  215. package/.agents/core/skills/web-accessibility/accessibility.md +63 -0
  216. package/.agents/core/skills/web-accessibility/skill.yaml +10 -0
  217. package/.agents/ctx.js +370 -0
  218. package/.agents/generated/claude/skills/adapters/SKILL.md +126 -0
  219. package/.agents/generated/claude/skills/architecture-diagrams/SKILL.md +101 -0
  220. package/.agents/generated/claude/skills/brutalist-design/SKILL.md +145 -0
  221. package/.agents/generated/claude/skills/context-manager/SKILL.md +147 -0
  222. package/.agents/generated/claude/skills/context-os/SKILL.md +191 -0
  223. package/.agents/generated/claude/skills/database/SKILL.md +191 -0
  224. package/.agents/generated/claude/skills/ddd/SKILL.md +305 -0
  225. package/.agents/generated/claude/skills/decisions/SKILL.md +134 -0
  226. package/.agents/generated/claude/skills/docker/SKILL.md +135 -0
  227. package/.agents/generated/claude/skills/engineering-workflow/SKILL.md +414 -0
  228. package/.agents/generated/claude/skills/fastapi/SKILL.md +200 -0
  229. package/.agents/generated/claude/skills/gemini-precision/SKILL.md +161 -0
  230. package/.agents/generated/claude/skills/generators/SKILL.md +133 -0
  231. package/.agents/generated/claude/skills/graphify/SKILL.md +198 -0
  232. package/.agents/generated/claude/skills/gstack-roles/SKILL.md +184 -0
  233. package/.agents/generated/claude/skills/impeccable-design/SKILL.md +241 -0
  234. package/.agents/generated/claude/skills/interview-me/SKILL.md +90 -0
  235. package/.agents/generated/claude/skills/microservices/SKILL.md +218 -0
  236. package/.agents/generated/claude/skills/minimalist-design/SKILL.md +108 -0
  237. package/.agents/generated/claude/skills/nestjs/SKILL.md +195 -0
  238. package/.agents/generated/claude/skills/nextjs/SKILL.md +219 -0
  239. package/.agents/generated/claude/skills/node/SKILL.md +224 -0
  240. package/.agents/generated/claude/skills/performance/SKILL.md +121 -0
  241. package/.agents/generated/claude/skills/ponytail-mindset/SKILL.md +252 -0
  242. package/.agents/generated/claude/skills/react/SKILL.md +227 -0
  243. package/.agents/generated/claude/skills/react-best-practices/SKILL.md +146 -0
  244. package/.agents/generated/claude/skills/redesign-audit/SKILL.md +112 -0
  245. package/.agents/generated/claude/skills/security/SKILL.md +237 -0
  246. package/.agents/generated/claude/skills/soft-design/SKILL.md +103 -0
  247. package/.agents/generated/claude/skills/state-management/SKILL.md +120 -0
  248. package/.agents/generated/claude/skills/subagent-orchestrator/SKILL.md +93 -0
  249. package/.agents/generated/claude/skills/system-design/SKILL.md +507 -0
  250. package/.agents/generated/claude/skills/testing/SKILL.md +157 -0
  251. package/.agents/generated/claude/skills/typescript/SKILL.md +192 -0
  252. package/.agents/generated/claude/skills/ui-design/SKILL.md +161 -0
  253. package/.agents/generated/claude/skills/ui-ux-pro/SKILL.md +451 -0
  254. package/.agents/generated/claude/skills/ux-design/SKILL.md +168 -0
  255. package/.agents/generated/claude/skills/vercel-optimize/SKILL.md +76 -0
  256. package/.agents/generated/claude/skills/web-accessibility/SKILL.md +225 -0
  257. package/.agents/generated/gemini/skills/adapters/SKILL.md +135 -0
  258. package/.agents/generated/gemini/skills/architecture-diagrams/SKILL.md +107 -0
  259. package/.agents/generated/gemini/skills/brutalist-design/SKILL.md +151 -0
  260. package/.agents/generated/gemini/skills/context-manager/SKILL.md +156 -0
  261. package/.agents/generated/gemini/skills/context-os/SKILL.md +200 -0
  262. package/.agents/generated/gemini/skills/database/SKILL.md +200 -0
  263. package/.agents/generated/gemini/skills/ddd/SKILL.md +314 -0
  264. package/.agents/generated/gemini/skills/decisions/SKILL.md +143 -0
  265. package/.agents/generated/gemini/skills/docker/SKILL.md +144 -0
  266. package/.agents/generated/gemini/skills/engineering-workflow/SKILL.md +423 -0
  267. package/.agents/generated/gemini/skills/fastapi/SKILL.md +209 -0
  268. package/.agents/generated/gemini/skills/gemini-precision/SKILL.md +167 -0
  269. package/.agents/generated/gemini/skills/generators/SKILL.md +142 -0
  270. package/.agents/generated/gemini/skills/graphify/SKILL.md +205 -0
  271. package/.agents/generated/gemini/skills/gstack-roles/SKILL.md +193 -0
  272. package/.agents/generated/gemini/skills/impeccable-design/SKILL.md +250 -0
  273. package/.agents/generated/gemini/skills/interview-me/SKILL.md +96 -0
  274. package/.agents/generated/gemini/skills/microservices/SKILL.md +227 -0
  275. package/.agents/generated/gemini/skills/minimalist-design/SKILL.md +114 -0
  276. package/.agents/generated/gemini/skills/nestjs/SKILL.md +204 -0
  277. package/.agents/generated/gemini/skills/nextjs/SKILL.md +298 -0
  278. package/.agents/generated/gemini/skills/node/SKILL.md +323 -0
  279. package/.agents/generated/gemini/skills/performance/SKILL.md +185 -0
  280. package/.agents/generated/gemini/skills/ponytail-mindset/SKILL.md +261 -0
  281. package/.agents/generated/gemini/skills/react/SKILL.md +332 -0
  282. package/.agents/generated/gemini/skills/react-best-practices/SKILL.md +152 -0
  283. package/.agents/generated/gemini/skills/redesign-audit/SKILL.md +118 -0
  284. package/.agents/generated/gemini/skills/security/SKILL.md +355 -0
  285. package/.agents/generated/gemini/skills/soft-design/SKILL.md +109 -0
  286. package/.agents/generated/gemini/skills/state-management/SKILL.md +129 -0
  287. package/.agents/generated/gemini/skills/subagent-orchestrator/SKILL.md +99 -0
  288. package/.agents/generated/gemini/skills/system-design/SKILL.md +631 -0
  289. package/.agents/generated/gemini/skills/testing/SKILL.md +166 -0
  290. package/.agents/generated/gemini/skills/typescript/SKILL.md +275 -0
  291. package/.agents/generated/gemini/skills/ui-design/SKILL.md +170 -0
  292. package/.agents/generated/gemini/skills/ui-ux-pro/SKILL.md +460 -0
  293. package/.agents/generated/gemini/skills/ux-design/SKILL.md +177 -0
  294. package/.agents/generated/gemini/skills/vercel-optimize/SKILL.md +82 -0
  295. package/.agents/generated/gemini/skills/web-accessibility/SKILL.md +300 -0
  296. package/.agents/mcp/runtime.py +454 -0
  297. package/.agents/mcp/server.mjs +189373 -0
  298. package/.agents/plugins.js +574 -0
  299. package/.agents/profiles.js +267 -0
  300. package/.agents/resolver.js +336 -0
  301. package/.agents/skills-index.json +200 -0
  302. package/.agents/skills.json +6 -0
  303. package/.agents/validate.js +500 -0
  304. package/LICENSE +21 -0
  305. package/README.md +415 -0
  306. package/benchmarks/gemini-issues.js +533 -0
  307. package/bin/index.js +458 -0
  308. package/package.json +70 -0
  309. package/registry.json +53 -0
  310. package/registry.schema.json +32 -0
@@ -0,0 +1,460 @@
1
+ ---
2
+ name: ui-ux-pro
3
+ description: >
4
+ Professional UI/UX design skill with strict anti-pattern enforcement. Prevents AI slop design, enforces accessibility standards, semantic color palettes, proper spacing, and bans overused design clichés.
5
+ ---
6
+ # ui-ux-pro
7
+
8
+ ## Overview
9
+
10
+ Professional UI/UX design standard banning AI clichés (pure black #000000, purple-blue gradients, card-in-card nesting). Enforces Tailwind CSS v4 @theme, semantic HSL palettes, and refined micro-interactions.
11
+
12
+ ## When to Use
13
+
14
+ Activate during planning and implementation of modern web user interfaces, landing pages, SaaS dashboards, and consumer-facing web apps.
15
+
16
+ ## Rules & Patterns
17
+
18
+ Inspired by [nextlevelbuilder/ui-ux-pro-max-skill](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill).
19
+
20
+ ## Core Principle
21
+
22
+ > Great design is invisible. Bad design is obvious. You will never produce obvious AI design.
23
+
24
+ ## Pre-flight Check & Brief Inference
25
+
26
+ Before starting a design implementation:
27
+
28
+ 1. Infer the unwritten constraints of the domain (e.g., if it's a dev tool, assume dark mode, monospaced numbers, dense layout).
29
+ 2. Propose a "Design Brief Inference" summarizing the intended aesthetic.
30
+
31
+ ---
32
+
33
+ ## [FAIL] Absolute Prohibitions (Never Do These)
34
+
35
+ ### Typography Anti-Patterns
36
+
37
+ - **NEVER** use Arial, Helvetica, or system-ui defaults as primary fonts
38
+ - **NEVER** use Inter as the ONLY font — it is the #1 "AI-generated" visual tell when used alone
39
+ - [PASS] **CORRECT**: If using Inter for primary UI text, ALWAYS pair it with a strong monospace font like `JetBrains Mono` for numbers, code blocks, and technical accents to create a premium SaaS aesthetic (see Vercel, Linear)
40
+ - [FAIL] **WRONG**: Inter for headings, body, labels, numbers, captions — everything
41
+ - **NEVER** mix more than 2 font families
42
+ - **ALWAYS** import proper fonts from Google Fonts or similar
43
+
44
+ ### Color Anti-Patterns
45
+
46
+ - **NEVER** use pure black `#000000` — always tint toward brand hue (e.g. `#0A0A0F`)
47
+ - **NEVER** use pure gray `#808080` — tint it (e.g. `#6B7280` has blue undertones)
48
+ - **NEVER** use purple-to-blue gradients — it is the #1 "AI generated" visual tell
49
+ - **NEVER** use neon colors for primary UI (only accents, sparingly)
50
+ - **ALWAYS** use HSL-based semantic palettes with clear naming
51
+
52
+ ### Layout Anti-Patterns
53
+
54
+ - **NEVER** nest cards inside cards (card-in-card = instant slop flag)
55
+ - **NEVER** put a rounded-square icon tile above every heading
56
+ - **NEVER** center-align long paragraphs (> 2 lines)
57
+ - **NEVER** use gray text on colored backgrounds (contrast failure)
58
+
59
+ ### Animation Anti-Patterns
60
+
61
+ - **NEVER** use bounce or elastic easing in raw CSS — it feels dated (circa 2014)
62
+ - **NEVER** add animations just to show they work
63
+ - **ALWAYS** use `ease-out` for enter, `ease-in` for exit, `ease-in-out` for continuous
64
+
65
+ ---
66
+
67
+ ## [PASS] Required Standards
68
+
69
+ ### Accessibility Checklist
70
+
71
+ Before shipping any UI, verify:
72
+
73
+ - [ ] Text contrast ratio ≥ 4.5:1 for normal text (WCAG AA)
74
+ - [ ] Text contrast ratio ≥ 3:1 for large text (≥ 18px bold or ≥ 24px)
75
+ - [ ] All interactive elements have `aria-label` or visible text
76
+ - [ ] Touch targets are minimum 44×44px (48×48px recommended)
77
+ - [ ] Focus states are visible and styled (not just browser default)
78
+ - [ ] Images have meaningful `alt` text (or `alt=""` if decorative)
79
+ - [ ] Form fields have associated `<label>` elements
80
+ - [ ] Keyboard navigation works without mouse
81
+ - [ ] No color alone conveys information (use icons + text too)
82
+
83
+ ### Semantic Color Palette — shadcn/ui & Tailwind CSS v4 Format
84
+
85
+ Generate palettes in the format compatible with shadcn/ui's `globals.css`. Always support both light and dark themes as this is the de-facto standard:
86
+
87
+ ```css
88
+ @layer base {
89
+ :root {
90
+ --background: 220 13% 98%;
91
+ --foreground: 220 13% 9%;
92
+ --card: 220 13% 100%;
93
+ --card-foreground: 220 13% 9%;
94
+ --muted: 220 13% 95%;
95
+ --muted-foreground: 220 9% 46%;
96
+ --border: 220 13% 90%;
97
+ --input: 220 13% 90%;
98
+ --primary: 258 90% 56%;
99
+ --primary-foreground: 0 0% 100%;
100
+ --secondary: 220 13% 94%;
101
+ --secondary-foreground: 220 13% 9%;
102
+ --accent: 258 90% 56%;
103
+ --accent-foreground: 0 0% 100%;
104
+ --destructive: 0 84% 60%;
105
+ --destructive-foreground: 0 0% 100%;
106
+ --ring: 258 90% 56%;
107
+ --radius: 0.5rem;
108
+ }
109
+
110
+ .dark {
111
+ --background: 220 13% 9%;
112
+ --foreground: 210 40% 98%;
113
+ --card: 220 11% 13%;
114
+ --card-foreground: 210 40% 98%;
115
+ --muted: 220 11% 16%;
116
+ --muted-foreground: 215 16% 65%;
117
+ --border: 217 19% 22%;
118
+ --input: 217 19% 22%;
119
+ --primary: 258 90% 66%;
120
+ --primary-foreground: 0 0% 100%;
121
+ --secondary: 220 11% 18%;
122
+ --secondary-foreground: 210 40% 98%;
123
+ --accent: 258 90% 66%;
124
+ --accent-foreground: 0 0% 100%;
125
+ --destructive: 0 84% 60%;
126
+ --destructive-foreground: 0 0% 100%;
127
+ --ring: 258 90% 66%;
128
+ }
129
+ }
130
+ ```
131
+
132
+ > **Rule**: NEVER define colors as raw hex/rgb. ALWAYS use HSL space values so Tailwind opacity modifiers (`text-primary/80`) work correctly.
133
+
134
+ ### Spacing System (Tailwind)
135
+
136
+ Use Tailwind spacing utilities. **Never use arbitrary values** like `gap-[17px]`:
137
+
138
+ - `gap-1` / `p-1` — 4px micro gaps
139
+ - `gap-2` / `p-2` — 8px component internal
140
+ - `gap-4` / `p-4` — 16px standard padding
141
+ - `gap-6` / `p-6` — 24px section gaps
142
+ - `gap-8` / `p-8` — 32px block separators
143
+ - `gap-12` / `py-12` — 48px section separators
144
+ - `gap-20` / `py-20` — 80px hero spacing
145
+
146
+ ### Typography Scale
147
+
148
+ Use a modular type scale (1.25 or 1.333 ratio):
149
+
150
+ ```
151
+ xs: 11px / 0.688rem (text-xs)
152
+ sm: 13px / 0.813rem (text-sm)
153
+ base: 16px / 1rem (text-base)
154
+ lg: 20px / 1.25rem (text-lg)
155
+ xl: 24px / 1.5rem (text-xl)
156
+ 2xl: 32px / 2rem (text-2xl)
157
+ 3xl: 40px / 2.5rem (text-3xl)
158
+ 4xl: 56px / 3.5rem (text-4xl)
159
+ ```
160
+
161
+ Typography utilities:
162
+
163
+ - Long headlines: use `text-balance` (prevents orphan words)
164
+ - Body paragraphs: use `text-pretty` (smart line breaks)
165
+ - Number tables: use `tabular-nums` class (not custom CSS)
166
+
167
+ ---
168
+
169
+ ## Design Parameters (Taste Equalizers)
170
+
171
+ Always set and document the following three parameters (1-10 scale) before starting any design task, to escape generic AI defaults:
172
+
173
+ - **DESIGN_VARIANCE (1-10)**: Grid and Layout structures.
174
+ - 1-3 = Clean, centered layouts, standard grids (Enterprise, Docs).
175
+ - 4-7 = Asymmetric containers, off-grid elements, sticky sidebars (SaaS, Creative tools).
176
+ - 8-10 = Broken grids, overlapping items, editorial style (Portfolios, Agencies).
177
+ - **MOTION_INTENSITY (1-10)**: Animation depth.
178
+ - 1-3 = Basic hover states and micro-interactions only.
179
+ - 4-7 = Page transitions, enter/exit animations, list staggers.
180
+ - 8-10 = Magnetic elements, complex scroll-triggered animations (GSAP territory).
181
+ - **VISUAL_DENSITY (1-10)**: Information architecture.
182
+ - 1-3 = Luxury, airy, massive whitespace (Landing pages).
183
+ - 4-7 = Standard product density (Consumer apps).
184
+ - 8-10 = Dense, compact, dashboard-style (Pro tools, IDEs, Trading platforms).
185
+
186
+ ## Adaptive Aesthetics (Project Mapping)
187
+
188
+ Select the base aesthetic based on the project domain:
189
+
190
+ - **Fintech / Enterprise**: Swiss Minimalism, Neumorphism (High trust, clean, DESIGN_VARIANCE: 2-4).
191
+ - **AI Tools / DevTools**: Dark OLED Luxury, Glassmorphism (Modern, tech-forward, DESIGN_VARIANCE: 5-7).
192
+ - **Creative / Portfolios**: Brutalism, Maximalist, Aurora (Bold, expressive, DESIGN_VARIANCE: 8-10).
193
+
194
+ ## Design Memory & Consistency
195
+
196
+ **CRITICAL**: You must preserve design decisions between sessions to avoid stylistic drift.
197
+ Whenever you establish core UI tokens (fonts, color scales, border radii, equalizers), write them to `.interface-design/system.md`. In subsequent sessions, ALWAYS read this file before generating new components.
198
+
199
+ ---
200
+
201
+ ## Design Domains
202
+
203
+ ### Product UI (SaaS / Dashboard / App)
204
+
205
+ - Functional over decorative
206
+ - Dense information where needed (use compact variants)
207
+ - Table zebra striping: use `5%` opacity, not hard borders
208
+ - Data visualization: prefer Chart.js or Recharts, label all axes
209
+ - Loading states: skeleton screens, never spinners alone
210
+ - **Empty States**: ALWAYS design the empty state for every list/table/feed. Never leave a blank screen. Include:
211
+ 1. An illustration or meaningful icon
212
+ 2. A helpful, context-aware message ("No results yet" not "No data")
213
+ 3. A clear primary action CTA ("Create your first project →")
214
+
215
+ ### Marketing / Landing Pages
216
+
217
+ - Hero: full viewport height, one clear CTA
218
+ - Social proof above the fold when possible
219
+ - CTA buttons: filled primary + ghost secondary (never two filled)
220
+ - Testimonials: real photos, full name, company
221
+
222
+ ### Forms
223
+
224
+ - Label above field (not placeholder-as-label)
225
+ - Inline validation (show errors on blur, not on submit)
226
+ - Group related fields visually
227
+ - Progress indicator for multi-step flows
228
+
229
+ ---
230
+
231
+ ## Image-First Pipeline (Design Sprints)
232
+
233
+ If you have access to image generation tools (e.g., DALL-E, Midjourney integrations) and the task involves creating a net-new UI page or component, follow the **Image-First Pipeline**:
234
+
235
+ 1. **Generate**: Create 1-3 reference images ("mockups", "brand boards") of the desired UI using image generation.
236
+ 2. **Analyze**: Review the generated images for layout, spacing, and typography choices.
237
+ 3. **Implement**: Write the code to match the aesthetic of the generated reference images.
238
+
239
+ _Do not skip straight to code for major UI overhauls without a visual reference if generation is available._
240
+
241
+ ---
242
+
243
+ ## UI Style Toolkit
244
+
245
+ ### Glassmorphism (Use Sparingly)
246
+
247
+ ```css
248
+ background: rgba(255, 255, 255, 0.05);
249
+ backdrop-filter: blur(20px);
250
+ border: 1px solid rgba(255, 255, 255, 0.1);
251
+ ```
252
+
253
+ ### Subtle Shadows (Dark UI)
254
+
255
+ ```css
256
+ /* Card elevation */
257
+ box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.6);
258
+ /* Floating element */
259
+ box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
260
+ ```
261
+
262
+ ### Micro-animations
263
+
264
+ **CSS (for simple, lightweight elements):**
265
+
266
+ ```css
267
+ /* Standard transition */
268
+ transition: all 0.15s ease-out;
269
+ /* Hover lift */
270
+ transform: translateY(-2px);
271
+ /* Button press */
272
+ transform: scale(0.97);
273
+ /* Fade in */
274
+ @keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }
275
+ ```
276
+
277
+ **Framer Motion (for complex layout transitions and orchestration):**
278
+
279
+ For complex UI like modals, popovers, layout shifts, and multi-element orchestration, prefer Framer Motion over raw CSS keyframes. Keep animations quick and purposeful:
280
+
281
+ ```tsx
282
+ // [GOOD] Modal entrance — use highly damped spring for physical feel (like Vercel/Linear)
283
+ <motion.div
284
+ initial={{ opacity: 0, scale: 0.96, y: 8 }}
285
+ animate={{ opacity: 1, scale: 1, y: 0 }}
286
+ exit={{ opacity: 0, scale: 0.96, y: 8 }}
287
+ transition={{ type: "spring", stiffness: 400, damping: 30 }}
288
+ />
289
+
290
+ // [GOOD] List item stagger
291
+ <motion.li
292
+ initial={{ opacity: 0, x: -8 }}
293
+ animate={{ opacity: 1, x: 0 }}
294
+ transition={{ duration: 0.2, ease: "easeOut" }}
295
+ />
296
+
297
+ // [BAD] Never use low damping (bouncy feel)
298
+ transition={{ type: "spring", stiffness: 200, damping: 8 }} // WRONG
299
+ ```
300
+
301
+ **Rule**: `duration` must always be `< 0.3s` for micro-interactions. Respect `prefers-reduced-motion`.
302
+
303
+ ---
304
+
305
+ ## Domain Search Guide
306
+
307
+ When choosing styles, reference these domains:
308
+
309
+ - `style` — UI style options (glassmorphism, neobrutalism, minimalism)
310
+ - `typography` — Font pairing recommendations
311
+ - `color` — Color palettes by product type
312
+ - `ux` — Best practices and anti-patterns
313
+ - `gsap` — Animation patterns by intensity (hover, scroll, transition)
314
+
315
+ ## Role Integration
316
+
317
+ ---
318
+
319
+ ## Tailwind CSS v4 (CSS-First Modern Architecture)
320
+
321
+ In Tailwind CSS v4, styling configuration is native CSS without `tailwind.config.js`:
322
+
323
+ ```css
324
+ @import "tailwindcss";
325
+
326
+ @theme {
327
+ --color-primary: #3b82f6;
328
+ --color-primary-foreground: #ffffff;
329
+ --color-surface: #0f172a;
330
+ --color-surface-muted: #1e293b;
331
+ --font-sans: "Inter", -apple-system, sans-serif;
332
+ --font-mono: "JetBrains Mono", monospace;
333
+ }
334
+ ```
335
+
336
+ - **Zero JavaScript Config**: Define theme variables directly in CSS `@theme`.
337
+ - **Native CSS Variables**: Use `var(--color-...)` for dynamic runtime theming and dark mode.
338
+ - **Dynamic Viewports**: Use `h-dvh` and `min-h-dvh` for full-height layouts that behave properly on mobile browsers.
339
+
340
+ ---
341
+
342
+ ## Core Web Vitals 2026: INP (Interaction to Next Paint)
343
+
344
+ - **Target**: INP < 200ms (replaces legacy FID).
345
+ - **Rule**: Never block the main thread for > 50ms during click, keypress, or tap event handlers.
346
+ - Wrap heavy UI updates in `startTransition`:
347
+
348
+ ```tsx
349
+ startTransition(() => {
350
+ setFilter(newFilter);
351
+ });
352
+ ```
353
+
354
+ - Use Web Workers or chunks for heavy client-side filtering and data processing.
355
+
356
+ ---
357
+
358
+ ## Code Examples
359
+
360
+ See `EXAMPLES.md` for detailed code examples.
361
+
362
+ ## Validation Checklist
363
+
364
+ What to verify during the review phase before completing the task.
365
+
366
+ ## Common Mistakes
367
+
368
+ Anti-patterns and things to explicitly avoid. See `TROUBLESHOOTING.md`.
369
+
370
+ ## Integration Notes
371
+
372
+ How this skill interacts with other skills.
373
+
374
+
375
+ <!-- Source: EXAMPLES.md -->
376
+
377
+ # UI/UX Pro Examples — Anti-patterns vs ContextOS Standard
378
+
379
+ ## Example 1: Accessible Icon Button with Visible Focus States
380
+
381
+ ### Anti-pattern: Anti-pattern (Missing accessible name and arbitrary color values)
382
+
383
+ ```tsx
384
+ // BAD: inaccessible to screen readers, missing focus ring, arbitrary hex
385
+ <button className="bg-[#5a4fcf] p-[7px] rounded-[5px]" onClick={onClose}>
386
+ <XIcon />
387
+ </button>
388
+ ```
389
+
390
+ ### Best practice: ContextOS Standard (Semantic token scales & ARIA label)
391
+
392
+ ```tsx
393
+ // GOOD: full keyboard accessibility, semantic tokens, focus-visible ring
394
+ <button
395
+ type="button"
396
+ aria-label="Close modal dialog"
397
+ onClick={onClose}
398
+ className="inline-flex items-center justify-center rounded-lg p-2 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
399
+ >
400
+ <X className="h-4 w-4" aria-hidden="true" />
401
+ </button>
402
+ ```
403
+
404
+ ---
405
+
406
+ ## Example 2: Stat Card Hierarchy
407
+
408
+ ### Anti-pattern: Anti-pattern (Flat low-contrast layout with purple-gradient cliche)
409
+
410
+ ```tsx
411
+ // BAD: cliche AI gradient, poor typographic hierarchy
412
+ <div className="bg-gradient-to-r from-purple-500 to-blue-500 p-4 rounded-xl text-white">
413
+ <div>Total Revenue</div>
414
+ <div className="text-xl">$45,231.89</div>
415
+ </div>
416
+ ```
417
+
418
+ ### Best practice: ContextOS Standard (Refined editorial typography & subtle depth)
419
+
420
+ ```tsx
421
+ // GOOD: high contrast, monospace numerical accent, subtle border
422
+ <div className="rounded-xl border border-border/50 bg-card p-6 shadow-sm transition-all hover:shadow-md">
423
+ <div className="flex items-center justify-between">
424
+ <span className="text-xs font-medium uppercase tracking-wider text-muted-foreground">
425
+ Total Revenue
426
+ </span>
427
+ <TrendingUp className="h-4 w-4 text-emerald-500" aria-hidden="true" />
428
+ </div>
429
+ <div className="mt-3 flex items-baseline gap-2">
430
+ <span className="font-mono text-3xl font-semibold tracking-tight text-foreground">
431
+ $45,231.89
432
+ </span>
433
+ <span className="font-mono text-xs font-medium text-emerald-600 dark:text-emerald-400">
434
+ +14.2%
435
+ </span>
436
+ </div>
437
+ </div>
438
+ ```
439
+
440
+ <!-- Source: TROUBLESHOOTING.md -->
441
+
442
+ # ui-ux-pro Troubleshooting & Common Mistakes
443
+
444
+ ## 1. Obvious AI Design Tells
445
+
446
+ - **Symptom**: The interface immediately looks like a generic AI prototype.
447
+ - **Root Cause**: Using Inter alone, pure black (#000000), purple-blue gradients, and rounded icon squares above every title.
448
+ - **Fix**: Use tinted backgrounds (#090A0F), pair primary font with JetBrains Mono for code/numbers, use subtle border highlights.
449
+
450
+ ## 2. Contrast Failures in Secondary Elements
451
+
452
+ - **Symptom**: Captions, timestamps, and borders are invisible or impossible to read.
453
+ - **Root Cause**: Using flat #666 or #444 grays without testing against actual background luminance.
454
+ - **Fix**: Always test contrast ratios (minimum 4.5:1 for body, 3:1 for graphical boundaries) using semantic theme tokens.
455
+
456
+ ## 3. Nesting Cards Inside Cards
457
+
458
+ - **Symptom**: Visual claustrophobia and slop aesthetic.
459
+ - **Root Cause**: Putting bordered cards inside other bordered cards.
460
+ - **Fix**: Flatten the hierarchy. Use background surface contrast and negative space instead of border-in-border nesting.
@@ -0,0 +1,177 @@
1
+ ---
2
+ name: UX Design
3
+ description: >
4
+ ContextOS skill for UX Design
5
+ ---
6
+ # UX Design
7
+
8
+ ## Overview
9
+
10
+ User experience and interaction design standard. Enforces progressive disclosure, predictable user flows, designed empty/loading/error states, form usability, and keyboard navigation ergonomics.
11
+
12
+ ## When to Use
13
+
14
+ Activate when designing complex multi-step workflows, onboarding funnels, form validation feedback, error recovery flows, and user journeys.
15
+
16
+ ## Rules & Patterns
17
+ <!-- Source: ux.md -->
18
+
19
+ ## UX Design — Best Practices
20
+
21
+ ## Information Architecture
22
+
23
+ - **Mental models** — organize content the way users think, not the way your code is structured
24
+ - **Card sorting** — group features into logical categories
25
+ - **Navigation structure** — no more than 3 clicks to any page
26
+ - **Naming** — use user's language, not internal jargon
27
+
28
+ ## User Flows
29
+
30
+ ### Design every state
31
+
32
+ Every screen has 5 states. Design ALL of them:
33
+
34
+ 1. **Empty state** — first visit, no data yet. Include CTA to get started
35
+ 2. **Loading state** — skeleton screens > spinners
36
+ 3. **Partial state** — some data, not complete
37
+ 4. **Ideal state** — normal usage with data
38
+ 5. **Error state** — what went wrong and how to fix it
39
+
40
+ ### Reduce cognitive load
41
+
42
+ - **Progressive disclosure** — show only what's needed now
43
+ - **Sensible defaults** — pre-fill what you can
44
+ - **Inline help** — tooltips and contextual guidance
45
+ - **Confirmation for destructive actions** — but NOT for every action
46
+
47
+ ## Forms UX
48
+
49
+ - Show progress for multi-step forms
50
+ - Validate inline (on blur), not on submit
51
+ - Show password requirements as the user types
52
+ - Auto-focus the first input
53
+ - Use appropriate input types (email, tel, date)
54
+ - Disable submit button only when form is submitting, never as "validation"
55
+
56
+ ## Onboarding
57
+
58
+ - **Quick win** — let users see value within 30 seconds
59
+ - **Minimal signup** — only ask for what's absolutely needed
60
+ - **Progressive onboarding** — teach features as users encounter them
61
+ - **Skip option** — always let users skip tutorials
62
+
63
+ ## Feedback
64
+
65
+ - Every action needs feedback (success, error, pending)
66
+ - Use toast notifications for non-blocking feedback
67
+ - Use inline messages for form validation
68
+ - Loading states should be < 300ms before showing (avoid flash)
69
+ - Optimistic UI for fast-perceived actions
70
+
71
+ ## Mobile UX
72
+
73
+ - Touch targets: minimum 44x44px
74
+ - Thumb zones — place primary actions within easy reach
75
+ - Bottom navigation for core actions
76
+ - Pull-to-refresh for content lists
77
+ - Haptic feedback for important actions
78
+
79
+ ## Psychology Principles
80
+
81
+ - **Fitts's Law** — make important targets large and close
82
+ - **Hick's Law** — reduce choices to reduce decision time
83
+ - **Jakob's Law** — users prefer familiar patterns
84
+ - **Peak-End Rule** — make the last interaction great
85
+ - **Aesthetic-Usability Effect** — beautiful things are perceived as easier to use
86
+
87
+ ## Usability Heuristics (Nielsen)
88
+
89
+ 1. Visibility of system status
90
+ 2. Match between system and real world
91
+ 3. User control and freedom (undo, escape)
92
+ 4. Consistency and standards
93
+ 5. Error prevention
94
+ 6. Recognition rather than recall
95
+ 7. Flexibility and efficiency of use
96
+ 8. Aesthetic and minimalist design
97
+ 9. Help users recognize and recover from errors
98
+ 10. Help and documentation
99
+
100
+
101
+ ## Code Examples
102
+
103
+ See `EXAMPLES.md` for detailed code examples.
104
+
105
+ ## Validation Checklist
106
+
107
+ What to verify during the review phase before completing the task.
108
+
109
+ ## Common Mistakes
110
+
111
+ Anti-patterns and things to explicitly avoid. See `TROUBLESHOOTING.md`.
112
+
113
+ ## Integration Notes
114
+
115
+ How this skill interacts with other skills.
116
+
117
+
118
+ <!-- Source: EXAMPLES.md -->
119
+
120
+ # ux-design Examples — Anti-patterns vs ContextOS Standard
121
+
122
+ ## Example 1: Destructive Actions
123
+
124
+ ### Anti-pattern: Instant Deletion Without Confirmation or Recovery
125
+
126
+ ```tsx
127
+ // BAD: Immediate delete on click, no confirmation, irreversible data loss
128
+ <button onClick={() => deleteProject(project.id)}>Delete</button>
129
+ ```
130
+
131
+ ### Best practice: ContextOS Standard (Two-Step Confirmation or Undo Toast)
132
+
133
+ ```tsx
134
+ // GOOD: Clear confirmation dialog stating exact item name and non-reversible impact
135
+ <AlertDialog>
136
+ <AlertDialogTrigger asChild>
137
+ <Button variant="destructive">Delete Project</Button>
138
+ </AlertDialogTrigger>
139
+ <AlertDialogContent>
140
+ <AlertDialogHeader>
141
+ <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
142
+ <AlertDialogDescription>
143
+ This action cannot be undone. This will permanently delete <strong>{project.name}</strong>
144
+ and all associated API keys.
145
+ </AlertDialogDescription>
146
+ </AlertDialogHeader>
147
+ <AlertDialogFooter>
148
+ <AlertDialogCancel>Cancel</AlertDialogCancel>
149
+ <AlertDialogAction onClick={handleDelete} className="bg-destructive">
150
+ Delete permanently
151
+ </AlertDialogAction>
152
+ </AlertDialogFooter>
153
+ </AlertDialogContent>
154
+ </AlertDialog>
155
+ ```
156
+
157
+ <!-- Source: TROUBLESHOOTING.md -->
158
+
159
+ # ux-design Troubleshooting & Common Mistakes
160
+
161
+ ## 1. Mystery Meat Navigation
162
+
163
+ - **Symptom**: Users don't know what icons do and have to hover to guess.
164
+ - **Root Cause**: Relying on ambiguous icons without text labels or tooltips.
165
+ - **Fix**: Pair icons with text labels wherever space permits; always provide accessible tooltips on icon-only actions.
166
+
167
+ ## 2. Loss of User Input on Interruption
168
+
169
+ - **Symptom**: User accidentally clicks outside a long modal form and all typed content vanishes.
170
+ - **Root Cause**: Modals closing on backdrop click without checking form dirty state.
171
+ - **Fix**: Prevent dismiss on outside click when form has unsaved modifications, or autosave drafts to local storage.
172
+
173
+ ## 3. Double-Click Submission Bugs
174
+
175
+ - **Symptom**: Users double-click a submit button on slow network, resulting in duplicate charges or items.
176
+ - **Root Cause**: Form buttons remaining active during in-flight network requests.
177
+ - **Fix**: Disable button and show spinner state as soon as form submission begins.