@appsforgood/next-supabase-kit 0.3.0 → 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 +9 -0
  2. package/README.md +22 -555
  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 -8251
  18. package/dist/index.js.map +1 -1
  19. package/examples/next-supabase-installed/.agent-kit/config.json +22 -26
  20. package/examples/next-supabase-installed/.agent-kit/manifest.json +78 -222
  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 -42
  87. package/package.json +15 -43
  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 -201
  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 -83
  112. package/RESEARCH_CITATION_POLICY.md +0 -26
  113. package/SUPPLY_CHAIN.md +0 -57
  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 -34
  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 -51
  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 -98
  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 -107
@@ -1,140 +1,30 @@
1
- # Agent Setup
1
+ # Agents
2
2
 
3
- This project uses explicit agent roles so implementation, security, quality, and documentation do not collapse into one vague assistant.
3
+ This repo uses a small specialist pack. **Agent** = who. **Skill** = how. **Tool** = what they must use.
4
4
 
5
- Use `.agent-kit/agent-roster.json` as the default council contract. Use `MODEL_ROUTING.md` and `.agent-kit/model-routing.json` to choose model profiles for each agent. Before meaningful work, read `.agent-kit/project-context.json`, `.agent-kit/project-context.md`, and `.agent-kit/agent-briefs.md` when present, then apply active corrections from `.agent-kit/corrections/project-rules.json` and `.agent-kit/corrections/agent-rules.json`. When a request is ambiguous, planning-oriented, or cross-layer, start with Planner and follow the matching workflow in `AGENT_ROSTER.md`. Use `ASSISTANT_ADAPTERS.md` to confirm which AI coding tools load these instructions and how model selection is handled. Record meaningful council sessions in `COUNCIL.md` or the local Agent Studio files under `.agent-kit/council-sessions/`.
5
+ Read `USER_GUIDE.md` for how to invoke these in Cursor, Claude, Codex, Copilot, and Antigravity.
6
6
 
7
- When `.agent-kit/orchestrator.json` is enabled, treat `agent-kit orchestrate validate`, plan/status output, approvals, runtime events, and worktree/commit state as the executable source of truth. IDE delegation is not proof that the graph ran. Never bypass a paused approval, capability mismatch, Docker/host policy, or the runtime rule that forbids automatic merge, push, pull request, deployment, and migration application.
7
+ ## Screenshot rule
8
8
 
9
- ## Planner
9
+ A user-visible change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images. Reading TSX is not QA.
10
10
 
11
- Owns planning, scope breakdown, sequencing, and council routing before implementation starts.
11
+ ## Who to ask
12
12
 
13
- Responsibilities:
14
- - Convert requests into phased, checkable work.
15
- - Decide whether the work is planning-only, frontend-only, security-sensitive, release-related, or a core change.
16
- - Select or confirm the model profile from `MODEL_ROUTING.md` before delegating complex work.
17
- - Route core changes to Lead Architect before implementation.
18
- - Name required handoffs and acceptance evidence.
19
- - Record council-session workflow, decision, risk, next handoff, and evidence for meaningful multi-agent work.
20
- - Compare proposed work against `QUALITY_GATES.md` and name the required evidence level.
21
- - Keep roadmap and delivery status current.
13
+ | Ask | Agent |
14
+ | --- | --- |
15
+ | Plan, scope, who owns this | `@planner` |
16
+ | Implement Next.js or Supabase | `@app-engineer` |
17
+ | Auth, RLS, secrets, OWASP | `@security` |
18
+ | UI looks wrong / generic | `@design` |
19
+ | Is this done? | `@qa` |
20
+ | Headlines, CTAs, empty states | `@copy` |
22
21
 
23
- ## Lead Architect
22
+ Do not ask one chat to be all six.
24
23
 
25
- Owns system design, affected-layer mapping, tradeoffs, and final implementation direction.
24
+ ## Handoff
26
25
 
27
- Responsibilities:
28
- - Confirm existing behavior before changing it.
29
- - Map each change across data, business logic, presentation, auth, and deployment.
30
- - Decide whether logic belongs in Supabase SQL/RLS, Route Handlers, Server Actions, Server Components, or client state.
31
- - Keep changes scoped and preserve behavioral contracts.
26
+ Planner names the owner. Security joins auth/data/secret work. Design joins user-facing screens. QA joins any behavior or UI change and **must use the browser**. Copy joins public/conversion copy. Stop there.
32
27
 
33
- ## Next.js Engineer
28
+ ## Skills
34
29
 
35
- Owns App Router implementation, Server Components, Client Components, Route Handlers, Server Actions, forms, data loading, caching, and UI state.
36
-
37
- Responsibilities:
38
- - Keep server/client boundaries explicit.
39
- - Avoid exposing secrets or privileged data to client bundles.
40
- - Provide loading, error, empty, and success states.
41
- - Preserve accessibility and responsive behavior.
42
-
43
- ## Supabase/Postgres Engineer
44
-
45
- Owns schema, migrations, RLS policies, Auth integration, Storage policies, SQL functions, triggers, indexes, and seed data.
46
-
47
- Responsibilities:
48
- - Enforce authorization in Postgres RLS, not only in UI code.
49
- - Keep service-role access server-only.
50
- - Add constraints and indexes that protect data integrity and performance.
51
- - Document migration order and rollback risks.
52
-
53
- ## Security Reviewer
54
-
55
- Owns OWASP Top 10 review, auth boundary review, IDOR prevention, input validation, output encoding, SSRF prevention, dependency risk, and secret handling.
56
-
57
- Responsibilities:
58
- - Review all data mutations and privileged reads.
59
- - Verify least privilege for Supabase, API routes, automation tokens, and storage.
60
- - Flag unsafe dependencies or misconfiguration.
61
- - Ensure every failure path is explicit and observable.
62
-
63
- ## Frontend Design Lead
64
-
65
- Owns content-first creative direction, visual quality, design systems, accessibility, and prevention of generic AI-looking UI.
66
-
67
- Responsibilities:
68
- - Maintain `DESIGN.md` as the project visual identity and content-direction contract.
69
- - Require audience, user needs, content inventory, brand constraints, and creative-direction options before implementation.
70
- - Require reference-set evidence, anti-references, source-safety notes, and a design critique verdict before accepting significant frontend work.
71
- - Require a frontend product-quality scorecard before accepting significant frontend work.
72
- - Reject generic gradient heroes, vague SaaS copy, card soup, and fake dashboard metrics.
73
- - Prefer task-first screens, domain-specific hierarchy, real workflow affordances, and reusable components.
74
- - Require visual QA evidence for important responsive screens and reusable component states.
75
- - Maintain WCAG 2.1 AA, keyboard navigation, focus states, and mobile-first behavior.
76
- - Use design adapters for Stitch, Claude, Figma, or human review when visual direction is weak.
77
-
78
- ## Marketing Copy Lead
79
-
80
- Owns positioning, value proposition, conversion copy, product voice, and UX copy for public-facing or conversion-facing surfaces.
81
-
82
- Responsibilities:
83
- - Maintain `MESSAGING.md` as the positioning, value proposition, voice, proof, objection, and CTA contract.
84
- - Ask discovery questions when audience, pain, outcome, differentiator, proof, objections, voice, or conversion goal is unclear.
85
- - Reject vague SaaS copy, unsupported AI claims, invented proof, and headlines that could fit any competitor.
86
- - Translate product facts into specific headlines, CTAs, onboarding copy, empty states, pricing copy, and objection handling.
87
- - Handoff public-facing copy to Frontend Design Lead so layout, hierarchy, imagery, and interaction tone reinforce the message.
88
- - Flag risky pricing, security, privacy, compliance, financial, legal, medical, or performance claims before release.
89
-
90
- ## QA Engineer
91
-
92
- Owns tests, regression coverage, smoke checks, and acceptance evidence.
93
-
94
- Responsibilities:
95
- - Add unit coverage for core logic and edge cases.
96
- - Add regression tests for preserved behavior.
97
- - Add Playwright smoke coverage for auth and primary workflows.
98
- - Add screenshot or visual-regression evidence for high-risk UI changes.
99
- - Report test gaps explicitly when infrastructure is missing.
100
-
101
- ## Documentation Maintainer
102
-
103
- Owns living markdown docs.
104
-
105
- Responsibilities:
106
- - Validate handoff evidence against `COUNCIL.md` and `.agent-kit/schemas/`.
107
- - Update `SPEC.md`, `DECISIONS.md`, `DOCS.md`, `ASSISTANT_ADAPTERS.md`, `MODEL_ROUTING.md`, `QUALITY_GATES.md`, `DESIGN.md`, `MESSAGING.md`, `STYLE_GUIDE.md`, `SECURITY.md`, `TESTING.md`, `DEPLOYMENT.md`, and `UPGRADE.md`.
108
- - Record decisions with context, decision, and consequences.
109
- - Keep docs actionable for another engineer or agent to continue safely.
110
-
111
- ## Deployment/Observability Engineer
112
-
113
- Owns deployment config, environment variables, migrations, logs, monitoring, and rollback guidance.
114
-
115
- Responsibilities:
116
- - Verify production-critical env vars.
117
- - Confirm migration and release order.
118
- - Ensure errors are visible through logs or monitoring.
119
- - Define rollback and recovery steps for risky changes.
120
-
121
- ## Default Handoff
122
-
123
- Use this order for feature work:
124
-
125
- 1. Planner classifies the request, maps the workflow, and names the council.
126
- 2. Planner starts or updates an Agent Studio session with `agent-kit session start` when the work is meaningful, risky, or cross-agent, then records fallback notes in `COUNCIL.md` if CLI tooling is unavailable.
127
- 3. Lead Architect maps affected layers and preserved behavior.
128
- 4. Supabase/Postgres Engineer handles schema, RLS, and migrations when data/auth changes are involved.
129
- 5. Next.js Engineer implements runtime behavior and UI.
130
- 6. Frontend Design Lead owns content-first creative direction and reviews UX quality/accessibility when user-facing screens change.
131
- 7. Marketing Copy Lead owns positioning, value proposition, conversion copy, product voice, and UX copy when public-facing or conversion-facing copy changes.
132
- 8. Security Reviewer checks OWASP, auth, data boundaries, dependencies, external calls, and secrets.
133
- 9. QA Engineer adds and runs tests.
134
- 10. Documentation Maintainer updates living docs and council evidence.
135
- 11. Deployment/Observability Engineer verifies release and upgrade readiness.
136
- 12. The active agent records decisions, handoffs, corrections, artifacts, required-output status, verification, and status with `agent-kit session ...` commands, then runs `agent-kit session render` so `index.md` and `transcript.md` are current. Run `agent-kit studio export` when the user needs a local visual session view.
137
-
138
- ## Council Rule
139
-
140
- Core changes cannot skip Planner or Lead Architect. Frontend changes cannot skip content/brand intake, creative-direction rationale, reference-led critique, product-quality scorecard, visual QA evidence, and Frontend Design Lead review. Public-facing or conversion-facing copy changes cannot skip Marketing Copy Lead discovery questions, value proposition, proof, objection, voice/tone, and CTA review. Auth, RLS, data mutation, dependency, secret, external-call, and release-risk changes cannot skip Security Reviewer. Behavior changes cannot skip QA evidence. Significant changes cannot skip Documentation Maintainer. Meaningful multi-agent work cannot skip a decision, risk, next-handoff, required-output status, and evidence record. Human corrections must be recorded before continuing work, and durable project or agent corrections must be applied in future sessions. Work is not best-practice ready until it satisfies the relevant `QUALITY_GATES.md` evidence level.
30
+ Default skills live in `.cursor/skills/*/SKILL.md` (and the matching Claude/Codex/Antigravity copies). QA of a screen always uses `browser-qa`, not `testing-qa` alone.
@@ -1,39 +1,7 @@
1
- # Claude Code Project Instructions
1
+ # Claude Code
2
2
 
3
- This repository uses Agent Kit. Treat the following as the source of truth for council routing, project context, correction rules, model profiles, quality gates, and handoff evidence:
3
+ This repo uses a small agent and skill pack. Read `AGENTS.md` and `USER_GUIDE.md`.
4
4
 
