connore 0.1.1 → 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 (237) hide show
  1. package/README.md +13 -8
  2. package/package.json +2 -1
  3. package/packs/base/planning/START.md +29 -28
  4. package/packs/base/planning/blueprint-template.md +46 -46
  5. package/packs/base/planning/plan-template.md +46 -45
  6. package/packs/base/rules/anti-patterns.md +19 -16
  7. package/packs/base/rules/code-style.md +19 -16
  8. package/packs/base/rules/dependency-policy.md +19 -16
  9. package/packs/base/rules/error-handling.md +19 -16
  10. package/packs/base/rules/security-audit.md +47 -0
  11. package/packs/base/rules/security-baseline.md +19 -16
  12. package/packs/base/templates/bug-report.md +19 -16
  13. package/packs/base/templates/feature-spec.md +19 -16
  14. package/packs/base/templates/handoff.md +19 -16
  15. package/packs/base/templates/project-brief.md +19 -16
  16. package/packs/base/workflow/code-review.md +19 -16
  17. package/packs/base/workflow/debugging.md +18 -14
  18. package/packs/base/workflow/git-and-commits.md +19 -16
  19. package/packs/base/workflow/idea-to-spec.md +19 -16
  20. package/packs/base/workflow/session-handoff.md +19 -16
  21. package/packs/base/workflow/spec-to-plan.md +19 -16
  22. package/packs/knowledge/backend/api/conventions.md +21 -0
  23. package/packs/knowledge/backend/architecture/local-sqlite.md +20 -0
  24. package/packs/knowledge/backend/authentication/session-and-engine.md +24 -0
  25. package/packs/knowledge/backend/database/schema.md +21 -0
  26. package/packs/knowledge/components/custom/ambient-background.md +26 -0
  27. package/packs/knowledge/components/custom/ambient-background.tsx +12 -0
  28. package/packs/knowledge/components/custom/corner-frame.md +26 -0
  29. package/packs/knowledge/components/custom/corner-frame.tsx +48 -0
  30. package/packs/knowledge/components/custom/cta-button.md +26 -0
  31. package/packs/knowledge/components/custom/cta-button.tsx +10 -0
  32. package/packs/knowledge/components/custom/page-transition.md +26 -0
  33. package/packs/knowledge/components/custom/page-transition.tsx +10 -0
  34. package/packs/knowledge/components/custom/smooth-scroll.md +26 -0
  35. package/packs/knowledge/components/custom/smooth-scroll.tsx +32 -0
  36. package/packs/knowledge/components/motion-effects/README.md +30 -0
  37. package/packs/knowledge/components/ui-primitives/LICENSE +21 -0
  38. package/packs/knowledge/components/ui-primitives/README.md +22 -0
  39. package/packs/knowledge/components/ui-primitives/badge.md +26 -0
  40. package/packs/knowledge/components/ui-primitives/badge.tsx +48 -0
  41. package/packs/knowledge/components/ui-primitives/button.md +27 -0
  42. package/packs/knowledge/components/ui-primitives/button.tsx +66 -0
  43. package/packs/knowledge/components/ui-primitives/card.md +26 -0
  44. package/packs/knowledge/components/ui-primitives/card.tsx +102 -0
  45. package/packs/knowledge/components/ui-primitives/checkbox.md +26 -0
  46. package/packs/knowledge/components/ui-primitives/checkbox.tsx +32 -0
  47. package/packs/knowledge/components/ui-primitives/dialog.md +26 -0
  48. package/packs/knowledge/components/ui-primitives/dialog.tsx +168 -0
  49. package/packs/knowledge/components/ui-primitives/dropdown-menu.md +26 -0
  50. package/packs/knowledge/components/ui-primitives/dropdown-menu.tsx +268 -0
  51. package/packs/knowledge/components/ui-primitives/input.md +27 -0
  52. package/packs/knowledge/components/ui-primitives/input.tsx +18 -0
  53. package/packs/knowledge/components/ui-primitives/label.md +26 -0
  54. package/packs/knowledge/components/ui-primitives/label.tsx +23 -0
  55. package/packs/knowledge/components/ui-primitives/progress.md +26 -0
  56. package/packs/knowledge/components/ui-primitives/progress.tsx +30 -0
  57. package/packs/knowledge/components/ui-primitives/scroll-area.md +26 -0
  58. package/packs/knowledge/components/ui-primitives/scroll-area.tsx +54 -0
  59. package/packs/knowledge/components/ui-primitives/select.md +26 -0
  60. package/packs/knowledge/components/ui-primitives/select.tsx +191 -0
  61. package/packs/knowledge/components/ui-primitives/separator.md +26 -0
  62. package/packs/knowledge/components/ui-primitives/separator.tsx +27 -0
  63. package/packs/knowledge/components/ui-primitives/sonner.md +26 -0
  64. package/packs/knowledge/components/ui-primitives/sonner.tsx +49 -0
  65. package/packs/knowledge/components/ui-primitives/switch.md +26 -0
  66. package/packs/knowledge/components/ui-primitives/switch.tsx +32 -0
  67. package/packs/knowledge/components/ui-primitives/tabs.md +26 -0
  68. package/packs/knowledge/components/ui-primitives/tabs.tsx +89 -0
  69. package/packs/knowledge/components/ui-primitives/textarea.md +26 -0
  70. package/packs/knowledge/components/ui-primitives/textarea.tsx +17 -0
  71. package/packs/knowledge/components/ui-primitives/tooltip.md +26 -0
  72. package/packs/knowledge/components/ui-primitives/tooltip.tsx +56 -0
  73. package/packs/knowledge/design/aesthetics/app-shell.md +41 -0
  74. package/packs/knowledge/design/aesthetics/code-neutral.md +40 -0
  75. package/packs/knowledge/design/aesthetics/match.md +46 -0
  76. package/packs/knowledge/design/aesthetics/ruled-outline.md +40 -0
  77. package/packs/knowledge/design/aesthetics/solid-accent.md +43 -0
  78. package/packs/knowledge/design/animations/motion.md +40 -0
  79. package/packs/knowledge/design/project-style.md +50 -0
  80. package/packs/knowledge/design/references/benefit-card-grid.md +27 -0
  81. package/packs/knowledge/design/references/benefit-card-grid.png +0 -0
  82. package/packs/knowledge/design/references/cta-centered.md +27 -0
  83. package/packs/knowledge/design/references/cta-centered.png +0 -0
  84. package/packs/knowledge/design/references/cta-split-media.md +27 -0
  85. package/packs/knowledge/design/references/cta-split-media.png +0 -0
  86. package/packs/knowledge/design/references/dashboard-overview.md +31 -0
  87. package/packs/knowledge/design/references/dashboard-overview.png +0 -0
  88. package/packs/knowledge/design/references/faq-split-accordion.md +27 -0
  89. package/packs/knowledge/design/references/faq-split-accordion.png +0 -0
  90. package/packs/knowledge/design/references/feature-split-checklist.md +27 -0
  91. package/packs/knowledge/design/references/feature-split-checklist.png +0 -0
  92. package/packs/knowledge/design/references/footer-four-column.md +27 -0
  93. package/packs/knowledge/design/references/footer-four-column.png +0 -0
  94. package/packs/knowledge/design/references/footer-two-column.md +27 -0
  95. package/packs/knowledge/design/references/footer-two-column.png +0 -0
  96. package/packs/knowledge/design/references/hero-accent-curtain.md +27 -0
  97. package/packs/knowledge/design/references/hero-accent-curtain.png +0 -0
  98. package/packs/knowledge/design/references/hero-split-media.md +27 -0
  99. package/packs/knowledge/design/references/hero-split-media.png +0 -0
  100. package/packs/knowledge/design/references/logo-cloud-grid.md +27 -0
  101. package/packs/knowledge/design/references/logo-cloud-grid.png +0 -0
  102. package/packs/knowledge/design/references/logo-row-ruled.md +27 -0
  103. package/packs/knowledge/design/references/logo-row-ruled.png +0 -0
  104. package/packs/knowledge/design/references/pricing-three-card.md +27 -0
  105. package/packs/knowledge/design/references/pricing-three-card.png +0 -0
  106. package/packs/knowledge/design/references/steps-ruled-grid.md +27 -0
  107. package/packs/knowledge/design/references/steps-ruled-grid.png +0 -0
  108. package/packs/knowledge/design/rules.md +35 -0
  109. package/packs/knowledge/design/token-structure.md +46 -0
  110. package/packs/knowledge/design/tokens.md +55 -0
  111. package/packs/knowledge/frontend/README.md +50 -0
  112. package/packs/knowledge/frontend/SOURCES.md +40 -0
  113. package/packs/knowledge/frontend/accessibility/focus-and-dialogs.md +47 -0
  114. package/packs/knowledge/frontend/accessibility/semantics-and-keyboard.md +45 -0
  115. package/packs/knowledge/frontend/accessibility/wcag-targets.md +43 -0
  116. package/packs/knowledge/frontend/architecture/agent-context-files.md +43 -0
  117. package/packs/knowledge/frontend/architecture/app-foundations.md +43 -0
  118. package/packs/knowledge/frontend/architecture/error-handling.md +47 -0
  119. package/packs/knowledge/frontend/architecture/feature-modules.md +49 -0
  120. package/packs/knowledge/frontend/architecture/import-boundaries.md +44 -0
  121. package/packs/knowledge/frontend/architecture/naming.md +43 -0
  122. package/packs/knowledge/frontend/architecture/project-structure.md +48 -0
  123. package/packs/knowledge/frontend/architecture/routing.md +45 -0
  124. package/packs/knowledge/frontend/architecture/security.md +44 -0
  125. package/packs/knowledge/frontend/architecture/typescript.md +44 -0
  126. package/packs/knowledge/frontend/components/composition.md +45 -0
  127. package/packs/knowledge/frontend/components/data-display.md +47 -0
  128. package/packs/knowledge/frontend/components/library-choice.md +45 -0
  129. package/packs/knowledge/frontend/components/variants.md +44 -0
  130. package/packs/knowledge/frontend/forms/form-architecture.md +49 -0
  131. package/packs/knowledge/frontend/forms/multi-step.md +43 -0
  132. package/packs/knowledge/frontend/forms/validation.md +47 -0
  133. package/packs/knowledge/frontend/layout/responsive.md +41 -0
  134. package/packs/knowledge/frontend/page-blueprints/app-shell.md +16 -0
  135. package/packs/knowledge/frontend/page-blueprints/faq-footer.md +22 -0
  136. package/packs/knowledge/frontend/page-blueprints/feature-grid.md +22 -0
  137. package/packs/knowledge/frontend/page-blueprints/pricing.md +16 -0
  138. package/packs/knowledge/frontend/page-blueprints/saas-hero.md +24 -0
  139. package/packs/knowledge/frontend/patterns/dark-marketing.md +18 -0
  140. package/packs/knowledge/frontend/patterns/status-pill.md +19 -0
  141. package/packs/knowledge/frontend/performance/code-splitting.md +47 -0
  142. package/packs/knowledge/frontend/performance/images-and-vitals.md +44 -0
  143. package/packs/knowledge/frontend/performance/rendering.md +40 -0
  144. package/packs/knowledge/frontend/rendering/server-and-client.md +50 -0
  145. package/packs/knowledge/frontend/state/api-layer.md +49 -0
  146. package/packs/knowledge/frontend/state/async-ui-states.md +43 -0
  147. package/packs/knowledge/frontend/state/client-store.md +46 -0
  148. package/packs/knowledge/frontend/state/server-cache.md +42 -0
  149. package/packs/knowledge/frontend/state/state-categories.md +50 -0
  150. package/packs/knowledge/frontend/testing/component-tests.md +44 -0
  151. package/packs/knowledge/frontend/testing/strategy.md +46 -0
  152. package/packs/knowledge/inbox/README.md +14 -0
  153. package/packs/knowledge/workflows/authentication.md +18 -0
  154. package/packs/knowledge/workflows/crud.md +20 -0
  155. package/packs/knowledge/workflows/dashboard.md +22 -0
  156. package/packs/nextjs-fullstack/backend/auth-and-roles.md +19 -16
  157. package/packs/nextjs-fullstack/backend/background-jobs.md +19 -16
  158. package/packs/nextjs-fullstack/backend/caching.md +17 -14
  159. package/packs/nextjs-fullstack/backend/database.md +19 -16
  160. package/packs/nextjs-fullstack/backend/file-uploads.md +19 -16
  161. package/packs/nextjs-fullstack/backend/logging.md +17 -14
  162. package/packs/nextjs-fullstack/backend/migrations.md +17 -14
  163. package/packs/nextjs-fullstack/backend/rate-limiting.md +19 -16
  164. package/packs/nextjs-fullstack/backend/secrets-and-env.md +19 -16
  165. package/packs/nextjs-fullstack/backend/validation.md +19 -16
  166. package/packs/nextjs-fullstack/blueprints/ai-app.md +1 -1
  167. package/packs/nextjs-fullstack/blueprints/internal-tool.md +1 -1
  168. package/packs/nextjs-fullstack/blueprints/saas-app.md +1 -1
  169. package/packs/nextjs-fullstack/build-deploy/ci.md +18 -16
  170. package/packs/nextjs-fullstack/build-deploy/deploy.md +19 -16
  171. package/packs/nextjs-fullstack/build-deploy/monitoring.md +16 -14
  172. package/packs/nextjs-fullstack/build-deploy/performance.md +17 -14
  173. package/packs/nextjs-fullstack/build-deploy/project-structure.md +18 -16
  174. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +20 -16
  175. package/packs/nextjs-fullstack/build-deploy/testing.md +19 -16
  176. package/packs/nextjs-fullstack/evals/README.md +18 -15
  177. package/packs/nextjs-fullstack/examples/golden-app/README.md +18 -16
  178. package/packs/nextjs-fullstack/frontend/accessibility.md +17 -14
  179. package/packs/nextjs-fullstack/frontend/components.md +19 -16
  180. package/packs/nextjs-fullstack/frontend/copy.md +46 -0
  181. package/packs/nextjs-fullstack/frontend/data-fetching.md +46 -0
  182. package/packs/nextjs-fullstack/frontend/forms.md +17 -14
  183. package/packs/nextjs-fullstack/frontend/layout.md +19 -16
  184. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +19 -16
  185. package/packs/nextjs-fullstack/frontend/motion.md +17 -14
  186. package/packs/nextjs-fullstack/frontend/responsive.md +19 -16
  187. package/packs/nextjs-fullstack/frontend/seo.md +20 -16
  188. package/packs/nextjs-fullstack/frontend/tables.md +17 -14
  189. package/packs/nextjs-fullstack/frontend/tokens.md +18 -16
  190. package/packs/nextjs-fullstack/integrations/analytics.md +17 -14
  191. package/packs/nextjs-fullstack/integrations/email.md +17 -14
  192. package/packs/nextjs-fullstack/integrations/llm-apis.md +19 -16
  193. package/packs/nextjs-fullstack/integrations/oauth.md +19 -16
  194. package/packs/nextjs-fullstack/integrations/object-storage.md +19 -16
  195. package/packs/nextjs-fullstack/integrations/payments.md +17 -14
  196. package/packs/nextjs-fullstack/integrations/queues.md +17 -14
  197. package/packs/nextjs-fullstack/integrations/search.md +19 -16
  198. package/packs/nextjs-fullstack/integrations/webhooks.md +17 -14
  199. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +19 -16
  200. package/packs/nextjs-fullstack/playbooks/add-auth.md +19 -16
  201. package/packs/nextjs-fullstack/playbooks/add-crud.md +19 -16
  202. package/packs/nextjs-fullstack/playbooks/add-email.md +19 -16
  203. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +19 -16
  204. package/packs/nextjs-fullstack/playbooks/add-webhook.md +19 -16
  205. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +20 -16
  206. package/plugins/connore/.claude-plugin/plugin.json +10 -0
  207. package/plugins/connore/hooks/hooks.json +16 -0
  208. package/plugins/connore/skills/connore-backend/SKILL.md +32 -0
  209. package/plugins/connore/skills/connore-handoff/SKILL.md +15 -0
  210. package/plugins/connore/skills/connore-routes/SKILL.md +16 -0
  211. package/plugins/connore/skills/connore-validate/SKILL.md +15 -0
  212. package/src/cli.js +110 -21
  213. package/src/commands/doctor.js +2 -0
  214. package/src/commands/edit.js +88 -0
  215. package/src/commands/graph.js +20 -0
  216. package/src/commands/handoff.js +45 -0
  217. package/src/commands/init.js +8 -3
  218. package/src/commands/lint.js +13 -5
  219. package/src/commands/log.js +49 -25
  220. package/src/commands/packs.js +21 -0
  221. package/src/commands/routes.js +13 -0
  222. package/src/commands/search.js +7 -2
  223. package/src/commands/update.js +5 -1
  224. package/src/lib/config.js +67 -64
  225. package/src/lib/graph.js +96 -0
  226. package/src/lib/index.js +88 -72
  227. package/src/lib/lessons.js +173 -173
  228. package/src/lib/lint.js +185 -67
  229. package/src/lib/mutate.js +26 -24
  230. package/src/lib/packs.js +25 -10
  231. package/src/lib/paths.js +1 -1
  232. package/src/lib/prompts.js +66 -0
  233. package/src/lib/report.js +41 -33
  234. package/src/lib/routes.js +59 -0
  235. package/src/lib/run.js +116 -73
  236. package/src/lib/search.js +24 -0
  237. package/src/lib/tokens.js +8 -0
