connore 0.1.0 → 0.2.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 (280) hide show
  1. package/README.md +58 -46
  2. package/package.json +36 -33
  3. package/packs/CONTRIBUTING.md +32 -0
  4. package/packs/base/catalog/README.md +24 -0
  5. package/packs/base/catalog/api.md +46 -0
  6. package/packs/base/catalog/auth.md +46 -0
  7. package/packs/base/catalog/backend.md +46 -0
  8. package/packs/base/catalog/blueprints.md +46 -0
  9. package/packs/base/catalog/components.md +46 -0
  10. package/packs/base/catalog/database.md +46 -0
  11. package/packs/base/catalog/docs.md +46 -0
  12. package/packs/base/catalog/github.md +46 -0
  13. package/packs/base/catalog/golden.md +46 -0
  14. package/packs/base/catalog/motion.md +46 -0
  15. package/packs/base/catalog/plan.md +46 -0
  16. package/packs/base/catalog/screenshots.md +46 -0
  17. package/packs/base/catalog/skills.md +46 -0
  18. package/packs/base/catalog/tokens.md +47 -0
  19. package/packs/base/planning/START.md +29 -0
  20. package/packs/base/planning/blueprint-template.md +46 -0
  21. package/packs/base/planning/plan-template.md +46 -0
  22. package/packs/base/rules/anti-patterns.md +46 -0
  23. package/packs/base/rules/code-style.md +46 -0
  24. package/packs/base/rules/definition-of-done.md +47 -0
  25. package/packs/base/rules/dependency-policy.md +46 -0
  26. package/packs/base/rules/error-handling.md +46 -0
  27. package/packs/base/rules/security-audit.md +47 -0
  28. package/packs/base/rules/security-baseline.md +46 -0
  29. package/packs/base/templates/bug-report.md +46 -0
  30. package/packs/base/templates/feature-spec.md +46 -0
  31. package/packs/base/templates/handoff.md +46 -0
  32. package/packs/base/templates/project-brief.md +46 -0
  33. package/packs/base/workflow/build-loop.md +48 -0
  34. package/packs/base/workflow/code-review.md +46 -0
  35. package/packs/base/workflow/debugging.md +47 -0
  36. package/packs/base/workflow/git-and-commits.md +46 -0
  37. package/packs/base/workflow/idea-to-spec.md +46 -0
  38. package/packs/base/workflow/session-handoff.md +46 -0
  39. package/packs/base/workflow/spec-to-plan.md +46 -0
  40. package/packs/knowledge/backend/api/conventions.md +21 -0
  41. package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
  42. package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
  43. package/packs/knowledge/backend/database/schema.md +21 -0
  44. package/packs/knowledge/components/custom/ambient-background.md +26 -0
  45. package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
  46. package/packs/knowledge/components/custom/corner-frame.md +26 -0
  47. package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
  48. package/packs/knowledge/components/custom/cta-button.md +26 -0
  49. package/packs/knowledge/components/custom/cta-button.tsx +10 -0
  50. package/packs/knowledge/components/custom/page-transition.md +26 -0
  51. package/packs/knowledge/components/custom/page-transition.tsx +10 -0
  52. package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
  53. package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
  54. package/packs/knowledge/components/motion-effects/README.md +30 -0
  55. package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
  56. package/packs/knowledge/components/ui-primitives/README.md +22 -0
  57. package/packs/knowledge/components/ui-primitives/badge.md +26 -0
  58. package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
  59. package/packs/knowledge/components/ui-primitives/button.md +27 -0
  60. package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
  61. package/packs/knowledge/components/ui-primitives/card.md +26 -0
  62. package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
  63. package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
  64. package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
  65. package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
  66. package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
  67. package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
  68. package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
  69. package/packs/knowledge/components/ui-primitives/input.md +27 -0
  70. package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
  71. package/packs/knowledge/components/ui-primitives/label.md +26 -0
  72. package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
  73. package/packs/knowledge/components/ui-primitives/progress.md +26 -0
  74. package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
  75. package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
  76. package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
  77. package/packs/knowledge/components/ui-primitives/select.md +26 -0
  78. package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
  79. package/packs/knowledge/components/ui-primitives/separator.md +26 -0
  80. package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
  81. package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
  82. package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
  83. package/packs/knowledge/components/ui-primitives/switch.md +26 -0
  84. package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
  85. package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
  86. package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
  87. package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
  88. package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
  89. package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
  90. package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
  91. package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
  92. package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
  93. package/packs/knowledge/design/aesthetics/match.md +46 -0
  94. package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
  95. package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
  96. package/packs/knowledge/design/animations/motion.md +40 -0
  97. package/packs/knowledge/design/project-style.md +50 -0
  98. package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
  99. package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
  100. package/packs/knowledge/design/references/cta-centered.md +27 -0
  101. package/packs/knowledge/design/references/cta-centered.png +0 -0
  102. package/packs/knowledge/design/references/cta-split-media.md +27 -0
  103. package/packs/knowledge/design/references/cta-split-media.png +0 -0
  104. package/packs/knowledge/design/references/dashboard-overview.md +31 -0
  105. package/packs/knowledge/design/references/dashboard-overview.png +0 -0
  106. package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
  107. package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
  108. package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
  109. package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
  110. package/packs/knowledge/design/references/footer-four-column.md +27 -0
  111. package/packs/knowledge/design/references/footer-four-column.png +0 -0
  112. package/packs/knowledge/design/references/footer-two-column.md +27 -0
  113. package/packs/knowledge/design/references/footer-two-column.png +0 -0
  114. package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
  115. package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
  116. package/packs/knowledge/design/references/hero-split-media.md +27 -0
  117. package/packs/knowledge/design/references/hero-split-media.png +0 -0
  118. package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
  119. package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
  120. package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
  121. package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
  122. package/packs/knowledge/design/references/pricing-three-card.md +27 -0
  123. package/packs/knowledge/design/references/pricing-three-card.png +0 -0
  124. package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
  125. package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
  126. package/packs/knowledge/design/rules.md +35 -0
  127. package/packs/knowledge/design/token-structure.md +46 -0
  128. package/packs/knowledge/design/tokens.md +55 -0
  129. package/packs/knowledge/frontend/README.md +50 -0
  130. package/packs/knowledge/frontend/SOURCES.md +40 -0
  131. package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
  132. package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
  133. package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
  134. package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
  135. package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
  136. package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
  137. package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
  138. package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
  139. package/packs/knowledge/frontend/architecture/naming.md +43 -0
  140. package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
  141. package/packs/knowledge/frontend/architecture/routing.md +45 -0
  142. package/packs/knowledge/frontend/architecture/security.md +44 -0
  143. package/packs/knowledge/frontend/architecture/typescript.md +44 -0
  144. package/packs/knowledge/frontend/components/composition.md +45 -0
  145. package/packs/knowledge/frontend/components/data-display.md +47 -0
  146. package/packs/knowledge/frontend/components/library-choice.md +45 -0
  147. package/packs/knowledge/frontend/components/variants.md +44 -0
  148. package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
  149. package/packs/knowledge/frontend/forms/multi-step.md +43 -0
  150. package/packs/knowledge/frontend/forms/validation.md +47 -0
  151. package/packs/knowledge/frontend/layout/responsive.md +41 -0
  152. package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
  153. package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
  154. package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
  155. package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
  156. package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
  157. package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
  158. package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
  159. package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
  160. package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
  161. package/packs/knowledge/frontend/performance/rendering.md +40 -0
  162. package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
  163. package/packs/knowledge/frontend/state/api-layer.md +49 -0
  164. package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
  165. package/packs/knowledge/frontend/state/client-store.md +46 -0
  166. package/packs/knowledge/frontend/state/server-cache.md +42 -0
  167. package/packs/knowledge/frontend/state/state-categories.md +50 -0
  168. package/packs/knowledge/frontend/testing/component-tests.md +44 -0
  169. package/packs/knowledge/frontend/testing/strategy.md +46 -0
  170. package/packs/knowledge/inbox/README.md +14 -0
  171. package/packs/knowledge/workflows/authentication.md +18 -0
  172. package/packs/knowledge/workflows/crud.md +20 -0
  173. package/packs/knowledge/workflows/dashboard.md +22 -0
  174. package/packs/nextjs-fullstack/backend/api-conventions.md +48 -0
  175. package/packs/nextjs-fullstack/backend/auth-and-roles.md +46 -0
  176. package/packs/nextjs-fullstack/backend/background-jobs.md +46 -0
  177. package/packs/nextjs-fullstack/backend/caching.md +46 -0
  178. package/packs/nextjs-fullstack/backend/database.md +46 -0
  179. package/packs/nextjs-fullstack/backend/file-uploads.md +46 -0
  180. package/packs/nextjs-fullstack/backend/logging.md +46 -0
  181. package/packs/nextjs-fullstack/backend/migrations.md +46 -0
  182. package/packs/nextjs-fullstack/backend/rate-limiting.md +46 -0
  183. package/packs/nextjs-fullstack/backend/secrets-and-env.md +46 -0
  184. package/packs/nextjs-fullstack/backend/validation.md +46 -0
  185. package/packs/nextjs-fullstack/blueprints/ai-app.md +84 -0
  186. package/packs/nextjs-fullstack/blueprints/internal-tool.md +83 -0
  187. package/packs/nextjs-fullstack/blueprints/saas-app.md +83 -0
  188. package/packs/nextjs-fullstack/build-deploy/ci.md +45 -0
  189. package/packs/nextjs-fullstack/build-deploy/deploy.md +46 -0
  190. package/packs/nextjs-fullstack/build-deploy/monitoring.md +45 -0
  191. package/packs/nextjs-fullstack/build-deploy/performance.md +46 -0
  192. package/packs/nextjs-fullstack/build-deploy/project-structure.md +45 -0
  193. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +47 -0
  194. package/packs/nextjs-fullstack/build-deploy/testing.md +46 -0
  195. package/packs/nextjs-fullstack/evals/README.md +46 -0
  196. package/packs/nextjs-fullstack/examples/golden-app/README.md +45 -0
  197. package/packs/nextjs-fullstack/frontend/accessibility.md +46 -0
  198. package/packs/nextjs-fullstack/frontend/components.md +46 -0
  199. package/packs/nextjs-fullstack/frontend/copy.md +46 -0
  200. package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
  201. package/packs/nextjs-fullstack/frontend/forms.md +46 -0
  202. package/packs/nextjs-fullstack/frontend/layout.md +46 -0
  203. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +46 -0
  204. package/packs/nextjs-fullstack/frontend/motion.md +46 -0
  205. package/packs/nextjs-fullstack/frontend/responsive.md +46 -0
  206. package/packs/nextjs-fullstack/frontend/seo.md +47 -0
  207. package/packs/nextjs-fullstack/frontend/tables.md +46 -0
  208. package/packs/nextjs-fullstack/frontend/tokens.md +45 -0
  209. package/packs/nextjs-fullstack/integrations/analytics.md +46 -0
  210. package/packs/nextjs-fullstack/integrations/email.md +46 -0
  211. package/packs/nextjs-fullstack/integrations/llm-apis.md +46 -0
  212. package/packs/nextjs-fullstack/integrations/oauth.md +46 -0
  213. package/packs/nextjs-fullstack/integrations/object-storage.md +46 -0
  214. package/packs/nextjs-fullstack/integrations/payments.md +46 -0
  215. package/packs/nextjs-fullstack/integrations/queues.md +46 -0
  216. package/packs/nextjs-fullstack/integrations/search.md +46 -0
  217. package/packs/nextjs-fullstack/integrations/webhooks.md +46 -0
  218. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +46 -0
  219. package/packs/nextjs-fullstack/playbooks/add-auth.md +46 -0
  220. package/packs/nextjs-fullstack/playbooks/add-billing.md +50 -0
  221. package/packs/nextjs-fullstack/playbooks/add-crud.md +46 -0
  222. package/packs/nextjs-fullstack/playbooks/add-email.md +46 -0
  223. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +46 -0
  224. package/packs/nextjs-fullstack/playbooks/add-webhook.md +46 -0
  225. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +47 -0
  226. package/plugins/connore/.claude-plugin/plugin.json +10 -0
  227. package/plugins/connore/hooks/hooks.json +16 -0
  228. package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
  229. package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
  230. package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
  231. package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
  232. package/src/cli.js +377 -90
  233. package/src/commands/add.js +61 -57
  234. package/src/commands/catalog.js +21 -0
  235. package/src/commands/doctor.js +44 -0
  236. package/src/commands/edit.js +88 -0
  237. package/src/commands/graph.js +20 -0
  238. package/src/commands/handoff.js +45 -0
  239. package/src/commands/hook.js +67 -50
  240. package/src/commands/init.js +74 -55
  241. package/src/commands/learn.js +39 -0
  242. package/src/commands/lint.js +13 -0
  243. package/src/commands/list.js +10 -10
  244. package/src/commands/log.js +49 -0
  245. package/src/commands/memory.js +14 -0
  246. package/src/commands/packs.js +21 -0
  247. package/src/commands/plan.js +41 -0
  248. package/src/commands/reindex.js +8 -8
  249. package/src/commands/review.js +31 -0
  250. package/src/commands/routes.js +13 -0
  251. package/src/commands/search.js +26 -0
  252. package/src/commands/stats.js +35 -0
  253. package/src/commands/undo.js +7 -0
  254. package/src/commands/update.js +20 -14
  255. package/src/lib/catalog.js +32 -0
  256. package/src/lib/config.js +67 -0
  257. package/src/lib/fs-safe.js +36 -11
  258. package/src/lib/gitlog.js +75 -0
  259. package/src/lib/graph.js +96 -0
  260. package/src/lib/ignore.js +47 -0
  261. package/src/lib/index.js +88 -57
  262. package/src/lib/lessons.js +173 -0
  263. package/src/lib/lint.js +185 -0
  264. package/src/lib/lock.js +47 -0
  265. package/src/lib/memory.js +49 -0
  266. package/src/lib/mutate.js +26 -0
  267. package/src/lib/packs.js +25 -0
  268. package/src/lib/paths.js +6 -2
  269. package/src/lib/plan.js +156 -0
  270. package/src/lib/pointers.js +3 -3
  271. package/src/lib/prompts.js +66 -0
  272. package/src/lib/provider.js +27 -0
  273. package/src/lib/report.js +41 -17
  274. package/src/lib/routes.js +59 -0
  275. package/src/lib/run.js +116 -0
  276. package/src/lib/search.js +64 -0
  277. package/src/lib/secrets.js +25 -0
  278. package/src/lib/signals.js +55 -0
  279. package/src/lib/sync.js +20 -12
  280. package/src/lib/tokens.js +8 -0
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Copy guidance
3
+ type: doc
4
+ tags: [copy, writing]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before writing words the user will ship.
9
+ ---
10
+
11
+ # Copy guidance
12
+
13
+ ## Use when
14
+ A headline, an empty state, an error, or a button label.
15
+
16
+ ## Default
17
+ Use the product's own nouns. Say what the control does. Keep the owner's terms when they have already chosen them.
18
+
19
+ ## Use instead when
20
+ The user supplied the final copy. Use it. Do not improve it unasked.
21
+
22
+ ## Never
23
+ Never invent a customer quote, a metric, or a guarantee. Never write that the product solves a legal or security problem it has not been measured to solve.
24
+
25
+ ## Why
26
+ Generic copy is how a product starts to sound like every other generated page.
27
+
28
+ ## Steps
29
+ 1. Read the owner's words for the feature name.
30
+ 2. Write the button as a verb plus the object.
31
+ 3. Write the empty state as what is true and what to do next.
32
+ 4. Write the error as what failed and how to retry.
33
+
34
+ ## Done when
35
+ A stranger can tell what the button will do without reading the code.
36
+
37
+ ## Example
38
+ Create project, not Submit. No projects yet. Create one. not Oops.
39
+
40
+ ## Common mistakes
41
+ A headline that could sit on any product. A claim of a percentage with no source.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: State and data fetching
3
+ type: doc
4
+ tags: [state, data]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before storing data or calling the server from the UI.
9
+ ---
10
+
11
+ # State and data fetching
12
+
13
+ ## Use when
14
+ A screen needs data, or someone is about to add a global store.
15
+
16
+ ## Default
17
+ Server data stays in the request or a server cache. UI state stays in the component that draws it. Fetch on the server when the page can render there.
18
+
19
+ ## Use instead when
20
+ A value that changes on every keystroke and never hits the server. Keep it in component state.
21
+
22
+ ## Never
23
+ Never copy a server response into a global store and then keep editing the copy. Never fetch in an effect when the server component could have loaded it.
24
+
25
+ ## Why
26
+ Two copies drift. The user sees stale data and the agent adds another fetch to compensate.
27
+
28
+ ## Steps
29
+ 1. Name the data: server record, UI state, or form draft.
30
+ 2. Load server records in the server component or a route loader.
31
+ 3. Pass the result down. Let the client component hold only what it edits.
32
+ 4. After a mutation, invalidate the one query that changed.
33
+
34
+ ## Done when
35
+ Reloading the page shows the same record the mutation wrote.
36
+
37
+ ## Example
38
+ A settings page reads the row on the server and passes it into a form. The form does not refetch on mount.
39
+
40
+ ## Common mistakes
41
+ useEffect plus setState as the data layer. A store that holds the whole API response.
42
+
43
+ ## Sources
44
+ Connore pack. No library API was copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Forms
3
+ type: doc
4
+ tags: [forms, validation]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding a field or a submit handler.
9
+ ---
10
+
11
+ # Forms
12
+
13
+ ## Use when
14
+ The user types something that must be stored or sent.
15
+
16
+ ## Default
17
+ One schema for the field rules. Validate on the server even if the client already did. Keep the values when the submit fails.
18
+
19
+ ## Use instead when
20
+ A control that only toggles local UI, such as a disclosure. It does not need a form library.
21
+
22
+ ## Never
23
+ Never clear the form after a failed submit. Never treat a client check as the security check.
24
+
25
+ ## Why
26
+ Agents rebuild the field, drop the error text, and trust the browser.
27
+
28
+ ## Steps
29
+ 1. Bind a label to each input.
30
+ 2. Validate the payload on the server and map field errors back onto the fields.
31
+ 3. Disable the submit control while the request is in flight.
32
+ 4. Show a success state only after the server confirms the write.
33
+
34
+ ## Done when
35
+ An empty required field is rejected on the server and the message sits on that field.
36
+
37
+ ## Example
38
+ An email field left blank returns 400 and the input still holds what the user typed.
39
+
40
+ ## Common mistakes
41
+ A placeholder used as the label. Errors shown only in a toast.
42
+
43
+ ## Sources
44
+ Connore pack. No form-library snippet copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Layout patterns
3
+ type: doc
4
+ tags: [layout, page]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when composing a page, a shell, or a section stack.
9
+ ---
10
+
11
+ # Layout patterns
12
+
13
+ ## Use when
14
+ A page needs regions: header, main, a list, a detail, a footer.
15
+
16
+ ## Default
17
+ One shell for signed-in pages and one column for marketing. Sections stack in the order the task needs. Skip a section rather than inventing one.
18
+
19
+ ## Use instead when
20
+ A single form. It does not need a marketing section stack.
21
+
22
+ ## Never
23
+ Never put a marketing hero inside an app shell. Never fix a width that forces a horizontal scrollbar at 320px.
24
+
25
+ ## Why
26
+ Agents mix the landing page and the product into one layout, then both read as unfinished.
27
+
28
+ ## Steps
29
+ 1. Pick shell or marketing before drawing.
30
+ 2. Put navigation in the shell, not copied into each page.
31
+ 3. Let a list use a wrapping grid before adding breakpoints.
32
+ 4. Keep the reading line short enough to read.
33
+
34
+ ## Done when
35
+ The signed-in page and the public page do not share a hero.
36
+
37
+ ## Example
38
+ Settings uses the app shell with a title and a form. The pricing page is a public column.
39
+
40
+ ## Common mistakes
41
+ A breakpoint per component. A max width that clips the form on a phone.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Loading, empty, and error
3
+ type: doc
4
+ tags: [states, ui]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before rendering a screen that depends on a request.
9
+ ---
10
+
11
+ # Loading, empty, and error
12
+
13
+ ## Use when
14
+ A view reads data that can be missing, slow, or failed.
15
+
16
+ ## Default
17
+ Four states: loading, empty, error, and ready. Empty is a successful response with nothing to show.
18
+
19
+ ## Use instead when
20
+ A static page with no request. It has one state.
21
+
22
+ ## Never
23
+ Never render the ready view when the request failed. Never call an error an empty list.
24
+
25
+ ## Why
26
+ Agents check only the happy path. The first real failure paints undefined into the page.
27
+
28
+ ## Steps
29
+ 1. Branch on the request status before reading fields.
30
+ 2. Give the error a retry and a plain sentence.
31
+ 3. Give empty a sentence and one action.
32
+ 4. Keep the layout stable so content does not jump in.
33
+
34
+ ## Done when
35
+ A failed request and a zero-row result look different.
36
+
37
+ ## Example
38
+ No projects yet shows a create action. A 500 shows a retry and does not say there are no projects.
39
+
40
+ ## Common mistakes
41
+ A spinner that replaces data the user was already reading. An empty table with no words.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Motion
3
+ type: doc
4
+ tags: [motion, animation]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding animation.
9
+ ---
10
+
11
+ # Motion
12
+
13
+ ## Use when
14
+ A change should be easier to follow, or the owner asked for motion.
15
+
16
+ ## Default
17
+ Animate the thing that changed, once. Honor reduced motion by showing the end state immediately.
18
+
19
+ ## Use instead when
20
+ Nothing moved. Do not add a fade on every block.
21
+
22
+ ## Never
23
+ Never use motion as the only sign of an error. Never leave motion running when the user asked for less.
24
+
25
+ ## Why
26
+ Decorative motion makes a generated page feel the same everywhere.
27
+
28
+ ## Steps
29
+ 1. Ask if the owner wants motion at all.
30
+ 2. Animate one element that explains a change.
31
+ 3. Provide the still end state under reduced motion.
32
+ 4. Keep durations short.
33
+
34
+ ## Done when
35
+ With reduced motion on, the information is still all there.
36
+
37
+ ## Example
38
+ A panel opens. Reduced motion shows it open without the slide.
39
+
40
+ ## Common mistakes
41
+ A bounce on every button. A loading animation with no text.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Responsive layout
3
+ type: doc
4
+ tags: [layout, responsive]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a layout should work on a narrow window.
9
+ ---
10
+
11
+ # Responsive layout
12
+
13
+ ## Use when
14
+ A page is wider than a phone, or a grid is about to get a media query.
15
+
16
+ ## Default
17
+ Start from the narrow case. Add a breakpoint only where the content actually breaks. Prefer wrapping tracks to a device name.
18
+
19
+ ## Use instead when
20
+ A print stylesheet. Handle that as its own pass.
21
+
22
+ ## Never
23
+ Never design only at desktop width and then shrink the font until it fits.
24
+
25
+ ## Why
26
+ The first real phone session is when overflow appears, and the agent patches it with overflow hidden.
27
+
28
+ ## Steps
29
+ 1. Check the page at about 320px wide.
30
+ 2. Let cards wrap instead of shrinking below a readable size.
31
+ 3. Keep tap targets large enough to hit.
32
+ 4. Do not hide the only copy of an action on small screens.
33
+
34
+ ## Done when
35
+ No horizontal scroll at a narrow width, and the primary action is still on screen.
36
+
37
+ ## Example
38
+ A three-card row becomes one column. The buy button stays under the price.
39
+
40
+ ## Common mistakes
41
+ A hamburger that removes the only way to sign out. A fixed pixel sidebar.
42
+
43
+ ## Sources
44
+ Connore pack. The 320px check matches the WCAG reflow idea, not a copied test.
45
+
46
+ License: MIT
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: SEO audit
3
+ type: doc
4
+ tags: [seo, metadata]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before shipping a public page or when asked why a page is missing from search.
9
+ ---
10
+
11
+ # SEO audit
12
+
13
+ ## Use when
14
+ A public page should be findable, or the user asks for an SEO pass.
15
+
16
+ ## Default
17
+ Each public page has a unique title and description, a canonical url, and a sitemap that lists only pages you want crawled. Private pages are noindex.
18
+
19
+ ## Use instead when
20
+ A signed-in app with no public pages. Do not add a marketing sitemap for it.
21
+
22
+ ## Never
23
+ Never noindex the marketing site by accident. Never put private urls in the sitemap. Never copy a title across every page.
24
+
25
+ ## Why
26
+ Agents ship a single title and a robots file that blocks the whole host.
27
+
28
+ ## Steps
29
+ 1. Give each public route its own title and description.
30
+ 2. Add a canonical url for that route.
31
+ 3. Serve sitemap.xml with the public urls only.
32
+ 4. Serve robots.txt that allows the public host and points at the sitemap.
33
+ 5. Add structured data only for a type you actually are, such as an article or a product, and match the visible text.
34
+
35
+ ## Done when
36
+ A private route is absent from the sitemap. Two public pages do not share a title.
37
+
38
+ ## Example
39
+ Pricing has its own description. The settings page sends noindex and is not in the sitemap.
40
+
41
+ ## Common mistakes
42
+ One layout title for the whole site. A robots file copied from a boilerplate that disallows /.
43
+
44
+ ## Sources
45
+ Connore pack. No search-console result is claimed.
46
+
47
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Tables
3
+ type: doc
4
+ tags: [tables, lists]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before rendering a list of records.
9
+ ---
10
+
11
+ # Tables
12
+
13
+ ## Use when
14
+ The user scans many rows of their own data.
15
+
16
+ ## Default
17
+ One row per record, a header that names the columns, and an empty state when there are no rows. Paginate or filter when the list can grow.
18
+
19
+ ## Use instead when
20
+ Three items. A stack of cards is enough.
21
+
22
+ ## Never
23
+ Never render an unbounded query into the page. Never make the row clickable with no keyboard path.
24
+
25
+ ## Why
26
+ A table of every row in the database will time out and hide the empty case.
27
+
28
+ ## Steps
29
+ 1. Select the columns the user named.
30
+ 2. Filter by the tenant.
31
+ 3. Limit the page size.
32
+ 4. Give the empty result a sentence and one action.
33
+
34
+ ## Done when
35
+ Zero rows shows the empty state, and a keyboard can open a row.
36
+
37
+ ## Example
38
+ Invoices show date, status, and total, twenty at a time.
39
+
40
+ ## Common mistakes
41
+ A table with no headers. Loading ten thousand rows on first paint.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,45 @@
1
+ ---
2
+ title: Design tokens
3
+ type: doc
4
+ tags: [tokens, color, type]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when choosing a color, a font, or a radius.
9
+ ---
10
+
11
+ # Design tokens
12
+
13
+ ## Use when
14
+ A visual value is about to be written into a component.
15
+
16
+ ## Default
17
+ Ask the owner for mode, accent, and feel first. Record the answer. Put the values in one token layer. Components read the tokens.
18
+
19
+ ## Use instead when
20
+ The owner already named the values. Use those and do not ask again.
21
+
22
+ ## Never
23
+ Never invent a palette because the prompt did not mention color. Never average two recorded colors into a third.
24
+
25
+ ## Why
26
+ A guessed palette becomes the product. The owner then spends the review undoing it.
27
+
28
+ ## Steps
29
+ 1. If mode or accent is unset, ask and stop.
30
+ 2. Write the chosen values as tokens, named by role.
31
+ 3. Use the token in the component. Do not paste the hex at the call site.
32
+
33
+ ## Done when
34
+ Changing the accent means editing the token, not hunting through components.
35
+
36
+ ## Example
37
+ The owner says dark and one green. The button reads the accent token. A second screen does not introduce a blue link color.
38
+
39
+ ## Common mistakes
40
+ A hex on the className. A font picked because it is the framework default.
41
+
42
+ ## Sources
43
+ Connore pack. Owner choice comes before any sample palette.
44
+
45
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Analytics
3
+ type: doc
4
+ tags: [analytics]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding a tracker or an event.
9
+ ---
10
+
11
+ # Analytics
12
+
13
+ ## Use when
14
+ The user asked to measure a product action.
15
+
16
+ ## Default
17
+ Track the few events the user named. Send them from one helper. Do not send personal content, secrets, or form values.
18
+
19
+ ## Use instead when
20
+ Nobody asked for measurement. Do not add a vendor.
21
+
22
+ ## Never
23
+ Never log the request body into analytics. Never add a second tracker for the same event.
24
+
25
+ ## Why
26
+ Agents paste a snippet on every page and the product starts collecting things the user did not ask to collect.
27
+
28
+ ## Steps
29
+ 1. List the events with the user. Stop at that list.
30
+ 2. Call one function with the event name and the ids, not the text.
31
+ 3. Load the script only where the user agreed.
32
+ 4. Document how to turn it off.
33
+
34
+ ## Done when
35
+ The named events fire once, and no form value is in the payload.
36
+
37
+ ## Example
38
+ project_created carries the project id. It does not carry the project name if that name is customer data.
39
+
40
+ ## Common mistakes
41
+ A tracker in the root layout before the user asked. Sending the search query.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Email
3
+ type: doc
4
+ tags: [email]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before sending mail from the product.
9
+ ---
10
+
11
+ # Email
12
+
13
+ ## Use when
14
+ A sign-up, a receipt, or a password reset.
15
+
16
+ ## Default
17
+ Send from the server or a job. Use a template with the few fields you intend. Do not put a secret in the mail body beyond a one-time link.
18
+
19
+ ## Use instead when
20
+ Mail the user asked you not to send. Do not add a drip.
21
+
22
+ ## Never
23
+ Never send from the client. Never put a password or a session token in the email. Never email every user because a loop forgot a filter.
24
+
25
+ ## Why
26
+ A client-sent mail is spoofable, and a bad loop is how a product spams its own customers.
27
+
28
+ ## Steps
29
+ 1. Name the one event that sends the mail.
30
+ 2. Render the template with escaped fields.
31
+ 3. Send after the write commits, from a job if the provider is slow.
32
+ 4. Log the message id, not the body, when it fails.
33
+
34
+ ## Done when
35
+ The mail goes out once for the event, and a failed send does not roll back a payment.
36
+
37
+ ## Example
38
+ A reset link expires and does not include the user's password.
39
+
40
+ ## Common mistakes
41
+ Sending inside the render. A template that injects raw HTML from the user's name.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Model APIs
3
+ type: doc
4
+ tags: [ai, api]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before calling a model from the product.
9
+ ---
10
+
11
+ # Model APIs
12
+
13
+ ## Use when
14
+ A feature needs a model response.
15
+
16
+ ## Default
17
+ Call the model from the server. Cap the tokens and the spend the user agreed to. Store the prompt id, not the secret.
18
+
19
+ ## Use instead when
20
+ The user is pasting into a chat and no product call exists. Do not add a client.
21
+
22
+ ## Never
23
+ Never call the model from the browser with a secret. Never send a vault file or a password in the prompt.
24
+
25
+ ## Why
26
+ The key leaks, or the bill grows with no cap.
27
+
28
+ ## Steps
29
+ 1. Confirm the job, the model, and the cap with the user.
30
+ 2. Keep the key in the server environment.
31
+ 3. Timeout and return a plain error the user can retry.
32
+ 4. Record the eval result when the prompt changes.
33
+
34
+ ## Done when
35
+ A missing key fails on the server with a generic error, and the key is not in the client bundle.
36
+
37
+ ## Example
38
+ A summary call runs in a route handler with a token cap.
39
+
40
+ ## Common mistakes
41
+ A client component that imports the key. An unbounded retry loop.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: OAuth
3
+ type: doc
4
+ tags: [auth, oauth]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding sign-in through another provider.
9
+ ---
10
+
11
+ # OAuth
12
+
13
+ ## Use when
14
+ The user chose a provider instead of a password.
15
+
16
+ ## Default
17
+ Start the redirect on the server. Check the state value on the way back. Store the account id, not the provider token, unless a later call needs it.
18
+
19
+ ## Use instead when
20
+ Password sign-in is enough. Do not add a provider to look complete.
21
+
22
+ ## Never
23
+ Never put the client secret in the browser. Never skip the state check.
24
+
25
+ ## Why
26
+ Without state, a return url can be forged.
27
+
28
+ ## Steps
29
+ 1. Confirm the provider with the user.
30
+ 2. Keep the secret on the server.
31
+ 3. Send a random state and reject a mismatch.
32
+ 4. Create the session only after the provider confirms the user.
33
+
34
+ ## Done when
35
+ A mismatched state creates no session, and the secret is not in the client.
36
+
37
+ ## Example
38
+ The callback rejects a missing state and shows the sign-in page again.
39
+
40
+ ## Common mistakes
41
+ Trusting the email in the query string. Logging the provider token.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Object storage
3
+ type: doc
4
+ tags: [files, storage]
5
+ stack: nextjs
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before storing a file outside the database.
9
+ ---
10
+
11
+ # Object storage
12
+
13
+ ## Use when
14
+ A user uploads a file, or the app generates one.
15
+
16
+ ## Default
17
+ Store the bytes in object storage. Store the key and the owner in the database. Serve through a check, not a public bucket, unless the user asked for public.
18
+
19
+ ## Use instead when
20
+ A tiny text field. Keep it in the row.
21
+
22
+ ## Never
23
+ Never put the storage secret in the client. Never trust the filename the user sent as the storage key.
24
+
25
+ ## Why
26
+ A public bucket plus a guessed name is a leak.
27
+
28
+ ## Steps
29
+ 1. Check the session and the owner before issuing an upload.
30
+ 2. Generate the storage key yourself.
31
+ 3. Save the key on the owning row.
32
+ 4. On read, check the owner again.
33
+
34
+ ## Done when
35
+ A user cannot fetch another tenant's object by guessing the key.
36
+
37
+ ## Example
38
+ An avatar key is avatars/<org>/<id>, and the read checks the org.
39
+
40
+ ## Common mistakes
41
+ Using the original filename as the key. A bucket policy that allows public read of private files.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT