@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,261 @@
1
+ {
2
+ "maxRepos": 100,
3
+ "minStars": 100,
4
+ "activeSince": "2024-12-01",
5
+ "excludeRepos": [
6
+ "appwrite/appwrite"
7
+ ],
8
+ "seedRepos": [
9
+ {
10
+ "fullName": "dubinc/dub",
11
+ "category": "production-saas"
12
+ },
13
+ {
14
+ "fullName": "documenso/documenso",
15
+ "category": "production-saas"
16
+ },
17
+ {
18
+ "fullName": "formbricks/formbricks",
19
+ "category": "production-saas"
20
+ },
21
+ {
22
+ "fullName": "triggerdotdev/trigger.dev",
23
+ "category": "production-saas"
24
+ },
25
+ {
26
+ "fullName": "unkeyed/unkey",
27
+ "category": "security-quality"
28
+ },
29
+ {
30
+ "fullName": "better-auth/better-auth",
31
+ "category": "security-quality"
32
+ },
33
+ {
34
+ "fullName": "nextauthjs/next-auth",
35
+ "category": "security-quality"
36
+ },
37
+ {
38
+ "fullName": "tailwindlabs/headlessui",
39
+ "category": "design-systems"
40
+ },
41
+ {
42
+ "fullName": "shadcn-ui/ui",
43
+ "category": "design-systems"
44
+ },
45
+ {
46
+ "fullName": "google-labs-code/design.md",
47
+ "category": "design-systems"
48
+ },
49
+ {
50
+ "fullName": "google-labs-code/stitch-sdk",
51
+ "category": "design-systems"
52
+ },
53
+ {
54
+ "fullName": "storybookjs/design-system",
55
+ "category": "design-systems"
56
+ },
57
+ {
58
+ "fullName": "primer/react",
59
+ "category": "design-systems"
60
+ },
61
+ {
62
+ "fullName": "radix-ui/primitives",
63
+ "category": "design-systems"
64
+ },
65
+ {
66
+ "fullName": "carbon-design-system/carbon",
67
+ "category": "design-systems"
68
+ },
69
+ {
70
+ "fullName": "Shopify/polaris",
71
+ "category": "design-systems"
72
+ },
73
+ {
74
+ "fullName": "uswds/uswds",
75
+ "category": "design-systems"
76
+ },
77
+ {
78
+ "fullName": "Shopify/polaris-tokens",
79
+ "category": "design-systems"
80
+ },
81
+ {
82
+ "fullName": "alphagov/govuk-design-system",
83
+ "category": "design-systems"
84
+ },
85
+ {
86
+ "fullName": "t3-oss/create-t3-app",
87
+ "category": "testing-docs-agents"
88
+ },
89
+ {
90
+ "fullName": "storybookjs/storybook",
91
+ "category": "testing-docs-agents"
92
+ },
93
+ {
94
+ "fullName": "storybookjs/test-runner",
95
+ "category": "testing-docs-agents"
96
+ },
97
+ {
98
+ "fullName": "chromaui/chromatic-cli",
99
+ "category": "testing-docs-agents"
100
+ },
101
+ {
102
+ "fullName": "argos-ci/argos",
103
+ "category": "testing-docs-agents"
104
+ },
105
+ {
106
+ "fullName": "oblador/loki",
107
+ "category": "testing-docs-agents"
108
+ },
109
+ {
110
+ "fullName": "openai/openai-agents-js",
111
+ "category": "testing-docs-agents"
112
+ },
113
+ {
114
+ "fullName": "openai/openai-agents-python",
115
+ "category": "testing-docs-agents"
116
+ },
117
+ {
118
+ "fullName": "langchain-ai/langgraphjs",
119
+ "category": "testing-docs-agents"
120
+ },
121
+ {
122
+ "fullName": "langchain-ai/langgraph-supervisor-py",
123
+ "category": "testing-docs-agents"
124
+ },
125
+ {
126
+ "fullName": "github/docs",
127
+ "category": "repo-health-maintainers"
128
+ },
129
+ {
130
+ "fullName": "github/codeql-action",
131
+ "category": "repo-health-maintainers"
132
+ },
133
+ {
134
+ "fullName": "dependabot/dependabot-core",
135
+ "category": "repo-health-maintainers"
136
+ },
137
+ {
138
+ "fullName": "ossf/scorecard",
139
+ "category": "repo-health-maintainers"
140
+ },
141
+ {
142
+ "fullName": "actions/dependency-review-action",
143
+ "category": "supply-chain-security"
144
+ },
145
+ {
146
+ "fullName": "ossf/scorecard-action",
147
+ "category": "supply-chain-security"
148
+ },
149
+ {
150
+ "fullName": "npm/provenance",
151
+ "category": "supply-chain-security"
152
+ },
153
+ {
154
+ "fullName": "slsa-framework/slsa-github-generator",
155
+ "category": "supply-chain-security"
156
+ }
157
+ ],
158
+ "categories": [
159
+ {
160
+ "name": "official-nextjs",
161
+ "targetCount": 15,
162
+ "queries": [
163
+ "org:vercel nextjs",
164
+ "org:vercel app-router",
165
+ "org:nextjs"
166
+ ]
167
+ },
168
+ {
169
+ "name": "supabase-nextjs",
170
+ "targetCount": 15,
171
+ "queries": [
172
+ "supabase nextjs language:TypeScript",
173
+ "\"createServerClient\" supabase language:TypeScript",
174
+ "\"row level security\" supabase nextjs",
175
+ "\"supabase\" \"app/\" \"middleware.ts\" language:TypeScript",
176
+ "\"supabase\" \"rls\" language:TypeScript"
177
+ ]
178
+ },
179
+ {
180
+ "name": "production-saas",
181
+ "targetCount": 20,
182
+ "queries": [
183
+ "nextjs saas language:TypeScript",
184
+ "nextjs dashboard language:TypeScript",
185
+ "app router saas language:TypeScript",
186
+ "open source saas starter nextjs language:TypeScript",
187
+ "nextjs admin dashboard language:TypeScript"
188
+ ]
189
+ },
190
+ {
191
+ "name": "design-systems",
192
+ "targetCount": 15,
193
+ "queries": [
194
+ "react design system language:TypeScript",
195
+ "component library react accessibility language:TypeScript",
196
+ "radix tailwind components language:TypeScript",
197
+ "shadcn components language:TypeScript",
198
+ "\"DESIGN.md\" \"design system\" language:Markdown",
199
+ "\"creative direction\" \"design tokens\" language:Markdown",
200
+ "\"design critique\" \"reference set\" language:Markdown",
201
+ "\"anti-reference\" \"creative direction\" language:Markdown",
202
+ "\"product quality\" \"scorecard\" \"frontend\" language:Markdown",
203
+ "\"user task\" \"content\" \"accessibility\" \"design system\" language:Markdown"
204
+ ]
205
+ },
206
+ {
207
+ "name": "security-quality",
208
+ "targetCount": 15,
209
+ "queries": [
210
+ "nextjs security language:TypeScript",
211
+ "codeql typescript nextjs",
212
+ "zod route handlers nextjs",
213
+ "auth middleware nextjs security language:TypeScript",
214
+ "csrf rate limit nextjs language:TypeScript"
215
+ ]
216
+ },
217
+ {
218
+ "name": "testing-docs-agents",
219
+ "targetCount": 20,
220
+ "queries": [
221
+ "playwright nextjs language:TypeScript",
222
+ "\"toHaveScreenshot\" playwright language:TypeScript",
223
+ "\"visual regression\" storybook language:TypeScript",
224
+ "chromatic storybook visual testing language:TypeScript",
225
+ "argos visual testing playwright language:TypeScript",
226
+ "vitest playwright nextjs language:TypeScript",
227
+ "contributing security testing nextjs language:TypeScript",
228
+ "AGENTS.md language:TypeScript",
229
+ "CLAUDE.md nextjs",
230
+ "\"agent handoff\" \"tracing\" language:TypeScript",
231
+ "\"json schema\" \"agents\" language:TypeScript",
232
+ "\"AGENTS.md\" \"handoff\" language:Markdown"
233
+ ]
234
+ },
235
+ {
236
+ "name": "repo-health-maintainers",
237
+ "targetCount": 10,
238
+ "queries": [
239
+ "\".github/ISSUE_TEMPLATE\" \"pull_request_template\" language:Markdown",
240
+ "\"dependabot.yml\" \"CODEOWNERS\" language:Markdown",
241
+ "\"CodeQL\" \"dependabot\" \"PULL_REQUEST_TEMPLATE\" language:Markdown",
242
+ "\"SECURITY.md\" \"SUPPORT.md\" \"CODE_OF_CONDUCT.md\" language:Markdown",
243
+ "\"research\" \"CONTRIBUTING.md\" \"security advisory\" language:Markdown",
244
+ "\"branch protection\" \"required status checks\" \"CODEOWNERS\" language:Markdown",
245
+ "\"private vulnerability reporting\" \"security advisories\" language:Markdown",
246
+ "\"labels.yml\" \"labeler.yml\" \".github\" language:YAML"
247
+ ]
248
+ },
249
+ {
250
+ "name": "supply-chain-security",
251
+ "targetCount": 10,
252
+ "queries": [
253
+ "\"npm publish\" \"id-token: write\" \"provenance\" language:YAML",
254
+ "\"trusted publishing\" \"npm publish\" \"GitHub Actions\" language:Markdown",
255
+ "\"dependency-review-action\" \"fail-on-severity\" language:YAML",
256
+ "\"ossf/scorecard-action\" \"publish_results\" language:YAML",
257
+ "\"OpenSSF Scorecard\" \"CodeQL\" \"Dependabot\" language:Markdown"
258
+ ]
259
+ }
260
+ ]
261
+ }
@@ -0,0 +1,24 @@
1
+ # 100 Repo Research Plan
2
+
3
+ ## Objective
4
+
5
+ Discover repeatable, evidence-backed best practices for Next.js + Supabase project setup, then promote only durable patterns into this package.
6
+
7
+ ## Method
8
+
9
+ 1. Discover candidates through GitHub API queries.
10
+ 2. Filter for active, non-archived repositories.
11
+ 3. Shallow clone selected repos.
12
+ 4. Score architecture, security, Supabase/Auth/RLS, frontend design, accessibility, testing, docs, CI, and agent readiness.
13
+ 5. Write one finding per repo.
14
+ 6. Summarize repeated patterns.
15
+ 7. Update templates only when a pattern is repeated and defensible.
16
+
17
+ ## Do Not Copy
18
+
19
+ - Source code
20
+ - Proprietary assets
21
+ - Project-specific copy
22
+ - Security-sensitive implementation details
23
+
24
+ Extract patterns and rationale only.
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,37 @@
1
+ # Agent Workflow And Handoff Trace Patterns
2
+
3
+ Generated from a focused follow-up review of multi-agent workflow systems and configuration-validation practices.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The kit had a default roster and audit checks, but mature agent systems also expose schemas, structured handoffs, guardrails, and traces. Without those, council routing can become prose-only and hard to verify after work is complete.
8
+
9
+ ## Focused Sources Reviewed
10
+
11
+ - `openai/openai-agents-js` and OpenAI Agents SDK docs: handoffs expose schemas, parse handoff inputs locally, and tracing records what happened during agent runs.
12
+ - `openai/openai-agents-python`: lightweight multi-agent framework with agents, tools, guardrails, handoffs, and tracing.
13
+ - `langchain-ai/langgraphjs`: graph-based orchestration for resilient agent workflows and role-specific agents.
14
+ - `langchain-ai/langgraph-supervisor-py`: supervisor pattern and explicit handoff tooling for routing between specialist agents.
15
+ - JSON Schema / SchemaStore-style config validation patterns: machine-readable schemas help editors, CI, and audit tools detect configuration drift.
16
+
17
+ ## Repeated Patterns To Adopt
18
+
19
+ - Treat the roster as a contract, not just documentation.
20
+ - Ship schemas beside machine-readable config.
21
+ - Keep handoffs explicit: owner, decision, risk, next owner, and evidence.
22
+ - Record required outputs and whether each is missing, partial, complete, or not applicable.
23
+ - Keep human-readable notes and machine-readable traces compatible.
24
+ - Validate routing drift in audit so downstream projects cannot silently bypass core roles.
25
+
26
+ ## Promoted Updates
27
+
28
+ - Add `schemas/agent-roster.schema.json`.
29
+ - Add `schemas/council-session.schema.json`.
30
+ - Add `COUNCIL.md` as the human-readable council evidence log.
31
+ - Add Agent Handoff Tracing skill.
32
+ - Add agent council checklist.
33
+ - Add council-session review prompt.
34
+ - Add schema folder to installed assets and public package contents.
35
+ - Add audit coverage for schema presence and council evidence guidance.
36
+
37
+ Do not tie the kit to a single runtime agent framework. The package should stay provider-neutral while adopting broadly useful schema, handoff, guardrail, and trace concepts.
@@ -0,0 +1,38 @@
1
+ # Creative Design And Agent-Readable UI Patterns
2
+
3
+ Generated from a focused second-pass review after the initial 100-repo scan showed that frontend scoring over-weighted reusable components, tokens, and states.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The first scan correctly promoted design tokens, component states, accessibility, screenshot review, and anti-generic UI rules. It did not fully enforce creative discovery: audience, content inventory, brand direction, visual identity, category references, and multiple design directions before implementation.
8
+
9
+ ## Focused Sources Reviewed
10
+
11
+ - `google-labs-code/design.md`: first-class design identity document for coding agents, with machine-readable tokens and human-readable rationale.
12
+ - `google-labs-code/stitch-sdk`: design-generation workflow with project design systems, generated screens, screenshots, and variants.
13
+ - `storybookjs/design-system`: open design system repository with shared components, Storybook docs, packaging, CI, and visual regression testing.
14
+ - `storybookjs/storybook`: component workshop pattern for building, documenting, and testing UI states in isolation.
15
+ - `primer/react`: product design-system implementation with contributor/testing expectations.
16
+ - `Shopify/polaris-react` and `Shopify/polaris-tokens`: design-system and token packaging patterns for product-specific admin UI.
17
+ - `govuk-design-system` and GOV.UK service/content guidance: user-need-first service design and content that maps to real user tasks.
18
+
19
+ ## Repeated Patterns To Adopt
20
+
21
+ - Keep a persistent design-identity document beside agent instructions, not only a style guide.
22
+ - Treat tokens as normative values and prose as usage rationale.
23
+ - Require content and user needs before visual styling.
24
+ - Generate or compare multiple creative directions before implementation.
25
+ - Keep screenshots or visual states as acceptance evidence, not optional polish.
26
+ - Prefer product/category-specific briefs over generic SaaS templates.
27
+ - Make missing real content or assets explicit instead of masking gaps with generic placeholders.
28
+
29
+ ## Promoted Updates
30
+
31
+ - Add `DESIGN.md` as an installed root document.
32
+ - Add a content-first design skill.
33
+ - Add brand/content intake and creative-direction prompts.
34
+ - Add brand/content checklist.
35
+ - Expand design briefs for ecommerce, portfolio/venue, education/course, community/social, and AI workflow products.
36
+ - Require frontend audit coverage for content, brand, creative direction, and screenshot evidence.
37
+
38
+ Do not copy source code, design files, or proprietary brand systems from reviewed repositories. Adopt only generalized practices with clear rationale.
@@ -0,0 +1,34 @@
1
+ # Reference-Led Design Critique Patterns
2
+
3
+ Generated from a follow-up design-quality review after the kit already had content-first design, design adapters, and visual QA.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The existing frontend guidance required brand/content intake, creative-direction options, design tokens, component states, screenshot review, and visual QA. That reduced generic AI-site defaults, but it still allowed a weak design to pass if it had enough checklist artifacts. A best-practice frontend setup also needs a critique loop that compares the work to relevant references, names anti-references, and records why the result is distinct for the product.
8
+
9
+ ## Focused Sources Reviewed
10
+
11
+ - `shadcn-ui/ui`: registry-oriented component distribution and reusable UI skill guidance.
12
+ - `primer/design` and Primer accessibility guidance: design-system guidelines, inclusive design, product-context review, and reusable pattern discipline.
13
+ - `radix-ui/primitives`: accessible low-level primitives that separate behavior foundations from project-specific styling.
14
+ - Carbon Design System guidance: accessibility status, component guidance, and standards-backed review expectations.
15
+ - Storybook documentation: component state, interaction, accessibility, and visual testing workflows.
16
+
17
+ ## Repeated Patterns To Adopt
18
+
19
+ - Separate reusable primitives from product-specific visual direction.
20
+ - Use references to learn hierarchy, density, state treatment, and interaction patterns without copying source designs.
21
+ - Record anti-references so agents know which category tropes and AI-generated defaults to avoid.
22
+ - Treat accessibility and component-state behavior as foundations, not as visual differentiation by themselves.
23
+ - Use screenshots, stories, or visual tests to make critique evidence reviewable after implementation.
24
+ - Require a written verdict before accepting significant UI work.
25
+
26
+ ## Promoted Updates
27
+
28
+ - Add Reference-Led Design Critique skill.
29
+ - Add design-critique gate prompt and checklist.
30
+ - Add reference set, anti-reference, source-safety, distinctiveness, and critique verdict fields to `DESIGN.md`.
31
+ - Wire the Frontend Design Lead and frontend-change workflow to require reference-set evidence and a design critique verdict.
32
+ - Add audit warnings when `DESIGN.md` lacks the critique gate.
33
+
34
+ Do not copy third-party source code, design files, protected visual identity, brand marks, or proprietary copy from reviewed repositories. Adopt generalized practices only.
@@ -0,0 +1,64 @@
1
+ # Docs And Agent Patterns
2
+
3
+ Generated from 31 relevant repository findings.
4
+
5
+ ## Focus Areas
6
+ - documentation
7
+ - agentReadiness
8
+
9
+ ## Aggregate Evidence
10
+ - Average normalized focus score: 0.42
11
+ - Repositories considered: 31
12
+
13
+ ## Strongest Repositories For This Topic
14
+ - sno-ai/mda (testing-docs-agents) - focus score 9, total 19/45
15
+ - thedaviddias/souls-directory (testing-docs-agents) - focus score 8, total 29/45
16
+ - vercel/next.js (official-nextjs) - focus score 7, total 30/45
17
+ - vercel/ai (official-nextjs) - focus score 7, total 29/45
18
+ - microsoft/skills (testing-docs-agents) - focus score 7, total 26/45
19
+ - Piebald-AI/tweakcc (testing-docs-agents) - focus score 7, total 20/45
20
+ - vercel/next-forge (official-nextjs) - focus score 6, total 23/45
21
+ - wasp-lang/open-saas (testing-docs-agents) - focus score 6, total 21/45
22
+ - AndreaPontrandolfo/sheriff (testing-docs-agents) - focus score 6, total 21/45
23
+ - MrLesk/Backlog.md (testing-docs-agents) - focus score 6, total 20/45
24
+ - brocoders/extensive-react-boilerplate (testing-docs-agents) - focus score 6, total 19/45
25
+ - vercel/examples (official-nextjs) - focus score 5, total 26/45
26
+
27
+ ## Repeated Strengths
28
+ - Test setup includes meaningful automated and browser-level coverage. (12)
29
+ - Documentation is strong enough for external contributors or agents to onboard. (9)
30
+ - Frontend implementation shows reusable components, states, and design-system signals. (9)
31
+ - Security posture is explicit through docs, validation, CI, or review tooling. (6)
32
+
33
+ ## Repeated Gaps
34
+ - Supabase RLS/Auth practices are not clearly discoverable. (31)
35
+ - Accessibility signals are weak or absent. (23)
36
+ - Agent handoff and AI-workflow instructions are not mature. (20)
37
+ - Security expectations are implicit or incomplete. (19)
38
+
39
+ ## Source Findings
40
+ - research/findings/sno-ai__mda.md
41
+ - research/findings/thedaviddias__souls-directory.md
42
+ - research/findings/Piebald-AI__tweakcc.md
43
+ - research/findings/microsoft__skills.md
44
+ - research/findings/vercel__ai.md
45
+ - research/findings/vercel__next.js.md
46
+ - research/findings/AndreaPontrandolfo__sheriff.md
47
+ - research/findings/MrLesk__Backlog.md.md
48
+ - research/findings/brocoders__extensive-react-boilerplate.md
49
+ - research/findings/vercel__next-forge.md
50
+ - research/findings/wasp-lang__open-saas.md
51
+ - research/findings/google-labs-code__design.md.md
52
+ - research/findings/ixartz__Next-js-Boilerplate.md
53
+ - research/findings/vercel__examples.md
54
+ - research/findings/vercel__next-devtools-mcp.md
55
+ - research/findings/agentsmd__agents.md.md
56
+ - research/findings/antiwork__shortest.md
57
+ - research/findings/zero-one-group__monorepo.md
58
+ - research/findings/RichardHruby__login-machine.md
59
+ - research/findings/kaje94__menufic.md
60
+ - research/findings/vercel__chatbot.md
61
+ - research/findings/vercel__nextjs-postgres-nextauth-tailwindcss-template.md
62
+ - research/findings/vercel__swr.md
63
+ - research/findings/connectrpc__examples-es.md
64
+ - research/findings/vercel__kirimase.md
@@ -0,0 +1,33 @@
1
+ # Dogfood And Adoption Evidence Patterns
2
+
3
+ Generated from a focused follow-up review after current read-only dogfood audits showed that older installs fail the hardened setup standard.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The kit already had broad 100-repo research, public release gates, and two earlier dogfood installs. Those dogfood notes were stale after later hardening added schema-backed council routing, assistant adapters, upgrade lifecycle, maturity gates, visual QA, and reference-led design critique.
8
+
9
+ A public best-practice repo needs adoption evidence that stays current as standards change. Dogfood should not only prove that an install once worked; it should also prove that the audit catches drift when the kit improves.
10
+
11
+ ## Focused Sources Reviewed
12
+
13
+ - GitHub community profile guidance for public repositories: community health files such as README, license, conduct, and contributing files are treated as visible project-health signals.
14
+ - npm Trusted Publishing guidance: publish identity should avoid long-lived tokens, use workflow-bound OIDC, and produce provenance for public packages when conditions are met.
15
+ - npm provenance guidance: publish workflows should support provenance and public access, and consumers can verify registry signatures and attestations.
16
+ - Storybook testing guidance: stories can become reusable accessibility, interaction, visual, and end-to-end testing inputs.
17
+
18
+ ## Repeated Patterns To Adopt
19
+
20
+ - Keep a public-safe dogfood summary separate from detailed local-path evidence.
21
+ - Treat stale dogfood as a signal, not a failure to hide.
22
+ - Record whether audits were read-only or changed downstream files.
23
+ - Capture pass/warn/fail counts and readiness level for each adoption pass.
24
+ - Promote repeated downstream gaps into installed assets, audit checks, tests, release gates, or decisions.
25
+ - Keep post-publish `npx` verification separate from local package smoke.
26
+
27
+ ## Promoted Updates
28
+
29
+ - Add `DOGFOOD.md` as a public-safe package asset.
30
+ - Update detailed `dogfood/*` notes with current read-only audit results.
31
+ - Add public-readiness tests that require dogfood evidence while preventing local project paths from leaking into the package.
32
+
33
+ Do not publish local project paths, private project details, or screenshots without review. Public dogfood summaries should use project archetypes and generalized findings.
@@ -0,0 +1,64 @@
1
+ # Frontend Design Patterns
2
+
3
+ Generated from 41 relevant repository findings.
4
+
5
+ ## Focus Areas
6
+ - frontendDesign
7
+ - accessibility
8
+
9
+ ## Aggregate Evidence
10
+ - Average normalized focus score: 0.57
11
+ - Repositories considered: 41
12
+
13
+ ## Strongest Repositories For This Topic
14
+ - triggerdotdev/trigger.dev (production-saas) - focus score 7, total 32/45
15
+ - formbricks/formbricks (production-saas) - focus score 7, total 29/45
16
+ - shadcn-ui/ui (design-systems) - focus score 7, total 27/45
17
+ - dubinc/dub (production-saas) - focus score 7, total 27/45
18
+ - documenso/documenso (production-saas) - focus score 7, total 27/45
19
+ - boxyhq/saas-starter-kit (production-saas) - focus score 7, total 25/45
20
+ - nextify-limited/saasfly (production-saas) - focus score 7, total 20/45
21
+ - Blazity/next-saas-starter (production-saas) - focus score 7, total 16/45
22
+ - michaelshimeles/nextjs-starter-kit (production-saas) - focus score 7, total 15/45
23
+ - mui/base-ui (design-systems) - focus score 6, total 28/45
24
+ - carbon-design-system/carbon (design-systems) - focus score 6, total 27/45
25
+ - chakra-ui/zag (design-systems) - focus score 6, total 26/45
26
+
27
+ ## Repeated Strengths
28
+ - Documentation is strong enough for external contributors or agents to onboard. (15)
29
+ - Frontend implementation shows reusable components, states, and design-system signals. (14)
30
+ - Security posture is explicit through docs, validation, CI, or review tooling. (11)
31
+ - Test setup includes meaningful automated and browser-level coverage. (9)
32
+
33
+ ## Repeated Gaps
34
+ - Supabase RLS/Auth practices are not clearly discoverable. (41)
35
+ - Agent handoff and AI-workflow instructions are not mature. (26)
36
+ - Security expectations are implicit or incomplete. (22)
37
+ - Accessibility signals are weak or absent. (17)
38
+
39
+ ## Source Findings
40
+ - research/findings/Blazity__next-saas-starter.md
41
+ - research/findings/boxyhq__saas-starter-kit.md
42
+ - research/findings/documenso__documenso.md
43
+ - research/findings/dubinc__dub.md
44
+ - research/findings/formbricks__formbricks.md
45
+ - research/findings/michaelshimeles__nextjs-starter-kit.md
46
+ - research/findings/nextify-limited__saasfly.md
47
+ - research/findings/shadcn-ui__ui.md
48
+ - research/findings/triggerdotdev__trigger.dev.md
49
+ - research/findings/Davronov-Alimardon__canva-clone.md
50
+ - research/findings/DouyinFE__semi-design.md
51
+ - research/findings/LubomirGeorgiev__cloudflare-workers-nextjs-saas-template.md
52
+ - research/findings/async-labs__saas.md
53
+ - research/findings/carbon-design-system__carbon.md
54
+ - research/findings/chakra-ui__ark.md
55
+ - research/findings/chakra-ui__zag.md
56
+ - research/findings/cloudscape-design__components.md
57
+ - research/findings/cosscom__coss.md
58
+ - research/findings/cossistantcom__cossistant.md
59
+ - research/findings/dodopayments__billingsdk.md
60
+ - research/findings/keyshade-xyz__keyshade.md
61
+ - research/findings/mui__base-ui.md
62
+ - research/findings/nextacular__nextacular.md
63
+ - research/findings/palantir__blueprint.md
64
+ - research/findings/primer__react.md
@@ -0,0 +1,38 @@
1
+ # Frontend Distinctiveness Benchmark Patterns
2
+
3
+ Generated after reviewing the frontend gap raised during public-readiness hardening: a broad repo scan can identify strong component and documentation patterns, but frontend quality still needs a product-specific acceptance benchmark.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The 100-repo scan and focused follow-up reviews already promoted design tokens, component states, accessibility, visual QA, content-first design, reference-led critique, and a product-quality scorecard. That is better than a normal prompt bundle, but it still left one practical failure mode: a design could satisfy many checklist items while still feeling interchangeable with other AI-generated sites in the same category.
8
+
9
+ The fix is to require proof that the first screen, content, references, assets, states, and screenshots are specific to the product before accepting significant frontend work.
10
+
11
+ ## Focused Sources Reviewed
12
+
13
+ - Primer React and Primer design guidance: product-context components, accessibility foundations, and reviewable pattern discipline.
14
+ - Shopify Polaris: product-specific admin patterns, content guidance, tokens, and stateful component guidance.
15
+ - GOV.UK Design System and service/content guidance: user-need-first design, task language, accessibility, and trust.
16
+ - Storybook documentation: component state review, interaction tests, accessibility checks, and visual testing evidence.
17
+ - Radix UI Primitives: accessible behavior foundations separated from product-specific styling.
18
+ - Carbon Design System and USWDS: standards-backed accessibility, state, and service-design expectations.
19
+
20
+ ## Repeated Patterns To Adopt
21
+
22
+ - Components and tokens are foundations, not proof of product fit.
23
+ - The first viewport should expose the real product object, task, workflow, content, or decision.
24
+ - Product nouns, data shapes, actions, and edge cases should drive layout before styling.
25
+ - References should become named lessons and anti-references, not copied layouts or visual signatures.
26
+ - Asset provenance should be explicit so generated, licensed, placeholder, and real media are not blurred together.
27
+ - State evidence and visual QA should be tied to the product workflow, not only to isolated component polish.
28
+
29
+ ## Promoted Updates
30
+
31
+ - Add Frontend Distinctiveness Benchmark skill.
32
+ - Add frontend-distinctiveness checklist and benchmark prompt.
33
+ - Update `DESIGN.md` with first-screen proof, content fingerprint, reference benchmark, asset provenance, state proof, and visual QA proof fields.
34
+ - Wire Frontend Design Lead and frontend-change workflow to require distinctiveness benchmark evidence.
35
+ - Add audit warnings when `DESIGN.md` lacks the distinctiveness benchmark.
36
+ - Add public-readiness tests for distinctiveness assets and routing.
37
+
38
+ Do not copy third-party source code, design files, protected visual identity, brand marks, proprietary layouts, exact copy, or visual signatures from reviewed repositories. Adopt generalized practices only.
@@ -0,0 +1,37 @@
1
+ # Frontend Product Quality Rubric Patterns
2
+
3
+ Generated from a focused follow-up review after the kit already had content-first design, reference-led critique, visual QA, and anti-generic UI guidance.
4
+
5
+ ## Why This Pass Was Needed
6
+
7
+ The previous frontend hardening made generic AI-site output harder, but it still relied on qualitative review language. A best-practice setup needs a repeatable product-quality rubric so design agents, coding agents, and human reviewers can reject weak UI for the same reasons.
8
+
9
+ ## Focused Sources Reviewed
10
+
11
+ - `primer/react` and Primer design guidance: accessible component foundations, product-context patterns, and reviewable design-system decisions.
12
+ - GOV.UK Design System and service/content guidance: user-need-first service design, accessibility, and task-oriented content.
13
+ - Storybook documentation: stateful component review, interaction tests, accessibility checks, and visual testing as review evidence.
14
+ - Shopify Polaris: product-specific admin interface foundations, content guidance, tokens, and component guidance.
15
+ - Radix UI Primitives: accessible, unstyled primitives that separate behavior foundations from product-specific visual direction.
16
+ - Carbon Design System: accessibility status, component guidance, and design-system quality expectations.
17
+ - USWDS: design principles that prioritize real user needs, accessibility, trust, and consistent interaction patterns.
18
+
19
+ ## Repeated Patterns To Adopt
20
+
21
+ - Treat accessible primitives and components as the foundation, not the product's visual identity.
22
+ - Score UI against real user task, content specificity, information architecture, visual identity, states, accessibility, and safe reference use.
23
+ - Make first-screen specificity a hard gate: users should see the real product object, task, workflow, or content immediately.
24
+ - Require source-safety review whenever references influence layout, imagery, copy, or visual style.
25
+ - Keep desktop/mobile screenshots, state evidence, and visual QA tied to the scorecard verdict.
26
+ - Reject work when polished styling hides missing content, fake data, or generic category tropes.
27
+
28
+ ## Promoted Updates
29
+
30
+ - Add Frontend Product Quality Rubric skill.
31
+ - Add frontend product-quality checklist and scorecard prompt.
32
+ - Update `DESIGN.md` with a product-quality scorecard and acceptance thresholds.
33
+ - Wire Frontend Design Lead and frontend-change workflow to require the scorecard.
34
+ - Add audit warnings when the scorecard is missing from `DESIGN.md`.
35
+ - Add public-readiness tests for rubric assets and routing.
36
+
37
+ Do not copy third-party source code, design files, protected visual identity, brand marks, proprietary layouts, or exact copy from reviewed repositories. Adopt generalized practices only.