package/README.md CHANGED
@@ -22,24 +22,29 @@ Use a global install before `connore init --hooks`. The Claude Code hook runs `c
22
22
  ## Commands
23
23
 
24
24
  ```
25
- connore init [--tools ...] [--pack frontend] [--hooks] [--dry-run] [--json]
26
- connore add <path> [--type t] [--tags a,b] [--dry-run]
25
+ connore init [--tools ...] [--pack knowledge] [--hooks] [--dry-run] [--json]
26
+ connore add <path> [--type t] [--tags a,b] | edit mine/<f>.md [--text t] | remove mine/<f>.md
27
27
  connore update [--pack name] [--include-drafts] [--dry-run]
28
- connore list | index | hook | lint | doctor | undo | stats
29
- connore log <fix|decision|failure> "text" [--files a,b]
28
+ connore list | index | hook | doctor | undo | stats | packs
29
+ connore lint [--strict] | graph [--include-drafts]
30
+ connore log <decision|fix|failure|note> "text" [--files a,b]
30
31
  connore memory [project|architecture|decision|agent|preferences|task|knowledge] ["text"]
31
32
  connore catalog
32
33
  connore learn [--yes] [--input file]
33
34
  connore review [accept|reject|edit <id>]
34
- connore search "query"
35
+ connore search "query" [--related] | routes | handoff ["note"]
35
36
  connore plan init <blueprint> | status | next | done <task>
