connore 0.1.1 → 0.2.1

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 (238) hide show
  1. package/README.md +13 -8
  2. package/bin/ctxkit.js +5 -5
  3. package/package.json +2 -1
  4. package/packs/base/planning/START.md +29 -28
  5. package/packs/base/planning/blueprint-template.md +46 -46
  6. package/packs/base/planning/plan-template.md +46 -45
  7. package/packs/base/rules/anti-patterns.md +19 -16
  8. package/packs/base/rules/code-style.md +19 -16
  9. package/packs/base/rules/dependency-policy.md +19 -16
  10. package/packs/base/rules/error-handling.md +19 -16
  11. package/packs/base/rules/security-audit.md +47 -0
  12. package/packs/base/rules/security-baseline.md +19 -16
  13. package/packs/base/templates/bug-report.md +19 -16
  14. package/packs/base/templates/feature-spec.md +19 -16
  15. package/packs/base/templates/handoff.md +19 -16
  16. package/packs/base/templates/project-brief.md +19 -16
  17. package/packs/base/workflow/code-review.md +19 -16
  18. package/packs/base/workflow/debugging.md +18 -14
  19. package/packs/base/workflow/git-and-commits.md +19 -16
  20. package/packs/base/workflow/idea-to-spec.md +19 -16
  21. package/packs/base/workflow/session-handoff.md +19 -16
  22. package/packs/base/workflow/spec-to-plan.md +19 -16
  23. package/packs/knowledge/backend/api/conventions.md +21 -0
  24. package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
  25. package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
  26. package/packs/knowledge/backend/database/schema.md +21 -0
  27. package/packs/knowledge/components/custom/ambient-background.md +26 -0
  28. package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
  29. package/packs/knowledge/components/custom/corner-frame.md +26 -0
  30. package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
  31. package/packs/knowledge/components/custom/cta-button.md +26 -0
  32. package/packs/knowledge/components/custom/cta-button.tsx +10 -0
  33. package/packs/knowledge/components/custom/page-transition.md +26 -0
  34. package/packs/knowledge/components/custom/page-transition.tsx +10 -0
  35. package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
  36. package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
  37. package/packs/knowledge/components/motion-effects/README.md +30 -0
  38. package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
  39. package/packs/knowledge/components/ui-primitives/README.md +22 -0
  40. package/packs/knowledge/components/ui-primitives/badge.md +26 -0
  41. package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
  42. package/packs/knowledge/components/ui-primitives/button.md +27 -0
  43. package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
  44. package/packs/knowledge/components/ui-primitives/card.md +26 -0
  45. package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
  46. package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
  47. package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
  48. package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
  49. package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
  50. package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
  51. package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
  52. package/packs/knowledge/components/ui-primitives/input.md +27 -0
  53. package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
  54. package/packs/knowledge/components/ui-primitives/label.md +26 -0
  55. package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
  56. package/packs/knowledge/components/ui-primitives/progress.md +26 -0
  57. package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
  58. package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
  59. package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
  60. package/packs/knowledge/components/ui-primitives/select.md +26 -0
  61. package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
  62. package/packs/knowledge/components/ui-primitives/separator.md +26 -0
  63. package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
  64. package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
  65. package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
  66. package/packs/knowledge/components/ui-primitives/switch.md +26 -0
  67. package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
  68. package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
  69. package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
  70. package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
  71. package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
  72. package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
  73. package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
  74. package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
  75. package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
  76. package/packs/knowledge/design/aesthetics/match.md +46 -0
  77. package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
  78. package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
  79. package/packs/knowledge/design/animations/motion.md +40 -0
  80. package/packs/knowledge/design/project-style.md +50 -0
  81. package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
  82. package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
  83. package/packs/knowledge/design/references/cta-centered.md +27 -0
  84. package/packs/knowledge/design/references/cta-centered.png +0 -0
  85. package/packs/knowledge/design/references/cta-split-media.md +27 -0
  86. package/packs/knowledge/design/references/cta-split-media.png +0 -0
  87. package/packs/knowledge/design/references/dashboard-overview.md +31 -0
  88. package/packs/knowledge/design/references/dashboard-overview.png +0 -0
  89. package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
  90. package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
  91. package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
  92. package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
  93. package/packs/knowledge/design/references/footer-four-column.md +27 -0
  94. package/packs/knowledge/design/references/footer-four-column.png +0 -0
  95. package/packs/knowledge/design/references/footer-two-column.md +27 -0
  96. package/packs/knowledge/design/references/footer-two-column.png +0 -0
  97. package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
  98. package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
  99. package/packs/knowledge/design/references/hero-split-media.md +27 -0
  100. package/packs/knowledge/design/references/hero-split-media.png +0 -0
  101. package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
  102. package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
  103. package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
  104. package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
  105. package/packs/knowledge/design/references/pricing-three-card.md +27 -0
  106. package/packs/knowledge/design/references/pricing-three-card.png +0 -0
  107. package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
  108. package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
  109. package/packs/knowledge/design/rules.md +35 -0
  110. package/packs/knowledge/design/token-structure.md +46 -0
  111. package/packs/knowledge/design/tokens.md +55 -0
  112. package/packs/knowledge/frontend/README.md +50 -0
  113. package/packs/knowledge/frontend/SOURCES.md +40 -0
  114. package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
  115. package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
  116. package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
  117. package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
  118. package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
  119. package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
  120. package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
  121. package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
  122. package/packs/knowledge/frontend/architecture/naming.md +43 -0
  123. package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
  124. package/packs/knowledge/frontend/architecture/routing.md +45 -0
  125. package/packs/knowledge/frontend/architecture/security.md +44 -0
  126. package/packs/knowledge/frontend/architecture/typescript.md +44 -0
  127. package/packs/knowledge/frontend/components/composition.md +45 -0
  128. package/packs/knowledge/frontend/components/data-display.md +47 -0
  129. package/packs/knowledge/frontend/components/library-choice.md +45 -0
  130. package/packs/knowledge/frontend/components/variants.md +44 -0
  131. package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
  132. package/packs/knowledge/frontend/forms/multi-step.md +43 -0
  133. package/packs/knowledge/frontend/forms/validation.md +47 -0
  134. package/packs/knowledge/frontend/layout/responsive.md +41 -0
  135. package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
  136. package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
  137. package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
  138. package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
  139. package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
  140. package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
  141. package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
  142. package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
  143. package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
  144. package/packs/knowledge/frontend/performance/rendering.md +40 -0
  145. package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
  146. package/packs/knowledge/frontend/state/api-layer.md +49 -0
  147. package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
  148. package/packs/knowledge/frontend/state/client-store.md +46 -0
  149. package/packs/knowledge/frontend/state/server-cache.md +42 -0
  150. package/packs/knowledge/frontend/state/state-categories.md +50 -0
  151. package/packs/knowledge/frontend/testing/component-tests.md +44 -0
  152. package/packs/knowledge/frontend/testing/strategy.md +46 -0
  153. package/packs/knowledge/inbox/README.md +14 -0
  154. package/packs/knowledge/workflows/authentication.md +18 -0
  155. package/packs/knowledge/workflows/crud.md +20 -0
  156. package/packs/knowledge/workflows/dashboard.md +22 -0
  157. package/packs/nextjs-fullstack/backend/auth-and-roles.md +19 -16
  158. package/packs/nextjs-fullstack/backend/background-jobs.md +19 -16
  159. package/packs/nextjs-fullstack/backend/caching.md +17 -14
  160. package/packs/nextjs-fullstack/backend/database.md +19 -16
  161. package/packs/nextjs-fullstack/backend/file-uploads.md +19 -16
  162. package/packs/nextjs-fullstack/backend/logging.md +17 -14
  163. package/packs/nextjs-fullstack/backend/migrations.md +17 -14
  164. package/packs/nextjs-fullstack/backend/rate-limiting.md +19 -16
  165. package/packs/nextjs-fullstack/backend/secrets-and-env.md +19 -16
  166. package/packs/nextjs-fullstack/backend/validation.md +19 -16
  167. package/packs/nextjs-fullstack/blueprints/ai-app.md +1 -1
  168. package/packs/nextjs-fullstack/blueprints/internal-tool.md +1 -1
  169. package/packs/nextjs-fullstack/blueprints/saas-app.md +1 -1
  170. package/packs/nextjs-fullstack/build-deploy/ci.md +18 -16
  171. package/packs/nextjs-fullstack/build-deploy/deploy.md +19 -16
  172. package/packs/nextjs-fullstack/build-deploy/monitoring.md +16 -14
  173. package/packs/nextjs-fullstack/build-deploy/performance.md +17 -14
  174. package/packs/nextjs-fullstack/build-deploy/project-structure.md +18 -16
  175. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +20 -16
  176. package/packs/nextjs-fullstack/build-deploy/testing.md +19 -16
  177. package/packs/nextjs-fullstack/evals/README.md +18 -15
  178. package/packs/nextjs-fullstack/examples/golden-app/README.md +18 -16
  179. package/packs/nextjs-fullstack/frontend/accessibility.md +17 -14
  180. package/packs/nextjs-fullstack/frontend/components.md +19 -16
  181. package/packs/nextjs-fullstack/frontend/copy.md +46 -0
  182. package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
  183. package/packs/nextjs-fullstack/frontend/forms.md +17 -14
  184. package/packs/nextjs-fullstack/frontend/layout.md +19 -16
  185. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +19 -16
  186. package/packs/nextjs-fullstack/frontend/motion.md +17 -14
  187. package/packs/nextjs-fullstack/frontend/responsive.md +19 -16
  188. package/packs/nextjs-fullstack/frontend/seo.md +20 -16
  189. package/packs/nextjs-fullstack/frontend/tables.md +17 -14
  190. package/packs/nextjs-fullstack/frontend/tokens.md +18 -16
  191. package/packs/nextjs-fullstack/integrations/analytics.md +17 -14
  192. package/packs/nextjs-fullstack/integrations/email.md +17 -14
  193. package/packs/nextjs-fullstack/integrations/llm-apis.md +19 -16
  194. package/packs/nextjs-fullstack/integrations/oauth.md +19 -16
  195. package/packs/nextjs-fullstack/integrations/object-storage.md +19 -16
  196. package/packs/nextjs-fullstack/integrations/payments.md +17 -14
  197. package/packs/nextjs-fullstack/integrations/queues.md +17 -14
  198. package/packs/nextjs-fullstack/integrations/search.md +19 -16
  199. package/packs/nextjs-fullstack/integrations/webhooks.md +17 -14
  200. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +19 -16
  201. package/packs/nextjs-fullstack/playbooks/add-auth.md +19 -16
  202. package/packs/nextjs-fullstack/playbooks/add-crud.md +19 -16
  203. package/packs/nextjs-fullstack/playbooks/add-email.md +19 -16
  204. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +19 -16
  205. package/packs/nextjs-fullstack/playbooks/add-webhook.md +19 -16
  206. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +20 -16
  207. package/plugins/connore/.claude-plugin/plugin.json +10 -0
  208. package/plugins/connore/hooks/hooks.json +16 -0
  209. package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
  210. package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
  211. package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
  212. package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
  213. package/src/cli.js +110 -21
  214. package/src/commands/doctor.js +2 -0
  215. package/src/commands/edit.js +88 -0
  216. package/src/commands/graph.js +20 -0
  217. package/src/commands/handoff.js +45 -0
  218. package/src/commands/init.js +8 -3
  219. package/src/commands/lint.js +13 -5
  220. package/src/commands/log.js +49 -25
  221. package/src/commands/packs.js +21 -0
  222. package/src/commands/routes.js +13 -0
  223. package/src/commands/search.js +7 -2
  224. package/src/commands/update.js +5 -1
  225. package/src/lib/config.js +67 -64
  226. package/src/lib/graph.js +96 -0
  227. package/src/lib/index.js +88 -72
  228. package/src/lib/lessons.js +173 -173
  229. package/src/lib/lint.js +185 -67
  230. package/src/lib/mutate.js +26 -24
  231. package/src/lib/packs.js +25 -10
  232. package/src/lib/paths.js +1 -1
  233. package/src/lib/prompts.js +66 -0
  234. package/src/lib/report.js +41 -33
  235. package/src/lib/routes.js +59 -0
  236. package/src/lib/run.js +116 -73
  237. package/src/lib/search.js +24 -0
  238. package/src/lib/tokens.js +8 -0