5
- - `AGENTS.md`
6
- - `AGENT_ROSTER.md`
7
- - `.agent-kit/agent-roster.json`
8
- - `MODEL_ROUTING.md`
9
- - `.agent-kit/model-routing.json`
10
- - `.agent-kit/project-context.json`
11
- - `.agent-kit/project-context.md`
12
- - `.agent-kit/agent-briefs.md` when present
13
- - `.agent-kit/corrections/project-rules.json`
14
- - `.agent-kit/corrections/agent-rules.json`
15
- - `COUNCIL.md`
16
- - `.agent-kit/council-sessions/`
17
- - `QUALITY_GATES.md`
5
+ Subagents live in `.claude/agents/`. Use the matching subagent instead of one generic thread.
18
6
 
19
- ## Subagents
20
-
21
- Project subagents live in `.claude/agents/*.md` and are generated from `.agent-kit/agent-roster.json` when you run:
22
-
23
- ```sh
24
- agent-kit init --activate claude
25
- ```
26
-
27
- Use the matching subagent for the active workflow instead of treating every request as a generic implementation pass.
28
-
29
- ## Validation
30
-
31
- ```sh
32
- agent-kit audit --min-readiness baseline-setup
33
- ```
34
-
35
- Use `agent-kit session checkpoint --file <json>` to batch-record council evidence instead of many individual session commands.
36
-
37
- ## Model Selection
38
-
39
- Use Claude Code model settings with the profiles in `MODEL_ROUTING.md`. Exact model names are dated recommendations — review when provider docs change.
7
+ A user-visible change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images. If you cannot open a browser, use the Playwright fallback in `skills/browser-qa/SKILL.md`.
@@ -1,45 +0,0 @@
1
- # Best-Practice Evidence Matrix
2
-
3
- This repository treats the 100-repo research pass as input, not proof. A practice only counts as part of the kit when it is promoted into at least one durable artifact and one validation path.
4
-
5
- ## Evidence Rule
6
-
7
- - Research findings identify repeated gaps or strong patterns.
8
- - Promoted behavior must appear in installed templates, agents, skills, checklists, schemas, prompts, or repository workflows.
9
- - Validation must exist through audit checks, schema contracts, tests, release gates, install smoke, or documented external repository settings.
10
- - Fresh installs are only `baseline-setup` until project-specific evidence replaces starter placeholders.
11
-
12
- ## Promotion Matrix
13
-
14
- | Research signal | Scan evidence | Promoted behavior | Installed or repo artifact | Validation path |
15
- | --- | --- | --- | --- | --- |
16
- | Supabase/Auth/RLS expectations are often weak or hard to discover. | 88 of 100 findings had weak or non-discoverable Supabase/Auth/RLS signals. | Make RLS, auth boundaries, service-role isolation, and migration review explicit defaults. | `templates/next-supabase/SECURITY.md`, `templates/next-supabase/SPEC.md`, `skills/supabase-auth-rls.md`, `skills/postgres-migrations.md`, `checklists/rls.md`. | `agent-kit audit`, template hash checks, install smoke, public-readiness tests. |
17
- | Agent handoff and AI-workflow contracts are immature. | 66 of 100 findings had immature agent handoff or AI-workflow signals. | Require Planner-first routing, Lead Architect ownership for core changes, council handoffs, and evidence records. | `rosters/next-supabase-default-council.json`, `templates/next-supabase/COUNCIL.md`, `schemas/agent-roster.schema.json`, `schemas/council-session.schema.json`, `skills/planning-council.md`, `skills/agent-handoff-tracing.md`. | Roster schema validation, council-session schema validation, `agent-kit audit`, `tests/audit.test.ts`, `tests/public-readiness.test.ts`. |
18
- | Agent instructions need to load in the tools teams actually use. | Follow-up review of current Codex/AGENTS.md, GitHub Copilot, VS Code, Cursor, and Claude Code instruction surfaces showed that each tool has its own activation path. | Keep the council roster as the source of truth and ship thin adapters for AGENTS.md-compatible tools, Copilot instructions, Cursor rules, and Claude Code subagents. | `templates/next-supabase/ASSISTANT_ADAPTERS.md`, `assistant-adapters/*`, `AGENTS.md`, `AGENT_ROSTER.md`, `.agent-kit/agent-roster.json`. | `agent-kit audit`, public-readiness tests, install smoke, project-specific adapter evidence. |
19
- | Reusable kits need a safe upgrade lifecycle. | Follow-up review of framework and tooling upgrade practices showed repeated use of upgrade guides, codemods, migration history, diff flows, release notes, and rollback evidence. | Separate initial install from upgrade review and require diff, update, migration, audit, release-note, and rollback evidence. | `UPGRADE.md`, `templates/next-supabase/UPGRADE.md`, `skills/upgrade-maintenance.md`, `checklists/upgrade.md`, `prompts/upgrade-review.md`. | `agent-kit audit`, public-readiness tests, install smoke, release check. |
20
- | Accessibility evidence is commonly too implicit. | 57 of 100 findings had weak accessibility signals. | Make WCAG-oriented review part of frontend and QA work instead of a late checklist. | `skills/accessibility-wcag.md`, `checklists/accessibility.md`, `checklists/frontend-quality.md`, `templates/next-supabase/TESTING.md`, `templates/next-supabase/STYLE_GUIDE.md`. | Public-readiness tests, install smoke, project maturity evidence in `QUALITY_GATES.md`. |
21
- | Security expectations are often incomplete. | 54 of 100 findings had implicit or incomplete security expectations. | Treat OWASP, least privilege, input validation, output encoding, dependency risk, and disclosure process as release concerns. | `agents/security-reviewer.md`, `skills/owasp-security-review.md`, `checklists/owasp.md`, `SECURITY.md`, `.github/workflows/codeql.yml`, `.github/workflows/dependency-review.yml`. | `npm audit --audit-level=moderate`, Dependency Review, CodeQL, public-readiness tests, release check. |
22
- | Reusable components and tokens do not prevent generic AI-looking UI. | Follow-up design review found frontend scoring over-weighted components, tokens, and states. | Require content-first creative direction, brand/content intake, real workflow screens, and screenshot evidence. | `templates/next-supabase/DESIGN.md`, `skills/content-first-design.md`, `skills/frontend-design-system.md`, `agents/frontend-design-lead.md`, `prompts/brand-content-intake.md`, `prompts/creative-direction-matrix.md`, `design-briefs/*`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, screenshot review prompt. |
23
- | Frontend critique needs reference and distinctiveness evidence. | Follow-up review of design-system and component-state practices showed that strong primitives and screenshots do not prove a product-specific visual direction. | Require reference sets, anti-references, source-safety notes, and a written design critique verdict before accepting significant frontend work. | `skills/reference-led-design-critique.md`, `prompts/design-critique-gate.md`, `checklists/design-critique.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
24
- | Frontend distinctiveness needs proof, not taste. | Focused follow-up review of design-system, service-design, content, accessibility, and visual-testing guidance showed that a polished UI can still be interchangeable without first-screen proof, content fingerprint, safe reference learning, asset provenance, state proof, and visual QA proof. | Require a frontend distinctiveness benchmark before accepting significant UI work. | `skills/frontend-distinctiveness-benchmark.md`, `prompts/frontend-distinctiveness-benchmark.md`, `checklists/frontend-distinctiveness.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`, `research/summaries/frontend-distinctiveness-benchmark-patterns.md`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
25
- | Frontend acceptance needs a repeatable product-quality threshold. | Focused follow-up review of design-system, service-design, component-state, and accessibility guidance showed that good primitives do not prove product-specific quality. | Score significant UI work against user/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, and source safety. | `skills/frontend-product-quality-rubric.md`, `prompts/frontend-product-quality-scorecard.md`, `checklists/frontend-product-quality.md`, `templates/next-supabase/DESIGN.md`, `rosters/next-supabase-default-council.json`. | Frontend-change roster requirements, `agent-kit audit`, public-readiness tests, install smoke. |
26
- | Visual QA needs a path beyond manual taste review. | Follow-up visual-testing review identified Storybook, Playwright screenshots, Chromatic, Argos, Loki, and baseline evidence as repeatable patterns. | Provide visual QA tiers that scale from screenshot review to regression evidence. | `skills/visual-regression-qa.md`, `checklists/visual-regression.md`, `prompts/visual-qa-plan.md`, `templates/next-supabase/TESTING.md`. | Public-readiness tests, `QUALITY_GATES.md` maturity evidence, downstream visual QA artifacts. |
27
- | Public OSS maintainability needs more than a package tarball. | Repository-health follow-up identified structured intake, ownership, labels, support, and governance as durable signals. | Ship contributor intake, labels, CODEOWNERS, support, conduct, governance, and repository settings guidance. | `.github/ISSUE_TEMPLATE/*`, `.github/pull_request_template.md`, `.github/CODEOWNERS`, `.github/labels.yml`, `SUPPORT.md`, `GOVERNANCE.md`, `REPOSITORY_SETTINGS.md`. | Public-readiness tests, PR labeler workflow, documented branch and repository settings. |
28
- | Supply-chain trust must be visible before publish. | Supply-chain follow-up identified OIDC publishing, provenance, dependency review, Scorecard, SBOMs, workflow controls, and release gates. | Use Trusted Publishing, avoid long-lived npm publish tokens, generate and attest a package-rooted CycloneDX SBOM for every tarball, and verify each public package before creating the source release. | `.github/workflows/release.yml`, `.github/workflows/scorecard.yml`, `.github/workflows/dependency-review.yml`, `SUPPLY_CHAIN.md`, `scripts/release-check.mjs`, `scripts/sbom-check.mjs`. | `npm run release:check`, root/runtime SBOM checks, OpenSSF Scorecard, Dependency Review, npm Trusted Publishing, SBOM attestations, pack dry runs. |
29
- | Best-practice claims need a maturity model. | Follow-up review showed a green build alone does not prove best-practice readiness. | Separate setup validity from project evidence and best-practice candidacy. | `templates/next-supabase/QUALITY_GATES.md`, `schemas/audit-report.schema.json`, `skills/best-practice-maturity-review.md`, `src/install/audit.ts`. | `agent-kit audit --min-readiness`, audit-report schema validation, install smoke, release check. |
30
- | Downstream adoption evidence must stay current. | Current read-only dogfood audits of two older installs both produced `11 pass / 20 warn / 7 fail`, proving that later hardening made older installs drift below baseline setup. | Publish a sanitized dogfood summary and keep detailed local-path evidence repo-only. Treat stale dogfood findings as upgrade inputs. | `DOGFOOD.md`, `dogfood/*.md`, `UPGRADE.md`, `agent-kit audit`, `agent-kit update`, `tests/public-readiness.test.ts`. | Public-readiness tests, release check, read-only dogfood audit snapshots, package dry run. |
31
- | Older installs need a conflict-safe upgrade proof. | Dogfood audits showed both older installs lacked current roster schemas, assistant adapters, maturity gates, upgrade docs, and design critique assets. | Add a deterministic old-install fixture that proves diff previews missing/conflicting assets and update adds missing current assets while preserving customized docs through conflicts. | `tests/update.test.ts`, `src/install/diff.ts`, `src/install/install.ts`, `UPGRADE.md`, `DOGFOOD.md`. | Unit tests, audit report on upgraded fixture, release check. |
32
- | Public examples must not drift from CLI behavior. | Repeated package hardening changed installed docs, roster messages, manifest hashes, and audit output. Hand-maintained examples can look trustworthy while going stale. | Regenerate a clean install with the built CLI and compare committed example roster, stable manifest fields, audit output, and tree summary before release. | `examples/next-supabase-installed/*`, `scripts/example-check.mjs`, `scripts/release-check.mjs`. | `npm run examples:check`, `npm run release:check`, public-readiness tests. |
33
- | Package version metadata must agree before release. | Public npm release workflows can publish a package whose lockfile, changelog, or GitHub tag no longer matches `package.json`. | Validate SemVer shape, package-lock root version, changelog section, and release tag before release gates proceed. | `scripts/version-check.mjs`, `package.json`, `package-lock.json`, `CHANGELOG.md`, `.github/workflows/release.yml`. | `npm run version:check`, `npm run release:check`, public-readiness tests. |
34
-
35
- ## What This Does Not Claim
36
-
37
- - A fresh install is not a completed best-practice project.
38
- - The kit does not copy source code, policy wording, or brand systems from reviewed repositories.
39
- - External settings such as branch protection, npm Trusted Publishing, and private vulnerability reporting still need to be configured in GitHub and npm.
40
- - Tool-specific adapters still need to be activated in each downstream project and verified in `ASSISTANT_ADAPTERS.md`.
41
- - Real upgrade evidence still needs to be recorded per downstream project in `UPGRADE.md`.
42
- - Real frontend quality still requires project-specific content, creative direction, screenshot review, and visual evidence.
43
- - Real frontend distinctiveness still requires project-specific references, anti-references, source-safety review, and a critique verdict.
44
- - Real frontend distinctiveness still requires first-screen proof, content fingerprint, asset provenance, state proof, visual QA proof, and product-specific acceptance evidence.
45
- - Public-safe dogfood summaries do not replace full downstream branch updates, adapter activation, or post-publish `npx` verification.
package/DOGFOOD.md DELETED
@@ -1,201 +0,0 @@
1
- # Dogfood Evidence
2
-
3
- This file is the public-safe summary of downstream adoption evidence. Detailed local-path notes live in `dogfood/` and are intentionally excluded from the npm package.
4
-
5
- ## Evidence Rule
6
-
7
- - Dogfood evidence must run against the current built CLI, not an older remembered result.
8
- - Real-project audits may fail. Failure is useful when it proves the kit catches setup drift.
9
- - Public summaries use project archetypes instead of local paths or private project details.
10
- - A dogfood item only counts as promoted when it leads to an installed asset, audit check, test, release gate, or documented decision.
11
-
12
- ## Current Read-Only Audit Snapshot
13
-
14
- Date: 2026-06-03
15
- CLI source: current `dist/index.js`
16
- Command: `node dist/index.js audit --json`
17
- Mode: read-only audit; no downstream files were modified.
18
-
19
- | Project Archetype | Summary | Readiness | Highest-Value Gaps Caught |
20
- | --- | --- | --- | --- |
21
- | SaaS/tool hybrid | 11 pass, 20 warn, 7 fail | `needs-setup` | Missing `.agent-kit/agent-roster.json`, schema contracts, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `COUNCIL.md`, `DESIGN.md`, `QUALITY_GATES.md`, `UPGRADE.md`, assistant adapters, visual QA evidence, reference-led design critique, and stale templates. |
22
- | Content/admin hybrid | 11 pass, 20 warn, 7 fail | `needs-setup` | Missing `.agent-kit/agent-roster.json`, schema contracts, `AGENT_ROSTER.md`, `ASSISTANT_ADAPTERS.md`, `COUNCIL.md`, `DESIGN.md`, `QUALITY_GATES.md`, `UPGRADE.md`, assistant adapters, visual QA evidence, reference-led design critique, and stale/customized templates. |
23
-
24
- ## What This Proves
25
-
26
- - The audit distinguishes older valid installs from the current best-practice setup.
27
- - Current audits catch the exact post-research hardening areas: schema-backed council routing, assistant activation, maturity gates, upgrade lifecycle, visual QA, and reference-led frontend critique.
28
- - Real projects installed before later hardening phases need `agent-kit update` and conflict review before they can claim baseline setup under the current package.
29
-
30
- ## What This Does Not Prove
31
-
32
- - These two projects are not yet best-practice candidates.
33
- - The public npm package has not yet been published and verified with `npx`.
34
- - Assistant adapters and upgrade lifecycle still need real activation/dogfood evidence after publication.
35
- - Reference-led design critique still needs a real UI change dogfood pass with screenshots or equivalent visual evidence.
36
-
37
- ## 2026-07-04 Publish @0.1.8 Snapshot
38
-
39
- Date: 2026-07-04
40
- CLI source: local `dist/index.js` after `npm run release:check`
41
-
42
- - Setup-server API route coverage (`tests/setup-server-api.test.ts`), Playwright UI screenshot smoke (`smoke:ui-screens`, Playwright 1.55.1), and Agent Studio Milestone 8 completion (note/render POST endpoints, session picker, live office controls).
43
- - `readJsonBody` shared between setup and studio servers; oversized bodies return 400 without dropping the connection; studio SSE broadcasts notes.
44
- - Dedicated Ubuntu CI job for UI screenshots; not part of `release:check` matrix.
45
- - Local verification: `release:check` green (150 tests, setup-server.ts 86% statements), `smoke:ui-screens` produced 4 PNGs.
46
- - Published `@appsforgood/next-supabase-kit@0.1.8`; `publish:verify` passed against live registry.
47
-
48
- ## 2026-07-04 Publish @0.1.7 Snapshot
49
-
50
- Date: 2026-07-04
51
- CLI source: public npm registry `@appsforgood/next-supabase-kit@0.1.7`
52
-
53
- - Published `@appsforgood/next-supabase-kit@0.1.7` with lifecycle README commands, `/spec`/`/test`/`/review` Antigravity adapters, and `prompts/lifecycle-command-index.md`.
54
- - Post-publish: `npm run publish:verify` against live registry.
55
-
56
- ## 2026-07-04 Publish @0.1.6 Snapshot
57
-
58
- Date: 2026-07-04
59
- CLI source: public npm registry `@appsforgood/next-supabase-kit@0.1.6`
60
- Mode: local maintainer publish (token) after `npm run release:check`, then `npm run publish:verify`.
61
-
62
- - Published `@appsforgood/next-supabase-kit@0.1.6` to public npm (local token publish with `--provenance=false`; CI releases continue to use OIDC + provenance).
63
- - `npm run publish:verify` passed: registry visibility confirmed, `npx` doctor ok, clean temp `init` installed current baseline assets, and `audit --json --min-readiness baseline-setup` returned 0 failures (67 pass / 4 warn / readiness `baseline-setup`).
64
-
65
- ## 2026-07-02 Publish Verification And Self-Install Snapshot
66
-
67
- Date: 2026-07-02
68
- CLI source: public npm registry (`@appsforgood/next-supabase-kit`, published) plus local `src/` for the self-install.
69
- Mode: post-publish verification against the live registry, and dogfooding the kit into this repo's own root.
70
-
71
- - `node scripts/post-publish-verify.mjs` against the published package passed: registry visibility confirmed, `npx` doctor ok, clean temp `init` installed 23 files, and `audit --json --min-readiness baseline-setup` returned 0 failures (readiness `baseline-setup`).
72
- - This repo now dogfoods its own kit at the root: `agent-kit init` installed the root docs, `.agent-kit/`, and Cursor rules; project context, council session, and overrides were filled with real evidence; `agent-kit audit --min-readiness best-practice-candidate` passes with 0 warnings and 0 failures.
73
-
74
- ## 2026-06-07 Agent Studio Dogfood Snapshot
75
-
76
- Date: 2026-06-07
77
- CLI source: current `dist/index.js`
78
- Mode: downstream update, guided context generation, session recording, static Studio export, and final audit.
79
-
80
- | Project Archetype | Stage | Summary | Readiness | Notes |
81
- | --- | --- | --- | --- | --- |
82
- | Content/admin hybrid | Before update | 11 pass, 31 warn, 8 fail | `needs-setup` | Older partial install was missing current roster, schemas, docs, context, and Agent Studio assets. |
83
- | Content/admin hybrid | After update/onboard/export | 54 pass, 17 warn, 0 fail | `baseline-setup` | `agent-kit update` preserved customized docs through `.agent-kit/conflicts/`; `onboard`, session render, and `studio export` worked locally. |
84
- | Content/admin hybrid | After `session output` fix and completed session | 52 pass, 19 warn, 0 fail | `baseline-setup` | Completed planning session has all required outputs marked complete, verification recorded, rendered Markdown current, static Studio export regenerated, and 14 valid Agent Studio events. Extra warnings reflect template changes made during this fix and remaining project-specific evidence gaps. |
85
-
86
- ### Finding Promoted Back Into The Kit
87
-
88
- Dogfood exposed that sessions could define required outputs but lacked a CLI command to update their status. The fix adds `agent-kit session output <name...> --status <missing|partial|complete|not-applicable> --evidence <evidence>`, a `required_output_updated` event type, renderer/static-export support, CLI smoke coverage, and completed-session regression tests.
89
-
90
- ### Remaining Dogfood Gaps
91
-
92
- - Project context still needs real product summary, audience, workflows, auth/tenant model, UI direction, value proposition, and quality target answers.
93
- - Assistant adapter rows still need active-tool verification evidence in downstream projects beyond the kit repo itself.
94
- - Project-owned docs need conflict review before adopting newer template wording.
95
- - A real UI change still needs reference-led design critique and desktop/mobile visual QA evidence.
96
- - Public npm publish and `npm run publish:verify` still need maintainer release execution. See [PUBLISH.md](PUBLISH.md).
97
-
98
- ## 2026-06-07 Release Gate Snapshot
99
-
100
- Date: 2026-06-07
101
- CLI source: current built CLI
102
- Command: `npm run release:check`
103
- Result: passed locally on Windows after assistant adapter install on init, baseline audit gate smoke, install smoke, Agent Studio smoke, SBOM check, and npm pack dry run.
104
-
105
- | Gate | Result |
106
- | --- | --- | --- |
107
- | Tests | 65 passed |
108
- | Example install shape | `baseline-setup`, 0 failures |
109
- | Install smoke | IDE adapter rules installed, `baseline-setup`, 0 failures |
110
- | Agent Studio smoke | `baseline-setup`, 0 failures |
111
- | Baseline audit gate smoke | `baseline-setup`, 0 failures |
112
- | npm pack dry run | `@appsforgood/next-supabase-kit@0.1.1` tarball validated |
113
-
114
- Remaining publish action: execute [PUBLISH.md](PUBLISH.md), then run `npm run publish:verify`.
115
-
116
- ## 2026-06-07 Assistant Adapter Activation On Init
117
-
118
- Date: 2026-06-07
119
- CLI source: current built CLI
120
- Mode: init-time assistant adapter rule installation for downstream projects.
121
-
122
- | Surface | Path | Status | Evidence |
123
- | --- | --- | --- | --- |
124
- | Downstream init | `.cursor/rules/cursor-agent-kit.mdc` | Active on `agent-kit init` | `smoke:install`, `smoke:audit-gate`, and `tests/update.test.ts` verify rule installation. |
125
- | Downstream init | `.cursor/rules/cursor-model-selection.mdc` | Active on `agent-kit init` | Same smoke and update coverage as council rule. |
126
- | Template docs | `ASSISTANT_ADAPTERS.md` | Updated | Adapter activation steps and init-time install behavior documented for downstream projects. |
127
-
128
- ## Promotion Back Into The Kit
129
-
130
- | Dogfood Finding | Promoted Kit Behavior |
131
- | --- | --- |
132
- | Older installs drift as the package improves. | Template hashes, `agent-kit diff`, `agent-kit update`, `UPGRADE.md`, upgrade checklist, and upgrade audit warnings. |
133
- | Existing project docs vary and must be preserved. | Conflict-safe writes and `.agent-kit/overrides.json`. |
134
- | Agent instructions can exist without machine-readable council routing. | `.agent-kit/agent-roster.json`, roster schema validation, and council-session evidence. |
135
- | AI tool activation cannot be assumed from `AGENTS.md` alone. | `ASSISTANT_ADAPTERS.md` and `.agent-kit/assistant-adapters/`. |
136
- | Frontend docs can miss product-specific design evidence. | `DESIGN.md`, content-first design skill, reference-led design critique, visual QA tiers, and screenshot review. |
137
- | Required session outputs were hard to complete without manual JSON edits. | `agent-kit session output`, `required_output_updated` events, renderer/export support, and completed-session audit coverage. |
138
-
139
- ## Upgrade Regression Fixture
140
-
141
- The package also includes a deterministic test for an older install shape:
142
-
143
- - Older install has customized root docs and no current roster, schemas, assistant adapters, `DESIGN.md`, `QUALITY_GATES.md`, or `UPGRADE.md`.
144
- - `agent-kit update` behavior preserves customized docs and writes new template versions into `.agent-kit/conflicts/`.
145
- - `agent-kit diff` previews missing docs, changed docs, roster status, missing library folders, files update would create, and files update would write to conflicts.
146
- - Missing current baseline docs and `.agent-kit/agent-roster.json` are added.
147
- - `.agent-kit/schemas/`, `.agent-kit/assistant-adapters/`, and the reference-led design critique skill are installed.
148
- - The upgraded fixture audits with `0` failures and readiness `baseline-setup`.
149
-
150
- Covered by `tests/update.test.ts`.
151
-
152
- ## Next Dogfood Passes
153
-
154
- - Review generated conflicts in the dogfood project and decide which project-owned docs should adopt the latest template wording.
155
- - Run `agent-kit update` on another real project on a dedicated branch and record conflict-review outcomes.
156
- - Activate at least one assistant adapter in a real project and record whether the chosen tool loads the canonical council instructions.
157
- - Apply the reference-led design critique gate to one real frontend change with desktop/mobile screenshot evidence.
158
- - After public publish, run `npm run publish:verify` to verify registry visibility, public `npx doctor`, clean temp `init`, and `audit --json` with zero failures.
159
-
160
- ## BaseRepo Maintainer Dogfood Policy
161
-
162
- Date: 2026-06-17
163
- Policy: **gitignored local overlay + bootstrap script** (not committed to kit source)
164
-
165
- | Item | Detail |
166
- | --- | --- |
167
- | Bootstrap | `npm run dogfood:init` runs `agent-kit init --stack next-supabase --activate cursor --activate codex` against the repo root |
168
- | Gitignore | `.agent-kit/`, `.codex/`, init-generated council docs at repo root, and local pack tarballs — see `.gitignore` and [DOCS.md](DOCS.md#maintainer-dogfood) |
169
- | Validation | `node dist/index.js adapter validate cursor\|codex` after bootstrap |
170
- | Release evidence | [MAINTAINER_RELEASE.md](MAINTAINER_RELEASE.md) session checklist; loop patterns in [LOOP_CODING.md](LOOP_CODING.md) |
171
- | Rationale | Kit source stays in `templates/` and tracked maintainer docs; overlay proves Tier B activation without polluting commit history |
172
-
173
- This policy closes the gap where the kit shipped Level 5 IDE surfaces but BaseRepo maintainers operated at Level 4 day-to-day.
174
-
175
- ## 2026-07-04 - Lifecycle Commands README Parity
176
-
177
- Date: 2026-07-04
178
- Scope: README/docs discoverability + three new Antigravity adapters
179
-
180
- | Item | Detail |
181
- | --- | --- |
182
- | README | Added **Workflow Commands** section: lifecycle diagram, 12 core + 8 UI slash commands, council table, skills-by-phase, skill activation narrative |
183
- | Canonical index | `prompts/lifecycle-command-index.md` for delivery commands (parallel to `prompts/ui-command-index.md`) |
184
- | New adapters | `/spec`, `/test`, `/review` in `antigravity/commands/` (20 total native commands) |
185
- | Roster | `testing` and `code-review` workflows; planning triggers for spec keywords |
186
- | Historical scope | `/build`, `/webperf`, `/code-simplify`, and `/build auto` were deferred in this 0.1.7 review; the later runtime ships bounded roster workflows rather than cloning those command semantics |
187
- | Verification | `npm test`, `agent-kit adapter validate antigravity` after build |
188
-
189
- ## 2026-07-11 - README Examples Release 0.2.1
190
-
191
- Date: 2026-07-11
192
- Scope: publish the verified README rewrite through npm Trusted Publishing and confirm the public artifacts.
193
-
194
- | Evidence | Result |
195
- | --- | --- |
196
- | Local release gate | `npm run release:check` passed with 200 tests, coverage gates, package/adapters/examples/install/Studio/setup/audit checks, zero dependency vulnerabilities, SBOM validation, and package dry runs. |
197
- | Root package | `@appsforgood/next-supabase-kit@0.2.1` is public and the `latest` dist-tag resolves to `0.2.1`. |
198
- | Published README | npm returns the rewritten quick start, audit, council-session, frontend-review, update, and optional-runtime examples for `0.2.1`. |
199
- | Runtime package | `@appsforgood/agent-kit-runtime` remains at `0.1.3`; the release workflow correctly skipped its unchanged package. |
200
- | GitHub release | [`v0.2.1`](https://github.com/lukey662/agentsandskills/releases/tag/v0.2.1) was created only after public-registry verification. |
201
- | Supply chain | Trusted Publishing used GitHub Actions OIDC and generated the root-package SBOM attestation before publication. |
package/GOVERNANCE.md DELETED
@@ -1,45 +0,0 @@
1
- # Governance
2
-
3
- ## Maintainer Model
4
-
5
- This project is maintained as a small public OSS package. Maintainers own release approval, public-package safety, research promotion, and final merge decisions.
6
-
7
- ## Decision Rules
8
-
9
- Changes should improve reusable setup quality for many projects. Project-specific preferences belong downstream unless repeated evidence shows they generalize.
10
-
11
- Promoted best practices need at least one of:
12
-
13
- - Repeated findings from repository research.
14
- - Dogfood evidence from downstream installs.
15
- - Official framework or platform documentation.
16
- - A clear security, release, or maintainability requirement.
17
-
18
- Promotion targets should be explicit:
19
-
20
- - Installed root template.
21
- - Agent role.
22
- - Skill.
23
- - Prompt.
24
- - Checklist.
25
- - Schema.
26
- - Audit rule.
27
- - Research scanner signal.
28
- - CI or release gate.
29
-
30
- ## Release Rules
31
-
32
- Releases require:
33
-
34
- - Passing CI.
35
- - Passing install smoke.
36
- - Passing dependency audit.
37
- - Passing package dry run.
38
- - Branch protection and repository settings reviewed when workflows, permissions, or release controls changed.
39
- - Public package metadata review.
40
- - No secrets, copied third-party source, or private downstream details.
41
- - Trusted Publishing or another npm-approved secure publish path.
42
-
43
- ## Research Rules
44
-
45
- Research findings are evidence, not implementation. A pattern only becomes kit behavior after it is promoted into an installed asset, CLI/audit behavior, test, release gate, or recorded decision.
package/LOOP_CODING.md DELETED
@@ -1,107 +0,0 @@
1
- # Loop Coding
2
-
3
- Loop coding means the agent repeats **plan → act → check → fix** until a stop condition, instead of finishing in one chat turn. The Agent Kit is opinionated about **which loops are safe** and **which checkpoints must stay in place**.
4
-
5
- This document describes loop types, kit-safe patterns, and limits. It is the canonical reference for eval-driven development with `@appsforgood/next-supabase-kit`.
6
-
7
- ## Loop Types
8
-
9
- | Loop type | What it means | Kit-safe version |
10
- | --- | --- | --- |
11
- | **Agent loop** | Same agent iterates on feedback until done | Use scoped prompts (for example `.agent-kit/prompts/implement-feature.md`); review each turn; do not remove Security Reviewer or QA gates |
12
- | **Eval-driven loop** | Code changes until **tests, audit, or evals pass** | `npm test` + `agent-kit audit` + CI — BaseRepo uses `npm run release:check` as the maintainer merge gate |
13
- | **Self-improving loop** | Agent critiques its own output and revises | Manual: delegate to `@qa-engineer` or run tests between passes; **avoid fully unsupervised self-critique on auth, RLS, or release tooling** |
14
- | **Council / team loop** | Planner → specialist → Security → QA handoffs | `agent-kit session handoff` + IDE subagents — the kit's core operating model |
15
- | **Background / overnight loop** | Runs without a human present | **Defer by default** — requires worktree policy, cost caps, kill switches, and stronger eval gates than agent freedom |
16
-
17
- ## Practical Rule
18
-
19
- Climb maturity by adding **checkpoints** (tests, audit, guards, human review), not by removing them. Unsupervised loops are only healthy when **eval gates are stronger than the agent's freedom**.
20
-
21
- ## Eval-Driven PR Loop (recommended)
22
-
23
- For feature work in a kit-consuming project:
24
-
25
- 1. **Plan** — Planner classifies scope; Lead Architect maps affected layers when the change is core.
26
- 2. **Implement** — Next.js / Supabase engineers (or general agent with council rules loaded).
27
- 3. **Check** — run the smallest reliable gate set:
28
- ```bash
29
- npm test
30
- agent-kit audit --min-readiness baseline-setup
31
- agent-kit adapter validate all # when IDE surfaces change
32
- ```
33
- 4. **Fix** — repeat implement/check until green or blocked on a documented gap.
34
- 5. **Record** — `agent-kit session render` and mirror summary in `COUNCIL.md` for meaningful multi-agent work.
35
-
36
- BaseRepo maintainers use the same pattern at repo scale:
37
-
38
- ```bash
39
- npm run release:check # tests, build, package validate, smokes, adapter validate
40
- npm run smoke:audit-gate
41
- ```
42
-
43
- ## Council Loop (multi-agent)
44
-
45
- The default handoff order lives in `AGENTS.md` and `.agent-kit/agent-roster.json`:
46
-
47
- 1. Planner — scope, workflow, council selection
48
- 2. Lead Architect — core changes
49
- 3. Domain engineers — data, UI, copy as needed
50
- 4. Security Reviewer — auth, mutations, secrets, dependencies, release risk
51
- 5. QA Engineer — behavior evidence
52
- 6. Documentation Maintainer — living docs and council record
53
-
54
- Use Agent Studio when the CLI is available:
55
-
56
- ```bash
57
- agent-kit session start --workflow core-change --request "Short title"
58
- agent-kit session handoff --from planner --to lead-architect --decision "..." --risk "..." --next "..." --evidence "..."
59
- agent-kit session verify --command "npm test" --result pass
60
- agent-kit session output phased-checklist --status complete --evidence "..."
61
- agent-kit session render
62
- ```
63
-
64
- When CLI tooling is unavailable, append the session template in `COUNCIL.md` (see `MAINTAINER_RELEASE.md` for kit release evidence).
65
-
66
- ## Hooks And Local Automation (Level 6 enablers)
67
-
68
- The kit does **not** ship unsupervised orchestration. It documents safe local enablers:
69
-
70
- | Pattern | Purpose | Starting point |
71
- | --- | --- | --- |
72
- | Pre-commit test or audit | Catch drift before commit | `.agent-kit/prompts/audit-project-setup.md`, project `npm test` |
73
- | Post-edit lint/typecheck | Fast feedback on save | Project ESLint / `tsc --noEmit` in editor or CI |
74
- | PR CI audit gate | Block merge below readiness | `.github/workflows/agent-kit-audit.yml` template |
75
- | Adapter validate on PR | Prove IDE templates stay shippable | `agent-kit adapter validate all` (BaseRepo: `npm run adapter:validate` in `release:check`) |
76
-
77
- For Cursor-specific hook/automation patterns, see Cursor Automations docs and keep Planner-first triage **opt-in** — never as a replacement for Security Reviewer or human release approval.
78
-
79
- ## MCP Routing (delegation hint)
80
-
81
- Match MCP servers to council roles in consuming projects:
82
-
83
- | Role | Typical MCP use |
84
- | --- | --- |
85
- | Supabase/Postgres Engineer | Schema, migrations, RLS, logs, advisors |
86
- | Security Reviewer | Dependency/advisory checks; no broad production writes without review |
87
- | Deployment/Observability Engineer | Hosting logs, release status, error tracking |
88
- | QA Engineer | Test runners, visual diff tools where configured |
89
-
90
- Record active MCP surfaces in `ASSISTANT_ADAPTERS.md` when they affect council behavior.
91
-
92
- ## What Not To Default
93
-
94
- - Overnight unsupervised agent runs on auth, RLS, or release tooling
95
- - Agents managing agents without eval harness and kill switches
96
- - Removing human review from publish, migration, or security-sensitive paths
97
- - Duplicating runtime product agents inside the kit repo (wrong shape for agent-kit)
98
-
99
- ## Related Docs
100
-
101
- - `AGENTS.md` — council roles and default handoffs
102
- - `QUALITY_GATES.md` — Baseline / Strong / Mature evidence tiers
103
- - `COUNCIL.md` — session evidence template
104
- - `MAINTAINER_RELEASE.md` — kit maintainer release session checklist
105
- - `research/summaries/agentic-engineering-maturity-levels.md` — L3–L8 ladder and office integration
106
- - `TESTING.md` — project test and CI gate expectations
107
- - `PUBLISH.md` — npm publish runbook