36
37
  ```
37
38
 
38
- `init` copies a pack into `.ctx/library/`, writes `.ctx/config.json` and `.ctx/START.md`, and patches instruction files. The default pack is `frontend`. `base` and `nextjs-fullstack` ship beside it. Draft entries stay out of the index unless you pass `--include-drafts`. The source catalog in `packs/base/catalog/` is not copied into a project.
39
+ `init` copies a pack into `.ctx/library/`, writes `.ctx/config.json` and `.ctx/START.md`, and patches instruction files. The default pack is `knowledge` (the curated library, including design references). `frontend`, `base`, and `nextjs-fullstack` ship beside it. Draft entries stay out of the index unless you pass `--include-drafts`. The source catalog in `packs/base/catalog/` is not copied into a project.
39
40
 
40
41
  `connore memory <type> "note"` writes one dated note under `.ctx/memory/`. Empty memory files are not created. `connore catalog` counts notes you add under `.ctx/mine/catalog/`.
41
42
 
42
- `update` makes `library/` match the pack. It never changes `mine/` or `inbox/`. `undo` restores the last run.
43
+ `update` makes `library/` match the pack recorded at init. It never changes `mine/` or `inbox/`. `undo` restores the last run.
44
+
45
+ `lint` checks your entries when `.ctx/` exists and the shipped packs when it does not. Errors exit 1; `--strict` also fails on warnings. `graph` resolves `refs`, markdown links and shared tags, and reports broken references. `log` appends a dated line to `.ctx/mine/journal.md`.
46
+
47
+ Nothing leaves your machine. The CLI makes no network calls; your agent still talks to its own model provider.
43
48
 
44
49
  ## Publish
45
50
 
@@ -50,4 +55,4 @@ npm test
50
55
  npm publish --access public
51
56
  ```
