@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ - Simplify the pack to agents, skills, and a user guide. `init` writes `AGENTS.md`, `USER_GUIDE.md`, and native IDE files only.
6
+ - Require screenshot QA: user-visible work is not done until desktop and mobile screenshots are captured and read.
7
+ - Drop session, studio, research, and orchestrate commands from the default CLI.
8
+ - Add `doctor`, `add agent`, and the `agents-and-skills` binary alias.
9
+ - Existing 17-doc / `.agent-kit/` installs are not deleted; `update` leaves leftover files unmanaged.
10
+ - Keep `npm run smoke:ui-screens` as a Playwright desktop/mobile capture of the installed user guide, not the removed Studio wizard.
11
+
3
12
  ## 0.3.0
4
13
 
5
14
  - Make GitHub Actions opt-in for fresh installs while preserving local verification gates and existing downstream workflows.
package/README.md CHANGED
@@ -1,574 +1,41 @@
1
- # Agent Kit for Next.js + Supabase
1
+ # Agents And Skills
2
2
 
3
- [![CI](https://github.com/lukey662/agentsandskills/actions/workflows/ci.yml/badge.svg)](https://github.com/lukey662/agentsandskills/actions/workflows/ci.yml)
4
- [![npm version](https://img.shields.io/npm/v/%40appsforgood%2Fnext-supabase-kit)](https://www.npmjs.com/package/@appsforgood/next-supabase-kit)
5
- [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/lukey662/agentsandskills/badge)](https://scorecard.dev/viewer/?uri=github.com/lukey662/agentsandskills)
6
- [![CodeQL](https://github.com/lukey662/agentsandskills/actions/workflows/codeql.yml/badge.svg)](https://github.com/lukey662/agentsandskills/actions/workflows/codeql.yml)
7
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
3
+ A small pack of **agents**, **skills**, and a **user guide** for Next.js + Supabase apps.
8
4
 
9
- `@appsforgood/next-supabase-kit` installs versioned agent instructions, specialist roles, reusable skills, project documentation, security checks, UI review gates, and audit tooling into an existing repository.
5
+ QA does not review user-visible work from code alone. A change is not done until someone opened the running UI, captured desktop and mobile screenshots, and reviewed those images.
10
6
 
11
- It is designed for teams using AI coding tools on Next.js and Supabase projects that need the work to remain reviewable, secure, and maintainable.
12
-
13
- ## Start Here
14
-
15
- - [Quick start](#quick-start)
16
- - [First-run examples](#first-run-examples)
17
- - [Audit examples](#audit-examples)
18
- - [Common delivery workflows](#common-delivery-workflows)
19
- - [Updating an existing install](#updating-an-existing-install)
20
- - [Optional executable runtime](#optional-executable-runtime)
21
- - [Installed project contract](#installed-project-contract)
22
- - [Maintainer verification](#maintainer-verification)
23
-
24
- ## What You Get
25
-
26
- - A machine-readable council roster with explicit ownership and handoffs.
27
- - Instructions and adapters for Codex, Cursor, Claude Code, GitHub Copilot, and Antigravity.
28
- - Living `SPEC.md`, `DECISIONS.md`, `DESIGN.md`, `MESSAGING.md`, `SECURITY.md`, `TESTING.md`, and deployment documentation.
29
- - Supabase Auth, RLS, migration, service-role, and OWASP review rules.
30
- - Frontend design gates that reject generic gradients, card soup, fake metrics, vague SaaS copy, inaccessible state styling, and other common AI-generated UI patterns.
31
- - Local project context, durable human corrections, council-session evidence, and static or live Agent Studio views.
32
- - A CLI that detects missing setup, stale templates, unsupported claims, weak evidence, and release-readiness gaps.
33
- - An optional runtime for checkpointed LangGraph execution with provider adapters, MCP policy, approvals, Docker isolation, and Git worktrees.
34
-
35
- ## Choose A Mode
36
-
37
- | Mode | Package | What runs |
38
- | --- | --- | --- |
39
- | Instructions and audits | `@appsforgood/next-supabase-kit` | Your coding assistant follows installed files; the CLI installs, validates, records, and audits evidence |
40
- | Executable council | Add `@appsforgood/agent-kit-runtime` | The CLI compiles the roster into checkpointed workflows with approval gates and isolated worktrees |
41
-
42
- The base kit does not call a model provider. Installing instructions does not prove that an executable council ran. Only `agent-kit orchestrate ...` produces runtime checkpoints and run evidence.
43
-
44
- ## Requirements
45
-
46
- - Node.js 20 or newer.
47
- - Git for update, session, and worktree-aware workflows.
48
- - A Next.js + Supabase project is the primary profile, but the documentation and audit model can be adapted to adjacent stacks.
49
- - Docker is required only for mutation commands in the optional executable runtime.
50
-
51
- ## Quick Start
52
-
53
- ### Zero-install trial
54
-
55
- Run the current package directly in the repository you want to prepare:
56
-
57
- ```bash
58
- npx --yes @appsforgood/next-supabase-kit@latest init --stack next-supabase --setup --open
59
- npx --yes @appsforgood/next-supabase-kit@latest audit
60
- npx --yes @appsforgood/next-supabase-kit@latest audit --min-readiness baseline-setup
61
- ```
62
-
63
- The first command installs project-owned documentation and `.agent-kit/` assets, then opens the local Agent Office setup flow. Existing customized files are preserved; changed templates are written to `.agent-kit/conflicts/` for review.
64
-
65
- ### Local development dependency
66
-
67
- Install the CLI when the project will use it repeatedly or in CI:
68
-
69
- ```bash
70
- npm install --save-dev @appsforgood/next-supabase-kit
71
- npx agent-kit init --stack next-supabase --setup --open
72
- npx agent-kit audit --min-readiness baseline-setup
73
- ```
74
-
75
- Add convenient package scripts:
76
-
77
- ```json
78
- {
79
- "scripts": {
80
- "agent:audit": "agent-kit audit --min-readiness baseline-setup",
81
- "agent:setup": "agent-kit setup --open",
82
- "agent:studio": "agent-kit studio serve --open"
83
- }
84
- }
85
- ```
86
-
87
- Then run:
88
-
89
- ```bash
90
- npm run agent:audit
91
- ```
92
-
93
- ## First-Run Examples
94
-
95
- ### Preview before writing
96
-
97
- ```bash
98
- npx agent-kit init --stack next-supabase --guided --dry-run --json
99
- ```
100
-
101
- ### Install without opening a browser
102
-
103
- ```bash
104
- npx agent-kit init --stack next-supabase --no-setup
105
- npx agent-kit context init
106
- npx agent-kit context ask
107
- ```
108
-
109
- GitHub Actions is off by default. Opt in to the advisory audit workflow only when the repository has working Actions entitlement:
110
-
111
- ```bash
112
- npx agent-kit init --github-actions
113
- ```
114
-
115
- The workflow runs manually by default. Set the repository variable `AGENT_KIT_ACTIONS_ENABLED=true` to enable its push and pull-request jobs. Do not make the check required until the repository can reliably start Actions jobs.
116
-
117
- ### Resume project onboarding
118
-
119
- ```bash
120
- npx agent-kit setup --open
121
- npx agent-kit setup --status
122
- ```
123
-
124
- The setup server binds to `127.0.0.1:9321` by default:
125
-
126
- - `/` or `/office`: Agent Office.
127
- - `/wizard`: form-based fallback.
128
-
129
- Use a different port when needed:
130
-
131
- ```bash
132
- npx agent-kit setup --port 9400 --open
133
- ```
134
-
135
- ### Activate IDE adapters
7
+ ## Start here
136
8
 
137
9
  ```bash
138
- npx agent-kit init --activate cursor
139
- npx agent-kit init --activate codex
140
- npx agent-kit init --activate antigravity
141
- npx agent-kit adapter validate all
10
+ npx --yes @appsforgood/next-supabase-kit init --activate all
142
11
  ```
143
12
 
144
- Activation promotes the relevant adapter files. The IDE or coding agent still decides when and how to load them; review `ASSISTANT_ADAPTERS.md` for the exact behavior of each tool.
13
+ Then read **[USER_GUIDE.md](USER_GUIDE.md)**. That guide is how you use the pack.
145
14
 
146
- ## Audit Examples
15
+ ## What you get
147
16
 
148
- ### Human-readable readiness report
149
-
150
- ```bash
151
- npx agent-kit audit
152
- ```
17
+ - `AGENTS.md` — who to ask
18
+ - `USER_GUIDE.md` — how to invoke agents and skills in Cursor, Claude, Codex, Copilot, and Antigravity
19
+ - Native agents and skills for the IDEs you activate
20
+ - A `browser-qa` skill that fails closed without desktop + mobile screenshots
153
21
 
154
- ### Stable JSON output
22
+ ## Commands
155
23
 
156
24
  ```bash
157
- npx agent-kit audit --json
158
- npx agent-kit audit --schema-version 2 --format json
159
- ```
160
-
161
- ### SARIF for code-scanning systems
162
-
163
- ```bash
164
- npx agent-kit audit --schema-version 2 --format sarif > agent-kit.sarif
165
- ```
166
-
167
- ### Fail a local or explicitly enabled CI gate below the required evidence level
168
-
169
- ```bash
170
- npx agent-kit audit --min-readiness baseline-setup
171
- ```
172
-
173
- Readiness levels are:
174
-
175
- 1. `needs-setup`
176
- 2. `baseline-setup`
177
- 3. `needs-improvement`
178
- 4. `best-practice-candidate`
179
-
180
- Example GitHub Actions job:
181
-
182
- ```yaml
183
- name: Agent Kit Audit
184
-
185
- on:
186
- pull_request:
187
- push:
188
- branches: [main]
189
-
190
- jobs:
191
- audit:
192
- if: ${{ github.event_name == 'workflow_dispatch' || vars.AGENT_KIT_ACTIONS_ENABLED == 'true' }}
193
- runs-on: ubuntu-latest
194
- permissions:
195
- contents: read
196
- steps:
197
- - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
198
- with:
199
- persist-credentials: false
200
- - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
201
- with:
202
- node-version: 24
203
- - run: npx --yes @appsforgood/next-supabase-kit@0.3.0 audit --min-readiness baseline-setup
204
- ```
205
-
206
- Run `agent-kit init --github-actions` to install the maintained `.github/workflows/agent-kit-audit.yml` template. Fresh installs do not create an active hosted workflow. Account billing, spending-limit, or Actions-startup failures are external infrastructure failures; they do not replace required local test and audit evidence and do not block commit/push or normal phase progression. A project may separately make hosted checks required only after verifying Actions entitlement and branch protection.
207
-
208
- ## Common Delivery Workflows
209
-
210
- ### Plan and record a feature
211
-
212
- ```bash
213
- npx agent-kit session start "Add organization invitations" --workflow core-change
214
- npx agent-kit session decision "Keep authorization in Supabase RLS and server-side mutation boundaries."
215
- npx agent-kit session handoff \
216
- --from planner \
217
- --to lead-architect \
218
- --decision "Review the invitation data and auth boundaries." \
219
- --risk "Invitation tokens and tenant isolation require explicit review."
220
- npx agent-kit session artifact --file SPEC.md
221
- npx agent-kit session verify \
222
- --command "npm test" \
223
- --result pass \
224
- --notes "Invitation unit and regression tests passed."
225
- npx agent-kit session render
226
- npx agent-kit session close --status complete
227
- ```
228
-
229
- ### Record several events at once
230
-
231
- ```json
232
- {
233
- "events": [
234
- {
235
- "type": "decision",
236
- "agent": "lead-architect",
237
- "text": "Use a server action for the mutation and RLS for authorization."
238
- },
239
- {
240
- "type": "artifact",
241
- "agent": "nextjs-engineer",
242
- "path": "app/invitations/actions.ts"
243
- },
244
- {
245
- "type": "verification",
246
- "agent": "qa-engineer",
247
- "command": "npm test",
248
- "result": "pass",
249
- "notes": "Regression suite passed."
250
- }
251
- ]
252
- }
253
- ```
254
-
255
- ```bash
256
- npx agent-kit session checkpoint --file .agent-kit/checkpoint.json
257
- npx agent-kit session render
258
- ```
259
-
260
- ### Review a frontend change
261
-
262
- Use the installed command instructions as prompt prefixes in compatible coding tools, or as native commands after activating Antigravity:
263
-
264
- ```text
265
- /frontend Build the account settings workflow.
266
- /ui-audit Review the implementation against the product-quality gates.
267
- /responsive-cleanup Verify 390px, tablet, and desktop layouts.
268
- /accessibility-pass Check keyboard, focus, labels, contrast, and error recovery.
269
- /screenshot-critique Compare desktop and mobile screenshots against DESIGN.md.
270
- ```
271
-
272
- The UI detector checks include concrete replacements:
273
-
274
- | Avoid | Prefer |
275
- | --- | --- |
276
- | Thick colored side rails and gradient borders on cards | Quiet 1px full borders, semantic icons, labels, and subtle state tint |
277
- | Purple/blue gradient heroes and glowing blobs | Product imagery, real workflow screenshots, concrete content, or tokenized neutral surfaces |
278
- | Decorative card grids | Tables, lists, forms, timelines, split panes, and task-specific grouping |
279
- | Invented metrics and placeholder charts | Real data, clearly labelled samples, empty states, or connection prompts |
280
- | "Supercharge your workflow" and similar copy | Specific actions, product nouns, constraints, and supported outcomes |
281
- | Decorative badge or icon walls | Real integrations, security posture, support details, commands, states, and navigation |
282
- | Frosted oversized panels | Normal surfaces, practical density, and clear section boundaries |
283
- | Color-only status | Semantic text, icons, accessible contrast, ARIA state, and recovery actions |
284
-
285
- Exceptions for an established brand system should be recorded in `DESIGN.md` or `.agent-kit/overrides.json`.
286
-
287
- ### Review Supabase auth or RLS work
288
-
289
- ```text
290
- /plan Add team-scoped document sharing.
291
- /security Review tenant isolation, IDOR risk, service-role use, and RLS coverage.
292
- /test Add cross-tenant read/write denial tests and an authorized happy path.
293
- ```
294
-
295
- Required evidence should include:
296
-
297
- - Migration and rollback implications.
298
- - RLS policies at the data boundary.
299
- - Cross-tenant denial tests.
300
- - Service-role isolation.
301
- - Server-side input validation.
302
- - Explicit failure and empty states.
303
-
304
- ### Preserve a durable correction
305
-
306
- ```bash
307
- npx agent-kit correction add --scope project \
308
- "Use task-first operational layouts; do not add marketing heroes to authenticated tools."
309
- npx agent-kit correction list
310
- npx agent-kit correction apply <correction-id>
311
- ```
312
-
313
- Applied project and agent corrections are loaded before meaningful work. Use `correction retire <id> --reason "..." ` when a rule no longer applies.
314
-
315
- ### Inspect sessions in Agent Studio
316
-
317
- ```bash
318
- npx agent-kit studio export
319
- npx agent-kit studio serve --open
320
- ```
321
-
322
- - Static export: `.agent-kit/studio/index.html`.
323
- - Live Studio: `http://127.0.0.1:9331` by default.
324
- - Live sessions use local append-only events and Server-Sent Events.
325
-
326
- ## Updating An Existing Install
327
-
328
- Preview template drift before applying an update:
329
-
330
- ```bash
331
- npx agent-kit diff --json
332
- npx agent-kit update --dry-run --json
25
+ npx agent-kit init --activate all
26
+ npx agent-kit doctor
27
+ npx agent-kit add skill debug
28
+ npx agent-kit add agent lead-architect
333
29
  npx agent-kit update
334
- npx agent-kit audit --min-readiness baseline-setup
335
- ```
336
-
337
- Update behavior:
338
-
339
- - Pristine installed files are refreshed.
340
- - Project-owned edits are preserved.
341
- - Template changes that collide with local edits are written to `.agent-kit/conflicts/`.
342
- - `--force` is explicit and should be used only after reviewing the diff.
343
- - Accepted deviations belong in `.agent-kit/overrides.json`.
344
-
345
- Example conflict review:
346
-
347
- ```bash
348
- npx agent-kit update --dry-run
349
- git diff -- .agent-kit/manifest.json
350
- git status --short .agent-kit/conflicts
351
- ```
352
-
353
- ## Optional Executable Runtime
354
-
355
- Install both packages locally. The runtime package does not provide the `agent-kit` binary by itself.
356
-
357
- ```bash
358
- npm install --save-dev \
359
- @appsforgood/next-supabase-kit \
360
- @appsforgood/agent-kit-runtime
361
- npx agent-kit orchestrate validate
362
- ```
363
-
364
- Fresh installs include a disabled `.agent-kit/orchestrator.json`. Configure provider model IDs that you have verified for the current provider account. Credentials must be references, not inline secret values.
365
-
366
- Minimal configuration example:
367
-
368
- ```json
369
- {
370
- "schemaVersion": 1,
371
- "enabled": true,
372
- "defaultWorkflow": "planning",
373
- "defaultAlias": "balanced",
374
- "providers": {
375
- "primary": {
376
- "kind": "openai",
377
- "credentialRef": "env:OPENAI_API_KEY"
378
- }
379
- },
380
- "modelAliases": {
381
- "balanced": {
382
- "requiredCapabilities": ["text", "tools"],
383
- "maxAttempts": 1,
384
- "candidates": [
385
- {
386
- "provider": "primary",
387
- "model": "replace-with-a-verified-provider-model-id"
388
- }
389
- ]
390
- }
391
- }
392
- }
393
- ```
394
-
395
- Validate and inspect the plan without calling a provider:
396
-
397
- ```bash
398
- npx agent-kit orchestrate validate
399
- npx agent-kit orchestrate plan "Review the authorization boundary" --workflow planning
400
- ```
401
-
402
- Start and manage a run:
403
-
404
- ```bash
405
- npx agent-kit orchestrate run "Implement the approved authorization fix" --workflow core-change
406
- npx agent-kit orchestrate status
407
- npx agent-kit orchestrate approve <run-id>
408
- npx agent-kit orchestrate resume <run-id> --decision approve
409
- npx agent-kit orchestrate export <run-id> --output .agent-kit/runtime-export.md
410
- ```
411
-
412
- Reject or cancel:
413
-
414
- ```bash
415
- npx agent-kit orchestrate resume <run-id> --decision reject
416
- npx agent-kit orchestrate cancel <run-id>
417
- ```
418
-
419
- Probe external adapters explicitly:
420
-
421
- ```bash
422
- npx agent-kit provider probe
423
- npx agent-kit provider probe primary
424
- npx agent-kit mcp probe project-tools
425
- ```
426
-
427
- Store a keychain-backed credential through a masked prompt:
428
-
429
- ```bash
430
- npx agent-kit credential set keychain:team-openai
431
- npx agent-kit credential delete keychain:team-openai
432
- ```
433
-
434
- ### Runtime boundaries
435
-
436
- - Mutations occur in an isolated Git worktree.
437
- - Docker mutation containers use a read-only root, dropped capabilities, `no-new-privileges`, resource limits, and no network by default.
438
- - File tools reject traversal, symlink escapes, Git internals, environment files, private keys, package-manager credentials, and runtime evidence paths.
439
- - Network, host execution, worktree writes, and final commits require applicable approval gates.
440
- - One approved scoped commit may be created on `agent-kit/<run-id>`.
441
- - The runtime never merges, pushes, opens a pull request, deploys, or applies a migration automatically.
442
-
443
- See [Runtime orchestration scope](RUNTIME_ORCHESTRATION_SCOPE.md) and the [runtime package README](packages/runtime/README.md) for provider, MCP, sandbox, checkpoint, and recovery details.
444
-
445
- ## Installed Project Contract
446
-
447
- Important root documents:
448
-
449
- | File | Purpose |
450
- | --- | --- |
451
- | `AGENTS.md` | High-level operating instructions and required handoffs |
452
- | `AGENT_ROSTER.md` | Human-readable specialist ownership |
453
- | `SPEC.md` | Current functional and technical contract |
454
- | `DECISIONS.md` | Architectural decisions and consequences |
455
- | `DESIGN.md` | Brand, content, UI rules, anti-references, and approved exceptions |
456
- | `MESSAGING.md` | Audience, positioning, proof, objections, voice, and CTA rules |
457
- | `QUALITY_GATES.md` | Evidence required for each readiness level |
458
- | `SECURITY.md` | Auth, data, dependency, secret, and threat boundaries |
459
- | `TESTING.md` | Unit, regression, smoke, visual, and release evidence |
460
- | `DEPLOYMENT.md` | Environment, release, rollback, and observability guidance |
461
- | `UPGRADE.md` | Template and dependency upgrade history |
462
-
463
- Important `.agent-kit/` assets:
464
-
465
- - `agent-roster.json`: workflow, agent, and handoff contract.
466
- - `model-routing.json`: provider-neutral model profiles.
467
- - `project-context.json` and `project-context.md`: current product and architecture context.
468
- - `corrections/`: durable project and agent rules.
469
- - `council-sessions/`: structured decisions, handoffs, outputs, and verification.
470
- - `skills/`, `prompts/`, and `checklists/`: reusable execution and review procedures.
471
- - `assistant-adapters/`: IDE-specific installation guidance.
472
- - `schemas/`: validation contracts for installed evidence.
473
-
474
- Inspect an example installation:
475
-
476
- - [Example project README](examples/next-supabase-installed/README.md)
477
- - [Example installed tree](examples/next-supabase-installed/tree.txt)
478
- - [Example audit report](examples/next-supabase-installed/audit-output.json)
479
-
480
- ## Workflow Instruction Index
481
-
482
- The kit includes 20 lifecycle and UI instruction adapters.
483
-
484
- | Goal | Instruction |
485
- | --- | --- |
486
- | Capture project context | `/setup` |
487
- | Define behavior and constraints | `/spec` |
488
- | Plan implementation and handoffs | `/plan` |
489
- | Record agent ownership changes | `/handoff` |
490
- | Build or review frontend work | `/frontend` |
491
- | Audit kit readiness | `/audit` |
492
- | Add verification evidence | `/test` |
493
- | Review code before merge | `/review` |
494
- | Review auth, data, secrets, and dependencies | `/security` |
495
- | Review public or conversion copy | `/copy` |
496
- | Verify release and rollback evidence | `/ship` |
497
- | Review template or dependency upgrades | `/upgrade` |
498
- | Detect UI quality failures | `/ui-audit` |
499
- | Improve an implemented UI | `/ui-polish` |
500
- | Repair hierarchy and layout | `/layout-cleanup` |
501
- | Verify responsive states | `/responsive-cleanup` |
502
- | Verify WCAG 2.1 AA behavior | `/accessibility-pass` |
503
- | Check product-specific visual identity | `/distinctiveness-pass` |
504
- | Critique screenshot evidence | `/screenshot-critique` |
505
- | Run a browser QA loop | `/browser-qa` |
506
-
507
- These are instruction adapters, not proof of execution. Canonical steps live in `.agent-kit/prompts/lifecycle-command-index.md` and `.agent-kit/prompts/ui-command-index.md`.
508
-
509
- ## Output And Flag Notes
510
-
511
- Use command help as the source of truth:
512
-
513
- ```bash
514
- npx agent-kit --help
515
- npx agent-kit audit --help
516
- npx agent-kit session --help
517
- npx agent-kit orchestrate --help
518
- ```
519
-
520
- Commands that expose `--json` include `init`, `audit`, `diff`, `update`, `doctor`, adapter/package validation, most session mutations, corrections, orchestrator commands, provider/MCP probes, and Studio export.
521
-
522
- Long-running server commands such as `setup` and `studio serve`, interactive credential entry, and maintainer research commands use their documented human output instead.
523
-
524
- Commands that support `--dry-run` include `init`, `update`, and `add skill`. Review each command's `--help` output rather than assuming a global flag.
525
-
526
- ## Security Defaults
527
-
528
- The installed contract requires:
529
-
530
- - Supabase RLS at the data boundary, not only UI authorization.
531
- - Service-role credentials in trusted server code only.
532
- - Input validation and safe output rendering at every boundary.
533
- - IDOR, SSRF, injection, broken-auth, upload, and misconfiguration review.
534
- - Explicit loading, empty, error, retry, and success states.
535
- - Cross-tenant denial tests for tenant-scoped data.
536
- - Dependency audit and release evidence for dependency changes.
537
- - No secrets, customer data, or private repository evidence in committed session files.
538
-
539
- ## Maintainer Verification
540
-
541
- For development of this repository:
542
-
543
- ```bash
544
- npm install
545
- npm run build
546
- npm test
547
- npm run release:check
30
+ npx agent-kit adapter validate all
548
31
  ```
549
32
 
550
- `npm run release:check` runs:
551
-
552
- - JSON and version consistency checks.
553
- - TypeScript, ESLint, and Prettier checks.
554
- - Unit and regression tests with coverage gates.
555
- - Package build and asset validation.
556
- - IDE adapter and example-install validation.
557
- - Install, Studio, setup, and audit-gate smoke tests.
558
- - Dependency audit.
559
- - CycloneDX SBOM validation.
560
- - Root and runtime package dry runs.
561
-
562
- The release workflow uses npm Trusted Publishing through GitHub Actions OIDC, creates package-rooted SBOM attestations, publishes the runtime before the root package when needed, verifies both packages from the public registry, and creates a GitHub release only after registry verification.
33
+ `agents-and-skills` is the same binary.
563
34
 
564
- Additional evidence:
35
+ ## Default agents
565
36
 
566
- - [Best-practice evidence map](BEST_PRACTICE_EVIDENCE.md)
567
- - [Supply-chain policy](SUPPLY_CHAIN.md)
568
- - [Maintainer release procedure](MAINTAINER_RELEASE.md)
569
- - [Research citation policy](RESEARCH_CITATION_POLICY.md)
570
- - [Public support policy](SUPPORT.md)
37
+ Planner · App engineer · Security · Design · QA · Copy
571
38
 
572
- ## License
39
+ ## Default skills
573
40
 
574
- MIT.
41
+ planning · nextjs-app-router · supabase-auth-rls · postgres-migrations · owasp-security-review · frontend-design · accessibility-wcag · **browser-qa** · testing-qa · product-copy · ship