connore 0.1.0 → 0.1.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 (128) hide show
  1. package/README.md +53 -46
  2. package/package.json +35 -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 +28 -0
  20. package/packs/base/planning/blueprint-template.md +46 -0
  21. package/packs/base/planning/plan-template.md +45 -0
  22. package/packs/base/rules/anti-patterns.md +43 -0
  23. package/packs/base/rules/code-style.md +43 -0
  24. package/packs/base/rules/definition-of-done.md +47 -0
  25. package/packs/base/rules/dependency-policy.md +43 -0
  26. package/packs/base/rules/error-handling.md +43 -0
  27. package/packs/base/rules/security-baseline.md +43 -0
  28. package/packs/base/templates/bug-report.md +43 -0
  29. package/packs/base/templates/feature-spec.md +43 -0
  30. package/packs/base/templates/handoff.md +43 -0
  31. package/packs/base/templates/project-brief.md +43 -0
  32. package/packs/base/workflow/build-loop.md +48 -0
  33. package/packs/base/workflow/code-review.md +43 -0
  34. package/packs/base/workflow/debugging.md +43 -0
  35. package/packs/base/workflow/git-and-commits.md +43 -0
  36. package/packs/base/workflow/idea-to-spec.md +43 -0
  37. package/packs/base/workflow/session-handoff.md +43 -0
  38. package/packs/base/workflow/spec-to-plan.md +43 -0
  39. package/packs/nextjs-fullstack/backend/api-conventions.md +48 -0
  40. package/packs/nextjs-fullstack/backend/auth-and-roles.md +43 -0
  41. package/packs/nextjs-fullstack/backend/background-jobs.md +43 -0
  42. package/packs/nextjs-fullstack/backend/caching.md +43 -0
  43. package/packs/nextjs-fullstack/backend/database.md +43 -0
  44. package/packs/nextjs-fullstack/backend/file-uploads.md +43 -0
  45. package/packs/nextjs-fullstack/backend/logging.md +43 -0
  46. package/packs/nextjs-fullstack/backend/migrations.md +43 -0
  47. package/packs/nextjs-fullstack/backend/rate-limiting.md +43 -0
  48. package/packs/nextjs-fullstack/backend/secrets-and-env.md +43 -0
  49. package/packs/nextjs-fullstack/backend/validation.md +43 -0
  50. package/packs/nextjs-fullstack/blueprints/ai-app.md +84 -0
  51. package/packs/nextjs-fullstack/blueprints/internal-tool.md +83 -0
  52. package/packs/nextjs-fullstack/blueprints/saas-app.md +83 -0
  53. package/packs/nextjs-fullstack/build-deploy/ci.md +43 -0
  54. package/packs/nextjs-fullstack/build-deploy/deploy.md +43 -0
  55. package/packs/nextjs-fullstack/build-deploy/monitoring.md +43 -0
  56. package/packs/nextjs-fullstack/build-deploy/performance.md +43 -0
  57. package/packs/nextjs-fullstack/build-deploy/project-structure.md +43 -0
  58. package/packs/nextjs-fullstack/build-deploy/release-checklist.md +43 -0
  59. package/packs/nextjs-fullstack/build-deploy/testing.md +43 -0
  60. package/packs/nextjs-fullstack/evals/README.md +43 -0
  61. package/packs/nextjs-fullstack/examples/golden-app/README.md +43 -0
  62. package/packs/nextjs-fullstack/frontend/accessibility.md +43 -0
  63. package/packs/nextjs-fullstack/frontend/components.md +43 -0
  64. package/packs/nextjs-fullstack/frontend/forms.md +43 -0
  65. package/packs/nextjs-fullstack/frontend/layout.md +43 -0
  66. package/packs/nextjs-fullstack/frontend/loading-empty-error.md +43 -0
  67. package/packs/nextjs-fullstack/frontend/motion.md +43 -0
  68. package/packs/nextjs-fullstack/frontend/responsive.md +43 -0
  69. package/packs/nextjs-fullstack/frontend/seo.md +43 -0
  70. package/packs/nextjs-fullstack/frontend/tables.md +43 -0
  71. package/packs/nextjs-fullstack/frontend/tokens.md +43 -0
  72. package/packs/nextjs-fullstack/integrations/analytics.md +43 -0
  73. package/packs/nextjs-fullstack/integrations/email.md +43 -0
  74. package/packs/nextjs-fullstack/integrations/llm-apis.md +43 -0
  75. package/packs/nextjs-fullstack/integrations/oauth.md +43 -0
  76. package/packs/nextjs-fullstack/integrations/object-storage.md +43 -0
  77. package/packs/nextjs-fullstack/integrations/payments.md +43 -0
  78. package/packs/nextjs-fullstack/integrations/queues.md +43 -0
  79. package/packs/nextjs-fullstack/integrations/search.md +43 -0
  80. package/packs/nextjs-fullstack/integrations/webhooks.md +43 -0
  81. package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +43 -0
  82. package/packs/nextjs-fullstack/playbooks/add-auth.md +43 -0
  83. package/packs/nextjs-fullstack/playbooks/add-billing.md +50 -0
  84. package/packs/nextjs-fullstack/playbooks/add-crud.md +43 -0
  85. package/packs/nextjs-fullstack/playbooks/add-email.md +43 -0
  86. package/packs/nextjs-fullstack/playbooks/add-file-upload.md +43 -0
  87. package/packs/nextjs-fullstack/playbooks/add-webhook.md +43 -0
  88. package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +43 -0
  89. package/src/cli.js +288 -90
  90. package/src/commands/add.js +61 -57
  91. package/src/commands/catalog.js +21 -0
  92. package/src/commands/doctor.js +42 -0
  93. package/src/commands/hook.js +67 -50
  94. package/src/commands/init.js +69 -55
  95. package/src/commands/learn.js +39 -0
  96. package/src/commands/lint.js +5 -0
  97. package/src/commands/list.js +10 -10
  98. package/src/commands/log.js +25 -0
  99. package/src/commands/memory.js +14 -0
  100. package/src/commands/plan.js +41 -0
  101. package/src/commands/reindex.js +8 -8
  102. package/src/commands/review.js +31 -0
  103. package/src/commands/search.js +21 -0
  104. package/src/commands/stats.js +35 -0
  105. package/src/commands/undo.js +7 -0
  106. package/src/commands/update.js +16 -14
  107. package/src/lib/catalog.js +32 -0
  108. package/src/lib/config.js +64 -0
  109. package/src/lib/fs-safe.js +36 -11
  110. package/src/lib/gitlog.js +75 -0
  111. package/src/lib/ignore.js +47 -0
  112. package/src/lib/index.js +27 -12
  113. package/src/lib/lessons.js +173 -0
  114. package/src/lib/lint.js +67 -0
  115. package/src/lib/lock.js +47 -0
  116. package/src/lib/memory.js +49 -0
  117. package/src/lib/mutate.js +24 -0
  118. package/src/lib/packs.js +10 -0
  119. package/src/lib/paths.js +6 -2
  120. package/src/lib/plan.js +156 -0
  121. package/src/lib/pointers.js +3 -3
  122. package/src/lib/provider.js +27 -0
  123. package/src/lib/report.js +20 -4
  124. package/src/lib/run.js +73 -0
  125. package/src/lib/search.js +40 -0
  126. package/src/lib/secrets.js +25 -0
  127. package/src/lib/signals.js +55 -0
  128. package/src/lib/sync.js +20 -12