52
57
 
53
- `prepublishOnly` runs the tests again. The tarball is the CLI and `packs/`. The local `.ctx/` screenshot library is not part of the package.
58
+ `prepublishOnly` runs the tests again. The tarball is the CLI, `packs/` (including `knowledge`) and `plugins/connore`. The private provenance note is not part of the package.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connore",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Local context folder for AI coding agents",
5
5
  "license": "MIT",
6
6
  "author": "Abhinay",
@@ -14,6 +14,7 @@
14
14
  "bin/ctxkit.js",
15
15
  "src",
16
16
  "packs",
17
+ "plugins",
17
18
  "LICENSE",
18
19
  "README.md"
19
20
  ],
@@ -1,28 +1,29 @@
1
- ---
2
- title: Start
3
- type: protocol
4
- tags: [planning]
5
- source: library
6
- description: Read this first before any new project or feature.
7
- ---
8
-
9
- # START: read this first for any new project or feature
10
- 1. Classify: state in one sentence what is being built, and pick a blueprint
11
- from .ctx/library/blueprints/. If none fits, say so and use
12
- base/workflow/idea-to-spec.md.
13
- 2. Ask: put at most 5 questions to the user, covering only items the
14
- blueprint marks "confirm with user" (audience, must-have features, auth,
15
- payments, deadline). Never invent business requirements.
16
- 3. Plan: write .ctx/mine/plan.md from the blueprint (phases, tasks,
17
- acceptance criteria, gates, risks), under 150 lines. Show it to the user
18
- and wait for approval.
19
- 4. Execute one phase at a time. For each task, load only the entries the
20
- blueprint lists for it.
21
- 5. Gate: at the end of every phase run its gate. If a gate fails, fix it
22
- before moving on. Never skip or weaken a gate.
23
- 6. Record: tick tasks in plan.md, run `connore log decision`, and note any
24
- deviation from the plan.
25
- 7. Hand off: before a session ends, update "Current state" and "Next step".
26
- Rules: prefer library defaults over improvising. Don't add dependencies or
27
- services that aren't in the plan without asking. Stop and ask before any
28
- irreversible step (deleting data, paid services, production deploys).
1
+ ---
2
+ title: Start
3
+ type: protocol
4
+ tags: [planning]
5
+ source: library
6
+ updated: 2026-11-19
7
+ description: Read this first before any new project or feature.
8
+ ---
9
+
10
+ # START: read this first for any new project or feature
11
+ 1. Classify: state in one sentence what is being built, and pick a blueprint
12
+ from .ctx/library/blueprints/. If none fits, say so and use
13
+ base/workflow/idea-to-spec.md.
14
+ 2. Ask: put at most 5 questions to the user, covering only items the
15
+ blueprint marks "confirm with user" (audience, must-have features, auth,
16
+ payments, deadline). Never invent business requirements.
17
+ 3. Plan: write .ctx/mine/plan.md from the blueprint (phases, tasks,
18
+ acceptance criteria, gates, risks), under 150 lines. Show it to the user
19
+ and wait for approval.
20
+ 4. Execute one phase at a time. For each task, load only the entries the
21
+ blueprint lists for it.
22
+ 5. Gate: at the end of every phase run its gate. If a gate fails, fix it
23
+ before moving on. Never skip or weaken a gate.
24
+ 6. Record: tick tasks in plan.md, run `connore log decision`, and note any
25
+ deviation from the plan.
26
+ 7. Hand off: before a session ends, update "Current state" and "Next step".
27
+ Rules: prefer library defaults over improvising. Don't add dependencies or
28
+ services that aren't in the plan without asking. Stop and ask before any
29
+ irreversible step (deleting data, paid services, production deploys).
@@ -1,46 +1,46 @@
1
- ---
2
- title: Blueprint template
3
- type: blueprint
4
- tags: [planning]
5
- stack: any
6
- status: draft
7
- verified:
8
- description: Copy this shape when adding a product blueprint.
9
- ---
10
-
11
- # Blueprint template
12
-
13
- ## Summary
14
- One sentence. What this product type is.
15
-
16
- ## Capabilities
17
- Must, should, and later. Must is the first release.
18
-
19
- ## Reference architecture
20
- Name the processes and how a request moves.
21
-
22
- ## Data model starter
23
- Name the tables and the column that decides access.
24
-
25
- ## Integrations
26
- Name the jobs. Do not pick a vendor until the user confirms.
27
-
28
- ## Phases
29
-
30
- ### Phase 0: Scope and decisions
31
- - Confirm the user and the one workflow
32
- Acceptance: The answers are written down.
33
- Gate: The user approved the scope in writing.
34
- Entries: .ctx/START.md
35
-
36
- ## Gate
37
- Each phase has a Gate line. Do not open the next phase while it is `[ ]`.
38
-
39
- ## Pitfalls
40
- The usual wrong order for this product type.
41
-
42
- ## Confirm with user
43
- Questions this blueprint must not answer as facts.
44
-
45
- ## Entries to load
46
- Which pack files each phase names.
1
+ ---
2
+ title: Blueprint template
3
+ type: template
4
+ tags: [planning, blueprint]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when adding a new product blueprint.
9
+ ---
10
+
11
+ # Blueprint template
12
+
13
+ ## Use when
14
+ No existing blueprint fits, and the user agreed a new one is needed.
15
+
16
+ ## Default
17
+ Copy the section list from an existing reviewed blueprint. Fill every section with this product's facts. Leave confirm-with-user as questions, not invented answers.
18
+
19
+ ## Use instead when
20
+ An existing blueprint is close. Use it and say what you skipped.
21
+
22
+ ## Never
23
+ Never mark a blueprint reviewed with an empty section. Never invent prices or customers inside it.
24
+
25
+ ## Why
26
+ A thin blueprint sends the next project straight to code.
27
+
28
+ ## Steps
29
+ 1. Write Summary through Entries to load.
30
+ 2. Put the first release in the earliest phase.
31
+ 3. Put a gate that can be checked on each phase.
32
+ 4. Keep later ideas in Later, not in phase 1.
33
+
34
+ ## Done when
35
+ A reader can run the phases without asking what the product is.
36
+
37
+ ## Example
38
+ An internal tool blueprint with no billing phase, because the summary says there is no billing.
39
+
40
+ ## Common mistakes
41
+ A blueprint that is the SaaS one with the title changed.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -1,45 +1,46 @@
1
- ---
2
- title: Plan template
3
- type: template
4
- tags: [planning]
5
- stack: any
6
- status: draft
7
- verified:
8
- description: Shape of .ctx/mine/plan.md. Copy from a blueprint with connore plan init.
9
- ---
10
-
11
- # Plan template
12
-
13
- ## Use when
14
- A blueprint is chosen and the user has not approved a plan yet.
15
-
16
- ## Default
17
- One checkbox per task. Current phase and Next step stay on their own lines.
18
-
19
- ## Use instead when
20
- The work is a single bugfix. Skip the blueprint and write the failing check first.
21
-
22
- ## Never
23
- Never start phase 1 while a phase 0 gate is open.
24
-
25
- ## Why
26
- The next session should resume from Next step, not from a chat log.
27
-
28
- ## Steps
29
- 1. Run `connore plan init <blueprint>`.
30
- 2. Show the plan and wait.
31
- 3. Tick work with `connore plan done <task>`.
32
-
33
- ## Done when
34
- Every gate line is `[x]` and Next step says the plan is complete.
35
-
36
- ## Example
37
- `Current phase: 0. Scope and decisions`
38
-
39
- ## Common mistakes
40
- Checking a later task while an earlier gate is still `[ ]`.
41
-
42
- ## Sources
43
- connore planning protocol.
44
-
45
- License: MIT
1
+ ---
2
+ title: Plan template
3
+ type: template
4
+ tags: [planning, plan]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when you need the shape of a plan and will not run connore plan.
9
+ ---
10
+
11
+ # Plan template
12
+
13
+ ## Use when
14
+ The CLI is unavailable and a plan still has to be written.
15
+
16
+ ## Default
17
+ Each phase has tasks, an acceptance line, and a gate. The next step is one line.
18
+
19
+ ## Use instead when
20
+ The CLI is available. Run connore plan init instead of copying this file.
21
+
22
+ ## Never
23
+ Never leave the next step as continue. Never open every phase at once.
24
+
25
+ ## Why
26
+ A plan with no gate is a list of wishes.
27
+
28
+ ## Steps
29
+ 1. Name the blueprint.
30
+ 2. Write the current phase and the next task.
31
+ 3. Give each phase a check you can run.
32
+ 4. Keep later phases closed.
33
+
34
+ ## Done when
35
+ Someone can tell what to do next and what must be true first.
36
+
37
+ ## Example
38
+ Next: add the session check. Gate: a signed-out request returns 401.
39
+
40
+ ## Common mistakes
41
+ A flat list of features with no order.
42
+
43
+ ## Sources
44
+ Connore pack. Original wording. No vendor text copied.
45
+
46
+ License: MIT
@@ -1,43 +1,46 @@
1
1
  ---