@@ -1,43 +1,46 @@
1
1
  ---
2
2
  title: Queues
3
3
  type: doc
4
- tags: [doc]
4
+ tags: [jobs, queue]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Queues.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before moving work out of the request.
9
9
  ---
10
10
 
11
11
  # Queues
12
12
 
13
13
  ## Use when
14
- TODO
14
+ A task is slow or must retry.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Write the intent row, enqueue its id, and make the worker exit if that id is already done.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The work finishes inside the request. Do not add a queue for show.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never enqueue without an id you can dedupe. Never retry a payment job with no idempotency key.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Retries are how a queue double-sends.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Create the row with a status of pending.
30
+ 2. Enqueue only the id.
31
+ 3. In the worker, stop when the status is done.
32
+ 4. Mark done after the side effect commits.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ Running the worker twice leaves one side effect.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A welcome mail job stores the send id and skips the second run.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Passing the whole payload with a secret in the message. A worker that always sends.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack. Original wording. No vendor text copied.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Search
2
+ title: Search index
3
3
  type: doc
4
- tags: [doc]
4
+ tags: [search]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Search.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding a search box over product data.
9
9
  ---
10
10
 
11
- # Search
11
+ # Search index
12
12
 
13
13
  ## Use when
14
- TODO
14
+ Users need to find their own records by text.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Search the tenant's rows only. If a separate index exists, it updates in the same write path and stores no secrets.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ A list of twenty rows. Filter it in the query you already have.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never index another tenant's text into a shared query with no filter. Never index passwords or tokens.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Search is a second copy of the data, and it leaks the same way a query does.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Filter by the organization from the session.
30
+ 2. Return ids, then load the rows with the same filter.
31
+ 3. Update or remove the index entry when the row changes.
32
+ 4. Keep the index free of secrets.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A query from org A cannot return org B's title.
33
36
 
