cfsa-antigravity 1.0.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 (378) hide show
  1. package/bin/cli.mjs +324 -0
  2. package/package.json +34 -0
  3. package/template/.agent/instructions/commands.md +48 -0
  4. package/template/.agent/instructions/patterns.md +61 -0
  5. package/template/.agent/instructions/structure.md +29 -0
  6. package/template/.agent/instructions/tech-stack.md +43 -0
  7. package/template/.agent/instructions/workflow.md +41 -0
  8. package/template/.agent/kit-sync.md +15 -0
  9. package/template/.agent/rules/boundary-not-placeholder.md +146 -0
  10. package/template/.agent/rules/completion-checklist.md +48 -0
  11. package/template/.agent/rules/decision-classification.md +103 -0
  12. package/template/.agent/rules/extensibility.md +47 -0
  13. package/template/.agent/rules/question-vs-command.md +81 -0
  14. package/template/.agent/rules/security-first.md +43 -0
  15. package/template/.agent/rules/specificity-standards.md +54 -0
  16. package/template/.agent/rules/tdd-contract-first.md +57 -0
  17. package/template/.agent/rules/vertical-slices.md +42 -0
  18. package/template/.agent/skill-library/MANIFEST.md +480 -0
  19. package/template/.agent/skill-library/README.md +38 -0
  20. package/template/.agent/skill-library/meta/brand-guidelines/SKILL.md +73 -0
  21. package/template/.agent/skill-library/meta/claude-code/README.md +9 -0
  22. package/template/.agent/skill-library/meta/claude-code/agent-development/SKILL.md +415 -0
  23. package/template/.agent/skill-library/meta/claude-code/hook-development/SKILL.md +712 -0
  24. package/template/.agent/skill-library/meta/claude-code/plugin-structure/SKILL.md +476 -0
  25. package/template/.agent/skill-library/meta/git-advanced/SKILL.md +972 -0
  26. package/template/.agent/skill-library/meta/mcp-builder/SKILL.md +236 -0
  27. package/template/.agent/skill-library/meta/product-marketing-context/SKILL.md +241 -0
  28. package/template/.agent/skill-library/meta/regex-patterns/SKILL.md +751 -0
  29. package/template/.agent/skill-library/meta/tmux-processes/SKILL.md +210 -0
  30. package/template/.agent/skill-library/meta/using-tmux-for-interactive-commands/SKILL.md +178 -0
  31. package/template/.agent/skill-library/stack/3d/threejs-pro/SKILL.md +300 -0
  32. package/template/.agent/skill-library/stack/ai/ai-sdk/SKILL.md +77 -0
  33. package/template/.agent/skill-library/stack/ai/langchain/SKILL.md +530 -0
  34. package/template/.agent/skill-library/stack/ai/ollama/SKILL.md +321 -0
  35. package/template/.agent/skill-library/stack/ai/openai-sdk/SKILL.md +549 -0
  36. package/template/.agent/skill-library/stack/analytics/google-analytics/SKILL.md +153 -0
  37. package/template/.agent/skill-library/stack/api/graphql/SKILL.md +1061 -0
  38. package/template/.agent/skill-library/stack/api/trpc/SKILL.md +576 -0
  39. package/template/.agent/skill-library/stack/auth/authjs/SKILL.md +569 -0
  40. package/template/.agent/skill-library/stack/auth/clerk/SKILL.md +590 -0
  41. package/template/.agent/skill-library/stack/auth/firebase-auth/SKILL.md +734 -0
  42. package/template/.agent/skill-library/stack/cms/payload-cms/SKILL.md +573 -0
  43. package/template/.agent/skill-library/stack/cms/shopify/SKILL.md +1193 -0
  44. package/template/.agent/skill-library/stack/cms/wordpress/SKILL.md +1104 -0
  45. package/template/.agent/skill-library/stack/css/sass-scss/SKILL.md +1121 -0
  46. package/template/.agent/skill-library/stack/css/tailwind-css-patterns/SKILL.md +863 -0
  47. package/template/.agent/skill-library/stack/css/tailwind-design-system/SKILL.md +490 -0
  48. package/template/.agent/skill-library/stack/css/vanilla-css/SKILL.md +1078 -0
  49. package/template/.agent/skill-library/stack/databases/clickhouse/SKILL.md +311 -0
  50. package/template/.agent/skill-library/stack/databases/influxdb/SKILL.md +280 -0
  51. package/template/.agent/skill-library/stack/databases/lancedb/SKILL.md +415 -0
  52. package/template/.agent/skill-library/stack/databases/mongodb/SKILL.md +1169 -0
  53. package/template/.agent/skill-library/stack/databases/neo4j/SKILL.md +839 -0
  54. package/template/.agent/skill-library/stack/databases/pgvector/SKILL.md +241 -0
  55. package/template/.agent/skill-library/stack/databases/pinecone/SKILL.md +212 -0
  56. package/template/.agent/skill-library/stack/databases/postgresql/SKILL.md +658 -0
  57. package/template/.agent/skill-library/stack/databases/qdrant/SKILL.md +312 -0
  58. package/template/.agent/skill-library/stack/databases/redis/SKILL.md +1079 -0
  59. package/template/.agent/skill-library/stack/databases/spacetimedb/SKILL.md +532 -0
  60. package/template/.agent/skill-library/stack/databases/sqlite/SKILL.md +1132 -0
  61. package/template/.agent/skill-library/stack/databases/supabase/SKILL.md +640 -0
  62. package/template/.agent/skill-library/stack/databases/surrealdb-expert/SKILL.md +945 -0
  63. package/template/.agent/skill-library/stack/databases/timescaledb/SKILL.md +745 -0
  64. package/template/.agent/skill-library/stack/databases/weaviate/SKILL.md +218 -0
  65. package/template/.agent/skill-library/stack/devops/github-actions/SKILL.md +554 -0
  66. package/template/.agent/skill-library/stack/devops/kubernetes/SKILL.md +950 -0
  67. package/template/.agent/skill-library/stack/devops/nginx/SKILL.md +841 -0
  68. package/template/.agent/skill-library/stack/devops/terraform/SKILL.md +860 -0
  69. package/template/.agent/skill-library/stack/email/resend/SKILL.md +391 -0
  70. package/template/.agent/skill-library/stack/engines/godot/SKILL.md +488 -0
  71. package/template/.agent/skill-library/stack/extensions/chrome-extension/SKILL.md +375 -0
  72. package/template/.agent/skill-library/stack/extensions/vscode-extension/SKILL.md +453 -0
  73. package/template/.agent/skill-library/stack/frameworks/astro-framework/SKILL.md +162 -0
  74. package/template/.agent/skill-library/stack/frameworks/electron/SKILL.md +1286 -0
  75. package/template/.agent/skill-library/stack/frameworks/fastapi/SKILL.md +650 -0
  76. package/template/.agent/skill-library/stack/frameworks/hono/SKILL.md +90 -0
  77. package/template/.agent/skill-library/stack/frameworks/nestjs/SKILL.md +878 -0
  78. package/template/.agent/skill-library/stack/frameworks/nextjs/SKILL.md +635 -0
  79. package/template/.agent/skill-library/stack/frameworks/nuxt/SKILL.md +564 -0
  80. package/template/.agent/skill-library/stack/frameworks/sveltekit/SKILL.md +614 -0
  81. package/template/.agent/skill-library/stack/frameworks/tauri/SKILL.md +920 -0
  82. package/template/.agent/skill-library/stack/gamedev/godot/SKILL.md +1032 -0
  83. package/template/.agent/skill-library/stack/gamedev/unity/SKILL.md +1175 -0
  84. package/template/.agent/skill-library/stack/hosting/aws/SKILL.md +467 -0
  85. package/template/.agent/skill-library/stack/hosting/cloudflare/SKILL.md +201 -0
  86. package/template/.agent/skill-library/stack/hosting/docker-expert/SKILL.md +409 -0
  87. package/template/.agent/skill-library/stack/hosting/vercel/SKILL.md +484 -0
  88. package/template/.agent/skill-library/stack/languages/bash-scripting/SKILL.md +773 -0
  89. package/template/.agent/skill-library/stack/languages/c-cpp/SKILL.md +712 -0
  90. package/template/.agent/skill-library/stack/languages/gdscript/SKILL.md +789 -0
  91. package/template/.agent/skill-library/stack/languages/go/SKILL.md +664 -0
  92. package/template/.agent/skill-library/stack/languages/java/SKILL.md +778 -0
  93. package/template/.agent/skill-library/stack/languages/kotlin/SKILL.md +665 -0
  94. package/template/.agent/skill-library/stack/languages/python/SKILL.md +678 -0
  95. package/template/.agent/skill-library/stack/languages/rust/SKILL.md +673 -0
  96. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/SKILL.md +141 -0
  97. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/advanced-generics.md +90 -0
  98. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/branded-types.md +57 -0
  99. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/builder-pattern.md +71 -0
  100. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/common-pitfalls.md +135 -0
  101. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/conditional-types.md +27 -0
  102. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/decorators.md +98 -0
  103. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/discriminated-unions.md +62 -0
  104. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/mapped-types.md +53 -0
  105. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/performance-best-practices.md +104 -0
  106. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/template-literal-types.md +49 -0
  107. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/testing-types.md +112 -0
  108. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/type-guards.md +70 -0
  109. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/type-inference.md +101 -0
  110. package/template/.agent/skill-library/stack/languages/typescript-advanced-patterns/references/utility-types.md +98 -0
  111. package/template/.agent/skill-library/stack/languages/vanilla-javascript/SKILL.md +803 -0
  112. package/template/.agent/skill-library/stack/messaging/kafka/SKILL.md +235 -0
  113. package/template/.agent/skill-library/stack/mobile/expo-react-native/SKILL.md +665 -0
  114. package/template/.agent/skill-library/stack/mobile/flutter/SKILL.md +316 -0
  115. package/template/.agent/skill-library/stack/mobile/react-native/SKILL.md +337 -0
  116. package/template/.agent/skill-library/stack/monitoring/posthog/SKILL.md +396 -0
  117. package/template/.agent/skill-library/stack/monitoring/sentry/SKILL.md +509 -0
  118. package/template/.agent/skill-library/stack/observability/datadog/SKILL.md +179 -0
  119. package/template/.agent/skill-library/stack/observability/distributed-tracing/SKILL.md +140 -0
  120. package/template/.agent/skill-library/stack/observability/logging-best-practices/SKILL.md +168 -0
  121. package/template/.agent/skill-library/stack/observability/opentelemetry/SKILL.md +164 -0
  122. package/template/.agent/skill-library/stack/observability/prometheus-grafana/SKILL.md +246 -0
  123. package/template/.agent/skill-library/stack/observability/python-observability/SKILL.md +158 -0
  124. package/template/.agent/skill-library/stack/orm/drizzle-orm/SKILL.md +613 -0
  125. package/template/.agent/skill-library/stack/orm/prisma/SKILL.md +744 -0
  126. package/template/.agent/skill-library/stack/payments/lemonsqueezy/SKILL.md +393 -0
  127. package/template/.agent/skill-library/stack/payments/stripe-integration/SKILL.md +457 -0
  128. package/template/.agent/skill-library/stack/queue/bullmq/SKILL.md +385 -0
  129. package/template/.agent/skill-library/stack/queue/inngest/SKILL.md +438 -0
  130. package/template/.agent/skill-library/stack/realtime/socketio/SKILL.md +595 -0
  131. package/template/.agent/skill-library/stack/search/elasticsearch/SKILL.md +248 -0
  132. package/template/.agent/skill-library/stack/search/meilisearch/SKILL.md +385 -0
  133. package/template/.agent/skill-library/stack/security/crypto-patterns/SKILL.md +437 -0
  134. package/template/.agent/skill-library/stack/security/csp-cors-headers/SKILL.md +588 -0
  135. package/template/.agent/skill-library/stack/security/dependency-auditing/SKILL.md +560 -0
  136. package/template/.agent/skill-library/stack/security/input-sanitization/SKILL.md +430 -0
  137. package/template/.agent/skill-library/stack/security/owasp-web-security/SKILL.md +421 -0
  138. package/template/.agent/skill-library/stack/state/tanstack-query/SKILL.md +637 -0
  139. package/template/.agent/skill-library/stack/state/zustand/SKILL.md +483 -0
  140. package/template/.agent/skill-library/stack/storage/aws-s3/SKILL.md +415 -0
  141. package/template/.agent/skill-library/stack/testing/playwright/SKILL.md +641 -0
  142. package/template/.agent/skill-library/stack/testing/storybook/SKILL.md +923 -0
  143. package/template/.agent/skill-library/stack/testing/testing-library/SKILL.md +872 -0
  144. package/template/.agent/skill-library/stack/testing/vitest/SKILL.md +714 -0
  145. package/template/.agent/skill-library/stack/ui/react-best-practices/SKILL.md +877 -0
  146. package/template/.agent/skill-library/stack/ui/react-composition-patterns/SKILL.md +1107 -0
  147. package/template/.agent/skill-library/stack/ui/react-flow/SKILL.md +425 -0
  148. package/template/.agent/skill-library/stack/ui/shadcn-ui/SKILL.md +703 -0
  149. package/template/.agent/skill-library/surface/api/api-caching/SKILL.md +458 -0
  150. package/template/.agent/skill-library/surface/api/api-documentation-openapi/SKILL.md +697 -0
  151. package/template/.agent/skill-library/surface/api/api-error-handling/SKILL.md +478 -0
  152. package/template/.agent/skill-library/surface/api/api-security-checklist/SKILL.md +147 -0
  153. package/template/.agent/skill-library/surface/api/api-versioning/SKILL.md +420 -0
  154. package/template/.agent/skill-library/surface/api/email-best-practices/SKILL.md +59 -0
  155. package/template/.agent/skill-library/surface/api/rate-limiting-abuse-protection/SKILL.md +147 -0
  156. package/template/.agent/skill-library/surface/api/rest-api-design/SKILL.md +478 -0
  157. package/template/.agent/skill-library/surface/api/webhook-design/SKILL.md +752 -0
  158. package/template/.agent/skill-library/surface/cli/cli-configuration-management/SKILL.md +445 -0
  159. package/template/.agent/skill-library/surface/cli/cli-error-diagnostics/SKILL.md +515 -0
  160. package/template/.agent/skill-library/surface/cli/cli-shell-integration/SKILL.md +479 -0
  161. package/template/.agent/skill-library/surface/cli/cli-ux-design/SKILL.md +477 -0
  162. package/template/.agent/skill-library/surface/desktop/desktop-app-distribution/SKILL.md +416 -0
  163. package/template/.agent/skill-library/surface/desktop/desktop-security-sandboxing/SKILL.md +407 -0
  164. package/template/.agent/skill-library/surface/desktop/desktop-ux-conventions/SKILL.md +361 -0
  165. package/template/.agent/skill-library/surface/desktop/native-os-integration/SKILL.md +563 -0
  166. package/template/.agent/skill-library/surface/extension/browser-extension-patterns/SKILL.md +482 -0
  167. package/template/.agent/skill-library/surface/extension/plugin-architecture-design/SKILL.md +632 -0
  168. package/template/.agent/skill-library/surface/extension/vscode-extension-development/SKILL.md +728 -0
  169. package/template/.agent/skill-library/surface/mobile/app-store-submission/SKILL.md +304 -0
  170. package/template/.agent/skill-library/surface/mobile/mobile-offline-sync/SKILL.md +443 -0
  171. package/template/.agent/skill-library/surface/mobile/mobile-responsive-patterns/SKILL.md +432 -0
  172. package/template/.agent/skill-library/surface/mobile/push-notifications/SKILL.md +495 -0
  173. package/template/.agent/skill-library/surface/web/accessibility-compliance/SKILL.md +827 -0
  174. package/template/.agent/skill-library/surface/web/ai-seo/SKILL.md +398 -0
  175. package/template/.agent/skill-library/surface/web/ai-seo/references/content-patterns.md +285 -0
  176. package/template/.agent/skill-library/surface/web/ai-seo/references/platform-ranking-factors.md +152 -0
  177. package/template/.agent/skill-library/surface/web/analytics-tracking/SKILL.md +309 -0
  178. package/template/.agent/skill-library/surface/web/analytics-tracking/references/event-library.md +260 -0
  179. package/template/.agent/skill-library/surface/web/analytics-tracking/references/ga4-implementation.md +300 -0
  180. package/template/.agent/skill-library/surface/web/analytics-tracking/references/gtm-implementation.md +390 -0
  181. package/template/.agent/skill-library/surface/web/authentication-ui-flows/SKILL.md +530 -0
  182. package/template/.agent/skill-library/surface/web/dark-mode-theming/SKILL.md +516 -0
  183. package/template/.agent/skill-library/surface/web/design-reference-data/SKILL.md +105 -0
  184. package/template/.agent/skill-library/surface/web/design-reference-data/data/charts.csv +26 -0
  185. package/template/.agent/skill-library/surface/web/design-reference-data/data/colors.csv +97 -0
  186. package/template/.agent/skill-library/surface/web/design-reference-data/data/landing.csv +31 -0
  187. package/template/.agent/skill-library/surface/web/design-reference-data/data/styles.csv +59 -0
  188. package/template/.agent/skill-library/surface/web/design-reference-data/data/typography.csv +58 -0
  189. package/template/.agent/skill-library/surface/web/design-reference-data/data/ux-guidelines.csv +100 -0
  190. package/template/.agent/skill-library/surface/web/design-reference-data/scripts/core.py +258 -0
  191. package/template/.agent/skill-library/surface/web/design-reference-data/scripts/design_system.py +1067 -0
  192. package/template/.agent/skill-library/surface/web/design-reference-data/scripts/search.py +106 -0
  193. package/template/.agent/skill-library/surface/web/form-handling-validation/SKILL.md +675 -0
  194. package/template/.agent/skill-library/surface/web/frontend-design/SKILL.md +1393 -0
  195. package/template/.agent/skill-library/surface/web/frontend-design/templates/cppn-hero.tsx +299 -0
  196. package/template/.agent/skill-library/surface/web/frontend-design/templates/wave-hero.tsx +875 -0
  197. package/template/.agent/skill-library/surface/web/frontend-verification/SKILL.md +111 -0
  198. package/template/.agent/skill-library/surface/web/frontend-verification/scripts/ux_audit.py +739 -0
  199. package/template/.agent/skill-library/surface/web/i18n-localization/SKILL.md +154 -0
  200. package/template/.agent/skill-library/surface/web/offline-first-pwa/SKILL.md +657 -0
  201. package/template/.agent/skill-library/surface/web/page-cro/SKILL.md +182 -0
  202. package/template/.agent/skill-library/surface/web/page-cro/references/experiments.md +248 -0
  203. package/template/.agent/skill-library/surface/web/programmatic-seo/SKILL.md +238 -0
  204. package/template/.agent/skill-library/surface/web/programmatic-seo/references/playbooks.md +308 -0
  205. package/template/.agent/skill-library/surface/web/schema-markup/SKILL.md +179 -0
  206. package/template/.agent/skill-library/surface/web/schema-markup/references/schema-examples.md +398 -0
  207. package/template/.agent/skill-library/surface/web/seo-audit/SKILL.md +394 -0
  208. package/template/.agent/skill-library/surface/web/seo-audit/references/ai-writing-detection.md +200 -0
  209. package/template/.agent/skill-library/surface/web/web-performance-optimization/SKILL.md +646 -0
  210. package/template/.agent/skill-library/surface/web/web-scraping/SKILL.md +58 -0
  211. package/template/.agent/skills/accessibility/SKILL.md +522 -0
  212. package/template/.agent/skills/accessibility/references/WCAG.md +162 -0
  213. package/template/.agent/skills/adversarial-review/SKILL.md +90 -0
  214. package/template/.agent/skills/antigravity-workflows/SKILL.md +81 -0
  215. package/template/.agent/skills/antigravity-workflows/resources/implementation-playbook.md +36 -0
  216. package/template/.agent/skills/api-design-principles/SKILL.md +37 -0
  217. package/template/.agent/skills/api-design-principles/assets/api-design-checklist.md +155 -0
  218. package/template/.agent/skills/api-design-principles/assets/rest-api-template.py +182 -0
  219. package/template/.agent/skills/api-design-principles/references/graphql-schema-design.md +583 -0
  220. package/template/.agent/skills/api-design-principles/references/rest-best-practices.md +408 -0
  221. package/template/.agent/skills/api-design-principles/resources/implementation-playbook.md +513 -0
  222. package/template/.agent/skills/api-versioning/SKILL.md +420 -0
  223. package/template/.agent/skills/architecture-mapping/SKILL.md +219 -0
  224. package/template/.agent/skills/bootstrap-agents/SKILL.md +259 -0
  225. package/template/.agent/skills/brainstorming/SKILL.md +236 -0
  226. package/template/.agent/skills/brand-guidelines/SKILL.md +44 -0
  227. package/template/.agent/skills/clean-code/SKILL.md +94 -0
  228. package/template/.agent/skills/code-review-pro/SKILL.md +152 -0
  229. package/template/.agent/skills/concise-planning/SKILL.md +68 -0
  230. package/template/.agent/skills/cross-layer-consistency/SKILL.md +117 -0
  231. package/template/.agent/skills/database-schema-design/SKILL.md +429 -0
  232. package/template/.agent/skills/deployment-procedures/SKILL.md +241 -0
  233. package/template/.agent/skills/design-anti-cliche/SKILL.md +159 -0
  234. package/template/.agent/skills/design-direction/SKILL.md +45 -0
  235. package/template/.agent/skills/error-handling-patterns/SKILL.md +721 -0
  236. package/template/.agent/skills/find-skills/SKILL.md +145 -0
  237. package/template/.agent/skills/git-advanced/SKILL.md +972 -0
  238. package/template/.agent/skills/git-workflow/SKILL.md +420 -0
  239. package/template/.agent/skills/idea-extraction/SKILL.md +271 -0
  240. package/template/.agent/skills/logging-best-practices/SKILL.md +851 -0
  241. package/template/.agent/skills/migration-management/SKILL.md +384 -0
  242. package/template/.agent/skills/minimalist-surgical-development/SKILL.md +69 -0
  243. package/template/.agent/skills/parallel-agents/SKILL.md +165 -0
  244. package/template/.agent/skills/parallel-debugging/SKILL.md +135 -0
  245. package/template/.agent/skills/parallel-feature-development/SKILL.md +166 -0
  246. package/template/.agent/skills/performance-budgeting/SKILL.md +144 -0
  247. package/template/.agent/skills/pipeline-rubrics/SKILL.md +51 -0
  248. package/template/.agent/skills/pipeline-rubrics/references/architecture-rubric.md +19 -0
  249. package/template/.agent/skills/pipeline-rubrics/references/be-rubric.md +21 -0
  250. package/template/.agent/skills/pipeline-rubrics/references/fe-rubric.md +20 -0
  251. package/template/.agent/skills/pipeline-rubrics/references/ia-rubric.md +19 -0
  252. package/template/.agent/skills/pipeline-rubrics/references/scoring.md +28 -0
  253. package/template/.agent/skills/pipeline-rubrics/references/vision-rubric.md +11 -0
  254. package/template/.agent/skills/prd-templates/SKILL.md +88 -0
  255. package/template/.agent/skills/prd-templates/references/architecture-design-template.md +88 -0
  256. package/template/.agent/skills/prd-templates/references/be-spec-template.md +101 -0
  257. package/template/.agent/skills/prd-templates/references/data-placement-template.md +74 -0
  258. package/template/.agent/skills/prd-templates/references/decomposition-templates.md +211 -0
  259. package/template/.agent/skills/prd-templates/references/design-system-decisions.md +198 -0
  260. package/template/.agent/skills/prd-templates/references/engineering-standards-template.md +124 -0
  261. package/template/.agent/skills/prd-templates/references/fe-classification-procedures.md +47 -0
  262. package/template/.agent/skills/prd-templates/references/fe-spec-template.md +84 -0
  263. package/template/.agent/skills/prd-templates/references/infrastructure-report-template.md +71 -0
  264. package/template/.agent/skills/prd-templates/references/operational-templates.md +116 -0
  265. package/template/.agent/skills/prd-templates/references/placeholder-guard-template.md +21 -0
  266. package/template/.agent/skills/prd-templates/references/surface-model.md +61 -0
  267. package/template/.agent/skills/prd-templates/references/vision-template.md +66 -0
  268. package/template/.agent/skills/prompt-engineer/README.md +659 -0
  269. package/template/.agent/skills/prompt-engineer/SKILL.md +249 -0
  270. package/template/.agent/skills/regex-patterns/SKILL.md +751 -0
  271. package/template/.agent/skills/resolve-ambiguity/SKILL.md +278 -0
  272. package/template/.agent/skills/rest-api-design/SKILL.md +478 -0
  273. package/template/.agent/skills/security-scanning-security-hardening/SKILL.md +231 -0
  274. package/template/.agent/skills/session-continuity/SKILL.md +730 -0
  275. package/template/.agent/skills/session-continuity/protocols/01-session-resumption.md +38 -0
  276. package/template/.agent/skills/session-continuity/protocols/02-progress-generation.md +85 -0
  277. package/template/.agent/skills/session-continuity/protocols/03-progress-update.md +70 -0
  278. package/template/.agent/skills/session-continuity/protocols/04-pattern-extraction.md +60 -0
  279. package/template/.agent/skills/session-continuity/protocols/05-session-close.md +37 -0
  280. package/template/.agent/skills/session-continuity/protocols/06-decision-analysis.md +84 -0
  281. package/template/.agent/skills/session-continuity/protocols/07-spec-pipeline-generation.md +48 -0
  282. package/template/.agent/skills/session-continuity/protocols/08-spec-pipeline-update.md +43 -0
  283. package/template/.agent/skills/session-continuity/protocols/09-parallel-claim.md +122 -0
  284. package/template/.agent/skills/session-continuity/protocols/10-placeholder-verification-gate.md +104 -0
  285. package/template/.agent/skills/session-continuity/protocols/ambiguity-gates.md +48 -0
  286. package/template/.agent/skills/skill-creator/LICENSE.txt +202 -0
  287. package/template/.agent/skills/skill-creator/README.md +270 -0
  288. package/template/.agent/skills/skill-creator/SKILL.md +590 -0
  289. package/template/.agent/skills/skill-creator/references/output-patterns.md +82 -0
  290. package/template/.agent/skills/skill-creator/references/workflows.md +28 -0
  291. package/template/.agent/skills/skill-creator/scripts/init_skill.py +303 -0
  292. package/template/.agent/skills/skill-creator/scripts/package_skill.py +110 -0
  293. package/template/.agent/skills/skill-creator/scripts/quick_validate.py +95 -0
  294. package/template/.agent/skills/spec-writing/SKILL.md +110 -0
  295. package/template/.agent/skills/systematic-debugging/CREATION-LOG.md +119 -0
  296. package/template/.agent/skills/systematic-debugging/SKILL.md +297 -0
  297. package/template/.agent/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
  298. package/template/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
  299. package/template/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
  300. package/template/.agent/skills/systematic-debugging/find-polluter.sh +63 -0
  301. package/template/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
  302. package/template/.agent/skills/systematic-debugging/test-academic.md +14 -0
  303. package/template/.agent/skills/systematic-debugging/test-pressure-1.md +58 -0
  304. package/template/.agent/skills/systematic-debugging/test-pressure-2.md +68 -0
  305. package/template/.agent/skills/systematic-debugging/test-pressure-3.md +69 -0
  306. package/template/.agent/skills/tdd-workflow/SKILL.md +409 -0
  307. package/template/.agent/skills/tech-stack-catalog/SKILL.md +49 -0
  308. package/template/.agent/skills/tech-stack-catalog/references/constraint-questions.md +21 -0
  309. package/template/.agent/skills/tech-stack-catalog/references/dev-tooling-decisions.md +37 -0
  310. package/template/.agent/skills/tech-stack-catalog/references/surface-decision-tables.md +69 -0
  311. package/template/.agent/skills/technical-writer/SKILL.md +242 -0
  312. package/template/.agent/skills/testing-strategist/SKILL.md +932 -0
  313. package/template/.agent/skills/verification-before-completion/SKILL.md +145 -0
  314. package/template/.agent/skills/workflow-automation/SKILL.md +73 -0
  315. package/template/.agent/workflows/audit-ambiguity-execute.md +165 -0
  316. package/template/.agent/workflows/audit-ambiguity-rubrics.md +83 -0
  317. package/template/.agent/workflows/audit-ambiguity.md +64 -0
  318. package/template/.agent/workflows/bootstrap-agents-fill.md +201 -0
  319. package/template/.agent/workflows/bootstrap-agents-provision.md +197 -0
  320. package/template/.agent/workflows/bootstrap-agents.md +66 -0
  321. package/template/.agent/workflows/create-prd-architecture.md +119 -0
  322. package/template/.agent/workflows/create-prd-compile.md +138 -0
  323. package/template/.agent/workflows/create-prd-design-system.md +135 -0
  324. package/template/.agent/workflows/create-prd-security.md +113 -0
  325. package/template/.agent/workflows/create-prd-stack.md +91 -0
  326. package/template/.agent/workflows/create-prd.md +168 -0
  327. package/template/.agent/workflows/decompose-architecture-structure.md +82 -0
  328. package/template/.agent/workflows/decompose-architecture-validate.md +119 -0
  329. package/template/.agent/workflows/decompose-architecture.md +111 -0
  330. package/template/.agent/workflows/evolve-contract.md +98 -0
  331. package/template/.agent/workflows/evolve-feature-cascade.md +140 -0
  332. package/template/.agent/workflows/evolve-feature-classify.md +116 -0
  333. package/template/.agent/workflows/evolve-feature.md +56 -0
  334. package/template/.agent/workflows/ideate-discover.md +144 -0
  335. package/template/.agent/workflows/ideate-extract.md +129 -0
  336. package/template/.agent/workflows/ideate-validate.md +117 -0
  337. package/template/.agent/workflows/ideate.md +113 -0
  338. package/template/.agent/workflows/implement-slice-setup.md +113 -0
  339. package/template/.agent/workflows/implement-slice-tdd.md +198 -0
  340. package/template/.agent/workflows/implement-slice.md +50 -0
  341. package/template/.agent/workflows/plan-phase.md +202 -0
  342. package/template/.agent/workflows/propagate-decision-apply.md +135 -0
  343. package/template/.agent/workflows/propagate-decision-scan.md +147 -0
  344. package/template/.agent/workflows/propagate-decision.md +56 -0
  345. package/template/.agent/workflows/remediate-pipeline-assess.md +138 -0
  346. package/template/.agent/workflows/remediate-pipeline-execute.md +135 -0
  347. package/template/.agent/workflows/remediate-pipeline.md +55 -0
  348. package/template/.agent/workflows/resolve-ambiguity.md +82 -0
  349. package/template/.agent/workflows/sync-kit.md +209 -0
  350. package/template/.agent/workflows/update-architecture-map.md +74 -0
  351. package/template/.agent/workflows/validate-phase.md +219 -0
  352. package/template/.agent/workflows/verify-infrastructure.md +207 -0
  353. package/template/.agent/workflows/write-architecture-spec-deepen.md +139 -0
  354. package/template/.agent/workflows/write-architecture-spec-design.md +202 -0
  355. package/template/.agent/workflows/write-architecture-spec.md +63 -0
  356. package/template/.agent/workflows/write-be-spec-classify.md +165 -0
  357. package/template/.agent/workflows/write-be-spec-write.md +98 -0
  358. package/template/.agent/workflows/write-be-spec.md +76 -0
  359. package/template/.agent/workflows/write-fe-spec-classify.md +170 -0
  360. package/template/.agent/workflows/write-fe-spec-write.md +94 -0
  361. package/template/.agent/workflows/write-fe-spec.md +71 -0
  362. package/template/AGENTS.md +176 -0
  363. package/template/GEMINI.md +177 -0
  364. package/template/docs/README.md +187 -0
  365. package/template/docs/audits/.gitkeep +0 -0
  366. package/template/docs/audits/README.md +10 -0
  367. package/template/docs/plans/.gitkeep +0 -0
  368. package/template/docs/plans/README.md +21 -0
  369. package/template/docs/plans/be/.gitkeep +0 -0
  370. package/template/docs/plans/be/README.md +11 -0
  371. package/template/docs/plans/fe/.gitkeep +0 -0
  372. package/template/docs/plans/fe/README.md +11 -0
  373. package/template/docs/plans/ia/.gitkeep +0 -0
  374. package/template/docs/plans/ia/README.md +17 -0
  375. package/template/docs/plans/ia/deep-dives/.gitkeep +0 -0
  376. package/template/docs/plans/ia/deep-dives/README.md +5 -0
  377. package/template/docs/plans/phases/.gitkeep +0 -0
  378. package/template/docs/plans/phases/README.md +11 -0
