@appsforgood/next-supabase-kit 0.1.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 (169) hide show
  1. package/BEST_PRACTICE_EVIDENCE.md +45 -0
  2. package/CHANGELOG.md +44 -0
  3. package/CODE_OF_CONDUCT.md +26 -0
  4. package/CONTRIBUTING.md +48 -0
  5. package/DOGFOOD.md +121 -0
  6. package/GOVERNANCE.md +45 -0
  7. package/LICENSE +21 -0
  8. package/README.md +251 -0
  9. package/REPOSITORY_SETTINGS.md +70 -0
  10. package/RESEARCH_CITATION_POLICY.md +26 -0
  11. package/SECURITY.md +29 -0
  12. package/SUPPLY_CHAIN.md +55 -0
  13. package/SUPPORT.md +28 -0
  14. package/UPGRADE.md +77 -0
  15. package/agents/deployment-observability-engineer.md +13 -0
  16. package/agents/docs-maintainer.md +17 -0
  17. package/agents/frontend-design-lead.md +22 -0
  18. package/agents/lead-architect.md +25 -0
  19. package/agents/marketing-copy-lead.md +20 -0
  20. package/agents/nextjs-engineer.md +20 -0
  21. package/agents/planner.md +20 -0
  22. package/agents/qa-engineer.md +19 -0
  23. package/agents/research-analyst.md +13 -0
  24. package/agents/security-reviewer.md +16 -0
  25. package/agents/supabase-postgres-engineer.md +19 -0
  26. package/assistant-adapters/README.md +28 -0
  27. package/assistant-adapters/claude-code-subagents.md +37 -0
  28. package/assistant-adapters/codex-agents.md +35 -0
  29. package/assistant-adapters/cursor-agent-kit.mdc +30 -0
  30. package/assistant-adapters/github-copilot-instructions.md +35 -0
  31. package/assistant-adapters/github-next-supabase.instructions.md +28 -0
  32. package/assistant-adapters/model-selection/claude-code-subagents-with-models.md +32 -0
  33. package/assistant-adapters/model-selection/codex-config.example.toml +29 -0
  34. package/assistant-adapters/model-selection/cursor-model-selection.mdc +24 -0
  35. package/assistant-adapters/model-selection/github-copilot-model-selection.md +20 -0
  36. package/checklists/accessibility.md +12 -0
  37. package/checklists/agent-council.md +13 -0
  38. package/checklists/brand-content.md +15 -0
  39. package/checklists/deployment.md +10 -0
  40. package/checklists/design-critique.md +13 -0
  41. package/checklists/frontend-distinctiveness.md +12 -0
  42. package/checklists/frontend-product-quality.md +13 -0
  43. package/checklists/frontend-quality.md +20 -0
  44. package/checklists/marketing-copy.md +11 -0
  45. package/checklists/owasp.md +12 -0
  46. package/checklists/rls.md +10 -0
  47. package/checklists/testing.md +12 -0
  48. package/checklists/upgrade.md +13 -0
  49. package/checklists/visual-regression.md +11 -0
  50. package/design-adapters/claude-design.prompt.md +27 -0
  51. package/design-adapters/figma.prompt.md +18 -0
  52. package/design-adapters/google-stitch.prompt.md +36 -0
  53. package/design-adapters/human-designer-brief.prompt.md +36 -0
  54. package/design-briefs/admin-dashboard.md +21 -0
  55. package/design-briefs/ai-workflow-product.md +25 -0
  56. package/design-briefs/community-social.md +26 -0
  57. package/design-briefs/content-app.md +21 -0
  58. package/design-briefs/ecommerce.md +25 -0
  59. package/design-briefs/education-course.md +25 -0
  60. package/design-briefs/marketplace.md +21 -0
  61. package/design-briefs/portfolio-venue.md +25 -0
  62. package/design-briefs/saas.md +21 -0
  63. package/design-briefs/tool.md +21 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.js +3521 -0
  66. package/dist/index.js.map +1 -0
  67. package/examples/next-supabase-installed/.agent-kit/agent-roster.json +228 -0
  68. package/examples/next-supabase-installed/.agent-kit/manifest.json +58 -0
  69. package/examples/next-supabase-installed/.agent-kit/model-routing.json +164 -0
  70. package/examples/next-supabase-installed/.agent-kit/overrides.json +9 -0
  71. package/examples/next-supabase-installed/README.md +15 -0
  72. package/examples/next-supabase-installed/audit-output.json +336 -0
  73. package/examples/next-supabase-installed/tree.txt +38 -0
  74. package/model-routing/default-model-routing.json +164 -0
  75. package/package.json +98 -0
  76. package/profiles/admin-app.md +17 -0
  77. package/profiles/content-app.md +17 -0
  78. package/profiles/marketplace.md +17 -0
  79. package/profiles/saas.md +17 -0
  80. package/profiles/stack-next-firebase.md +25 -0
  81. package/profiles/stack-next-postgres.md +24 -0
  82. package/profiles/stack-remix-supabase.md +24 -0
  83. package/prompts/audit-project-setup.md +28 -0
  84. package/prompts/brand-content-intake.md +17 -0
  85. package/prompts/copy-review.md +15 -0
  86. package/prompts/council-session-review.md +17 -0
  87. package/prompts/creative-direction-matrix.md +22 -0
  88. package/prompts/design-critique-gate.md +28 -0
  89. package/prompts/docs-update.md +16 -0
  90. package/prompts/frontend-design-review.md +29 -0
  91. package/prompts/frontend-distinctiveness-benchmark.md +32 -0
  92. package/prompts/frontend-product-quality-scorecard.md +35 -0
  93. package/prompts/implement-feature.md +14 -0
  94. package/prompts/migration-review.md +14 -0
  95. package/prompts/screenshot-review.md +27 -0
  96. package/prompts/security-review.md +17 -0
  97. package/prompts/upgrade-review.md +18 -0
  98. package/prompts/visual-qa-plan.md +16 -0
  99. package/research/proposed-updates.md +70 -0
  100. package/research/scan-config.json +261 -0
  101. package/research/scan-plan.md +24 -0
  102. package/research/summaries/.gitkeep +1 -0
  103. package/research/summaries/agent-workflow-patterns.md +37 -0
  104. package/research/summaries/creative-design-patterns.md +38 -0
  105. package/research/summaries/design-critique-patterns.md +34 -0
  106. package/research/summaries/docs-and-agent-patterns.md +64 -0
  107. package/research/summaries/dogfood-adoption-patterns.md +33 -0
  108. package/research/summaries/frontend-design-patterns.md +64 -0
  109. package/research/summaries/frontend-distinctiveness-benchmark-patterns.md +38 -0
  110. package/research/summaries/frontend-product-quality-rubric-patterns.md +37 -0
  111. package/research/summaries/maturity-model-patterns.md +29 -0
  112. package/research/summaries/nextjs-patterns.md +65 -0
  113. package/research/summaries/repo-health-patterns.md +41 -0
  114. package/research/summaries/scan-overview.md +46 -0
  115. package/research/summaries/security-patterns.md +64 -0
  116. package/research/summaries/supabase-rls-patterns.md +54 -0
  117. package/research/summaries/supply-chain-patterns.md +38 -0
  118. package/research/summaries/testing-patterns.md +63 -0
  119. package/research/summaries/upgrade-lifecycle-patterns.md +26 -0
  120. package/research/summaries/visual-qa-patterns.md +39 -0
  121. package/rosters/next-supabase-default-council.json +228 -0
  122. package/schemas/agent-roster.schema.json +54 -0
  123. package/schemas/audit-report.schema.json +50 -0
  124. package/schemas/correction-rules.schema.json +32 -0
  125. package/schemas/council-session.schema.json +65 -0
  126. package/schemas/model-routing.schema.json +72 -0
  127. package/schemas/project-context.schema.json +94 -0
  128. package/schemas/session-event.schema.json +46 -0
  129. package/schemas/studio-session.schema.json +48 -0
  130. package/skills/accessibility-wcag.md +15 -0
  131. package/skills/agent-handoff-tracing.md +44 -0
  132. package/skills/best-practice-maturity-review.md +26 -0
  133. package/skills/content-first-design.md +50 -0
  134. package/skills/conversion-copywriting.md +38 -0
  135. package/skills/deployment-observability.md +14 -0
  136. package/skills/docs-maintainer.md +19 -0
  137. package/skills/frontend-design-system.md +68 -0
  138. package/skills/frontend-distinctiveness-benchmark.md +40 -0
  139. package/skills/frontend-product-quality-rubric.md +59 -0
  140. package/skills/landing-page-copy.md +29 -0
  141. package/skills/nextjs-app-router.md +18 -0
  142. package/skills/onboarding-empty-state-copy.md +37 -0
  143. package/skills/owasp-security-review.md +19 -0
  144. package/skills/planning-council.md +21 -0
  145. package/skills/positioning-messaging.md +42 -0
  146. package/skills/postgres-migrations.md +14 -0
  147. package/skills/product-voice-tone.md +35 -0
  148. package/skills/reference-led-design-critique.md +48 -0
  149. package/skills/supabase-auth-rls.md +20 -0
  150. package/skills/testing-qa.md +15 -0
  151. package/skills/upgrade-maintenance.md +32 -0
  152. package/skills/visual-regression-qa.md +42 -0
  153. package/templates/next-supabase/AGENTS.md +138 -0
  154. package/templates/next-supabase/AGENT_ROSTER.md +98 -0
  155. package/templates/next-supabase/ASSISTANT_ADAPTERS.md +82 -0
  156. package/templates/next-supabase/COUNCIL.md +54 -0
  157. package/templates/next-supabase/DECISIONS.md +45 -0
  158. package/templates/next-supabase/DEPLOYMENT.md +45 -0
  159. package/templates/next-supabase/DESIGN.md +171 -0
  160. package/templates/next-supabase/DOCS.md +62 -0
  161. package/templates/next-supabase/MESSAGING.md +81 -0
  162. package/templates/next-supabase/MODEL_ROUTING.md +109 -0
  163. package/templates/next-supabase/QUALITY_GATES.md +87 -0
  164. package/templates/next-supabase/SECURITY.md +54 -0
  165. package/templates/next-supabase/SKILLS.md +221 -0
  166. package/templates/next-supabase/SPEC.md +114 -0
  167. package/templates/next-supabase/STYLE_GUIDE.md +104 -0
  168. package/templates/next-supabase/TESTING.md +68 -0
  169. package/templates/next-supabase/UPGRADE.md +59 -0