34
37
  ## Example
35
- TODO
38
+ The box searches project names for the signed-in org only.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ A global index with no tenant field. Indexing the whole user row.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack. Original wording. No vendor text copied.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
2
  title: Webhooks
3
3
  type: doc
4
- tags: [doc]
4
+ tags: [webhooks]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Webhooks.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before a route that receives events from another service.
9
9
  ---
10
10
 
11
11
  # Webhooks
12
12
 
13
13
  ## Use when
14
- TODO
14
+ Another system will POST events to you.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Verify the signature against the raw body. Store the event id. Return 2xx only after the work is safe to retry.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ You are calling them. That is a normal request, not a webhook receiver.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never parse and trust the JSON before the signature check. Never return 200 and then fail the write with no retry path.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Anyone can POST to a public url. The signature is the only proof.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Read the raw body for the signature check.
30
+ 2. Reject a bad signature with 400 and write nothing.
31
+ 3. If the event id exists, return 200.
32
+ 4. Apply the change, then store the id.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A bad signature changes no row. A duplicate event changes no row.
33
36
 
34
37
  ## Example
35
- TODO
38
+ Two deliveries of the same event id leave one subscription row.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Using the parsed object to rebuild the body for the signature. Doing a slow job before responding, so the sender retries.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add Ai Feature
2
+ title: Add a model feature
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [ai]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add Ai Feature.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when the product is about to call a model.
9
9
  ---
