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