package/README.md CHANGED
@@ -1,46 +1,53 @@
1
- # connore
2
-
3
- Local context folder for AI coding agents. `.ctx/` is plain markdown and images. The agent reads `INDEX.md` and opens only the rows that match the task.
4
-
5
- The command is `connore`. This package used to be published as `ctxfiles`.
6
-
7
- ## Install
8
-
9
- ```
10
- npm install -g connore
11
- connore init
12
- ```
13
-
14
- Or without installing:
15
-
16
- ```
17
- npx connore init
18
- ```
19
-
20
- Use a global install before `connore init --hooks`. The Claude Code hook runs `connore hook`, which has to be on the PATH.
21
-
22
- ## Commands
23
-
24
- ```
25
- connore init [--tools all|claude,cursor,codex,copilot,windsurf,gemini] [--pack frontend] [--hooks] [--dry-run]
26
- connore add <path> [--type t] [--tags a,b] [--dry-run]
27
- connore update [--pack frontend] [--dry-run]
28
- connore list
29
- connore index [--dry-run]
30
- connore hook
31
- ```
32
-
33
- `init` copies `packs/frontend` into `.ctx/library/`, creates `mine/` and `inbox/`, and patches instruction files. With no tool detected it writes `CLAUDE.md` and `AGENTS.md`.
34
-
35
- `update` makes `library/` match the pack. It never changes `mine/` or `inbox/`.
36
-
37
- ## Publish
38
-
39
- From this repo, after `npm login`:
40
-
41
- ```
42
- npm test
43
- npm publish --access public
44
- ```
45
-
46
- `prepublishOnly` runs the tests again. The tarball is the CLI and `packs/frontend` only. The local `.ctx/` screenshot library is not part of the package.
1
+ # connore
2
+
3
+ Local context folder for AI coding agents. `.ctx/` is plain markdown and images. The agent reads `INDEX.md` and opens only the rows that match the task.
4
+
5
+ The command is `connore`. This package used to be published as `ctxfiles`.
6
+
7
+ ## Install
8
+
9
+ ```
10
+ npm install -g connore
11
+ connore init
12
+ ```
13
+
14
+ Or without installing:
15
+
16
+ ```
17
+ npx connore init
18
+ ```
19
+
20
+ Use a global install before `connore init --hooks`. The Claude Code hook runs `connore hook`, which has to be on the PATH.
21
+
22
+ ## Commands
23
+
24
+ ```
25
+ connore init [--tools ...] [--pack frontend] [--hooks] [--dry-run] [--json]
26
+ connore add <path> [--type t] [--tags a,b] [--dry-run]
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]
30
+ connore memory [project|architecture|decision|agent|preferences|task|knowledge] ["text"]
31
+ connore catalog
32
+ connore learn [--yes] [--input file]
33
+ connore review [accept|reject|edit <id>]
34
+ connore search "query"
35
+ connore plan init <blueprint> | status | next | done <task>
36
+ ```
37
+
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
+
40
+ `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
+ `update` makes `library/` match the pack. It never changes `mine/` or `inbox/`. `undo` restores the last run.
43
+
44
+ ## Publish
45
+
46
+ From this repo, after `npm login`:
47
+
48
+ ```
49
+ npm test
50
+ npm publish --access public
51
+ ```
52
+
53
+ `prepublishOnly` runs the tests again. The tarball is the CLI and `packs/`. The local `.ctx/` screenshot library is not part of the package.
package/package.json CHANGED
@@ -1,33 +1,35 @@
1
- {
2
- "name": "connore",
3
- "version": "0.1.0",
4
- "description": "Local context folder for AI coding agents",
5
- "license": "MIT",
6
- "author": "Abhinay",
7
- "type": "module",
8
- "bin": {
9
- "connore": "./bin/ctxkit.js"
10
- },
11
- "files": [
12
- "bin/ctxkit.js",
13
- "src",
14
- "packs",
15
- "LICENSE",
16
- "README.md"
17
- ],
18
- "engines": {
19
- "node": ">=18"
20
- },
21
- "scripts": {
22
- "test": "node --test",
23
- "prepublishOnly": "node --test"
24
- },
25
- "keywords": [
26
- "ai",
27
- "claude",
28
- "cursor",
29
- "codex",
30
- "context",
31
- "cli"
32
- ]
33
- }
1
+ {
2
+ "name": "connore",
3
+ "version": "0.1.1",
4
+ "description": "Local context folder for AI coding agents",
5
+ "license": "MIT",
6
+ "author": "Abhinay",
7
+ "type": "module",
8
+ "bin": {
9
+ "connore": "./bin/ctxkit.js",
10
+ "ctxfiles": "./bin/ctxkit.js",
11
+ "ctxkit": "./bin/ctxkit.js"
12
+ },
13
+ "files": [
14
+ "bin/ctxkit.js",
15
+ "src",
16
+ "packs",
17
+ "LICENSE",
18
+ "README.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">=18"
22
+ },
23
+ "scripts": {
24
+ "test": "node --test",
25
+ "prepublishOnly": "node --test"
26
+ },
27
+ "keywords": [
28
+ "ai",
29
+ "claude",
30
+ "cursor",
31
+ "codex",
32
+ "context",
33
+ "cli"
34
+ ]
35
+ }
@@ -0,0 +1,32 @@
1
+ # Writing a connore entry
2
+
3
+ An entry is a direction, not a dump of a doc site. Reference says how something works. Direction says what to do here. Evidence is the example that proves the direction.
4
+
5
+ ## Rubric
6
+
7
+ A reviewed entry:
8
+
9
+ - stays under 60 lines
10
+ - uses concrete values (status codes, file paths, commands), not adjectives like "robust" or "simple"
11
+ - has a Default and a Never
12
+ - has `verified: YYYY-MM-DD` for the day the sources were read
13
+ - has a `License:` line
14
+ - has no `TODO` once `status: reviewed`
15
+
16
+ A draft only needs frontmatter: `title`, `type`, `tags`, `stack`, `status: draft`, `verified`, `description`.
17
+
18
+ `connore update` and the index skip `status: draft` unless you pass `--include-drafts`.
19
+
20
+ ## Headings
21
+
22
+ Use when, Default, Use instead when, Never, Why, Steps, Done when, Example, Common mistakes, Sources.
23
+
24
+ ## What not to copy
25
+
26
+ Write the note yourself. Do not paste doc pages, blog posts, or proprietary snippets. Name the source and the date you read it. If you vendor a file, put its license in the next line.
27
+
28
+ Do not pin a package version from memory. If a version matters, check the current docs and set `verified` to that day.
29
+
30
+ ## Review
31
+
32
+ Set `status: reviewed` only after you have read the entry against this rubric and run `connore lint`.
@@ -0,0 +1,24 @@
1
+ ---
2
+ title: Resource catalog
3
+ type: doc
4
+ tags: [catalog]
5
+ source: library
6
+ description: Curated source map. Capture notes locally. Do not vendor galleries or whole repos.
7
+ ---
8
+
9
+ # Resource catalog
10
+
11
+ These notes stay in the package. Init does not copy them into a project, and the index skips `.ctx/library/catalog/` if it is already there.
12
+
13
+ Save captures under `.ctx/mine/catalog/<group>/`. Keep a `.md` twin beside every screenshot or snippet. Run `connore catalog` to see the starter counts.
14
+
15
+ ```
16
+ .ctx/mine/catalog/
17
+ screenshots/ pages/ tokens/ rules/
18
+ components/ motion/ custom/
19
+ golden/ blueprints/ patterns/
20
+ architecture/ schemas/ api/ auth/
21
+ docs/ coding-rules/ skills/
22
+ ```
23
+
24
+ Do not copy Mobbin, Dribbble, Awwwards, SaaSFrame, Land-book, or Tailwind Plus assets into a pack. Link them. For a permissive repo, write your own short note and keep its license and attribution on the next line.
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: API example sources
3
+ type: doc
4
+ tags: [catalog, api]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: What to extract from public APIs without storing credentials.
9
+ ---
10
+
11
+ # API example sources
12
+
13
+ ## Use when
14
+ You are defining a request, an error body, pagination, or a webhook.
15
+
16
+ ## Default
17
+ Write `.ctx/mine/catalog/api/<name>.md` with the method, path, status codes, and one JSON body.
18
+
19
+ ## Use instead when
20
+ The installed pack already has API conventions. Load that file and add only the new route.
21
+
22
+ ## Never
23
+ Never store a Stripe secret, a Postman environment, or a bearer token in the note.
24
+
25
+ ## Why
26
+ Agents copy the last JSON they saw, including sample keys.
27
+
28
+ ## Steps
29
+ 1. Read the OpenAPI spec or the vendor docs for that route.
30
+ 2. Record method, path, 2xx body, and the 4xx body you will return.
31
+ 3. Note pagination as `limit` plus a cursor or an offset, and pick one.
32
+ 4. For webhooks, record the signature header and the event name, not a live secret.
33
+
34
+ ## Done when
35
+ The note has one success body and one error body, and no credential.
36
+
37
+ ## Example
38
+ `create-customer.md` shows `POST /v1/customers` returning 201 `{ "id": "cus_example" }`.
39
+
40
+ ## Common mistakes
41
+ Pasting a Postman collection export. Returning 200 for a failed card charge.
42
+
43
+ ## Sources
44
+ OpenAPI, Postman docs, Stripe API, GitHub REST API, JSONPlaceholder. Linked only on 2026-12-04. No secrets copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Authentication sources
3
+ type: doc
4
+ tags: [catalog, auth]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Which auth flows to study, and the cases the note must cover.
9
+ ---
10
+
11
+ # Authentication sources
12
+
13
+ ## Use when
14
+ You are adding login, OAuth, sessions, roles, or a password reset.
15
+
16
+ ## Default
17
+ Write one flow in `.ctx/mine/catalog/auth/<flow>.md`. Name the library and the session cookie.
18
+
19
+ ## Use instead when
20
+ The pack already has an auth note. Extend the flow there only if you own that file. Otherwise write the mine note.
21
+
22
+ ## Never
23
+ Never store a client secret, a hash, or a real reset token in the note.
24
+
25
+ ## Why
26
+ Auth bugs come from a missing branch: no session, wrong role, expired link.
27
+
28
+ ## Steps
29
+ 1. Read Auth.js, Clerk, Supabase Auth, or Better Auth for the flow you will ship.
30
+ 2. Check the matching OWASP ASVS chapter for the requirement, and cite the section id.
31
+ 3. Cover email login, OAuth, reset, and verification only for the flows you ship.
32
+ 4. Write who can open the route: signed out, member, or admin.
33
+
34
+ ## Done when
35
+ The note lists the cookie name, the 401 case, and the 403 case.
36
+
37
+ ## Example
38
+ `session.md` says "missing cookie returns 401; member opening admin returns 403."
39
+
40
+ ## Common mistakes
41
+ Copying a Clerk dashboard screenshot into the pack. Treating the client role claim as proof.
42
+
43
+ ## Sources
44
+ Auth.js, Clerk, Supabase Auth, Better Auth, OWASP ASVS. Linked only on 2026-12-04. Not vendored.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Backend architecture sources
3
+ type: doc
4
+ tags: [catalog, architecture]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Where to study backend shape, then write a short architecture note.
9
+ ---
10
+
11
+ # Backend architecture sources
12
+
13
+ ## Use when
14
+ You are choosing modules, services, or where a request is handled.
15
+
16
+ ## Default
17
+ Write `.ctx/mine/catalog/architecture/<name>.md` with the folder roles and the request path.
18
+
19
+ ## Use instead when
20
+ The question is only the database. Use a schema note.
21
+
22
+ ## Never
23
+ Never paste a framework tutorial into the pack. Never store a secret from a sample `.env`.
24
+
25
+ ## Why
26
+ The agent needs this repo's boundaries, not a second copy of Nest or FastAPI docs.
27
+
28
+ ## Steps
29
+ 1. Read one public source: Bulletproof React, the T3 stack, Supabase, NestJS, FastAPI, or Hono.
30
+ 2. Record which folder owns HTTP, data, and jobs.
31
+ 3. Name the stack you will actually use in this repo.
32
+ 4. Point at the matching file under `.ctx/library/` if the installed pack already covers it.
33
+
34
+ ## Done when
35
+ The note names the stack, three folders, and the source URL.
36
+
37
+ ## Example
38
+ `hono-api.md` says "routes in src/routes, db in src/db, jobs stay out of the request."
39
+
40
+ ## Common mistakes
41
+ Describing Nest modules for a project that uses route handlers. Copying sample credentials.
42
+
43
+ ## Sources
44
+ Bulletproof React, T3, Supabase, NestJS, FastAPI, Hono. Linked only on 2026-12-04. Not vendored.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Page blueprints
3
+ type: doc
4
+ tags: [catalog, blueprints]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Where to study a full page, then extract its sections.
9
+ ---
10
+
11
+ # Page blueprints
12
+
13
+ ## Use when
14
+ You are shaping a landing page, pricing page, or dashboard shell.
15
+
16
+ ## Default
17
+ Write one note per page in `.ctx/mine/catalog/blueprints/<page>.md` listing its sections in order.
18
+
19
+ ## Use instead when
20
+ You need a whole app, not one page. Use the golden project note instead.
21
+
22
+ ## Never
23
+ Never download a Tailwind Plus file or a Cruip paid template into the repo.
24
+
25
+ ## Why
26
+ A page note tells the agent the section order. The template file is someone else's product.
27
+
28
+ ## Steps
29
+ 1. Open a Vercel template, a public Cruip page, Radix Themes, or 21st.dev.
30
+ 2. List the sections from top to bottom.
31
+ 3. Point each section at a component note or a screenshot twin if you have one.
32
+ 4. Record the template URL and its license.
33
+
34
+ ## Done when
35
+ The note lists every section and the URL it came from.
36
+
37
+ ## Example
38
+ `pricing.md` lists hero, plans, comparison, FAQ, and the template URL.
39
+
40
+ ## Common mistakes
41
+ Saving the whole template repo under `.ctx/`. Mixing three pricing layouts in one note.
42
+
43
+ ## Sources
44
+ Vercel Templates, Cruip, Tailwind Plus, Radix Themes, 21st.dev. Linked only on 2026-12-04. Paid files stay linked.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Component sources
3
+ type: doc
4
+ tags: [catalog, components]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Where to study components, then write your own usage note.
9
+ ---
10
+
11
+ # Component sources
12
+
13
+ ## Use when
14
+ You need a button, form, dialog, or page section and want a known pattern.
15
+
16
+ ## Default
17
+ Write a usage note in `.ctx/mine/catalog/components/<name>.md`. Name the registry URL. Describe props in your own words.
18
+
19
+ ## Use instead when
20
+ The block is animated. Use `.ctx/mine/catalog/motion/` instead.
21
+
22
+ ## Never
23
+ Never paste shadcn, 21st.dev, Aceternity, or Origin UI source into a pack.
24
+
25
+ ## Why
26
+ The agent needs when to use the component. The upstream file is the implementation, and its license stays upstream.
27
+
28
+ ## Steps
29
+ 1. Open the component on shadcn/ui first.
30
+ 2. Check shadcn.io or 21st.dev only if the core registry has no match.
31
+ 3. Record the component name, the URL, and the one case you will use it for.
32
+ 4. Keep attribution if you later vendor a file whose license requires it.
33
+
34
+ ## Done when
35
+ The note has a source URL and a Never line for the variant you will not use.
36
+
37
+ ## Example
38
+ `dialog.md` says "use for a destructive confirm; source: https://ui.shadcn.com".
39
+
40
+ ## Common mistakes
41
+ Vendoring a premium Aceternity block. Skipping the usage note and pasting JSX into chat.
42
+
43
+ ## Sources
44
+ shadcn/ui, shadcn.io, 21st.dev, Aceternity UI, Origin UI. Linked only on 2026-12-04. Not vendored.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Database schema sources
3
+ type: doc
4
+ tags: [catalog, database]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Which schema examples to study, and what to write down.
9
+ ---
10
+
11
+ # Database schema sources
12
+
13
+ ## Use when
14
+ You are adding users, orgs, roles, billing, files, or an audit log.
15
+
16
+ ## Default
17
+ Write one schema note in `.ctx/mine/catalog/schemas/<name>.md` with tables, keys, and relations.
18
+
19
+ ## Use instead when
20
+ You only need the migration command. Load the pack's migrations note if it exists.
21
+
22
+ ## Never
23
+ Never commit a production connection string or a dump from a real database.
24
+
25
+ ## Why
26
+ A named schema stops the agent from inventing a second users table.
27
+
28
+ ## Steps
29
+ 1. Read Prisma docs, a Prisma example, Drizzle docs, or a Supabase schema example.
30
+ 2. Draw the relation in words: one org has many members.
31
+ 3. Include the columns you will query: id, foreign key, and the status field.
32
+ 4. Use DBDiagram only as a sketch. Store the written tables, not only the picture.
33
+
34
+ ## Done when
35
+ The note lists tables, primary keys, and foreign keys for that one area.
36
+
37
+ ## Example
38
+ `billing.md` lists Customer, Subscription, and Invoice, with `customer_id` on the last two.
39
+
40
+ ## Common mistakes
41
+ One file that models the entire SaaS. A screenshot of an ERD with no columns.
42
+
43
+ ## Sources
44
+ Prisma, Prisma examples, Drizzle ORM, Supabase database docs, DBDiagram. Linked only on 2026-12-04.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Versioned documentation
3
+ type: doc
4
+ tags: [catalog, docs]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: Store a docs note with the library version in the filename.
9
+ ---
10
+
11
+ # Versioned documentation
12
+
13
+ ## Use when
14
+ An agent is about to call a framework or a web API.
15
+
16
+ ## Default
17
+ Write `.ctx/mine/catalog/docs/<library>-<version>.md` after you open that version's docs.
18
+
19
+ ## Use instead when
20
+ You only need a project rule, not a framework API. Use a coding-rules note.
21
+
22
+ ## Never
23
+ Never save an undated "Next.js docs" note. Never paste a whole docs page.
24
+
25
+ ## Why
26
+ Agents call APIs that moved. The version in the filename is the check.
27
+
28
+ ## Steps
29
+ 1. Open the docs for the version this repo installs. Context7 or `llms.txt` is fine if it shows that version.
30
+ 2. For Next.js, React, TypeScript, or MDN, record the version or the page date.
31
+ 3. Write the one call you will use, in your own words, plus the URL.
32
+ 4. Replace the note when you upgrade. Do not keep two versions without saying which one this repo uses.
33
+
34
+ ## Done when
35
+ The filename contains the version, and the note contains the URL you read.
36
+
37
+ ## Example
38
+ `nextjs-16.md` describes one Route Handler call and links the v16 docs page.
39
+
40
+ ## Common mistakes
41
+ A note named `nextjs.md` with no version. A copied docs chapter.
42
+
43
+ ## Sources
44
+ Context7, llms.txt, Next.js docs, React docs, TypeScript docs, MDN. Linked only on 2026-12-04. Pages not copied.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: GitHub collections
3
+ type: doc
4
+ tags: [catalog, github]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: How to use GitHub as a source list without importing repositories.
9
+ ---
10
+
11
+ # GitHub collections
12
+
13
+ ## Use when
14
+ You are looking for a component, a SaaS starter, a design system, or an agent skill.
15
+
16
+ ## Default
17
+ Save the repo URL, the license name, and the one pattern you will copy in words.
18
+
19
+ ## Use instead when
20
+ You already have a golden, blueprint, or skill note for that repo. Add the URL there.
21
+
22
+ ## Never
23
+ Never `git clone` a collection into `.ctx/` or `packs/`.
24
+
25
+ ## Why
26
+ GitHub is the index. The note is the part the agent should load.
27
+
28
+ ## Steps
29
+ 1. Search one topic: React components, Next.js, SaaS starters, design systems, awesome lists, or agent skills.
30
+ 2. Open the license file before you quote anything.
31
+ 3. Write at most one pattern, with the repo URL and the SPDX id or license name.
32
+ 4. If the license is not one you can redistribute, link the repo and write the pattern yourself.
33
+
34
+ ## Done when
35
+ The note has a URL, a license name, and no vendored tree.
36
+
37
+ ## Example
38
+ `bulletproof-react.md` lists `src/features` as the folder idea and names the MIT license.
39
+
40
+ ## Common mistakes
41
+ Mirroring an awesome list README into the pack. Skipping the license file.
42
+
43
+ ## Sources
44
+ GitHub topic pages for React, Next.js, SaaS, design systems, awesome lists, and agent skills. Linked only on 2026-12-04.
45
+
46
+ License: MIT
@@ -0,0 +1,46 @@
1
+ ---
2
+ title: Golden projects
3
+ type: doc
4
+ tags: [catalog, golden]
5
+ stack: any
6
+ status: reviewed
7
+ verified: 2026-12-04
8
+ description: What to extract from a reference app without cloning it into .ctx.
9
+ ---
10
+
11
+ # Golden projects
12
+
13
+ ## Use when
14
+ You need to see how a full app splits folders, auth, data, and tests.
15
+
16
+ ## Default
17
+ Write one pattern note in `.ctx/mine/catalog/golden/<project>-<topic>.md`. One topic per file.
18
+
19
+ ## Use instead when
20
+ You only need a single page. Use a blueprint note.
21
+
22
+ ## Never
23
+ Never clone the reference repo into `.ctx/` or into `packs/`.
24
+
25
+ ## Why
26
+ A clone buries the pattern. A short note is what search can return.
27
+
28
+ ## Steps
29
+ 1. Pick one project: Bulletproof React, the Vercel Next.js SaaS starter, Create T3 App, Supabase, Cal.com, or Formbricks.
30
+ 2. Extract one of: folders, components, errors, API calls, auth, queries, tests, or deploy.
31
+ 3. Describe the pattern in your own words and quote no more than the path names.
32
+ 4. Put the repo URL and its license on the Sources line of your note.
33
+
34
+ ## Done when
35
+ The note names the repo, the license, and one concrete path pattern.
36
+
37
+ ## Example
38
+ `t3-queries.md` says "queries live next to the router; repo license on the next line."
39
+
40
+ ## Common mistakes
41
+ Copying Cal.com's app directory in. Covering auth and billing in the same note.
42
+
43
+ ## Sources
44
+ Bulletproof React, Vercel Next.js SaaS Starter, Create T3 App, Supabase, Cal.com, Formbricks. Linked only on 2026-12-04. Not cloned.
45
+
46
+ License: MIT