10
10
 
11
- # Add Ai Feature
11
+ # Add a model feature
12
12
 
13
13
  ## Use when
14
- TODO
14
+ The user named one job for the model.
15
15
 
16
16
  ## Default
17
- TODO
17
+ One server call, one cap, and a small eval before the prompt is allowed to change.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The blueprint is not an AI product. Do not add a model to look modern.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never ship the first prompt with no failing case written down. Never hide the cost.
24
24
 
25
25
  ## Why
26
- TODO
26
+ The feature works once in the demo and drifts after the next edit.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Write the job in one sentence with the user.
30
+ 2. Call from the server with a cap.
31
+ 3. Add the eval cases from the evals note.
32
+ 4. Show a plain error when the call fails.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ The eval runs, and a signed-out user cannot trigger the call.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A support draft the user can edit before it is sent.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ A chat panel with no cap and no record of what was sent.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack. Original wording. No vendor text copied.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add Auth
2
+ title: Add auth
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [auth]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add Auth.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when adding sign-in to an app that does not have it.
9
9
  ---
10
10
 
11
- # Add Auth
11
+ # Add auth
12
12
 
13
13
  ## Use when
14
- TODO
14
+ Private data is about to exist and there is no session yet.
15
15
 
16
16
  ## Default
17
- TODO
17
+ One sign-in method the user chose. A session cookie that is http-only. Every private handler checks it.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The app is already signed in. Do not add a second auth library.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never roll a password hash by hand. Never store the session in local storage as the authority.
24
24
 
