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: Bug report
3
+ type: template
4
+ tags: [bug, template]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when writing down a defect.
9
+ ---
10
+
11
+ # Bug report
12
+
13
+ ## Use when
14
+ A failure needs a record someone else can reproduce.
15
+
16
+ ## Default
17
+ Write the command or the click, what you expected, and what happened. Name the file if you know it.
18
+
19
+ ## Use instead when
20
+ You are about to fix it in the same minute. Still write one line in the log.
21
+
22
+ ## Never
23
+ Never include a secret, a customer record, or a guess stated as a fact.
24
+
25
+ ## Why
26
+ A report that cannot be replayed gets closed as unreproducible.
27
+
28
+ ## Steps
29
+ 1. State the action.
30
+ 2. State the expected result.
31
+ 3. State the actual result.
32
+ 4. Add the smallest input that shows it.
33
+
34
+ ## Done when
35
+ Another person can run the same action and see the same failure.
36
+
37
+ ## Example
38
+ Click Refund on order 12. Expected status refunded. Saw 500.
39
+
40
+ ## Common mistakes
41
+ It is broken, with no step. Pasting a production dump.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Feature spec
3
+ type: template
4
+ tags: [spec, template]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a feature is still a sentence.
9
+ ---
10
+
11
+ # Feature spec
12
+
13
+ ## Use when
14
+ Work is about to start and the behavior is not written.
15
+
16
+ ## Default
17
+ Write who it is for, the one path, what done looks like, and what is out of scope.
18
+
19
+ ## Use instead when
20
+ The blueprint phase already specifies it. Use that text.
21
+
22
+ ## Never
23
+ Never invent a price, a metric, or a user you were not given. Never start coding from the sentence alone.
24
+
25
+ ## Why
26
+ The agent fills the gaps with a generic product.
27
+
28
+ ## Steps
29
+ 1. Name the user.
30
+ 2. Write the path in steps.
31
+ 3. Write the done check.
32
+ 4. List what you will not build.
33
+
34
+ ## Done when
35
+ A reader can reject a change that is outside the spec.
36
+
37
+ ## Example
38
+ A member can archive their own project. Done when the row is hidden from their list. Not an admin console.
39
+
40
+ ## Common mistakes
41
+ A spec that says make it better. Adding billing because other apps have it.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Handoff note
3
+ type: template
4
+ tags: [handoff, template]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when writing a resume note by hand.
9
+ ---
10
+
11
+ # Handoff note
12
+
13
+ ## Use when
14
+ You need the shape of a handoff and will not run the command.
15
+
16
+ ## Default
17
+ Four lines: next step, files, red tests, decision. Prefer connore handoff when the CLI is available.
18
+
19
+ ## Use instead when
20
+ The CLI is in the project. Run connore handoff instead of copying this file.
21
+
22
+ ## Never
23
+ Never leave a blank section. Never include a secret or a customer record.
24
+
25
+ ## Why
26
+ An empty template gets filled with continue, which the next session cannot use.
27
+
28
+ ## Steps
29
+ 1. Write the next step as a command or a file to open.
30
+ 2. List the paths you changed.
31
+ 3. Name the test that is still failing, or say the suite is green.
32
+ 4. Add one decision sentence if you chose between two designs.
33
+
34
+ ## Done when
35
+ Someone else can start from the note without the chat.
36
+
37
+ ## Example
38
+ Next: open features/billing/refund.js and add the owner check. Suite: refunds-auth failing.
39
+
40
+ ## Common mistakes
41
+ Copying the whole chat into the note. A next step of keep going.
42
+
43
+ ## Sources
44
+ Connore pack.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Project brief
3
+ type: template
4
+ tags: [brief, template]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a new product is being named.
9
+ ---
10
+
11
+ # Project brief
12
+
13
+ ## Use when
14
+ The user is starting and has not confirmed scope.
15
+
16
+ ## Default
17
+ One paragraph for what it is, who it is for, and the first workflow. Questions stay inside what the blueprint marks confirm-with-user.
18
+
19
+ ## Use instead when
20
+ A brief already exists. Do not rewrite it unasked.
21
+
22
+ ## Never
23
+ Never invent competitors, revenue, or a launch date.
24
+
25
+ ## Why
26
+ A fictional brief becomes the requirements.
27
+
28
+ ## Steps
29
+ 1. Say what is being built in one sentence.
30
+ 2. Name the first user.
31
+ 3. Name the first workflow.
32
+ 4. List the open questions, at most five.
33
+
34
+ ## Done when
35
+ The user can answer the questions without correcting a made-up market.
36
+
37
+ ## Example
38
+ A tool for a support team to tag tickets. First workflow is tag and search.
39
+
40
+ ## Common mistakes
41
+ A brief with a fake customer logo row and a pricing table the user never set.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,48 @@
1
+ ---
2
+ title: Build loop
3
+ type: workflow
4
+ tags: [workflow, build]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-11-22
8
+ description: Load before writing code from a spec.
9
+ ---
10
+
11
+ # Build loop
12
+
13
+ ## Use when
14
+ A spec exists and the next step is a change in the repo.
15
+
16
+ ## Default
17
+ One failing check, then the smallest edit that makes that check pass.
18
+
19
+ ## Use instead when
20
+ The spec is still one vague sentence. Write the spec before this loop.
21
+
22
+ ## Never
23
+ Never start a second feature while the current check is failing.
24
+
25
+ ## Why
26
+ A red check names the gap. A green check is the proof the gap closed.
27
+
28
+ ## Steps
29
+ 1. Restate the spec in one sentence and name the files you expect to touch.
30
+ 2. Add or pick one check that fails for the missing behavior.
31
+ 3. Change only the files that check needs.
32
+ 4. Re-run that check. On failure, read the first error and change one thing.
33
+ 5. When it passes, run the full check suite once.
34
+ 6. Record the choice with `connore log decision`.
35
+
36
+ ## Done when
37
+ The new check passes, the full suite passes, and the spec sentence is true in the diff.
38
+
39
+ ## Example
40
+ Spec: "POST /orders returns 400 when quantity is 0." The test asserts 400. The handler rejects 0. The test passes.
41
+
42
+ ## Common mistakes
43
+ Rewriting the suite to match a broken handler. Editing three modules before the first check runs.
44
+
45
+ ## Sources
46
+ connore base workflow. No vendor text.
47
+
48
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Code review
3
+ type: workflow
4
+ tags: [review]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when looking at a diff, yours or someone else's.
9
+ ---
10
+
11
+ # Code review
12
+
13
+ ## Use when
14
+ A change is about to be called finished or merged.
15
+
16
+ ## Default
17
+ Read the diff against the spec. Check auth, tenant filters, secrets, and the unhappy states. Comment on the behavior.
18
+
19
+ ## Use instead when
20
+ You wrote it and the suite covers the risk. Still read the diff once.
21
+
22
+ ## Never
23
+ Never approve what you did not open. Never rewrite the change in the review.
24
+
25
+ ## Why
26
+ A review that only says looks good lets the forbidden path through.
27
+
28
+ ## Steps
29
+ 1. Read the spec or the phase gate.
30
+ 2. Read the diff.
31
+ 3. Check the Never lines that apply.
32
+ 4. Name a file when something is wrong.
33
+
34
+ ## Done when
35
+ The notes are either empty because you checked, or they name a file.
36
+
37
+ ## Example
38
+ The refund handler is missing the role check. That is the comment.
39
+
40
+ ## Common mistakes
41
+ Style nits on an auth bug. Approving a diff you skimmed.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Debugging
3
+ type: workflow
4
+ tags: [debug]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when something fails and the cause is not already known.
9
+ ---
10
+
11
+ # Debugging
12
+
13
+ ## Use when
14
+ A test is red, a request 500s, or the user pastes a traceback.
15
+
16
+ ## Default
17
+ Reproduce first. Change one thing. Confirm the failure changes with it. Then fix.
18
+
19
+ ## Use instead when
20
+ The cause is already named in the error and the line is obvious. Fix that line and add a test.
21
+
22
+ ## Never
23
+ Never rewrite the area because it looks messy while you are hunting a bug. Never claim it is fixed without re-running the failure.
24
+
25
+ ## Why
26
+ A wide rewrite hides whether the bug is gone.
27
+
28
+ ## Steps
29
+ 1. Get the exact command or click that fails.
30
+ 2. Read the first frame that is in this repo.
31
+ 3. Form one hypothesis and test it with the smallest probe.
32
+ 4. Fix, then re-run the original failure.
33
+ 5. Add a regression check if the bug can return quietly.
34
+
35
+ ## Done when
36
+ The original command passes, and you can say what was wrong in one sentence.
37
+
38
+ ## Example
39
+ The invoice 404s because the query filters the wrong organization column. The test now uses two orgs.
40
+
41
+ ## Common mistakes
42
+ Changing five files before reproducing. Printing a secret to see the request.
43
+
44
+ ## Sources
45
+ Connore pack.
46
+
47
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Git and commits
3
+ type: workflow
4
+ tags: [git]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when making a commit.
9
+ ---
10
+
11
+ # Git and commits
12
+
13
+ ## Use when
14
+ The user asked for a commit, or the work is ready to save.
15
+
16
+ ## Default
17
+ One commit for the change you were asked to make. The message says why. Do not commit secrets or unrelated files.
18
+
19
+ ## Use instead when
20
+ The user did not ask for a commit. Leave the tree dirty and say so.
21
+
22
+ ## Never
23
+ Never commit .env, a key, or .ctx/vault. Never change git config. Never force-push.
24
+
25
+ ## Why
26
+ A commit is hard to take back once it is shared.
27
+
28
+ ## Steps
29
+ 1. See which files changed.
30
+ 2. Leave out secrets and unrelated edits.
31
+ 3. Write a message that says why.
32
+ 4. Do not push unless the user asked.
33
+
34
+ ## Done when
35
+ The commit contains the intended files and the message matches them.
36
+
37
+ ## Example
38
+ A message like reject a refund from the wrong role, for the auth fix.
39
+
40
+ ## Common mistakes
41
+ A commit of the whole working tree. A message that says update.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Idea to spec
3
+ type: workflow
4
+ tags: [spec]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when the user has an idea and no spec yet.
9
+ ---
10
+
11
+ # Idea to spec
12
+
13
+ ## Use when
14
+ The request is a sentence and a blueprint exists or should.
15
+
16
+ ## Default
17
+ Pick the closest blueprint. Ask only the questions it marks confirm-with-user. Write the spec from the answers.
18
+
19
+ ## Use instead when
20
+ The idea is a bug. Use the bug report, not a spec.
21
+
22
+ ## Never
23
+ Never start the app while the questions are unanswered. Never invent the answers.
24
+
25
+ ## Why
26
+ Coding from a sentence produces a generic product.
27
+
28
+ ## Steps
29
+ 1. Classify the idea against the blueprints.
30
+ 2. Ask at most five questions from that blueprint.
31
+ 3. Write the feature spec from the answers.
32
+ 4. Then follow spec-to-plan.
33
+
34
+ ## Done when
35
+ The spec exists and every must-have came from the user.
36
+
37
+ ## Example
38
+ They want invoicing for one team. You ask who pays, not what the logo is.
39
+
40
+ ## Common mistakes
41
+ Five extra features you thought of. A wireframe before the questions.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Session handoff
3
+ type: workflow
4
+ tags: [handoff, session]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load at the end of a session or when resuming one.
9
+ ---
10
+
11
+ # Session handoff
12
+
13
+ ## Use when
14
+ Work will stop, or a new session is starting on the same task.
15
+
16
+ ## Default
17
+ Write where it stopped, the next step, and any decision made. Read that note before editing on resume.
18
+
19
+ ## Use instead when
20
+ The task is finished and shipped. A handoff is then one line that it is done.
21
+
22
+ ## Never
23
+ Never leave the next step as continue. Never paste a secret into the note.
24
+
25
+ ## Why
26
+ The next session otherwise re-reads the repo and redoes the last hour.
27
+
28
+ ## Steps
29
+ 1. State the next concrete step.
30
+ 2. Name files touched and tests still red.
31
+ 3. Record a decision with connore log when one was made.
32
+ 4. Run connore handoff with one sentence.
33
+
34
+ ## Done when
35
+ A fresh session can take the next step without asking what happened.
36
+
37
+ ## Example
38
+ Next: the refund handler still skips the role check. Test refunds-auth is red.
39
+
40
+ ## Common mistakes
41
+ A note that says looked at billing. Resuming by refactoring instead of reading the note.
42
+
43
+ ## Sources
44
+ Connore pack. The command is connore handoff.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Spec to plan
3
+ type: workflow
4
+ tags: [plan]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a spec exists and the work is more than one step.
9
+ ---
10
+
11
+ # Spec to plan
12
+
13
+ ## Use when
14
+ You are about to build from a written spec.
15
+
16
+ ## Default
17
+ Turn the spec into a connore plan from the matching blueprint. Do the open phase only.
18
+
19
+ ## Use instead when
20
+ The spec is one check. Just do that check.
21
+
22
+ ## Never
23
+ Never skip a red gate. Never plan a phase the spec marked out of scope.
24
+
25
+ ## Why
26
+ The plan is what stops the agent from jumping to the last screen.
27
+
28
+ ## Steps
29
+ 1. Match the blueprint.
30
+ 2. Run connore plan init if no plan exists.
31
+ 3. Do the next open task.
32
+ 4. Mark it done only when its check passes.
33
+
34
+ ## Done when
35
+ The plan's next step matches the spec, and later phases are still closed.
36
+
37
+ ## Example
38
+ Auth is open. Billing stays closed until that gate is met.
39
+
40
+ ## Common mistakes
41
+ A plan that lists every idea. Marking a task done because the file exists.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: API conventions
3
+ type: api
4
+ tags: [http, json, errors]
5
+ updated: 2026-11-19
6
+ description: Request and error shape used by the Context101 route handlers.
7
+ ---
8
+
9
+
10
+ # API conventions
11
+
12
+ From the route handlers in `src/app/api`.
13
+
14
+ - JSON in, JSON out. A bad body is `400` with `{ "error": "Expected JSON." }`.
15
+ - Validation errors are `400` with `{ "error": "<sentence>" }`. Login failure uses the same shape (`"That email and password do not match."`).
16
+ - Read handlers send `Cache-Control: no-store`.
17
+ - Call `await connection()` from `next/server` before reading cookies or the database in a route.
18
+ - List responses wrap the array: `{ "projects": [...] }`.
19
+ - The engine uses Bearer or `X-Context101-Token`. A missing token is `401`. A disallowed Origin is `403`. Browser CORS echoes the origin only when it is on the allowlist.
20
+
21
+ Do not return stack traces in `error`.
@@ -0,0 +1,20 @@
1
+ ---
2
+ title: Local SQLite architecture
3
+ type: architecture
4
+ tags: [sqlite, next, engine]
5
+ updated: 2026-11-19
6
+ description: How Context101 splits the Next app and the local engine.
7
+ ---
8
+
9
+
10
+ # Local SQLite architecture
11
+
12
+ From Context101. Two processes share one SQLite file.
13
+
14
+ - The Next.js app serves pages and `src/app/api/*`.
15
+ - A local engine (`src/engine`) serves the same data to agents. It checks an API token and an origin allowlist (`src/engine/auth.ts`).
16
+ - App routes call the engine first. If the engine is down they answer from SQLite themselves. `GET /api/projects` does this, and returns 503 only when both fail.
17
+
18
+ SQLite uses `node:sqlite` `DatabaseSync`, `journal_mode = WAL`, and `foreign_keys = ON`. One connection is cached on `globalThis`. The file path comes from `sqlitePath()`.
19
+
20
+ Do not add a hosted database in this pattern. The product is local-first.
@@ -0,0 +1,24 @@
1
+ ---
2
+ title: Session and engine auth
3
+ type: authentication
4
+ tags: [auth, session, scrypt]
5
+ updated: 2026-11-19
6
+ description: Cookie session for the app, and a separate bearer token for the local engine.
7
+ ---
8
+
9
+
10
+ # Session and engine auth
11
+
12
+ Source: `src/lib/accounts.ts` and `src/engine/auth.ts`.
13
+
14
+ ## App session
15
+
16
+ - Email is trimmed and lowercased. It must match a simple `local@domain` pattern and be at most 160 characters. Name is required, trimmed, max 80. Password minimum is 8 characters.
17
+ - Password hash is scrypt, 32 bytes, with a random 16-byte salt, both stored as base64url. Compare with `timingSafeEqual`.
18
+ - Session token is `randomBytes(32)` base64url. Lifetime is 30 days. Cookie name `context101_session`. Flags: httpOnly, sameSite lax, path `/`, secure when `NODE_ENV` is production.
19
+ - One active session per user. Starting a session drops that user's older rows. Logout deletes the row for that token.
20
+ - The JSON user is `{ id, email, name }`. Never send the hash or the salt.
21
+
22
+ ## Engine
23
+
24
+ Separate from the cookie. `Authorization: Bearer <token>` or header `X-Context101-Token` must equal `config.apiToken`. Mutations also require an allowlisted `Origin` when Origin is present.
@@ -0,0 +1,21 @@
1
+ ---
2
+ title: SQLite schema
3
+ type: database
4
+ tags: [sqlite, schema]
5
+ updated: 2026-11-19
6
+ description: Tables created in Context101 src/lib/db.ts.
7
+ ---
8
+
9
+
10
+ # Schema
11
+
12
+ Source: `src/lib/db.ts`. Child tables use `project_id` with `ON DELETE CASCADE` and a `position` column.
13
+
14
+ - `meta` (key, value), `accounts` (id, email unique, name, password_hash, password_salt, created_at), `sessions` (token, user_id, expires_at).
15
+ - `projects`: id, owner_id, name, emoji, created_at, updated_at, workspace_path, use_case, goal, audience, tone, vibe, primary_color, font, toolkit_json, custom_toolkit, token, published_at, starter_applied. Later columns: sources_json, read_sessions, plan.
16
+ - Children: `knowledge_items`, `rules` (text, kind), `skills`, `components`, `reference_images` (data_url, note), `memory_items` (kind, text, created_at).
17
+ - Catalogs: `library_catalog`, `component_catalog`, `skill_catalog`.
18
+ - Activity: `agent_sessions` (tool, file, prompts, edits, summary), `mcp_events` (at, kind, name, project).
19
+ - Also: `help_messages`, `mirrors`, `removed_projects`.
20
+
21
+ Indexes: `projects(token)`, `projects(owner_id)`, `help_messages(user_id, created_at)`.
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Ambient background
3
+ type: component
4
+ tags: [custom, background]
5
+ updated: 2026-11-19
6
+ description: Fixed grid, three drifting orbs, and a noise layer.
7
+ ---
8
+
9
+
10
+ # Ambient background
11
+
12
+ Fixed grid, three drifting orbs, and a noise layer. File: `ambient-background.tsx`.
13
+
14
+ ## Props
15
+
16
+ No props. aria-hidden, pointer-events none, z-index -10. Motion lives in the CSS classes ambient-grid, ambient-orb, ambient-noise.
17
+
18
+ ## When
19
+
20
+ Behind a dark marketing page. It is grayscale in the CSS, not the accent curtain in `design/references/hero-accent-curtain.md`.
21
+
22
+ ## Example
23
+
24
+ ```tsx
25
+ <AmbientBackground />
26
+ ```
@@ -0,0 +1,12 @@
1
+ /** Fixed grayscale backdrop: a masked line grid and slow-drifting light. Transform-only animation, no blur filters. */
2
+ export function AmbientBackground() {
3
+ return (
4
+ <div aria-hidden className="pointer-events-none fixed inset-0 -z-10 overflow-hidden">
5
+ <div className="ambient-grid absolute inset-0" />
6
+ <div className="ambient-orb ambient-orb-a" />
7
+ <div className="ambient-orb ambient-orb-b" />
8
+ <div className="ambient-orb ambient-orb-c" />
9
+ <div className="ambient-noise absolute inset-0" />
10
+ </div>
11
+ )
12
+ }
@@ -0,0 +1,26 @@
1
+ ---
2
+ title: Corner button
3
+ type: component
4
+ tags: [custom, button, outline]
5
+ updated: 2026-11-19
6
+ description: Outline link with four 10px corner brackets.
7
+ ---
8
+
9
+
10
+ # Corner button
11
+
12
+ Outline link with four 10px corner brackets. File: `corner-frame.tsx`.
13
+
14
+ ## Props
15
+
16
+ CornerButton props: href (string), children, className, glow (default false), variant outline or ghost. Height h-11, px-5, text-sm. glow adds .corner-btn-glow (mint ring). Uses next/link.
17
+
18
+ ## When
19
+
20
+ The paired outline buttons in the ruled set, primary and secondary. Not the filled accent button of the solid-accent set.
21
+
22
+ ## Example
23
+
24
+ ```tsx
25
+ <CornerButton href="/signup" glow>Start free</CornerButton>
26
+ ```