2
- title: Anti Patterns
2
+ title: Anti-patterns
3
3
  type: rule
4
- tags: [rule]
4
+ tags: [rules]
5
5
  stack: any
6
- status: draft
7
- verified:
8
- description: Draft direction for Anti Patterns.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a change is about to repeat a known failure.
9
9
  ---
10
10
 
11
- # Anti Patterns
11
+ # Anti-patterns
12
12
 
13
13
  ## Use when
14
- TODO
14
+ You are choosing a shape for auth, data, or UI.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Prefer the boring path the entries already name. If you are about to do the thing an entry forbids, stop.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The user explicitly asked for the exception and accepted the risk. Record that with connore log.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never copy a secret into the client, trust a role from the browser, or ship a screen with only the happy path.
24
24
 
25
25
  ## Why
26
- TODO
26
+ These are the failures the rest of the pack exists to prevent.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Check the route table for the task.
30
+ 2. Read the Never section of the matching entry.
31
+ 3. If your change matches it, pick the default instead.
32
+ 4. If the user overrides it, log the decision.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ The change does not match a Never line, or the override is logged.
33
36
 
34
37
  ## Example
35
- TODO
38
+ The handler checks the organization instead of trusting the body's org id.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ A new global store for one form. A second auth library for one button.
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: Code Style
2
+ title: Code style
3
3
  type: rule