25
25
  ## Why
26
- TODO
26
+ A custom hash is where accounts get lost, and a client-held session is where they get stolen.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Confirm the method with the user: password or a named provider.
30
+ 2. Create the user row and the session on the server.
31
+ 3. Check the session in the private layout and in each write.
32
+ 4. Add a sign-out that clears the session.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A signed-out request to a private route returns 401.
33
36
 
34
37
  ## Example
35
- TODO
38
+ Visiting /projects with no cookie redirects to sign-in. The projects handler also returns 401.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Protecting the page and not the action. A second user table beside the first.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add Crud
2
+ title: Add a record flow
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [crud]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add Crud.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when adding create, read, update, and delete for one table.
9
9
  ---
10
10
 
11
- # Add Crud
11
+ # Add a record flow
12
12
 
13
13
  ## Use when
14
- TODO
14
+ One tenant-owned table needs a full flow.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Server checks the session and the organization on every verb. The screen has loading, empty, and error.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The table is a log you only append. Skip update and delete until the user asks.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never delete by id without the organization filter. Never build the four screens before the read works.
24
24
 
25
25
  ## Why
26
- TODO
26
+ A create that does not scope the row is how the next user's data appears in the list.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Add the table with organization_id.
30
+ 2. Implement the read and prove a second org cannot see the row.
31
+ 3. Add create, then update, then delete, each with the same filter.
32
+ 4. Add the empty and error states on the list.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ One real row can be created and read back, and another org gets 404.
33
36
 
34
37
  ## Example
35
- TODO
38
+ Projects list is empty until create. Delete removes the row only for the owning org.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Four routes that trust the body's organization id. A list with no empty state.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add Email
2
+ title: Add email
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [email]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add Email.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a product event should send one mail.
9
9
  ---
10
10
 
11
- # Add Email
11
+ # Add email
12
12
 
13
13
  ## Use when
14
- TODO
14
+ The user named an event that needs mail.
15
15
 
16
16
  ## Default
17
- TODO
17
+ One template, one send after the write commits, sent from the server.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The event is already mailed. Add a line to that template instead of a new provider.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never send from the browser. Never include a password.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Mail is the path that leaks secrets and double-sends.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Name the event and the recipient.
30
+ 2. Add the template with the fields you will pass.
31
+ 3. Send from a job or the handler after the commit.
32
+ 4. Record a failure without claiming the mail arrived.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ The event sends one mail, and a failed provider does not show a success state.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A receipt mail goes out after the subscription row is active, not when the browser hits the success url.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Two providers sending the same event. A template that dumps the whole user row.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add File Upload
2
+ title: Add a file upload
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [files, upload]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add File Upload.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a user must send a file.
9
9
  ---
10
10
 
11
- # Add File Upload
11
+ # Add a file upload
12
12
 
13
13
  ## Use when