@@ -0,0 +1,17 @@
1
+ # Marketplace Compatibility Profile
2
+
3
+ Use for buyer/seller products, listings, bookings, services, and transaction workflows.
4
+
5
+ ## Required Emphasis
6
+
7
+ - Role separation for buyer, seller, admin, and support staff.
8
+ - Listing ownership, transaction authorization, disputes, fraud controls, and moderation.
9
+ - RLS policies for private messages, offers, orders, payments, and seller-only data.
10
+ - Smoke tests for search, listing creation, inquiry/order flow, and role-specific access.
11
+
12
+ ## Agent Handoff
13
+
14
+ - Architect owns role model and transaction lifecycle.
15
+ - Supabase/Postgres engineer owns listing, order, message, and policy design.
16
+ - Security reviewer owns IDOR, file upload, payment/webhook validation, and abuse paths.
17
+ - Frontend design lead owns comparison UX, trust signals, availability states, and mobile search.
@@ -0,0 +1,17 @@
1
+ # SaaS Compatibility Profile
2
+
3
+ Use for subscription products, team workspaces, and account-based apps.
4
+
5
+ ## Required Emphasis
6
+
7
+ - Tenant isolation, role-based access, team membership, billing state, and usage limits.
8
+ - RLS policies for tenant-owned data and user-owned preferences.
9
+ - Trial, upgrade, downgrade, cancellation, and past-due UX.
10
+ - Smoke tests for signup, login, workspace creation, billing gates, and primary workflow.
11
+
12
+ ## Agent Handoff
13
+
14
+ - Architect owns tenant boundaries and subscription model.
15
+ - Supabase/Postgres engineer owns membership schema, RLS, migrations, and seed data.
16
+ - Security reviewer owns IDOR, service-role isolation, webhook validation, and dependency exposure.
17
+ - Frontend design lead owns density, state coverage, and non-generic product surfaces.
@@ -0,0 +1,25 @@
1
+ # Stack Profile: Next.js And Firebase
2
+
3
+ Use this profile when adapting the kit to projects using Next.js with Firebase Auth, Firestore, Realtime Database, Storage, Cloud Functions, or Firebase Hosting.
4
+
5
+ ## Replace Supabase-Specific Checks
6
+
7
+ - Replace Supabase RLS policy review with Firestore/Realtime Database security rules review.
8
+ - Replace service-role guidance with Firebase Admin SDK server-only guidance.
9
+ - Replace Postgres migration checks with Firebase rules, indexes, emulator fixtures, and data-shape validation.
10
+ - Keep OWASP, SSR, secrets, accessibility, testing, deployment, and living-docs requirements.
11
+
12
+ ## Required Evidence
13
+
14
+ - Firebase security rules are versioned and tested.
15
+ - Client SDK usage cannot access admin-only data.
16
+ - Admin SDK credentials are server-only and never bundled.
17
+ - Emulator or integration tests cover auth, rules, and primary data writes.
18
+ - Storage rules cover uploads, reads, ownership, content type, and size.
19
+
20
+ ## Agent Handoff
21
+
22
+ - Architect owns auth model, tenancy, and data boundaries.
23
+ - Firebase engineer owns rules, indexes, emulator tests, functions, and storage.
24
+ - Security reviewer owns privilege escalation, IDOR, file uploads, secrets, and dependency exposure.
25
+ - Frontend design lead owns task-first UX, states, accessibility, and screenshot review.
@@ -0,0 +1,24 @@
1
+ # Stack Profile: Next.js And Postgres
2
+
3
+ Use this profile when adapting the kit to projects using Next.js with direct Postgres access through an ORM, query builder, or server-only database client.
4
+
5
+ ## Replace Supabase-Specific Checks
6
+
7
+ - Replace Supabase RLS review with explicit application authorization, database constraints, and optional Postgres RLS.
8
+ - Replace Supabase Auth guidance with the project's auth provider and session verification model.
9
+ - Keep migration, schema, index, transaction, OWASP, accessibility, testing, deployment, and living-docs requirements.
10
+
11
+ ## Required Evidence
12
+
13
+ - Server-only database access is enforced.
14
+ - User and tenant ownership checks are centralized and tested.
15
+ - Migrations are ordered, reversible where practical, and covered by rollback notes.
16
+ - Constraints and indexes protect integrity and expected access patterns.
17
+ - Integration tests cover auth, ownership, mutations, and failed authorization.
18
+
19
+ ## Agent Handoff
20
+
21
+ - Architect owns domain model, tenancy, and service boundaries.
22
+ - Database engineer owns migrations, constraints, indexes, transactions, and query performance.
23
+ - Security reviewer owns IDOR, injection, auth/session checks, secrets, and dependency exposure.
24
+ - Frontend design lead owns task-first UX, states, accessibility, and screenshot review.
@@ -0,0 +1,24 @@
1
+ # Stack Profile: Remix And Supabase
2
+
3
+ Use this profile when adapting the kit to Remix projects using Supabase Auth, Postgres, Storage, Realtime, or Edge Functions.
4
+
5
+ ## Replace Next.js-Specific Checks
6
+
7
+ - Replace App Router checks with Remix loader, action, route module, error boundary, and nested route checks.
8
+ - Keep Supabase Auth, RLS, service-role isolation, Postgres migrations, OWASP, accessibility, testing, deployment, and living-docs requirements.
9
+ - Treat loaders and actions as the main auth, validation, and mutation boundaries.
10
+
11
+ ## Required Evidence
12
+
13
+ - Loaders and actions validate input, verify session state, and return safe errors.
14
+ - Supabase clients preserve request auth context.
15
+ - RLS protects user-owned and tenant-owned tables.
16
+ - Service-role access is isolated to trusted server modules.
17
+ - Route-level error boundaries cover loading, empty, failure, and permission-denied states.
18
+
19
+ ## Agent Handoff
20
+
21
+ - Architect owns route/data boundaries and auth flow.
22
+ - Remix engineer owns loaders, actions, nested routes, and error boundaries.
23
+ - Supabase/Postgres engineer owns RLS, migrations, storage policies, and service-role access.
24
+ - Security reviewer owns IDOR, SSRF, injection, secrets, and dependency exposure.
@@ -0,0 +1,28 @@
1
+ # Audit Project Setup Prompt
2
+
3
+ Audit this project's agents, skills, and markdown documentation for a best-practice Next.js + Supabase setup.
4
+
5
+ Evaluate:
6
+
7
+ - Agent roles and handoffs
8
+ - `.agent-kit/agent-roster.json` default council routing
9
+ - `.agent-kit/schemas/` roster and council-session contracts
10
+ - `COUNCIL.md` decision, risk, next-handoff, evidence, and verification records
11
+ - `QUALITY_GATES.md` baseline, strong, best-practice, and evidence model
12
+ - `agent-kit audit --min-readiness <level>` threshold appropriate for the project maturity
13
+ - Planner default planning workflow and Lead Architect core-change council workflow
14
+ - Reusable skills
15
+ - Supabase Auth, SSR, RLS, migrations, Storage, and service-role safety
16
+ - Next.js App Router architecture
17
+ - OWASP Top 10 coverage
18
+ - WCAG 2.1 AA frontend standards
19
+ - Testing, deployment, observability, and living docs
20
+
21
+ Output:
22
+
23
+ 1. Verdict and readiness level: `needs-setup`, `baseline-setup`, `needs-improvement`, or `best-practice-candidate`.
24
+ 2. Strengths.
25
+ 3. Gaps and risks.
26
+ 4. Phased improvement plan.
27
+ 5. Markdown files to create or update.
28
+ 6. Implementation notes if changes are needed.
@@ -0,0 +1,17 @@
1
+ # Brand And Content Intake Prompt
2
+
3
+ Use before designing or changing a user-facing surface.
4
+
5
+ Ask for or infer the smallest useful set of inputs needed to avoid generic UI.
6
+
7
+ Return:
8
+
9
+ 1. Product category and primary audience.
10
+ 2. User needs in the user's language.
11
+ 3. Real content inventory: nouns, labels, data fields, records, assets, examples, and domain terms.
12
+ 4. Brand personality and visual constraints.
13
+ 5. Category references to learn from and patterns to avoid.
14
+ 6. First-screen task, object, or workflow that must be visible.
15
+ 7. Missing inputs that block high-quality design.
16
+
17
+ Do not write vague value propositions. Use concrete domain language from the product.
@@ -0,0 +1,15 @@
1
+ # Copy Review Prompt
2
+
3
+ Use this before accepting marketing, landing-page, onboarding, pricing, CTA, or product voice changes.
4
+
5
+ Review the copy against `MESSAGING.md`, `DESIGN.md`, and the current implementation.
6
+
7
+ Report:
8
+
9
+ - Missing discovery answers: audience, pain, outcome, alternatives, differentiator, proof, objections, voice, and conversion goal.
10
+ - Positioning statement and whether it is specific enough.
11
+ - Unsupported claims, invented proof, vague SaaS language, or risky wording.
12
+ - Headline, subhead, CTA, proof, and objection-handling alignment.
13
+ - Onboarding, empty-state, error, permission, or upgrade copy that lacks a useful next step.
14
+ - Voice/tone consistency and terminology conflicts.
15
+ - Required changes before Frontend Design Lead or QA acceptance.
@@ -0,0 +1,17 @@
1
+ # Council Session Review Prompt
2
+
3
+ Use before completing meaningful planning, core-change, frontend-change, security-review, release, or research work.
4
+
5
+ Review the current work against `.agent-kit/agent-roster.json`, `AGENT_ROSTER.md`, `COUNCIL.md`, and any `.agent-kit/council-sessions/*.json` records.
6
+
7
+ Return:
8
+
9
+ 1. Selected workflow and why it applies.
10
+ 2. Required agents and whether each participated.
11
+ 3. Required outputs and whether each is missing, partial, complete, or not applicable.
12
+ 4. Handoff trail: agent, decision, risk, next handoff, and evidence.
13
+ 5. Verification evidence: commands, reviews, screenshots, visual diffs, or documented gaps.
14
+ 6. Blockers that prevent the session from being marked complete.
15
+
16
+ Do not accept a handoff that lacks decision, risk, next owner, or evidence.
17
+ Run `agent-kit audit` after adding or changing structured council-session JSON records.
@@ -0,0 +1,22 @@
1
+ # Creative Direction Matrix Prompt
2
+
3
+ Use after brand/content intake and before implementation.
4
+
5
+ Create 2-3 distinct directions for the same product. Each direction must be meaningfully different in layout, density, typography, imagery, color behavior, and interaction tone.
6
+
7
+ For each direction, return:
8
+
9
+ - Name.
10
+ - Best-fit audience and use case.
11
+ - First-screen composition.
12
+ - Token direction: color, type, spacing, radius, motion, depth.
13
+ - Imagery or asset strategy.
14
+ - Component/state implications.
15
+ - Risks and what could make it look generic.
16
+ - Reference and anti-reference fit, including what must not be copied.
17
+
18
+ Then choose one direction and explain:
19
+
20
+ - Why it fits the product content and user need.
21
+ - Why rejected directions are weaker.
22
+ - What screenshot evidence must prove after implementation.
@@ -0,0 +1,28 @@
1
+ # Design Critique Gate Prompt
2
+
3
+ Use after creative direction is chosen and before accepting implementation.
4
+
5
+ Inputs:
6
+
7
+ - `DESIGN.md`
8
+ - Selected creative direction
9
+ - Reference set and anti-references
10
+ - Desktop and mobile screenshots or preview links
11
+ - Primary workflow and real content/data examples
12
+ - Accessibility and visual QA evidence
13
+ - Frontend product-quality scorecard, if already drafted
14
+
15
+ Return:
16
+
17
+ - Reference-set summary: what each reference teaches and what must not be copied.
18
+ - Anti-reference summary: patterns, palettes, layouts, copy, or interaction choices to avoid.
19
+ - First-screen critique: whether the actual product, object, task, workflow, or content is immediately visible.
20
+ - Distinctiveness verdict: `weak`, `adequate`, or `strong`.
21
+ - Product-quality scorecard: user/task fit, content specificity, visual identity, information architecture, component states, accessibility and interaction, source safety, and total score.
22
+ - AI-slop risks: generic gradients, vague SaaS copy, card soup, fake metrics, stock-like imagery, one-note palette, or placeholder content.
23
+ - UX risks: unclear primary action, weak information hierarchy, poor density, missing states, or mobile compromise.
24
+ - Accessibility risks: semantic structure, keyboard path, focus, contrast, motion, labels, and error feedback.
25
+ - Required changes before acceptance.
26
+ - Evidence still missing before release.
27
+
28
+ Reject the UI if it could be swapped into another product in the same category without changing the content.
@@ -0,0 +1,16 @@
1
+ # Docs Update Prompt
2
+
3
+ Update living docs after this change.
4
+
5
+ Check:
6
+
7
+ - `SPEC.md` for functional and technical behavior
8
+ - `DECISIONS.md` for important tradeoffs
9
+ - `DOCS.md` for setup, workflows, and integrations
10
+ - `COUNCIL.md` for meaningful handoffs, required outputs, evidence, and verification status
11
+ - `QUALITY_GATES.md` for maturity target and evidence expectations
12
+ - `DESIGN.md` for brand/content, creative direction, and visual-system implications
13
+ - `STYLE_GUIDE.md` for code and design patterns
14
+ - `SECURITY.md` for auth/data boundaries
15
+ - `TESTING.md` for coverage and gaps
16
+ - `DEPLOYMENT.md` for release implications
@@ -0,0 +1,29 @@
1
+ # Frontend Design Review Prompt
2
+
3
+ Review this UI for product-specific quality and accessibility.
4
+
5
+ Reject:
6
+
7
+ - Missing brand/content intake or `DESIGN.md` context
8
+ - Missing creative-direction rationale
9
+ - Missing frontend product-quality scorecard
10
+ - Missing visual QA or component-state evidence
11
+ - Generic AI-site gradients
12
+ - Vague SaaS copy
13
+ - Fake metrics
14
+ - Card soup
15
+ - Missing mobile states
16
+ - Missing loading, empty, error, disabled, or success states
17
+
18
+ Recommend:
19
+
20
+ - Content-first inputs that must be filled before implementation is accepted
21
+ - Which creative direction should be selected or explored next
22
+ - Product-quality scorecard with critical zeroes and total score
23
+ - Which visual QA tier is appropriate for the change
24
+ - Task-first layout
25
+ - Domain-specific hierarchy
26
+ - Design tokens
27
+ - Accessible forms and controls
28
+ - WCAG 2.1 AA behavior
29
+ - Stronger visual direction where needed
@@ -0,0 +1,32 @@
1
+ # Frontend Distinctiveness Benchmark Prompt
2
+
3
+ Use before accepting significant frontend work.
4
+
5
+ Inputs:
6
+
7
+ - `DESIGN.md`
8
+ - Current screen, screenshots, preview URL, or implementation notes
9
+ - Product category, audience, user needs, content inventory, and primary workflow
10
+ - Reference set, anti-references, and source-safety notes
11
+ - Asset list and provenance notes
12
+ - Product-quality scorecard and visual QA evidence
13
+
14
+ Review:
15
+
16
+ - Does the first viewport prove what this product is and what the user does here?
17
+ - Which product nouns, data shapes, records, actions, and edge cases are visible?
18
+ - Which reference lessons were applied without copying source design, copy, assets, or brand identity?
19
+ - Which anti-references were avoided?
20
+ - Do assets have clear source, generation, license, or placeholder constraints?
21
+ - Which loading, empty, error, disabled, success, permission, and focus states still need proof?
22
+ - Would this screen still look valid for another product in the same category after only changing the logo or headline?
23
+
24
+ Return:
25
+
26
+ - Verdict: `reject`, `adequate`, or `distinctive`.
27
+ - First-screen proof: missing, adequate, or strong.
28
+ - Content fingerprint: missing, adequate, or strong.
29
+ - Reference benchmark: missing, adequate, or strong.
30
+ - Asset/source-safety risks.
31
+ - Generic-AI-site risk.
32
+ - Required changes before acceptance.
@@ -0,0 +1,35 @@
1
+ # Frontend Product Quality Scorecard Prompt
2
+
3
+ Use before accepting significant frontend work.
4
+
5
+ Inputs:
6
+
7
+ - `DESIGN.md`
8
+ - Selected creative direction
9
+ - Reference set, anti-references, and source-safety notes
10
+ - Desktop and mobile screenshots or preview links
11
+ - Primary workflow and real content/data examples
12
+ - Component states, accessibility evidence, and visual QA tier
13
+ - Frontend distinctiveness benchmark verdict
14
+
15
+ Score each dimension from `0` to `2`:
16
+
17
+ - User/task fit
18
+ - Content specificity
19
+ - Visual identity
20
+ - Information architecture
21
+ - Component states
22
+ - Accessibility and interaction
23
+ - Source safety
24
+
25
+ Return:
26
+
27
+ - Score table with one sentence of evidence per dimension.
28
+ - Total score out of `14`.
29
+ - Critical zeroes.
30
+ - Verdict: `reject`, `adequate`, or `strong`.
31
+ - Required changes before acceptance.
32
+ - Evidence still missing before release.
33
+ - Whether distinctiveness benchmark evidence is strong enough for a best-practice frontend claim.
34
+
35
+ Reject when any critical dimension has a zero, total score is below `10`, or the first screen could be reused for another product in the same category without changing meaningful content.
@@ -0,0 +1,14 @@
1
+ # Implement Feature Prompt
2
+
3
+ Implement the requested feature using this workflow:
4
+
5
+ 1. Confirm preserved behavior and affected layers.
6
+ 2. Select the matching workflow from `.agent-kit/agent-roster.json` and record meaningful council-session evidence in `COUNCIL.md`.
7
+ 3. Update Supabase schema/RLS first if data boundaries change.
8
+ 4. Implement Next.js behavior with explicit server/client boundaries.
9
+ 5. Apply frontend design and accessibility review.
10
+ 6. Run OWASP security review.
11
+ 7. Add tests proportional to risk.
12
+ 8. Update living docs.
13
+
14
+ Return key changes, preserved capabilities, council handoffs, tests run, docs updated, and follow-up tasks.
@@ -0,0 +1,14 @@
1
+ # Migration Review Prompt
2
+
3
+ Review this Supabase/Postgres migration.
4
+
5
+ Check:
6
+
7
+ - Schema correctness
8
+ - Constraints and indexes
9
+ - RLS enablement
10
+ - Select, insert, update, and delete policies
11
+ - Ownership and tenant boundaries
12
+ - Service-role assumptions
13
+ - Backfill or destructive-change risk
14
+ - Rollback and deployment order
@@ -0,0 +1,27 @@
1
+ # Screenshot Review Prompt
2
+
3
+ Use after a UI is implemented and screenshots are available across desktop and mobile.
4
+
5
+ Review the screenshots against the product goal, `DESIGN.md`, design brief, and `STYLE_GUIDE.md`.
6
+
7
+ Check:
8
+
9
+ - First screen shows the real product, task, object, or workflow.
10
+ - The selected creative direction is visible in tokens, layout, copy, imagery, density, and interaction tone.
11
+ - Layout is usable on desktop and mobile without overlapping text or controls.
12
+ - Visual direction fits the domain and does not rely on generic AI-site gradients, card soup, vague SaaS copy, or fake metrics.
13
+ - Design tokens are visible in color, typography, spacing, radius, state color, and focus treatment.
14
+ - Loading, empty, error, disabled, success, and mobile states are represented or explicitly accounted for.
15
+ - Visual QA tier is appropriate for the risk: screenshot review, Playwright screenshots, Storybook visual tests, or visual-regression service.
16
+ - Controls use familiar patterns: icons for repeated tools, inputs for values, toggles for booleans, tabs for views, and menus for option sets.
17
+ - Text is specific, scannable, and not padded with feature explanations.
18
+ - Accessibility risks are called out: contrast, focus, keyboard order, touch target size, labels, semantics, and motion.
19
+
20
+ Return:
21
+
22
+ 1. Critical blockers.
23
+ 2. High-value polish fixes.
24
+ 3. Evidence that the screen avoids generic AI-site defaults.
25
+ 4. Evidence that the screen follows the selected creative direction.
26
+ 5. Visual QA tier and baseline-review risks.
27
+ 6. Follow-up screenshots or states still required.
@@ -0,0 +1,17 @@
1
+ # Security Review Prompt
2
+
3
+ Review this change against OWASP Top 10 and the project's Supabase/Auth/RLS boundaries.
4
+
5
+ Prioritize:
6
+
7
+ - Broken access control
8
+ - IDOR
9
+ - Injection
10
+ - SSRF
11
+ - Secret exposure
12
+ - Service-role misuse
13
+ - Missing RLS
14
+ - Unsafe dependencies
15
+ - Misconfiguration
16
+
17
+ Lead with findings ordered by severity. Include exploit path, affected behavior, and remediation.
@@ -0,0 +1,18 @@
1
+ # Upgrade Review Prompt
2
+
3
+ Use this prompt before accepting a dependency, framework, Agent Kit, or template upgrade.
4
+
5
+ ## Prompt
6
+
7
+ Review this upgrade against `UPGRADE.md`, `QUALITY_GATES.md`, `SECURITY.md`, `TESTING.md`, and `DEPLOYMENT.md`.
8
+
9
+ Return:
10
+
11
+ - What changed and why.
12
+ - Which release notes, migration guides, or codemods apply.
13
+ - Which local templates or overrides changed.
14
+ - Which Supabase migrations, RLS policies, generated types, or auth boundaries are affected.
15
+ - Which Next.js routing, rendering, caching, metadata, or middleware behavior is affected.
16
+ - Which tests, smoke checks, visual QA, and release checks prove the upgrade.
17
+ - Rollback plan.
18
+ - Remaining warnings before best-practice readiness.
@@ -0,0 +1,16 @@
1
+ # Visual QA Plan Prompt
2
+
3
+ Use before accepting a frontend change or before adding visual regression coverage.
4
+
5
+ Return:
6
+
7
+ 1. Visual QA tier: baseline, strong, or mature.
8
+ 2. Surfaces requiring evidence.
9
+ 3. Component states to capture.
10
+ 4. Viewports, themes, locales, permissions, or data states to cover.
11
+ 5. Dynamic content that must be mocked, masked, frozen, or excluded.
12
+ 6. Tooling recommendation: Playwright screenshots, Storybook stories, Chromatic, Argos, Loki, or manual screenshot review.
13
+ 7. CI or PR evidence that should be produced.
14
+ 8. Rules for approving baseline updates.
15
+
16
+ Do not recommend visual snapshots for volatile full pages unless the volatile regions can be stabilized.
@@ -0,0 +1,70 @@
1
+ # Proposed Agent Kit Updates
2
+
3
+ Generated after the 100-repo scan on 2026-06-02.
4
+
5
+ ## Repeated Evidence
6
+
7
+ - 88 of 100 findings had weak or non-discoverable Supabase/Auth/RLS signals.
8
+ - 66 of 100 findings had immature agent handoff or AI-workflow signals.
9
+ - 57 of 100 findings had weak accessibility signals.
10
+ - 54 of 100 findings had implicit or incomplete security expectations.
11
+ - Stronger repos consistently exposed docs, CI, validation, component systems, test setup, or explicit review workflows.
12
+
13
+ ## Updates Promoted In This Iteration
14
+
15
+ - Added package-level `DECISIONS.md`.
16
+ - Added RLS policy inventory expectations to `templates/next-supabase/SPEC.md` and `SECURITY.md`.
17
+ - Added security control inventory expectations to `templates/next-supabase/SECURITY.md`.
18
+ - Added design token and component-state inventory expectations to `STYLE_GUIDE.md` and `SPEC.md`.
19
+ - Added CI gate expectations to `TESTING.md`.
20
+ - Strengthened frontend-design, Supabase/RLS, accessibility, and testing skills/checklists.
21
+ - Added machine-readable agent council routing with Planner-first planning and architect-led core-change handoffs.
22
+ - Added public-readiness expectations around MIT licensing, neutral package identity, citation policy, and install smoke.
23
+ - Added a focused creative-design follow-up pass after recognizing that the original frontend score over-weighted tokens, components, and states.
24
+ - Added `DESIGN.md`, content-first design skill, brand/content intake, creative-direction matrix, brand/content checklist, expanded design briefs, and audit coverage for frontend creative-direction evidence.
25
+ - Added a visual QA follow-up pass for Storybook, Playwright screenshots, Chromatic, Argos, Loki, visual baselines, and component-state evidence.
26
+ - Added Visual Regression QA skill, visual-regression checklist, visual QA plan prompt, `TESTING.md` visual QA tiers, roster routing, audit coverage, and research scanner signals.
27
+ - Added a schema-backed council traceability pass after recognizing that the 100-repo research volume was not enough unless practices became enforceable contracts.
28
+ - Added `schemas/agent-roster.schema.json`, `schemas/council-session.schema.json`, `COUNCIL.md`, Agent Handoff Tracing skill, agent-council checklist, council-session review prompt, roster routing, audit coverage, and public-readiness tests.
29
+ - Added a repo-health follow-up pass for issue templates, PR templates, CODEOWNERS, Dependabot, CodeQL, support, conduct, governance, and public-maintainer workflows.
30
+ - Added repo-health files, public-readiness tests, scanner scoring, and a refresh category so public OSS maintainability is treated as release readiness.
31
+ - Added a repository-settings follow-up for branch protection, protected publish environment, private vulnerability reporting, required labels, discussions, and security settings that live outside git.
32
+ - Added `REPOSITORY_SETTINGS.md`, `.github/labels.yml`, `.github/labeler.yml`, PR labeler workflow, public-readiness tests, and scanner signals.
33
+ - Added shared release-readiness command so CI, release, and local checks use the same gate.
34
+ - Added a supply-chain follow-up pass for npm Trusted Publishing/provenance, Dependency Review, OpenSSF Scorecard, workflow hardening, and release controls.
35
+ - Added `SUPPLY_CHAIN.md`, Dependency Review workflow, Scorecard workflow, workflow concurrency/non-persistent checkout controls, manual publish ref validation, supply-chain scanner scoring, and public-readiness tests.
36
+ - Added lockfile-derived CycloneDX SBOM validation and release-workflow SBOM attestation for the exact npm tarball being published.
37
+ - Added a maturity-model follow-up pass after recognizing that a broad 100-repo scan still needs a project-level definition of baseline, strong, and best-practice evidence.
38
+ - Added `QUALITY_GATES.md`, installed it by default, added audit coverage for multi-area maturity expectations, and added tests that catch hollowed-out quality-gate docs.
39
+ - Added project-evidence placeholder audit warnings so a fresh install does not get mistaken for completed best-practice evidence.
40
+ - Added machine-readable audit readiness verdicts so downstream projects can distinguish setup failures, baseline setup, remaining warnings, and best-practice candidates.
41
+ - Added `agent-kit audit --min-readiness <level>` so projects can enforce baseline or best-practice readiness in CI without parsing JSON themselves.
42
+ - Added `schemas/audit-report.schema.json` and runtime contract tests so audit consumers can validate machine-readable output.
43
+ - Added an assistant-adapter activation pass after recognizing that a roster is not enough unless downstream tools load or reference it.
44
+ - Added `ASSISTANT_ADAPTERS.md`, `assistant-adapters/*`, install support, audit checks, and public-readiness tests for AGENTS.md-compatible tools, GitHub Copilot/VS Code instructions, Cursor rules, and Claude Code subagents.
45
+ - Added an upgrade-lifecycle pass after recognizing that reusable kits need safe adoption paths for future template, assistant-adapter, framework, and Supabase changes.
46
+ - Added `UPGRADE.md`, `templates/next-supabase/UPGRADE.md`, Upgrade Maintenance skill, upgrade checklist, upgrade-review prompt, roster routing, audit checks, and public-readiness tests.
47
+ - Added a reference-led design critique pass after recognizing that frontend work could still pass with generic visual quality if it had tokens, states, and screenshots but no reference-set evidence or distinctiveness verdict.
48
+ - Added Reference-Led Design Critique skill, design-critique prompt, design-critique checklist, `DESIGN.md` reference/anti-reference fields, roster routing, audit coverage, and public-readiness tests.
49
+ - Added a frontend product-quality rubric pass after recognizing that qualitative critique still needed a repeatable score threshold.
50
+ - Added Frontend Product Quality Rubric skill, product-quality checklist, scorecard prompt, `DESIGN.md` scorecard fields, roster routing, audit coverage, and public-readiness tests.
51
+ - Added a frontend distinctiveness benchmark pass after recognizing that even a scored UI can still feel interchangeable without first-screen proof, content fingerprint, safe reference learning, asset provenance, state proof, and visual QA proof.
52
+ - Added Frontend Distinctiveness Benchmark skill, checklist, benchmark prompt, `DESIGN.md` evidence fields, roster routing, audit coverage, and public-readiness tests.
53
+
54
+ ## Future Updates To Consider
55
+
56
+ - Re-run dogfood installs after the public package is published.
57
+ - Add more stack-specific rosters for non-Supabase stacks.
58
+ - Add richer audit severity scoring once more downstream evidence exists.
59
+ - Dogfood the visual QA tier guidance on a real frontend project and convert repeated findings into concrete starter examples.
60
+ - Dogfood the reference-led design critique gate on a real frontend project and convert repeated weaknesses into stricter examples or audit signals.
61
+ - Dogfood the frontend product-quality scorecard on a real frontend project and tune score thresholds from actual review evidence.
62
+ - Dogfood the frontend distinctiveness benchmark on a real frontend project and convert repeated weaknesses into stricter examples or audit signals.
63
+ - Dogfood assistant adapters in real Codex, Copilot, Cursor, and Claude Code projects and convert repeated activation failures into stricter checks.
64
+ - Dogfood the upgrade lifecycle on a real existing install and convert repeated conflict or rollback gaps into stricter checks.
65
+ - Add optional CI validation for structured council-session JSON records once downstream projects start storing machine-readable traces.
66
+ - Add optional scorecard-style repository health checks once the public repo has enough external contribution activity to tune the signal.
67
+ - Add branch/environment protection documentation after the GitHub repository settings are confirmed.
68
+ - Compare actual GitHub repository settings against `REPOSITORY_SETTINGS.md` after maintainer credentials are available.
69
+
70
+ Do not copy source code from scanned repositories. Adopt only generalized practices with clear rationale.