4
- tags: [rule]
4
+ tags: [style]
5
5
  stack: any
6
- status: draft
7
- verified:
8
- description: Draft direction for Code Style.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when writing code in a project that already has a style.
9
9
  ---
10
10
 
11
- # Code Style
11
+ # Code style
12
12
 
13
13
  ## Use when
14
- TODO
14
+ You are adding code next to existing code.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Match the files around you: names, types, and how errors are returned. Do not reformat unrelated lines.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The project has a formatter. Run it instead of inventing a style.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never reformat a file you did not need to change. Never introduce a second way to do the same thing.
24
24
 
25
25
  ## Why
26
- TODO
26
+ A style drive hides the real diff and causes conflicts.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Read the nearest file of the same kind.
30
+ 2. Name things the way that file names them.
31
+ 3. Keep the diff to the behavior.
32
+ 4. Run the project's formatter if it has one.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ The diff is the behavior, and it looks like the neighboring file.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A new route returns errors the same way api-conventions.md describes, because that is what the folder does.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ Rewriting quotes and wrapping in a bugfix. Adding a new helper beside the one the file uses.
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: Dependency Policy
2
+ title: Dependency policy
3
3
  type: rule
4
- tags: [rule]
4
+ tags: [dependencies]
5
5
  stack: any
6
- status: draft
7
- verified:
8
- description: Draft direction for Dependency Policy.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load before adding a package.
9
9
  ---
