@appsforgood/next-supabase-kit 0.2.1 → 0.4.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 (323) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +22 -548
  3. package/UPGRADE.md +11 -77
  4. package/USER_GUIDE.md +181 -0
  5. package/agents/app-engineer/agent.md +32 -0
  6. package/agents/copy/agent.md +27 -0
  7. package/agents/design/agent.md +27 -0
  8. package/agents/optional/deploy/agent.md +12 -0
  9. package/agents/optional/docs/agent.md +12 -0
  10. package/agents/optional/lead-architect/agent.md +12 -0
  11. package/agents/optional/research/agent.md +12 -0
  12. package/agents/planner/agent.md +29 -0
  13. package/agents/qa/agent.md +35 -0
  14. package/agents/security/agent.md +28 -0
  15. package/assistant-adapters/cursor-agent-kit.mdc +5 -26
  16. package/catalog.json +20 -0
  17. package/dist/index.js +892 -8219
  18. package/dist/index.js.map +1 -1
  19. package/examples/next-supabase-installed/.agent-kit/config.json +26 -0
  20. package/examples/next-supabase-installed/.agent-kit/manifest.json +78 -223
  21. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/browser-qa.toml +6 -0
  22. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/copy.toml +6 -0
  23. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/frontend.toml +6 -0
  24. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/plan.toml +6 -0
  25. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/security.toml +6 -0
  26. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/ship.toml +6 -0
  27. package/examples/next-supabase-installed/.antigravity/agent-kit/commands/test.toml +6 -0
  28. package/examples/next-supabase-installed/.antigravity/agent-kit/plugin.json +12 -0
  29. package/examples/next-supabase-installed/.antigravity/runtime-skills/accessibility-wcag/SKILL.md +26 -0
  30. package/examples/next-supabase-installed/.antigravity/runtime-skills/browser-qa/SKILL.md +67 -0
  31. package/examples/next-supabase-installed/.antigravity/runtime-skills/frontend-design/SKILL.md +26 -0
  32. package/examples/next-supabase-installed/.antigravity/runtime-skills/nextjs-app-router/SKILL.md +23 -0
  33. package/examples/next-supabase-installed/.antigravity/runtime-skills/owasp-security-review/SKILL.md +23 -0
  34. package/examples/next-supabase-installed/.antigravity/runtime-skills/planning/SKILL.md +25 -0
  35. package/examples/next-supabase-installed/.antigravity/runtime-skills/postgres-migrations/SKILL.md +21 -0
  36. package/examples/next-supabase-installed/.antigravity/runtime-skills/product-copy/SKILL.md +22 -0
  37. package/examples/next-supabase-installed/.antigravity/runtime-skills/ship/SKILL.md +22 -0
  38. package/examples/next-supabase-installed/.antigravity/runtime-skills/supabase-auth-rls/SKILL.md +23 -0
  39. package/examples/next-supabase-installed/.antigravity/runtime-skills/testing-qa/SKILL.md +27 -0
  40. package/examples/next-supabase-installed/.claude/agents/app-engineer.md +32 -0
  41. package/examples/next-supabase-installed/.claude/agents/copy.md +27 -0
  42. package/examples/next-supabase-installed/.claude/agents/design.md +27 -0
  43. package/examples/next-supabase-installed/.claude/agents/planner.md +29 -0
  44. package/examples/next-supabase-installed/.claude/agents/qa.md +35 -0
  45. package/examples/next-supabase-installed/.claude/agents/security.md +28 -0
  46. package/examples/next-supabase-installed/.codex/agents/app-engineer.toml +39 -0
  47. package/examples/next-supabase-installed/.codex/agents/copy.toml +34 -0
  48. package/examples/next-supabase-installed/.codex/agents/design.toml +34 -0
  49. package/examples/next-supabase-installed/.codex/agents/planner.toml +36 -0
  50. package/examples/next-supabase-installed/.codex/agents/qa.toml +42 -0
  51. package/examples/next-supabase-installed/.codex/agents/security.toml +35 -0
  52. package/examples/next-supabase-installed/.cursor/agents/app-engineer.md +32 -0
  53. package/examples/next-supabase-installed/.cursor/agents/copy.md +27 -0
  54. package/examples/next-supabase-installed/.cursor/agents/design.md +27 -0
  55. package/examples/next-supabase-installed/.cursor/agents/planner.md +29 -0
  56. package/examples/next-supabase-installed/.cursor/agents/qa.md +35 -0
  57. package/examples/next-supabase-installed/.cursor/agents/security.md +28 -0
  58. package/examples/next-supabase-installed/.cursor/rules/cursor-agent-kit.mdc +12 -0
  59. package/examples/next-supabase-installed/.cursor/skills/accessibility-wcag/SKILL.md +26 -0
  60. package/examples/next-supabase-installed/.cursor/skills/browser-qa/SKILL.md +67 -0
  61. package/examples/next-supabase-installed/.cursor/skills/frontend-design/SKILL.md +26 -0
  62. package/examples/next-supabase-installed/.cursor/skills/nextjs-app-router/SKILL.md +23 -0
  63. package/examples/next-supabase-installed/.cursor/skills/owasp-security-review/SKILL.md +23 -0
  64. package/examples/next-supabase-installed/.cursor/skills/planning/SKILL.md +25 -0
  65. package/examples/next-supabase-installed/.cursor/skills/postgres-migrations/SKILL.md +21 -0
  66. package/examples/next-supabase-installed/.cursor/skills/product-copy/SKILL.md +22 -0
  67. package/examples/next-supabase-installed/.cursor/skills/ship/SKILL.md +22 -0
  68. package/examples/next-supabase-installed/.cursor/skills/supabase-auth-rls/SKILL.md +23 -0
  69. package/examples/next-supabase-installed/.cursor/skills/testing-qa/SKILL.md +27 -0
  70. package/examples/next-supabase-installed/.github/copilot-instructions.md +23 -0
  71. package/examples/next-supabase-installed/AGENTS.md +30 -0
  72. package/examples/next-supabase-installed/CLAUDE.md +7 -0
  73. package/examples/next-supabase-installed/README.md +2 -14
  74. package/examples/next-supabase-installed/USER_GUIDE.md +181 -0
  75. package/examples/next-supabase-installed/skills/accessibility-wcag/SKILL.md +26 -0
  76. package/examples/next-supabase-installed/skills/browser-qa/SKILL.md +67 -0
  77. package/examples/next-supabase-installed/skills/frontend-design/SKILL.md +26 -0
  78. package/examples/next-supabase-installed/skills/nextjs-app-router/SKILL.md +23 -0
  79. package/examples/next-supabase-installed/skills/owasp-security-review/SKILL.md +23 -0
  80. package/examples/next-supabase-installed/skills/planning/SKILL.md +25 -0
  81. package/examples/next-supabase-installed/skills/postgres-migrations/SKILL.md +21 -0
  82. package/examples/next-supabase-installed/skills/product-copy/SKILL.md +22 -0
  83. package/examples/next-supabase-installed/skills/ship/SKILL.md +22 -0
  84. package/examples/next-supabase-installed/skills/supabase-auth-rls/SKILL.md +23 -0
  85. package/examples/next-supabase-installed/skills/testing-qa/SKILL.md +27 -0
  86. package/examples/next-supabase-installed/tree.txt +57 -45
  87. package/package.json +15 -42
  88. package/research/agent-skill-gap-report.md +128 -0
  89. package/skills/accessibility-wcag/SKILL.md +26 -0
  90. package/skills/browser-qa/SKILL.md +67 -0
  91. package/skills/frontend-design/SKILL.md +26 -0
  92. package/skills/nextjs-app-router/SKILL.md +23 -0
  93. package/skills/optional/debug/SKILL.md +11 -0
  94. package/skills/optional/docs/SKILL.md +10 -0
  95. package/skills/optional/ui-polish/SKILL.md +10 -0
  96. package/skills/optional/upgrade/SKILL.md +10 -0
  97. package/skills/owasp-security-review/SKILL.md +23 -0
  98. package/skills/planning/SKILL.md +25 -0
  99. package/skills/postgres-migrations/SKILL.md +21 -0
  100. package/skills/product-copy/SKILL.md +22 -0
  101. package/skills/ship/SKILL.md +22 -0
  102. package/skills/supabase-auth-rls/SKILL.md +23 -0
  103. package/skills/testing-qa/SKILL.md +27 -0
  104. package/templates/next-supabase/AGENTS.md +19 -129
  105. package/templates/next-supabase/CLAUDE.md +4 -36
  106. package/BEST_PRACTICE_EVIDENCE.md +0 -45
  107. package/DOGFOOD.md +0 -187
  108. package/GOVERNANCE.md +0 -45
  109. package/LOOP_CODING.md +0 -107
  110. package/MAINTAINER_RELEASE.md +0 -100
  111. package/REPOSITORY_SETTINGS.md +0 -81
  112. package/RESEARCH_CITATION_POLICY.md +0 -26
  113. package/SUPPLY_CHAIN.md +0 -56
  114. package/agents/deployment-observability-engineer.md +0 -13
  115. package/agents/docs-maintainer.md +0 -17
  116. package/agents/frontend-design-lead.md +0 -22
  117. package/agents/lead-architect.md +0 -25
  118. package/agents/marketing-copy-lead.md +0 -20
  119. package/agents/nextjs-engineer.md +0 -20
  120. package/agents/planner.md +0 -20
  121. package/agents/qa-engineer.md +0 -19
  122. package/agents/research-analyst.md +0 -13
  123. package/agents/security-reviewer.md +0 -16
  124. package/agents/supabase-postgres-engineer.md +0 -19
  125. package/antigravity/commands/accessibility-pass.toml +0 -16
  126. package/antigravity/commands/audit.toml +0 -16
  127. package/antigravity/commands/browser-qa.toml +0 -18
  128. package/antigravity/commands/copy.toml +0 -16
  129. package/antigravity/commands/distinctiveness-pass.toml +0 -16
  130. package/antigravity/commands/frontend.toml +0 -18
  131. package/antigravity/commands/handoff.toml +0 -16
  132. package/antigravity/commands/layout-cleanup.toml +0 -16
  133. package/antigravity/commands/plan.toml +0 -18
  134. package/antigravity/commands/responsive-cleanup.toml +0 -16
  135. package/antigravity/commands/review.toml +0 -16
  136. package/antigravity/commands/screenshot-critique.toml +0 -16
  137. package/antigravity/commands/security.toml +0 -16
  138. package/antigravity/commands/setup.toml +0 -16
  139. package/antigravity/commands/ship.toml +0 -17
  140. package/antigravity/commands/spec.toml +0 -17
  141. package/antigravity/commands/test.toml +0 -17
  142. package/antigravity/commands/ui-audit.toml +0 -17
  143. package/antigravity/commands/ui-polish.toml +0 -17
  144. package/antigravity/commands/upgrade.toml +0 -17
  145. package/antigravity/plugin.json +0 -70
  146. package/assistant-adapters/antigravity.md +0 -65
  147. package/assistant-adapters/claude-code-subagents.md +0 -38
  148. package/assistant-adapters/codex-agents.md +0 -53
  149. package/assistant-adapters/cursor-frontend.mdc +0 -16
  150. package/assistant-adapters/cursor-planner.mdc +0 -14
  151. package/assistant-adapters/cursor-security.mdc +0 -18
  152. package/assistant-adapters/github-copilot-instructions.md +0 -35
  153. package/assistant-adapters/github-next-supabase.instructions.md +0 -28
  154. package/assistant-adapters/model-selection/claude-code-subagents-with-models.md +0 -32
  155. package/assistant-adapters/model-selection/codex-config.example.toml +0 -32
  156. package/assistant-adapters/model-selection/cursor-model-selection.mdc +0 -24
  157. package/assistant-adapters/model-selection/github-copilot-model-selection.md +0 -20
  158. package/assistant-adapters/orchestrator-runtime.md +0 -39
  159. package/checklists/accessibility.md +0 -12
  160. package/checklists/agent-council.md +0 -13
  161. package/checklists/brand-content.md +0 -15
  162. package/checklists/deployment.md +0 -10
  163. package/checklists/design-critique.md +0 -13
  164. package/checklists/frontend-distinctiveness.md +0 -12
  165. package/checklists/frontend-product-quality.md +0 -13
  166. package/checklists/frontend-quality.md +0 -21
  167. package/checklists/marketing-copy.md +0 -11
  168. package/checklists/owasp.md +0 -12
  169. package/checklists/rls.md +0 -10
  170. package/checklists/testing.md +0 -12
  171. package/checklists/ui-acceptance-rubric.md +0 -58
  172. package/checklists/ui-detectors.md +0 -81
  173. package/checklists/upgrade.md +0 -13
  174. package/checklists/visual-regression.md +0 -11
  175. package/design-adapters/claude-design.prompt.md +0 -27
  176. package/design-adapters/figma.prompt.md +0 -18
  177. package/design-adapters/google-stitch.prompt.md +0 -36
  178. package/design-adapters/human-designer-brief.prompt.md +0 -36
  179. package/design-briefs/admin-dashboard.md +0 -21
  180. package/design-briefs/ai-workflow-product.md +0 -25
  181. package/design-briefs/community-social.md +0 -26
  182. package/design-briefs/content-app.md +0 -21
  183. package/design-briefs/ecommerce.md +0 -25
  184. package/design-briefs/education-course.md +0 -25
  185. package/design-briefs/marketplace.md +0 -21
  186. package/design-briefs/portfolio-venue.md +0 -25
  187. package/design-briefs/saas.md +0 -21
  188. package/design-briefs/tool.md +0 -21
  189. package/examples/next-supabase-installed/.agent-kit/agent-roster.json +0 -267
  190. package/examples/next-supabase-installed/.agent-kit/model-routing.json +0 -171
  191. package/examples/next-supabase-installed/.agent-kit/overrides.json +0 -3
  192. package/examples/next-supabase-installed/audit-output.json +0 -405
  193. package/model-routing/default-model-routing.json +0 -171
  194. package/profiles/admin-app.md +0 -17
  195. package/profiles/content-app.md +0 -17
  196. package/profiles/marketplace.md +0 -17
  197. package/profiles/saas.md +0 -17
  198. package/profiles/stack-next-firebase.md +0 -25
  199. package/profiles/stack-next-postgres.md +0 -24
  200. package/profiles/stack-remix-supabase.md +0 -24
  201. package/prompts/audit-project-setup.md +0 -28
  202. package/prompts/brand-content-intake.md +0 -17
  203. package/prompts/copy-review.md +0 -15
  204. package/prompts/council-session-review.md +0 -17
  205. package/prompts/creative-direction-matrix.md +0 -22
  206. package/prompts/design-critique-gate.md +0 -28
  207. package/prompts/docs-update.md +0 -16
  208. package/prompts/frontend-design-review.md +0 -35
  209. package/prompts/frontend-distinctiveness-benchmark.md +0 -32
  210. package/prompts/frontend-product-quality-scorecard.md +0 -35
  211. package/prompts/implement-feature.md +0 -14
  212. package/prompts/lifecycle-command-index.md +0 -180
  213. package/prompts/migration-review.md +0 -14
  214. package/prompts/screenshot-review.md +0 -28
  215. package/prompts/security-review.md +0 -17
  216. package/prompts/ui-command-index.md +0 -124
  217. package/prompts/upgrade-review.md +0 -18
  218. package/prompts/visual-qa-plan.md +0 -16
  219. package/research/proposed-updates.md +0 -70
  220. package/research/scan-config.json +0 -261
  221. package/research/scan-plan.md +0 -24
  222. package/research/summaries/.gitkeep +0 -1
  223. package/research/summaries/agent-workflow-patterns.md +0 -37
  224. package/research/summaries/agentic-engineering-maturity-levels.md +0 -54
  225. package/research/summaries/creative-design-patterns.md +0 -38
  226. package/research/summaries/design-critique-patterns.md +0 -34
  227. package/research/summaries/docs-and-agent-patterns.md +0 -64
  228. package/research/summaries/dogfood-adoption-patterns.md +0 -33
  229. package/research/summaries/frontend-design-patterns.md +0 -64
  230. package/research/summaries/frontend-distinctiveness-benchmark-patterns.md +0 -38
  231. package/research/summaries/frontend-product-quality-rubric-patterns.md +0 -37
  232. package/research/summaries/maturity-model-patterns.md +0 -29
  233. package/research/summaries/nextjs-patterns.md +0 -65
  234. package/research/summaries/repo-health-patterns.md +0 -41
  235. package/research/summaries/scan-overview.md +0 -46
  236. package/research/summaries/security-patterns.md +0 -64
  237. package/research/summaries/supabase-rls-patterns.md +0 -54
  238. package/research/summaries/supply-chain-patterns.md +0 -38
  239. package/research/summaries/testing-patterns.md +0 -63
  240. package/research/summaries/upgrade-lifecycle-patterns.md +0 -26
  241. package/research/summaries/visual-qa-patterns.md +0 -39
  242. package/rosters/next-supabase-default-council.json +0 -267
  243. package/runtime-skills/README.md +0 -7
  244. package/runtime-skills/accessibility-wcag/SKILL.md +0 -8
  245. package/runtime-skills/agent-handoff-tracing/SKILL.md +0 -8
  246. package/runtime-skills/best-practice-maturity-review/SKILL.md +0 -8
  247. package/runtime-skills/content-first-design/SKILL.md +0 -8
  248. package/runtime-skills/conversion-copywriting/SKILL.md +0 -8
  249. package/runtime-skills/deployment-observability/SKILL.md +0 -8
  250. package/runtime-skills/docs-maintainer/SKILL.md +0 -8
  251. package/runtime-skills/frontend-design-system/SKILL.md +0 -8
  252. package/runtime-skills/frontend-distinctiveness-benchmark/SKILL.md +0 -8
  253. package/runtime-skills/frontend-product-quality-rubric/SKILL.md +0 -8
  254. package/runtime-skills/landing-page-copy/SKILL.md +0 -8
  255. package/runtime-skills/nextjs-app-router/SKILL.md +0 -8
  256. package/runtime-skills/onboarding-empty-state-copy/SKILL.md +0 -8
  257. package/runtime-skills/owasp-security-review/SKILL.md +0 -8
  258. package/runtime-skills/planning-council/SKILL.md +0 -8
  259. package/runtime-skills/positioning-messaging/SKILL.md +0 -8
  260. package/runtime-skills/postgres-migrations/SKILL.md +0 -8
  261. package/runtime-skills/product-voice-tone/SKILL.md +0 -8
  262. package/runtime-skills/reference-led-design-critique/SKILL.md +0 -8
  263. package/runtime-skills/supabase-auth-rls/SKILL.md +0 -8
  264. package/runtime-skills/testing-qa/SKILL.md +0 -8
  265. package/runtime-skills/ui-improvement-harness/SKILL.md +0 -12
  266. package/runtime-skills/upgrade-maintenance/SKILL.md +0 -8
  267. package/runtime-skills/visual-regression-qa/SKILL.md +0 -8
  268. package/schemas/agent-roster.schema.json +0 -54
  269. package/schemas/agentic-level.schema.json +0 -47
  270. package/schemas/audit-report-v2.schema.json +0 -71
  271. package/schemas/audit-report.schema.json +0 -50
  272. package/schemas/correction-rules.schema.json +0 -32
  273. package/schemas/council-session.schema.json +0 -65
  274. package/schemas/model-routing.schema.json +0 -72
  275. package/schemas/onboarding-state.schema.json +0 -36
  276. package/schemas/orchestrator.schema.json +0 -167
  277. package/schemas/project-context.schema.json +0 -94
  278. package/schemas/runtime-event.schema.json +0 -66
  279. package/schemas/runtime-run.schema.json +0 -58
  280. package/schemas/session-event.schema.json +0 -48
  281. package/schemas/studio-session.schema.json +0 -48
  282. package/skills/accessibility-wcag.md +0 -15
  283. package/skills/agent-handoff-tracing.md +0 -44
  284. package/skills/best-practice-maturity-review.md +0 -26
  285. package/skills/content-first-design.md +0 -50
  286. package/skills/conversion-copywriting.md +0 -38
  287. package/skills/deployment-observability.md +0 -14
  288. package/skills/docs-maintainer.md +0 -19
  289. package/skills/frontend-design-system.md +0 -68
  290. package/skills/frontend-distinctiveness-benchmark.md +0 -40
  291. package/skills/frontend-product-quality-rubric.md +0 -59
  292. package/skills/landing-page-copy.md +0 -29
  293. package/skills/nextjs-app-router.md +0 -18
  294. package/skills/onboarding-empty-state-copy.md +0 -37
  295. package/skills/owasp-security-review.md +0 -19
  296. package/skills/planning-council.md +0 -21
  297. package/skills/positioning-messaging.md +0 -42
  298. package/skills/postgres-migrations.md +0 -14
  299. package/skills/product-voice-tone.md +0 -35
  300. package/skills/reference-led-design-critique.md +0 -48
  301. package/skills/supabase-auth-rls.md +0 -20
  302. package/skills/testing-qa.md +0 -15
  303. package/skills/ui-improvement-harness.md +0 -96
  304. package/skills/upgrade-maintenance.md +0 -32
  305. package/skills/visual-regression-qa.md +0 -42
  306. package/templates/next-supabase/.agent-kit/orchestrator.json +0 -48
  307. package/templates/next-supabase/.agent-kit/runtime/gitignore.template +0 -2
  308. package/templates/next-supabase/.github/workflows/agent-kit-audit.yml +0 -35
  309. package/templates/next-supabase/AGENT_ROSTER.md +0 -101
  310. package/templates/next-supabase/ASSISTANT_ADAPTERS.md +0 -146
  311. package/templates/next-supabase/COUNCIL.md +0 -54
  312. package/templates/next-supabase/DECISIONS.md +0 -87
  313. package/templates/next-supabase/DEPLOYMENT.md +0 -49
  314. package/templates/next-supabase/DESIGN.md +0 -180
  315. package/templates/next-supabase/DOCS.md +0 -80
  316. package/templates/next-supabase/LOOP_CODING.md +0 -98
  317. package/templates/next-supabase/MESSAGING.md +0 -81
  318. package/templates/next-supabase/MODEL_ROUTING.md +0 -130
  319. package/templates/next-supabase/QUALITY_GATES.md +0 -97
  320. package/templates/next-supabase/SKILLS.md +0 -235
  321. package/templates/next-supabase/SPEC.md +0 -122
  322. package/templates/next-supabase/STYLE_GUIDE.md +0 -121
  323. package/templates/next-supabase/TESTING.md +0 -91