@@ -0,0 +1,863 @@
1
+ ---
2
+ name: tailwind-css-patterns
3
+ description: Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
4
+ allowed-tools: Read, Write, Edit, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Tailwind CSS Development Patterns
8
+
9
+ ## Overview
10
+
11
+ Expert guide for building modern, responsive user interfaces with Tailwind CSS utility-first framework. Covers v4.1+ features including CSS-first configuration, custom utilities, and enhanced developer experience.
12
+
13
+ ## When to Use
14
+
15
+ - Styling React/HTML components with utility classes
16
+ - Building responsive layouts with breakpoints
17
+ - Implementing flexbox and grid layouts
18
+ - Managing spacing, colors, and typography
19
+ - Creating custom design systems
20
+ - Optimizing for mobile-first design
21
+ - Building dark mode interfaces
22
+
23
+ ## Instructions
24
+
25
+ 1. **Start Mobile-First**: Write base styles for mobile, add responsive prefixes for larger screens
26
+ 2. **Use Design Tokens**: Leverage Tailwind's spacing, color, and typography scales
27
+ 3. **Compose Utilities**: Combine multiple utilities for complex styles
28
+ 4. **Extract Components**: Create reusable component classes for repeated patterns
29
+ 5. **Configure Theme**: Customize design tokens in tailwind.config.js
30
+ 6. **Optimize for Production**: Ensure content paths are configured for CSS purging
31
+ 7. **Test Responsive**: Verify layouts at all breakpoint sizes
32
+
33
+ ## Examples
34
+
35
+ ### Responsive Card Component
36
+
37
+ ```tsx
38
+ function ProductCard({ product }: { product: Product }) {
39
+ return (
40
+ <div className="bg-white rounded-lg shadow-lg overflow-hidden
41
+ sm:flex sm:max-w-2xl">
42
+ <img
43
+ className="h-48 w-full object-cover sm:h-auto sm:w-48"
44
+ src={product.image}
45
+ alt={product.name}
46
+ />
47
+ <div className="p-6">
48
+ <h3 className="text-lg font-semibold text-gray-900">
49
+ {product.name}
50
+ </h3>
51
+ <p className="mt-2 text-gray-600">
52
+ {product.description}
53
+ </p>
54
+ <button className="mt-4 px-4 py-2 bg-indigo-600 text-white
55
+ rounded-lg hover:bg-indigo-700 transition">
56
+ Add to Cart
57
+ </button>
58
+ </div>
59
+ </div>
60
+ );
61
+ }
62
+ ```
63
+
64
+ ## Constraints and Warnings
65
+
66
+ - **Class Proliferation**: Long class strings can reduce readability; extract components when needed
67
+ - **Purge Configuration**: Must configure content paths correctly for production builds
68
+ - **Arbitrary Values**: Use sparingly; prefer design tokens for consistency
69
+ - **Specificity Issues**: Avoid @apply with complex selectors
70
+ - **Dark Mode**: Requires proper configuration (class or media strategy)
71
+ - **JIT Mode**: Some dynamic patterns may not be detected; use safelist if needed
72
+ - **Browser Support**: Check Tailwind docs for browser compatibility
73
+
74
+ ## Core Concepts
75
+
76
+ ### Utility-First Approach
77
+
78
+ Apply styles directly in markup using utility classes:
79
+
80
+ ```html
81
+ <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
82
+ Click me
83
+ </button>
84
+ ```
85
+
86
+ ### Responsive Design
87
+
88
+ Mobile-first breakpoints with prefixes:
89
+
90
+ ```html
91
+ <div class="w-full md:w-1/2 lg:w-1/3">
92
+ <!-- Full width on mobile, half on tablet, third on desktop -->
93
+ </div>
94
+ ```
95
+
96
+ Breakpoint prefixes:
97
+ - `sm:` - 640px and above
98
+ - `md:` - 768px and above
99
+ - `lg:` - 1024px and above
100
+ - `xl:` - 1280px and above
101
+ - `2xl:` - 1536px and above
102
+
103
+ ## Layout Utilities
104
+
105
+ ### Flexbox Layouts
106
+
107
+ Basic flex container:
108
+
109
+ ```html
110
+ <div class="flex items-center justify-between">
111
+ <div>Left</div>
112
+ <div>Center</div>
113
+ <div>Right</div>
114
+ </div>
115
+ ```
116
+
117
+ Responsive flex direction:
118
+
119
+ ```html
120
+ <div class="flex flex-col md:flex-row gap-4">
121
+ <div class="flex-1">Item 1</div>
122
+ <div class="flex-1">Item 2</div>
123
+ <div class="flex-1">Item 3</div>
124
+ </div>
125
+ ```
126
+
127
+ Common flex patterns:
128
+
129
+ ```html
130
+ <!-- Center content -->
131
+ <div class="flex items-center justify-center min-h-screen">
132
+ <div>Centered Content</div>
133
+ </div>
134
+
135
+ <!-- Space between items -->
136
+ <div class="flex justify-between items-center">
137
+ <span>Left</span>
138
+ <span>Right</span>
139
+ </div>
140
+
141
+ <!-- Vertical stack with gap -->
142
+ <div class="flex flex-col gap-4">
143
+ <div>Item 1</div>
144
+ <div>Item 2</div>
145
+ </div>
146
+ ```
147
+
148
+ ### Grid Layouts
149
+
150
+ Basic grid:
151
+
152
+ ```html
153
+ <div class="grid grid-cols-3 gap-4">
154
+ <div>Column 1</div>
155
+ <div>Column 2</div>
156
+ <div>Column 3</div>
157
+ </div>
158
+ ```
159
+
160
+ Responsive grid:
161
+
162
+ ```html
163
+ <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
164
+ <!-- 1 column mobile, 2 tablet, 4 desktop -->
165
+ <div>Item 1</div>
166
+ <div>Item 2</div>
167
+ <div>Item 3</div>
168
+ <div>Item 4</div>
169
+ </div>
170
+ ```
171
+
172
+ Auto-fit columns:
173
+
174
+ ```html
175
+ <div class="grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-4">
176
+ <!-- Automatically fit columns based on container width -->
177
+ </div>
178
+ ```
179
+
180
+ ### Container & Max Width
181
+
182
+ Centered container with max width:
183
+
184
+ ```html
185
+ <div class="container mx-auto px-4 max-w-7xl">
186
+ <!-- Centered content with padding -->
187
+ </div>
188
+ ```
189
+
190
+ Responsive max width:
191
+
192
+ ```html
193
+ <div class="w-full max-w-md mx-auto">
194
+ <!-- Max 448px width, centered -->
195
+ </div>
196
+ ```
197
+
198
+ ## Spacing
199
+
200
+ ### Padding & Margin
201
+
202
+ Uniform spacing:
203
+
204
+ ```html
205
+ <div class="p-4">Padding all sides</div>
206
+ <div class="m-4">Margin all sides</div>
207
+ ```
208
+
209
+ Individual sides:
210
+
211
+ ```html
212
+ <div class="pt-4 pr-8 pb-4 pl-8">
213
+ <!-- Top 1rem, Right 2rem, Bottom 1rem, Left 2rem -->
214
+ </div>
215
+ ```
216
+
217
+ Axis-based spacing:
218
+
219
+ ```html
220
+ <div class="px-4 py-8">
221
+ <!-- Horizontal padding 1rem, Vertical padding 2rem -->
222
+ </div>
223
+ ```
224
+
225
+ Responsive spacing:
226
+
227
+ ```html
228
+ <div class="p-4 md:p-8 lg:p-12">
229
+ <!-- Increases padding at larger breakpoints -->
230
+ </div>
231
+ ```
232
+
233
+ Space between children:
234
+
235
+ ```html
236
+ <div class="space-y-4">
237
+ <div>Item 1</div>
238
+ <div>Item 2</div>
239
+ <div>Item 3</div>
240
+ </div>
241
+ ```
242
+
243
+ ## Typography
244
+
245
+ ### Font Size & Weight
246
+
247
+ ```html
248
+ <h1 class="text-4xl font-bold">Large Heading</h1>
249
+ <h2 class="text-2xl font-semibold">Subheading</h2>
250
+ <p class="text-base font-normal">Body text</p>
251
+ <small class="text-sm text-gray-600">Small text</small>
252
+ ```
253
+
254
+ Responsive typography:
255
+
256
+ ```html
257
+ <h1 class="text-2xl md:text-4xl lg:text-6xl font-bold">
258
+ Responsive Heading
259
+ </h1>
260
+ ```
261
+
262
+ ### Line Height & Letter Spacing
263
+
264
+ ```html
265
+ <p class="leading-relaxed tracking-wide">
266
+ Text with relaxed line height and wide letter spacing
267
+ </p>
268
+ ```
269
+
270
+ ### Text Alignment
271
+
272
+ ```html
273
+ <p class="text-left md:text-center">
274
+ Left aligned on mobile, centered on tablet+
275
+ </p>
276
+ ```
277
+
278
+ ## Colors
279
+
280
+ ### Background Colors
281
+
282
+ ```html
283
+ <div class="bg-blue-500">Blue background</div>
284
+ <div class="bg-gray-100">Light gray background</div>
285
+ <div class="bg-gradient-to-r from-blue-500 to-purple-600">
286
+ Gradient background
287
+ </div>
288
+ ```
289
+
290
+ ### Text Colors
291
+
292
+ ```html
293
+ <p class="text-gray-900">Dark text</p>
294
+ <p class="text-blue-600">Blue text</p>
295
+ <p class="text-red-500">Error text</p>
296
+ ```
297
+
298
+ ### Opacity
299
+
300
+ ```html
301
+ <div class="bg-blue-500 bg-opacity-50">
302
+ Semi-transparent blue
303
+ </div>
304
+ ```
305
+
306
+ ## Interactive States
307
+
308
+ ### Hover States
309
+
310
+ ```html
311
+ <button class="bg-blue-500 hover:bg-blue-700 transition">
312
+ Hover me
313
+ </button>
314
+
315
+ <a class="text-blue-600 hover:text-blue-800 hover:underline">
316
+ Hover link
317
+ </a>
318
+ ```
319
+
320
+ ### Focus States
321
+
322
+ ```html
323
+ <input class="border border-gray-300 focus:border-blue-500 focus:ring-2 focus:ring-blue-200 outline-none">
324
+ ```
325
+
326
+ ### Active & Disabled States
327
+
328
+ ```html
329
+ <button class="bg-blue-500 active:bg-blue-800 disabled:opacity-50 disabled:cursor-not-allowed">
330
+ Button
331
+ </button>
332
+ ```
333
+
334
+ ### Group Hover
335
+
336
+ ```html
337
+ <div class="group">
338
+ <img class="group-hover:opacity-75" src="image.jpg" />
339
+ <p class="group-hover:text-blue-600">Hover the parent</p>
340
+ </div>
341
+ ```
342
+
343
+ ## Component Patterns
344
+
345
+ ### Card Component
346
+
347
+ ```html
348
+ <div class="bg-white rounded-lg shadow-lg overflow-hidden">
349
+ <img class="w-full h-48 object-cover" src="image.jpg" alt="Card image" />
350
+ <div class="p-6">
351
+ <h3 class="text-xl font-bold mb-2">Card Title</h3>
352
+ <p class="text-gray-700 mb-4">Card description text goes here.</p>
353
+ <button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
354
+ Action
355
+ </button>
356
+ </div>
357
+ </div>
358
+ ```
359
+
360
+ ### Responsive User Card
361
+
362
+ ```html
363
+ <div class="max-w-sm mx-auto bg-white rounded-xl shadow-lg overflow-hidden sm:flex sm:max-w-2xl">
364
+ <img class="h-48 w-full object-cover sm:h-auto sm:w-48"
365
+ src="profile.jpg"
366
+ alt="Profile" />
367
+ <div class="p-8">
368
+ <div class="uppercase tracking-wide text-sm text-indigo-500 font-semibold">
369
+ Product Engineer
370
+ </div>
371
+ <h2 class="mt-1 text-xl font-semibold text-gray-900">
372
+ John Doe
373
+ </h2>
374
+ <p class="mt-2 text-gray-500">
375
+ Building amazing products with modern technology.
376
+ </p>
377
+ <button class="mt-4 px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
378
+ Contact
379
+ </button>
380
+ </div>
381
+ </div>
382
+ ```
383
+
384
+ ### Navigation Bar
385
+
386
+ ```html
387
+ <nav class="bg-white shadow-lg">
388
+ <div class="container mx-auto px-4">
389
+ <div class="flex justify-between items-center h-16">
390
+ <div class="flex items-center">
391
+ <a href="#" class="text-xl font-bold text-gray-800">Logo</a>
392
+ </div>
393
+ <div class="hidden md:flex space-x-8">
394
+ <a href="#" class="text-gray-700 hover:text-blue-600 transition">Home</a>
395
+ <a href="#" class="text-gray-700 hover:text-blue-600 transition">About</a>
396
+ <a href="#" class="text-gray-700 hover:text-blue-600 transition">Services</a>
397
+ <a href="#" class="text-gray-700 hover:text-blue-600 transition">Contact</a>
398
+ </div>
399
+ <button class="md:hidden">
400
+ <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
401
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path>
402
+ </svg>
403
+ </button>
404
+ </div>
405
+ </div>
406
+ </nav>
407
+ ```
408
+
409
+ ### Form Elements
410
+
411
+ ```html
412
+ <form class="space-y-6 max-w-md mx-auto">
413
+ <div>
414
+ <label class="block text-sm font-medium text-gray-700 mb-2">
415
+ Email
416
+ </label>
417
+ <input
418
+ type="email"
419
+ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
420
+ placeholder="you@example.com"
421
+ />
422
+ </div>
423
+
424
+ <div>
425
+ <label class="block text-sm font-medium text-gray-700 mb-2">
426
+ Password
427
+ </label>
428
+ <input
429
+ type="password"
430
+ class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent"
431
+ />
432
+ </div>
433
+
434
+ <div class="flex items-center">
435
+ <input type="checkbox" class="mr-2" />
436
+ <label class="text-sm text-gray-600">Remember me</label>
437
+ </div>
438
+
439
+ <button
440
+ type="submit"
441
+ class="w-full bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg hover:bg-blue-700 transition"
442
+ >
443
+ Sign In
444
+ </button>
445
+ </form>
446
+ ```
447
+
448
+ ### Modal/Dialog
449
+
450
+ ```html
451
+ <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center p-4">
452
+ <div class="bg-white rounded-lg shadow-xl max-w-md w-full p-6">
453
+ <div class="flex justify-between items-center mb-4">
454
+ <h3 class="text-xl font-bold">Modal Title</h3>
455
+ <button class="text-gray-500 hover:text-gray-700">
456
+ <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
457
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
458
+ </svg>
459
+ </button>
460
+ </div>
461
+ <p class="text-gray-700 mb-6">
462
+ Modal content goes here.
463
+ </p>
464
+ <div class="flex justify-end space-x-4">
465
+ <button class="px-4 py-2 text-gray-600 hover:text-gray-800">
466
+ Cancel
467
+ </button>
468
+ <button class="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">
469
+ Confirm
470
+ </button>
471
+ </div>
472
+ </div>
473
+ </div>
474
+ ```
475
+
476
+ ## Responsive Design Patterns
477
+
478
+ ### Mobile-First Responsive Layout
479
+
480
+ ```html
481
+ <div class="container mx-auto px-4">
482
+ <!-- Hero Section -->
483
+ <div class="flex flex-col md:flex-row items-center gap-8 py-12">
484
+ <div class="flex-1">
485
+ <h1 class="text-3xl md:text-5xl font-bold mb-4">
486
+ Welcome to Our Site
487
+ </h1>
488
+ <p class="text-lg text-gray-600 mb-6">
489
+ Build amazing things with Tailwind CSS
490
+ </p>
491
+ <button class="bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700">
492
+ Get Started
493
+ </button>
494
+ </div>
495
+ <div class="flex-1">
496
+ <img src="hero.jpg" class="w-full rounded-lg shadow-lg" />
497
+ </div>
498
+ </div>
499
+ </div>
500
+ ```
501
+
502
+ ### Responsive Grid Gallery
503
+
504
+ ```html
505
+ <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-4">
506
+ <div class="aspect-square bg-gray-200 rounded-lg overflow-hidden">
507
+ <img src="image1.jpg" class="w-full h-full object-cover hover:scale-105 transition" />
508
+ </div>
509
+ <div class="aspect-square bg-gray-200 rounded-lg overflow-hidden">
510
+ <img src="image2.jpg" class="w-full h-full object-cover hover:scale-105 transition" />
511
+ </div>
512
+ <!-- More items... -->
513
+ </div>
514
+ ```
515
+
516
+ ## Dark Mode
517
+
518
+ ### Basic Dark Mode Support
519
+
520
+ ```html
521
+ <div class="bg-white dark:bg-gray-900 text-gray-900 dark:text-white">
522
+ <h1 class="text-gray-900 dark:text-white">Title</h1>
523
+ <p class="text-gray-600 dark:text-gray-400">Description</p>
524
+ </div>
525
+ ```
526
+
527
+ Enable dark mode in tailwind.config.js:
528
+
529
+ ```javascript
530
+ module.exports = {
531
+ darkMode: 'class', // or 'media'
532
+ // ...
533
+ }
534
+ ```
535
+
536
+ ## Animations & Transitions
537
+
538
+ ### Basic Transitions
539
+
540
+ ```html
541
+ <button class="bg-blue-500 hover:bg-blue-700 transition duration-300">
542
+ Smooth transition
543
+ </button>
544
+ ```
545
+
546
+ ### Transform Effects
547
+
548
+ ```html
549
+ <div class="transform hover:scale-110 transition duration-300">
550
+ Scale on hover
551
+ </div>
552
+
553
+ <img class="transform hover:rotate-6 transition duration-300" />
554
+ ```
555
+
556
+ ### Built-in Animations
557
+
558
+ ```html
559
+ <div class="animate-spin">Spinning</div>
560
+ <div class="animate-pulse">Pulsing</div>
561
+ <div class="animate-bounce">Bouncing</div>
562
+ ```
563
+
564
+ ## Performance Optimization
565
+
566
+ ### Bundle Size Optimization
567
+
568
+ Configure content sources for optimal purging:
569
+
570
+ ```javascript
571
+ // tailwind.config.js
572
+ export default {
573
+ content: [
574
+ "./index.html",
575
+ "./src/**/*.{js,ts,jsx,tsx,vue,svelte}",
576
+ "./node_modules/@mycompany/ui-lib/**/*.{js,ts,jsx,tsx}",
577
+ ],
578
+ // Enable JIT for faster builds
579
+ jit: true,
580
+ }
581
+ ```
582
+
583
+ ### CSS Optimization Techniques
584
+
585
+ ```html
586
+ <!-- Use content-visibility for offscreen content -->
587
+ <div class="content-visibility-auto">
588
+ <div>Heavy content that's initially offscreen</div>
589
+ </div>
590
+
591
+ <!-- Optimize images with aspect-ratio -->
592
+ <img class="aspect-video w-full object-cover" src="video.jpg" alt="Video thumbnail" />
593
+
594
+ <!-- Use contain for paint optimization -->
595
+ <div class="contain-layout">
596
+ Complex layout that doesn't affect outside elements
597
+ </div>
598
+ ```
599
+
600
+ ### Development Performance
601
+
602
+ ```css
603
+ /* Enable CSS-first configuration in v4.1 */
604
+ @import "tailwindcss";
605
+
606
+ @theme {
607
+ /* Define once, use everywhere */
608
+ --color-brand: #3b82f6;
609
+ --font-mono: "Fira Code", monospace;
610
+ }
611
+
612
+ /* Critical CSS for above-the-fold content */
613
+ @layer critical {
614
+ .hero-title {
615
+ @apply text-4xl md:text-6xl font-bold;
616
+ }
617
+ }
618
+ ```
619
+
620
+ ## Accessibility Guidelines
621
+
622
+ ### Focus Management
623
+
624
+ ```html
625
+ <!-- Custom focus styles that meet WCAG AA -->
626
+ <button class="focus:outline-none focus:ring-4 focus:ring-blue-500 focus:ring-offset-2">
627
+ Accessible Button
628
+ </button>
629
+
630
+ <!-- Skip links for keyboard navigation -->
631
+ <a href="#main-content" class="sr-only focus:not-sr-only focus:absolute focus:top-4 focus:left-4">
632
+ Skip to main content
633
+ </a>
634
+ ```
635
+
636
+ ### Screen Reader Support
637
+
638
+ ```html
639
+ <!-- Semantic buttons with ARIA labels -->
640
+ <button aria-label="Close dialog" class="p-2">
641
+ <svg class="w-5 h-5" fill="none" stroke="currentColor">
642
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
643
+ </svg>
644
+ </button>
645
+
646
+ <!-- Descriptive links -->
647
+ <a href="/docs" aria-describedby="docs-description">
648
+ Documentation
649
+ </a>
650
+ <p id="docs-description" class="sr-only">
651
+ Learn how to use our API and integration guides
652
+ </p>
653
+ ```
654
+
655
+ ### Color Contrast
656
+
657
+ ```html
658
+ <!-- Ensure sufficient contrast ratios -->
659
+ <div class="bg-gray-900 text-white">
660
+ High contrast text (WCAG AAA)
661
+ </div>
662
+
663
+ <div class="bg-blue-500 text-blue-100">
664
+ Good contrast on colored backgrounds
665
+ </div>
666
+
667
+ <!-- Use contrast utilities for testing -->
668
+ <div class="bg-red-500 text-white contrast-more:bg-red-600 contrast-more:text-red-100">
669
+ Adjusts for high contrast mode
670
+ </div>
671
+ ```
672
+
673
+ ### Motion Preferences
674
+
675
+ ```html
676
+ <!-- Respect prefers-reduced-motion -->
677
+ <div class="transform transition-transform motion-reduce:transition-none">
678
+ Doesn't animate when user prefers reduced motion
679
+ </div>
680
+
681
+ <!-- Conditional animations -->
682
+ <div class="animate-pulse motion-safe:hover:animate-spin">
683
+ Only animates when motion is preferred
684
+ </div>
685
+ ```
686
+
687
+ ## Best Practices
688
+
689
+ 1. **Mobile-First**: Start with mobile styles, add responsive prefixes for larger screens
690
+ 2. **Consistent Spacing**: Use Tailwind's spacing scale (4, 8, 12, 16, etc.)
691
+ 3. **Color Palette**: Stick to Tailwind's color system for consistency
692
+ 4. **Component Extraction**: Extract repeated patterns into components
693
+ 5. **Utility Composition**: Prefer utility classes over @apply for better maintainability
694
+ 6. **Semantic HTML**: Use proper HTML elements with Tailwind classes
695
+ 7. **Performance**: Configure content paths correctly for optimal CSS purging
696
+ 8. **Accessibility**: Include focus styles, ARIA labels, and respect user preferences
697
+ 9. **CSS-First Config**: Use @theme directive for v4.1+ instead of JavaScript config
698
+ 10. **Custom Utilities**: Create reusable utilities with @utility for complex patterns
699
+
700
+ ## Configuration
701
+
702
+ ### CSS-First Configuration (v4.1+)
703
+
704
+ Use the `@theme` directive for CSS-based configuration:
705
+
706
+ ```css
707
+ /* src/styles.css */
708
+ @import "tailwindcss";
709
+
710
+ @theme {
711
+ /* Custom colors */
712
+ --color-brand-50: #f0f9ff;
713
+ --color-brand-500: #3b82f6;
714
+ --color-brand-900: #1e3a8a;
715
+
716
+ /* Custom fonts */
717
+ --font-display: "Inter", system-ui, sans-serif;
718
+ --font-mono: "Fira Code", monospace;
719
+
720
+ /* Custom spacing */
721
+ --spacing-128: 32rem;
722
+
723
+ /* Custom animations */
724
+ --animate-fade-in: fadeIn 0.5s ease-in-out;
725
+
726
+ /* Custom breakpoints */
727
+ --breakpoint-3xl: 1920px;
728
+ }
729
+
730
+ /* Define custom animations */
731
+ @keyframes fadeIn {
732
+ from { opacity: 0; }
733
+ to { opacity: 1; }
734
+ }
735
+
736
+ /* Custom utilities */
737
+ @utility content-auto {
738
+ content-visibility: auto;
739
+ }
740
+ ```
741
+
742
+ ### JavaScript Configuration (Legacy)
743
+
744
+ ```javascript
745
+ /** @type {import('tailwindcss').Config} */
746
+ export default {
747
+ content: [
748
+ "./index.html",
749
+ "./src/**/*.{js,ts,jsx,tsx,vue,svelte}",
750
+ ],
751
+ theme: {
752
+ extend: {
753
+ colors: {
754
+ primary: {
755
+ 50: '#f0f9ff',
756
+ 500: '#3b82f6',
757
+ 900: '#1e3a8a',
758
+ },
759
+ },
760
+ fontFamily: {
761
+ sans: ['Inter', 'system-ui', 'sans-serif'],
762
+ },
763
+ spacing: {
764
+ '128': '32rem',
765
+ },
766
+ },
767
+ },
768
+ plugins: [],
769
+ }
770
+ ```
771
+
772
+ ### Vite Integration (v4.1+)
773
+
774
+ ```javascript
775
+ // vite.config.ts
776
+ import { defineConfig } from 'vite'
777
+ import tailwindcss from '@tailwindcss/vite'
778
+
779
+ export default defineConfig({
780
+ plugins: [
781
+ tailwindcss(),
782
+ ],
783
+ })
784
+ ```
785
+
786
+ ## Advanced v4.1 Features
787
+
788
+ ### Native CSS Custom Properties
789
+
790
+ ```html
791
+ <div class="bg-[var(--color-brand-500)] text-[var(--color-white)]">
792
+ Using CSS custom properties directly
793
+ </div>
794
+ ```
795
+
796
+ ### Enhanced Arbitrary Values
797
+
798
+ ```html
799
+ <!-- Complex grid with custom tracks -->
800
+ <div class="grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-4">
801
+ Responsive grid without custom CSS
802
+ </div>
803
+
804
+ <!-- Custom animation timing -->
805
+ <div class="animate-bounce ease-[cubic-bezier(0.68,-0.55,0.265,1.55)]">
806
+ Bounce with custom easing
807
+ </div>
808
+ ```
809
+
810
+ ### Container Queries
811
+
812
+ ```html
813
+ <!-- Component that responds to its container size -->
814
+ <div class="@container">
815
+ <div class="@lg:text-xl @2xl:text-2xl">
816
+ Text size based on container, not viewport
817
+ </div>
818
+ </div>
819
+ ```
820
+
821
+ ## Common Patterns with React/JSX
822
+
823
+ ```tsx
824
+ import { useState } from 'react';
825
+
826
+ function Button({
827
+ variant = 'primary',
828
+ size = 'md',
829
+ children
830
+ }: {
831
+ variant?: 'primary' | 'secondary';
832
+ size?: 'sm' | 'md' | 'lg';
833
+ children: React.ReactNode;
834
+ }) {
835
+ const baseClasses = 'font-semibold rounded transition';
836
+
837
+ const variantClasses = {
838
+ primary: 'bg-blue-600 text-white hover:bg-blue-700',
839
+ secondary: 'bg-gray-200 text-gray-800 hover:bg-gray-300',
840
+ };
841
+
842
+ const sizeClasses = {
843
+ sm: 'px-3 py-1 text-sm',
844
+ md: 'px-4 py-2 text-base',
845
+ lg: 'px-6 py-3 text-lg',
846
+ };
847
+
848
+ return (
849
+ <button
850
+ className={`${baseClasses} ${variantClasses[variant]} ${sizeClasses[size]}`}
851
+ >
852
+ {children}
853
+ </button>
854
+ );
855
+ }
856
+ ```
857
+
858
+ ## References
859
+
860
+ - Tailwind CSS Docs: https://tailwindcss.com/docs
861
+ - Tailwind UI: https://tailwindui.com
862
+ - Tailwind Play: https://play.tailwindcss.com
863
+ - Headless UI: https://headlessui.com