10
10
 
11
- # Dependency Policy
11
+ # Dependency policy
12
12
 
13
13
  ## Use when
14
- TODO
14
+ A task seems to need a new library.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Add a dependency only when the standard library or the existing stack cannot do the job. Name it in the change.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ The project already depends on a library that does this. Use that one.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never add a package to save ten lines. Never upgrade the world inside an unrelated fix.
24
24
 
25
25
  ## Why
26
- TODO
26
+ Dependencies are code you did not read, and they stay forever.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Look for an existing dependency first.
30
+ 2. If you add one, pin it the way the project pins others.
31
+ 3. Keep it out of the client if only the server needs it.
32
+ 4. Mention it in the summary.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ The new package is the smallest one that does the job, and the client bundle did not grow by accident.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A date format uses the library the app already has.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ A new UI kit for one badge. A major upgrade inside a copy change.
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: Error Handling
2
+ title: Error handling
3
3
  type: rule
4
- tags: [rule]
4
+ tags: [errors]
5
5
  stack: any
6
- status: draft
7
- verified:
8
- description: Draft direction for Error Handling.
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when a call can fail and the user must be able to continue.
9
9
  ---
10
10
 
11
- # Error Handling
11
+ # Error handling
12
12
 
13
13
  ## Use when
14
- TODO
14
+ A request, a job, or a parse can throw.
15
15
 