14
- TODO
14
+ The product stores a file the user picked.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Check the type and the size the user agreed to. Store the bytes outside the repo. Keep the owner on the row.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The file is generated by the server, not uploaded. Use the storage note without an upload form.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never accept any type and serve it back as HTML. Never store the file in the git repo.
24
24
 
25
25
  ## Why
26
- TODO
26
+ An upload that is served inline is a script.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Agree the types and the max size.
30
+ 2. Reject anything else on the server.
31
+ 3. Store the key, not the original path.
32
+ 4. Read it back only for the owner.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A disallowed type is rejected, and another user cannot download the file.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A png under the size cap is stored and shown to the owner.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Trusting the browser's file type only. Putting uploads in public/.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack. Original wording. No vendor text copied.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Add Webhook
2
+ title: Add a webhook
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [webhooks]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Add Webhook.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when another service will POST events to this app.
9
9
  ---
10
10
 
11
- # Add Webhook
11
+ # Add a webhook
12
12
 
13
13
  ## Use when
14
- TODO
14
+ A provider must notify you of a payment, a message, or a change.
15
15
 
16
16
  ## Default
17
- TODO
17
+ One route, a signature check on the raw body, and an event-id dedupe.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ You only need to call them. Use a normal server request.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never skip the signature check in development and leave it skipped. Never apply the side effect before storing the event id.
24
24
 
25
25
  ## Why
26
- TODO
26
+ The url is public. Retries are normal.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Add the route and read the raw body.
30
+ 2. Verify the signature. Reject otherwise.
31
+ 3. Return success if the event id is already stored.
32
+ 4. Apply the change and store the id in one transaction.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A replay does not double-apply. A bad signature writes nothing.
33
36
 
34
37
  ## Example
35
- TODO
38
+ invoice.paid twice creates one subscription status change.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Trusting a query parameter as the signature. Doing the work and then crashing before the id is stored.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -1,43 +1,47 @@
1
1
  ---
2
- title: Ship To Prod
2
+ title: Ship to production
3
3
  type: playbook
4
- tags: [playbook]
4
+ tags: [release]
5
5
  stack: nextjs
6
- status: draft
7
- verified:
8
- description: Draft direction for Ship To Prod.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a reviewed branch is ready for the real host.
9
9
  ---
10
10
 
11
- # Ship To Prod
11
+ # Ship to production
12
12
 
13
13
  ## Use when
14
- TODO
14
+ The user has asked to deploy.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Run the release checklist, deploy, then watch. Do not expand the scope on the way out.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The change is not ready. Say which gate is open. Do not deploy to see what happens.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never deploy with a failing suite. Never run a manual SQL fix instead of a migration.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Production is where a skipped check becomes the user's outage.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Walk the release checklist entry.
30
+ 2. Deploy the build the suite just passed.
31
+ 3. Run the migration step the host expects.
32
+ 4. Hit one real signed-in path.
33
+ 5. Leave the rollback note in the handoff.
30
34
 
31
35
  ## Done when
32
- TODO
36
+ The user knows the version, how to roll back, and that the smoke path worked.
33
37
 
34
38
  ## Example
35
- TODO
39
+ After deploy, creating a project in production returns the new row and the error log stays quiet for that request.
36
40
 
37
41
  ## Common mistakes
38
- TODO
42
+ Deploying a different commit than the one tested. Skipping the smoke check because CI was green.
39
43
 
40
44
  ## Sources
41
- TODO
45
+ Connore pack.
42
46
 
43
47
  License: MIT
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "connore",
3
+ "version": "0.1.1",
4
+ "description": "Local context layer. Loads the .ctx index, the task route, and the session handoff into Claude Code.",
5
+ "author": {
6
+ "name": "Abhinay"
7
+ },
8
+ "license": "MIT",
9
+ "keywords": ["context", "connore", "agents"]
10
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "description": "Inject the connore index, plan and route table when a session starts.",
3
+ "hooks": {
4
+ "SessionStart": [
5
+ {
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "connore hook",
10
+ "timeout": 15
11
+ }
12
+ ]
13
+ }
14
+ ]
15
+ }
16
+ }