@@ -1,235 +0,0 @@
1
- # Skills
2
-
3
- Use these reusable skills when building or reviewing this project.
4
-
5
- ## Planning And Agent Council
6
-
7
- Use for planning requests, roadmap work, ambiguous feature requests, core architecture changes, auth/data changes, release changes, and any task that needs multiple agent roles.
8
-
9
- Required checks:
10
- - Planner starts planning and ambiguous requests.
11
- - Lead Architect reviews core changes before implementation.
12
- - Security Reviewer joins auth, data mutation, external-call, dependency, secret, and release-risk changes.
13
- - QA Engineer verifies behavior changes before completion.
14
- - Documentation Maintainer updates living docs when behavior, architecture, release, or standards change.
15
-
16
- ## Best-Practice Maturity Review
17
-
18
- Use for setup audits, release readiness, roadmap checkpoints, dogfood reviews, and any claim that work is best-practice rather than merely functional.
19
-
20
- Required checks:
21
- - `QUALITY_GATES.md` names the target level: baseline, strong, or best-practice.
22
- - Affected areas are mapped across council, architecture, Supabase/RLS, security, frontend, accessibility, testing, release, docs, and repo health.
23
- - Evidence is named for each affected area.
24
- - Missing evidence is treated as incomplete, not as a passing caveat.
25
- - Research findings are promoted into templates, skills, checklists, audit checks, tests, release gates, or decisions before they count as kit behavior.
26
-
27
- ## Agent Handoff Tracing
28
-
29
- Use for meaningful multi-agent work, core changes, security-sensitive changes, frontend acceptance reviews, release work, and any task where a decision should survive beyond the chat thread.
30
-
31
- Required checks:
32
- - Select the workflow from `.agent-kit/agent-roster.json`.
33
- - Select or confirm the model profile from `MODEL_ROUTING.md` and `.agent-kit/model-routing.json`.
34
- - Read `.agent-kit/project-context.json`, `.agent-kit/project-context.md`, and active correction files before routing meaningful work.
35
- - Record council-session evidence in Agent Studio with `agent-kit session ...` commands when available, or in `COUNCIL.md` / schema-backed records when CLI tooling is unavailable.
36
- - Capture each agent decision, risk, next handoff, and evidence.
37
- - Mark required outputs as missing, partial, complete, or not applicable.
38
- - Record verification commands, results, and skipped-test rationale.
39
- - Record human corrections before continuing and promote durable project or agent corrections when the correction should apply to future sessions.
40
-
41
- ## Upgrade Maintenance
42
-
43
- Use for Agent Kit, Next.js, Supabase, UI library, testing tool, release workflow, or assistant-adapter upgrades.
44
-
45
- Required checks:
46
- - Read `UPGRADE.md` before accepting versioned behavior changes.
47
- - Run `agent-kit diff` before accepting template changes.
48
- - Run `agent-kit update` only on a branch where conflicts can be reviewed.
49
- - Preserve valid local overrides in `.agent-kit/overrides.json`.
50
- - Check Next.js upgrade guides and codemods when framework behavior changes.
51
- - Check Supabase migration history, RLS impact, generated types, and rollback risk when data/auth behavior changes.
52
- - Record package versions, migration order, rollback notes, verification commands, owner, and date.
53
-
54
- ## Next.js App Router Architecture
55
-
56
- Use for routing, Server Components, Client Components, Server Actions, Route Handlers, data fetching, caching, revalidation, metadata, and protected app layouts.
57
-
58
- Required checks:
59
- - Server/client boundary is explicit.
60
- - Secrets never enter client bundles.
61
- - Data loading preserves auth context.
62
- - Loading, error, and empty states are handled.
63
- - Caching and revalidation cannot leak user-specific data.
64
-
65
- ## Supabase Auth, SSR, And RLS
66
-
67
- Use for Supabase Auth, SSR clients, middleware, sessions, Row Level Security, Storage policies, and service-role usage.
68
-
69
- Required checks:
70
- - RLS protects every user-owned or tenant-owned table.
71
- - UI checks are not treated as authorization.
72
- - Service-role keys are server-only.
73
- - Auth redirects and session refreshes are tested.
74
- - IDOR is prevented at the SQL policy boundary.
75
-
76
- ## Postgres Migrations And Schema
77
-
78
- Use for schema changes, constraints, indexes, SQL functions, triggers, seed data, and rollback planning.
79
-
80
- Required checks:
81
- - Migrations are ordered and reversible where practical.
82
- - Constraints protect integrity.
83
- - Indexes support expected access patterns.
84
- - Data migrations have failure and retry guidance.
85
-
86
- ## OWASP Security Review
87
-
88
- Use for every auth change, API route, Server Action, data mutation, external call, file upload, or dependency addition.
89
-
90
- Required checks:
91
- - Injection, broken auth, IDOR, SSRF, insecure configuration, vulnerable dependencies, and unsafe deserialization are considered.
92
- - Inputs are validated and outputs are safely rendered.
93
- - Errors are explicit but do not leak secrets.
94
-
95
- ## Frontend Design System
96
-
97
- Use for every user-facing screen and component.
98
-
99
- Required checks:
100
- - `DESIGN.md` has enough brand, content, user-need, and creative-direction context for the screen.
101
- - Reference-set, anti-reference, source-safety, and distinctiveness evidence exists for significant frontend work.
102
- - Frontend distinctiveness benchmark evidence exists for significant frontend work: first-screen proof, content fingerprint, reference benchmark, asset provenance, state proof, and visual QA proof.
103
- - Frontend product-quality scorecard exists for significant frontend work.
104
- - Interface is domain-specific and task-first.
105
- - Design tokens and component patterns are consistent.
106
- - Avoid generic AI-site defaults.
107
- - Loading, empty, error, disabled, success, and mobile states are designed.
108
- - Use the matching `.agent-kit/design-briefs/*` brief for SaaS, admin, marketplace, content, tool, ecommerce, portfolio/venue, education, community/social, or AI workflow surfaces.
109
- - Review final desktop and mobile screenshots with `.agent-kit/prompts/screenshot-review.md`.
110
-
111
- ## UI Improvement Harness
112
-
113
- Use for operational UI audit, polish, layout cleanup, responsive cleanup, accessibility pass, screenshot critique, visual distinctiveness pass, and live browser QA loops.
114
-
115
- Required checks:
116
- - Use `.agent-kit/prompts/ui-command-index.md` to pick the workflow: UI audit, UI polish, layout cleanup, responsive cleanup, accessibility pass, distinctiveness pass, screenshot critique, or browser QA.
117
- - Run `.agent-kit/checklists/ui-detectors.md` and classify findings as blocker, major, minor, pass, or not applicable.
118
- - Apply `.agent-kit/checklists/ui-acceptance-rubric.md` before release.
119
- - Require desktop and mobile screenshot evidence for meaningful UI changes.
120
- - Require authenticated or permission-state evidence for protected app screens.
121
- - Block release when blocker detector findings remain.
122
- - Fix major findings or document accepted exceptions before high-risk UI changes ship.
123
- - Record route, viewport, auth state, data state, screenshots, detector findings, and residual risks.
124
-
125
- ## Content-First Creative Direction
126
-
127
- Use before designing or changing a user-facing site, product screen, dashboard, tool, marketplace, content experience, ecommerce flow, portfolio, venue page, education product, community surface, or AI workflow UI.
128
-
129
- Required checks:
130
- - Audience, user needs, product category, and content inventory are explicit.
131
- - Brand personality, visual constraints, category references, and non-goals are captured.
132
- - At least two creative directions are considered before implementation.
133
- - The chosen direction affects tokens, layout, copy, imagery, density, and interaction tone.
134
- - Missing real content or assets are documented instead of hidden behind generic placeholders.
135
-
136
- ## Reference-Led Design Critique
137
-
138
- Use before accepting significant frontend work, especially when the product risks looking like a generic AI-generated site.
139
-
140
- Required checks:
141
- - `DESIGN.md` includes 3-5 references and 2-3 anti-references.
142
- - References are used for hierarchy, density, state treatment, typography, content handling, or interaction learning without copying source designs.
143
- - Source-safety notes name brand marks, layouts, copy, and protected assets that must not be copied.
144
- - Distinctiveness is judged as weak, adequate, or strong.
145
- - `.agent-kit/prompts/design-critique-gate.md` records required changes and missing evidence before acceptance.
146
-
147
- ## Frontend Product Quality Rubric
148
-
149
- Use before accepting significant frontend work when a repeatable acceptance score is needed.
150
-
151
- Required checks:
152
- - User/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, and source safety are scored `0-2`.
153
- - Critical zeroes are rejected.
154
- - Total score is at least `10/14` before acceptance.
155
- - Best-practice frontend claim requires at least `12/14`, desktop/mobile review, and visual QA evidence.
156
- - Best-practice frontend claim also requires passing distinctiveness benchmark evidence.
157
-
158
- ## Frontend Distinctiveness Benchmark
159
-
160
- Use before accepting significant frontend work that could still be interchangeable with another product in the same category.
161
-
162
- Required checks:
163
- - The first viewport proves the real product object, task, workflow, content, or decision.
164
- - Product nouns, labels, data shapes, records, actions, and edge cases are visible or documented.
165
- - References are translated into lessons and anti-references without copied source design, brand identity, copy, or assets.
166
- - Asset provenance is recorded for real, generated, licensed, and placeholder visuals.
167
- - Important states and desktop/mobile evidence exist for the change risk.
168
- - Reject work that would still look valid after only changing the logo or headline.
169
-
170
- ## Marketing Copy And Messaging
171
-
172
- Use before writing or accepting public-facing pages, landing pages, pricing copy, CTAs, onboarding copy, empty states, product voice, or conversion-critical UX copy.
173
-
174
- Required checks:
175
- - `MESSAGING.md` identifies audience, pain, desired outcome, alternatives, differentiator, proof, objections, voice, and conversion goal.
176
- - Missing positioning inputs are asked as explicit questions before final copy is written.
177
- - Claims are supported by named proof or marked as assumptions.
178
- - Headline, subhead, CTA, proof, and objection handling match the same value proposition.
179
- - Copy uses real product nouns, workflows, constraints, and customer language.
180
- - CTAs have one primary action and clear secondary actions.
181
- - Risky pricing, privacy, security, compliance, performance, medical, financial, or legal claims are reviewed before release.
182
- - Marketing Copy Lead hands off public-facing copy to Frontend Design Lead for layout and hierarchy review.
183
-
184
- ## Accessibility WCAG 2.1 AA
185
-
186
- Use for forms, navigation, modals, menus, tables, dashboards, and any custom interaction.
187
-
188
- Required checks:
189
- - Semantic HTML is preferred.
190
- - ARIA is used only when needed.
191
- - Keyboard navigation and focus states work.
192
- - Color contrast meets WCAG 2.1 AA.
193
-
194
- ## Testing And QA
195
-
196
- Use for unit, integration, regression, Playwright smoke coverage, visual QA, and acceptance evidence.
197
-
198
- Required checks:
199
- - Core logic has unit tests.
200
- - Preserved behavior has regression tests.
201
- - Critical paths have smoke tests.
202
- - Auth and data mutation paths are prioritized.
203
- - High-risk UI changes have screenshot or visual-regression evidence.
204
-
205
- ## Visual Regression QA
206
-
207
- Use when changing user-facing screens, reusable components, visual design tokens, responsive layouts, image-heavy pages, or any surface where appearance is part of acceptance.
208
-
209
- Required checks:
210
- - Visual QA tier is named: baseline screenshots, Playwright screenshots, Storybook visual tests, or visual-regression service.
211
- - Component states and important responsive breakpoints are captured.
212
- - Dynamic or volatile regions are mocked, masked, frozen, or excluded with rationale.
213
- - Baseline updates require human review and a short rationale.
214
- - Visual checks do not replace accessibility, keyboard, semantic, auth, or data-boundary tests.
215
-
216
- ## Documentation Maintenance
217
-
218
- Use after every significant change.
219
-
220
- Required checks:
221
- - `SPEC.md` reflects current behavior.
222
- - `DECISIONS.md` records important tradeoffs.
223
- - `DOCS.md` explains workflows and integration points.
224
- - `COUNCIL.md` captures required handoffs and evidence for meaningful multi-agent work.
225
- - `MODEL_ROUTING.md` captures model profile and IDE enforcement evidence.
226
- - `QUALITY_GATES.md`, `DESIGN.md`, `MESSAGING.md`, `STYLE_GUIDE.md`, `SECURITY.md`, `TESTING.md`, `DEPLOYMENT.md`, and `UPGRADE.md` stay current.
227
-
228
- ## Compatibility Profiles
229
-
230
- Use `.agent-kit/profiles/*` before feature planning when the project is a SaaS, marketplace, admin app, or content app.
231
-
232
- Required checks:
233
- - The project type's auth, data, design, testing, and handoff risks are named.
234
- - Agent ownership matches the profile.
235
- - Missing profile assumptions are recorded in `DECISIONS.md`.
@@ -1,122 +0,0 @@
1
- # Specification
2
-
3
- This file is the living functional and technical specification for the project.
4
-
5
- ## Product Summary
6
-
7
- Describe the product, primary users, core workflows, and business-critical behavior.
8
-
9
- ## Current Architecture
10
-
11
- Document the current system shape:
12
-
13
- - Next.js routing model
14
- - Server Components and Client Components
15
- - Route Handlers and Server Actions
16
- - Supabase Auth flow
17
- - Supabase tables, RLS policies, and Storage buckets
18
- - Deployment target
19
- - Observability and logging
20
-
21
- ## Behavioral Contracts
22
-
23
- List behavior that must be preserved during changes:
24
-
25
- - Agent council routing in `.agent-kit/agent-roster.json`
26
- - Model profile routing in `MODEL_ROUTING.md` and `.agent-kit/model-routing.json`
27
- - Optional runtime adapter commands and portable `SKILL.md` wrappers, when activated
28
- - Optional executable runtime policy in `.agent-kit/orchestrator.json`, when activated
29
- - UI improvement command workflows, detector severity findings, and acceptance rubric when frontend work is in scope
30
- - Council-session evidence in `COUNCIL.md`
31
- - Agent, council-session, model-routing, orchestrator, runtime-run, runtime-event, and audit-report schema contracts in `.agent-kit/schemas/`
32
- - Planner default ownership for planning and Lead Architect review for core changes
33
- - Quality gate evidence in `QUALITY_GATES.md`
34
- - Content-first design direction in `DESIGN.md`
35
- - Messaging and copy evidence in `MESSAGING.md`
36
- - Reference-led design critique evidence in `DESIGN.md`
37
- - Auth and session behavior
38
- - User ownership and tenant boundaries
39
- - Data mutation rules
40
- - API response expectations
41
- - UI workflows and critical paths
42
-
43
- ## Data Model
44
-
45
- Document tables, relationships, constraints, indexes, and ownership rules.
46
-
47
- ## RLS Policy Inventory
48
-
49
- Track authorization at the data boundary.
50
-
51
- | Table/Bucket | Owner Boundary | Select | Insert | Update | Delete | Notes |
52
- | --- | --- | --- | --- | --- | --- | --- |
53
- | `example_table` | `user_id = auth.uid()` | Required | Required | Required | Optional | Replace with real policy names. |
54
-
55
- ## Security Requirements
56
-
57
- - Authorization is enforced by Supabase RLS.
58
- - Service-role keys are server-only.
59
- - User input is validated at all boundaries.
60
- - User-controlled output is safely rendered.
61
- - Privileged operations are logged.
62
-
63
- ## Quality Gate Level
64
-
65
- Record the current maturity target and evidence.
66
-
67
- | Area | Baseline | Strong | Best-Practice | Evidence |
68
- | --- | --- | --- | --- | --- |
69
- | Council routing | TBD | TBD | TBD | `AGENT_ROSTER.md`, `COUNCIL.md` |
70
- | Model routing | TBD | TBD | TBD | `MODEL_ROUTING.md`, `ASSISTANT_ADAPTERS.md` |
71
- | Runtime adapters | TBD | TBD | TBD | `agent-kit adapter validate antigravity`, `.antigravity/agent-kit/`, `.antigravity/runtime-skills/` |
72
- | Executable orchestration | TBD | TBD | TBD | `agent-kit orchestrate validate`, plan/status output, approvals, redacted events, scoped worktree commit |
73
- | Architecture | TBD | TBD | TBD | Affected-layer map, `DECISIONS.md` |
74
- | Supabase/RLS | TBD | TBD | TBD | RLS inventory, migration tests |
75
- | Messaging | TBD | TBD | TBD | `MESSAGING.md`, proof map, objection handling, CTA hierarchy |
76
- | Frontend | TBD | TBD | TBD | `DESIGN.md`, reference-set evidence, design critique verdict, product-quality scorecard, UI detector findings, screenshots, visual QA |
77
- | Testing | TBD | TBD | TBD | Unit, regression, smoke, visual evidence |
78
- | Release | TBD | TBD | TBD | `DEPLOYMENT.md`, logs, rollback notes |
79
-
80
- ## UX Requirements
81
-
82
- - Interfaces are mobile-first and accessible.
83
- - Loading, empty, error, disabled, and success states are handled.
84
- - Visual design is domain-specific and avoids generic AI-site defaults.
85
- - Audience, user needs, real content, brand constraints, and creative direction are documented before frontend implementation.
86
- - Audience, pain, desired outcome, differentiator, proof, objections, voice, and CTA hierarchy are documented before public-facing or conversion-facing copy is accepted.
87
- - Reference set, anti-references, source-safety notes, and design critique verdict are documented before accepting significant frontend work.
88
- - Frontend product-quality scorecard is documented before accepting significant frontend work.
89
- - UI detector findings are classified before accepting meaningful audit, polish, layout, responsive, accessibility, screenshot, distinctiveness, or browser QA work.
90
- - Authenticated or permission-state screenshots are reviewed when the changed surface requires login, roles, tenant context, or permissions.
91
- - First screens show the real product, task, object, content, or workflow.
92
-
93
- ## Brand And Content Inventory
94
-
95
- Track the inputs that make the UI specific to this product.
96
-
97
- | Area | Current Decision | Evidence |
98
- | --- | --- | --- |
99
- | Product category | TBD | `DESIGN.md` |
100
- | Primary audience | TBD | User research, analytics, stakeholder input, or project brief |
101
- | User needs | TBD | `DESIGN.md` and accepted stories |
102
- | Real content/data | TBD | Seeds, CMS, database schema, product copy, assets |
103
- | Value proposition | TBD | `MESSAGING.md`, proof, objections, and CTA evidence |
104
- | Brand constraints | TBD | Logo, colors, fonts, imagery, platform rules |
105
- | Reference set | TBD | `DESIGN.md`, category references, source-safety notes |
106
- | Anti-references | TBD | `DESIGN.md`, explicit non-goals |
107
- | Chosen creative direction | TBD | Creative-direction matrix and screenshots |
108
- | Design critique verdict | TBD | `DESIGN.md`, critique-gate review |
109
- | Visual QA tier | TBD | `TESTING.md`, Storybook, Playwright report, visual-regression service, or screenshot artifacts |
110
- | UI detector evidence | TBD | `.agent-kit/checklists/ui-detectors.md`, `.agent-kit/checklists/ui-acceptance-rubric.md`, browser QA notes |
111
-
112
- ## Component And State Inventory
113
-
114
- Track important UI surfaces so design quality is reviewable.
115
-
116
- | Surface | Components | Loading | Empty | Error | Disabled | Success | Mobile Notes |
117
- | --- | --- | --- | --- | --- | --- | --- | --- |
118
- | Primary workflow | TBD | TBD | TBD | TBD | TBD | TBD | TBD |
119
-
120
- ## Open Questions
121
-
122
- Track unresolved product or technical decisions here until they become entries in `DECISIONS.md`.
@@ -1,121 +0,0 @@
1
- # Style Guide
2
-
3
- ## Code Style
4
-
5
- - Prefer explicit names over clever abbreviations.
6
- - Keep server-only logic in server-only modules.
7
- - Keep UI components focused on rendering and interaction.
8
- - Validate inputs at boundaries before calling business logic.
9
- - Return clear errors; do not silently swallow failures.
10
-
11
- ## Next.js Patterns
12
-
13
- - Use Server Components by default.
14
- - Use Client Components only for browser state, events, effects, or client-only libraries.
15
- - Keep Route Handlers and Server Actions thin.
16
- - Keep user-specific data out of shared caches.
17
-
18
- ## Supabase Patterns
19
-
20
- - Use SSR-safe Supabase clients.
21
- - Enforce ownership and tenancy through RLS.
22
- - Keep service-role access isolated to trusted server code.
23
- - Document every policy assumption.
24
-
25
- ## Frontend Design Rules
26
-
27
- Use `DESIGN.md` before visual implementation. Frontend work should be content-first: audience, user needs, real content, brand constraints, and creative direction must be understood before styling starts.
28
-
29
- Do not default to generic AI-site visual patterns:
30
-
31
- - No generic purple-blue gradient hero as the default solution.
32
- - No fake metrics or placeholder dashboard cards.
33
- - No vague SaaS copy.
34
- - No oversized rounded card grids unless the domain calls for them.
35
- - No landing page when the user asked for a working app or tool.
36
-
37
- Prefer:
38
-
39
- - Task-first screens.
40
- - Domain-specific navigation and information hierarchy.
41
- - Real workflow states.
42
- - Reusable design tokens.
43
- - Accessible forms and controls.
44
- - Clear density rules for admin, SaaS, and operational tools.
45
- - Mobile-first responsive layouts.
46
- - Creative direction that is visibly tied to product content and user need.
47
-
48
- ### Anti-Slop UI Rules
49
-
50
- Do not use generic AI-slop treatments as a substitute for product design. If a mature brand system intentionally uses one of these patterns, record the exception and rationale in `DESIGN.md` or `.agent-kit/overrides.json`.
51
-
52
- - No accent-border cards. Replace thick, high-contrast, one-sided colored borders, glow rails, neon strokes, and gradient borders on cards, callouts, alerts, panels, or status messages with restrained 1px full-border surfaces, subtle background tint when needed, clear labels, icons, and semantic state text.
53
- - No gradient-as-design. Replace generic purple-blue gradient heroes, gradient text, and gradient blobs with product-specific imagery, workflow screenshots, object-focused media, real content, or a quiet tokenized background.
54
- - No card soup. Replace large grids of decorative cards with task-first layouts: tables, lists, timelines, forms, split panes, dashboards with real hierarchy, or workflow-specific grouped sections.
55
- - No fake dashboard proof. Replace invented metrics, placeholder charts, and claims like "98% faster" with real product data, honest sample labels, empty states, or "connect data to view this" states.
56
- - No vague SaaS sayings. Replace phrases like "supercharge your workflow", "unlock insights", "seamless collaboration", or "AI-powered productivity" with concrete user actions, product nouns, constraints, and outcomes the product actually supports.
57
- - No badge or confetti credibility. Replace decorative badges, pills, stars, awards, or "trusted by" placeholders with real proof, integration names, security posture, support details, or omit the section.
58
- - No oversized rounded glass panels. Replace translucent blur cards, frosted panels, and soft-glow shells with normal surfaces, clear section boundaries, practical density, and brand-appropriate depth.
59
- - No ornamental icon walls. Replace generic floating icons with functional icons attached to commands, states, navigation, feature rows, or concrete workflow steps.
60
- - No layout filler sections. Replace generic "features", "benefits", or "how it works" sections when the user asked for an app or tool with the actual usable workflow as the first screen.
61
- - No inaccessible decorative state styling. Replace color-only alerts, low-contrast tints, and vague status panels with semantic text, icons, ARIA-compatible state, WCAG AA contrast, and recovery actions.
62
-
63
- Use `.agent-kit/prompts/brand-content-intake.md` and `.agent-kit/prompts/creative-direction-matrix.md` when inputs are under-specified. Use `.agent-kit/design-briefs/*` before designing SaaS, admin dashboard, marketplace, content app, tool, ecommerce, portfolio/venue, education, community/social, or AI workflow surfaces. Use `.agent-kit/prompts/screenshot-review.md` after implementation to review desktop and mobile screenshots. Use `.agent-kit/prompts/visual-qa-plan.md` when a change needs repeatable visual regression or component-state evidence.
64
-
65
- Use `.agent-kit/prompts/design-critique-gate.md` before accepting significant frontend work. `DESIGN.md` should name a reference set, anti-references, source-safety notes, and a distinctiveness verdict so a design cannot pass only because it has tokens, states, and screenshots.
66
-
67
- Use `.agent-kit/prompts/frontend-distinctiveness-benchmark.md` before accepting significant frontend work. `DESIGN.md` should prove first-screen specificity, content fingerprint, reference benchmark, asset provenance, state proof, and visual QA proof so a design cannot pass while remaining interchangeable with another product in the same category.
68
-
69
- Use `.agent-kit/prompts/frontend-product-quality-scorecard.md` before accepting significant frontend work. `DESIGN.md` should score user/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, and source safety. Reject work with critical zeroes or a total score below `10/14`; reserve best-practice claims for `12/14` or higher with desktop/mobile, authenticated screen evidence when applicable, UI detector findings, and visual QA evidence.
70
-
71
- Use `.agent-kit/prompts/ui-command-index.md`, `.agent-kit/checklists/ui-detectors.md`, and `.agent-kit/checklists/ui-acceptance-rubric.md` for UI audit, polish, layout cleanup, responsive cleanup, accessibility pass, distinctiveness pass, screenshot critique, and browser QA loops.
72
-
73
- ## Messaging And Copy Rules
74
-
75
- Use `MESSAGING.md` before writing public-facing or conversion-facing copy. Copy should identify the audience, pain, desired outcome, differentiator, proof, objections, voice, and CTA hierarchy before it is accepted.
76
-
77
- Prefer:
78
-
79
- - Specific product nouns, workflows, constraints, and customer language.
80
- - Claims tied to proof or marked as assumptions.
81
- - One primary CTA with clear secondary actions.
82
- - Useful next steps for onboarding, empty, error, permission, upgrade, and pricing copy.
83
-
84
- Reject unsupported superlatives, invented proof, dark patterns, forced urgency, vague AI claims, and risky pricing, privacy, security, compliance, performance, medical, financial, or legal wording.
85
-
86
- ## Design Token Inventory
87
-
88
- Define design tokens instead of ad hoc styling.
89
-
90
- | Token Area | Required Decisions |
91
- | --- | --- |
92
- | Color | Semantic colors, contrast, status colors |
93
- | Typography | Font family, scale, weights, line height |
94
- | Spacing | Base unit, dense/admin spacing, section spacing |
95
- | Radius | Component radius defaults and exceptions |
96
- | Motion | Duration, easing, reduced-motion behavior |
97
- | Shadow/Depth | When elevation is allowed |
98
-
99
- ## Component States
100
-
101
- Every interactive component should consider:
102
-
103
- - Default
104
- - Hover
105
- - Focus
106
- - Disabled
107
- - Loading
108
- - Empty
109
- - Error
110
- - Success
111
- - Mobile
112
-
113
- For reusable components, capture these states as Storybook stories, Playwright screenshot cases, or documented screenshot evidence when the component is visually significant.
114
-
115
- ## Accessibility
116
-
117
- - Use semantic HTML first.
118
- - Use ARIA only when semantics are insufficient.
119
- - Keep keyboard navigation predictable.
120
- - Maintain visible focus states.
121
- - Meet WCAG 2.1 AA contrast.
@@ -1,91 +0,0 @@
1
- # Testing
2
-
3
- Testing should be proportional to risk. Auth, data mutations, payments, admin actions, and migrations receive the most coverage.
4
-
5
- ## Required Test Types
6
-
7
- - Unit tests for core logic and edge cases.
8
- - Regression tests for preserved behavior.
9
- - Integration tests for API, Server Actions, and Supabase interactions where practical.
10
- - Playwright smoke tests for auth and critical user workflows.
11
- - Visual QA for important user-facing screens and reusable component states.
12
- - UI detector review for audit, polish, layout, responsive, accessibility, screenshot, distinctiveness, and browser QA workflows.
13
- - Runtime adapter validation for plugin manifests, native commands, portable `SKILL.md` wrappers, source-of-truth references, package allowlists, and secret safety.
14
-
15
- ## Critical Smoke Paths
16
-
17
- Define project-specific smoke tests for:
18
-
19
- - Login and logout
20
- - Protected route access
21
- - Primary user workflow
22
- - Data creation and update
23
- - Error and empty states
24
- - Mobile navigation
25
-
26
- ## Visual QA And Regression
27
-
28
- Choose the smallest reliable visual QA tier for the project:
29
-
30
- | Tier | Use When | Evidence |
31
- | --- | --- | --- |
32
- | Baseline | Any user-facing UI exists | Desktop/mobile screenshots reviewed with `.agent-kit/prompts/screenshot-review.md` |
33
- | Strong | Primary workflows or responsive layouts change often | Playwright screenshot checks such as `toHaveScreenshot()` for stable pages/states |
34
- | Mature | Shared component system, design system, or frequent UI releases | Storybook state stories plus visual regression in CI through Chromatic, Argos, Loki, Playwright snapshots, or equivalent |
35
-
36
- Required rules:
37
-
38
- - Capture default, loading, empty, error, disabled, success, permission-denied, and mobile states where relevant.
39
- - Run `.agent-kit/checklists/ui-detectors.md` for meaningful UI audit or polish work and classify blocker, major, minor, pass, and not-applicable findings.
40
- - High-risk UI changes require desktop and mobile screenshots plus authenticated or permission-state evidence when the workflow requires login, tenant context, roles, or permissions.
41
- - Stabilize dynamic data, animations, dates, avatars, generated media, and third-party widgets before visual comparison.
42
- - Review baseline updates as product changes; do not auto-accept visual diffs without rationale.
43
- - Keep accessibility, semantic, keyboard, auth, and data-boundary tests separate from visual checks.
44
-
45
- ## CI Gates
46
-
47
- Every project should define the smallest reliable CI gate for its risk profile.
48
-
49
- Recommended baseline:
50
-
51
- - Install from lockfile
52
- - Typecheck
53
- - Unit tests
54
- - Build
55
- - Dependency audit
56
- - `agent-kit audit --min-readiness baseline-setup`
57
- - Playwright smoke tests for critical paths
58
- - Visual QA evidence for high-risk UI changes
59
- - UI detector findings and accepted exceptions for meaningful UI changes
60
- - `agent-kit adapter validate antigravity` and `agent-kit package validate` when adapter/package assets change
61
-
62
- ### Eval-driven PR loop
63
-
64
- Repeat **implement → check → fix** until tests and audit pass. See the kit's [LOOP_CODING.md](LOOP_CODING.md) for loop types, council handoffs, and safe automation limits. Minimum check commands:
65
-
66
- ```bash
67
- npm test
68
- agent-kit audit --min-readiness baseline-setup
69
- agent-kit adapter validate all # when IDE or adapter assets change
70
- ```
71
-
72
- ## Optional Orchestrator Tests
73
-
74
- When `.agent-kit/orchestrator.json` is enabled, add evidence for offline config/plan validation, required capability routing, approval pause/resume, provider/MCP failure handling, Docker or explicit host policy, worktree isolation, scoped commit review, cancellation/timeout, and redacted event export. Use mocked loopback providers for deterministic tests; keep real credentials out of fixtures and CI logs.
75
-
76
- Run `agent-kit orchestrate status <run-id>` after a test run and record the run ID, approvals, worktree/commit, and remaining manual merge or cleanup step.
77
-
78
- ## Security-Focused Tests
79
-
80
- Prioritize:
81
-
82
- - IDOR attempts
83
- - Cross-tenant access attempts
84
- - Unauthorized API calls
85
- - RLS-protected reads and writes
86
- - Service-role-only operations
87
- - Secret-like values in runtime adapter assets, generated sessions, static exports, docs, and package files
88
-
89
- ## Test Gaps
90
-
91
- If test infrastructure does not exist, document the smallest viable setup and the risk of shipping without it.