16
16
  ## Default
17
- TODO
17
+ Catch at the boundary. Tell the user what to do next. Keep the detail in the log.
18
18
 
19
19
  ## Use instead when
20
- TODO
20
+ A programmer error during development. Let it crash the test. Do not swallow it.
21
21
 
22
22
  ## Never
23
- TODO
23
+ Never catch and continue with an empty success. Never show the user a raw exception string.
24
24
 
25
25
  ## Why
26
- TODO
26
+ A swallowed error looks like the write worked.
27
27
 
28
28
  ## Steps
29
- 1. TODO
29
+ 1. Decide the boundary: the handler, the job runner, or the form.
30
+ 2. Log a stable message and an id, not the user's secret.
31
+ 3. Return a status the caller already branches on.
32
+ 4. Leave the user's input in place.
30
33
 
31
34
  ## Done when
32
- TODO
35
+ A forced failure is visible, logged, and does not report success.
33
36
 
34
37
  ## Example
35
- TODO
38
+ A payment call times out. The order stays unpaid. The user sees a retry, not a receipt.
36
39
 
37
40
  ## Common mistakes
38
- TODO
41
+ An empty catch. A success toast before the response arrives.
39
42
 
40
43
  ## Sources
41
- TODO
44
+ Connore pack.
42
45
 
43
46
  License: MIT
@@ -0,0 +1,47 @@
1
+ ---
2
+ title: Security audit
3
+ type: playbook
4
+ tags: [security, audit]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-07
8
+ description: Load when asked to review a change for security, not to build a feature.
9
+ ---
10
+
11
+ # Security audit
12
+
13
+ ## Use when
14
+ A review, a release, or the user asks what could go wrong.
15
+
16
+ ## Default
17
+ Read the diff. Check auth, tenant filters, secrets, webhook signatures, and anything rendered from a user. Report findings with the file. Do not claim a clean bill beyond what you opened.
18
+
19
+ ## Use instead when
20
+ The user asked to scan with an external product. Follow that product's own steps. Do not imitate it from memory.
21
+
22
+ ## Never
23
+ Never say the app is secure. Never invent a finding to look thorough. Never paste a live secret into the report.
24
+
25
+ ## Why
26
+ A vague pass is worse than a short list of what was actually checked.
27
+
28
+ ## Steps
29
+ 1. List the handlers and jobs the diff touches.
30
+ 2. For each write, confirm the session and the tenant filter.
31
+ 3. Search the diff for keys, tokens, and private urls.
32
+ 4. Confirm webhook routes verify a signature before they write.
33
+ 5. Write the findings as file, risk, and what to change.
34
+
35
+ ## Done when
36
+ The report names what was checked and what was not opened.
37
+
38
+ ## Example
39
+ The billing handler checks the session but the refund handler does not. That is the finding.
40
+
41
+ ## Common mistakes
42
+ A green summary with no files named. Rewriting the feature while reviewing it.
43
+
44
+ ## Sources
45
+ Connore pack. Not a substitute for a dedicated scanner.
46
+
47
+ License: MIT