connore 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -46
- package/package.json +36 -33
- package/packs/CONTRIBUTING.md +32 -0
- package/packs/base/catalog/README.md +24 -0
- package/packs/base/catalog/api.md +46 -0
- package/packs/base/catalog/auth.md +46 -0
- package/packs/base/catalog/backend.md +46 -0
- package/packs/base/catalog/blueprints.md +46 -0
- package/packs/base/catalog/components.md +46 -0
- package/packs/base/catalog/database.md +46 -0
- package/packs/base/catalog/docs.md +46 -0
- package/packs/base/catalog/github.md +46 -0
- package/packs/base/catalog/golden.md +46 -0
- package/packs/base/catalog/motion.md +46 -0
- package/packs/base/catalog/plan.md +46 -0
- package/packs/base/catalog/screenshots.md +46 -0
- package/packs/base/catalog/skills.md +46 -0
- package/packs/base/catalog/tokens.md +47 -0
- package/packs/base/planning/START.md +29 -0
- package/packs/base/planning/blueprint-template.md +46 -0
- package/packs/base/planning/plan-template.md +46 -0
- package/packs/base/rules/anti-patterns.md +46 -0
- package/packs/base/rules/code-style.md +46 -0
- package/packs/base/rules/definition-of-done.md +47 -0
- package/packs/base/rules/dependency-policy.md +46 -0
- package/packs/base/rules/error-handling.md +46 -0
- package/packs/base/rules/security-audit.md +47 -0
- package/packs/base/rules/security-baseline.md +46 -0
- package/packs/base/templates/bug-report.md +46 -0
- package/packs/base/templates/feature-spec.md +46 -0
- package/packs/base/templates/handoff.md +46 -0
- package/packs/base/templates/project-brief.md +46 -0
- package/packs/base/workflow/build-loop.md +48 -0
- package/packs/base/workflow/code-review.md +46 -0
- package/packs/base/workflow/debugging.md +47 -0
- package/packs/base/workflow/git-and-commits.md +46 -0
- package/packs/base/workflow/idea-to-spec.md +46 -0
- package/packs/base/workflow/session-handoff.md +46 -0
- package/packs/base/workflow/spec-to-plan.md +46 -0
- 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/api-conventions.md +48 -0
- package/packs/nextjs-fullstack/backend/auth-and-roles.md +46 -0
- package/packs/nextjs-fullstack/backend/background-jobs.md +46 -0
- package/packs/nextjs-fullstack/backend/caching.md +46 -0
- package/packs/nextjs-fullstack/backend/database.md +46 -0
- package/packs/nextjs-fullstack/backend/file-uploads.md +46 -0
- package/packs/nextjs-fullstack/backend/logging.md +46 -0
- package/packs/nextjs-fullstack/backend/migrations.md +46 -0
- package/packs/nextjs-fullstack/backend/rate-limiting.md +46 -0
- package/packs/nextjs-fullstack/backend/secrets-and-env.md +46 -0
- package/packs/nextjs-fullstack/backend/validation.md +46 -0
- package/packs/nextjs-fullstack/blueprints/ai-app.md +84 -0
- package/packs/nextjs-fullstack/blueprints/internal-tool.md +83 -0
- package/packs/nextjs-fullstack/blueprints/saas-app.md +83 -0
- package/packs/nextjs-fullstack/build-deploy/ci.md +45 -0
- package/packs/nextjs-fullstack/build-deploy/deploy.md +46 -0
- package/packs/nextjs-fullstack/build-deploy/monitoring.md +45 -0
- package/packs/nextjs-fullstack/build-deploy/performance.md +46 -0
- package/packs/nextjs-fullstack/build-deploy/project-structure.md +45 -0
- package/packs/nextjs-fullstack/build-deploy/release-checklist.md +47 -0
- package/packs/nextjs-fullstack/build-deploy/testing.md +46 -0
- package/packs/nextjs-fullstack/evals/README.md +46 -0
- package/packs/nextjs-fullstack/examples/golden-app/README.md +45 -0
- package/packs/nextjs-fullstack/frontend/accessibility.md +46 -0
- package/packs/nextjs-fullstack/frontend/components.md +46 -0
- 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 +46 -0
- package/packs/nextjs-fullstack/frontend/layout.md +46 -0
- package/packs/nextjs-fullstack/frontend/loading-empty-error.md +46 -0
- package/packs/nextjs-fullstack/frontend/motion.md +46 -0
- package/packs/nextjs-fullstack/frontend/responsive.md +46 -0
- package/packs/nextjs-fullstack/frontend/seo.md +47 -0
- package/packs/nextjs-fullstack/frontend/tables.md +46 -0
- package/packs/nextjs-fullstack/frontend/tokens.md +45 -0
- package/packs/nextjs-fullstack/integrations/analytics.md +46 -0
- package/packs/nextjs-fullstack/integrations/email.md +46 -0
- package/packs/nextjs-fullstack/integrations/llm-apis.md +46 -0
- package/packs/nextjs-fullstack/integrations/oauth.md +46 -0
- package/packs/nextjs-fullstack/integrations/object-storage.md +46 -0
- package/packs/nextjs-fullstack/integrations/payments.md +46 -0
- package/packs/nextjs-fullstack/integrations/queues.md +46 -0
- package/packs/nextjs-fullstack/integrations/search.md +46 -0
- package/packs/nextjs-fullstack/integrations/webhooks.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-ai-feature.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-auth.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-billing.md +50 -0
- package/packs/nextjs-fullstack/playbooks/add-crud.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-email.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-file-upload.md +46 -0
- package/packs/nextjs-fullstack/playbooks/add-webhook.md +46 -0
- package/packs/nextjs-fullstack/playbooks/ship-to-prod.md +47 -0
- 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 +377 -90
- package/src/commands/add.js +61 -57
- package/src/commands/catalog.js +21 -0
- package/src/commands/doctor.js +44 -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/hook.js +67 -50
- package/src/commands/init.js +74 -55
- package/src/commands/learn.js +39 -0
- package/src/commands/lint.js +13 -0
- package/src/commands/list.js +10 -10
- package/src/commands/log.js +49 -0
- package/src/commands/memory.js +14 -0
- package/src/commands/packs.js +21 -0
- package/src/commands/plan.js +41 -0
- package/src/commands/reindex.js +8 -8
- package/src/commands/review.js +31 -0
- package/src/commands/routes.js +13 -0
- package/src/commands/search.js +26 -0
- package/src/commands/stats.js +35 -0
- package/src/commands/undo.js +7 -0
- package/src/commands/update.js +20 -14
- package/src/lib/catalog.js +32 -0
- package/src/lib/config.js +67 -0
- package/src/lib/fs-safe.js +36 -11
- package/src/lib/gitlog.js +75 -0
- package/src/lib/graph.js +96 -0
- package/src/lib/ignore.js +47 -0
- package/src/lib/index.js +88 -57
- package/src/lib/lessons.js +173 -0
- package/src/lib/lint.js +185 -0
- package/src/lib/lock.js +47 -0
- package/src/lib/memory.js +49 -0
- package/src/lib/mutate.js +26 -0
- package/src/lib/packs.js +25 -0
- package/src/lib/paths.js +6 -2
- package/src/lib/plan.js +156 -0
- package/src/lib/pointers.js +3 -3
- package/src/lib/prompts.js +66 -0
- package/src/lib/provider.js +27 -0
- package/src/lib/report.js +41 -17
- package/src/lib/routes.js +59 -0
- package/src/lib/run.js +116 -0
- package/src/lib/search.js +64 -0
- package/src/lib/secrets.js +25 -0
- package/src/lib/signals.js +55 -0
- package/src/lib/sync.js +20 -12
- package/src/lib/tokens.js +8 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Payments
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [payments, billing]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before taking money or granting paid access.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Payments
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A checkout, a subscription, or a refund.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
The provider hosts the card form. Your server creates the session and grants access only from a verified webhook. The database holds the status.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
A free product. Do not add a payment dependency.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never handle the card number on your server. Never grant access because the browser said the payment worked. Never invent a price the user did not set.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
The browser return can be forged. The webhook is the record.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Confirm the plans and amounts with the user.
|
|
30
|
+
2. Create the checkout session on the server.
|
|
31
|
+
3. On the webhook, verify the signature and the event id.
|
|
32
|
+
4. Write the subscription status. Read that status for access.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A forged success redirect does not unlock the product. A replayed event does not grant twice.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
The user closes the tab on the success page. Access still turns on when the webhook lands.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Unlocking inside the success page. Storing the card token in your users table.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Vendor choice stays with the user.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Queues
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [jobs, queue]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before moving work out of the request.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Queues
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A task is slow or must retry.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Write the intent row, enqueue its id, and make the worker exit if that id is already done.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The work finishes inside the request. Do not add a queue for show.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never enqueue without an id you can dedupe. Never retry a payment job with no idempotency key.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Retries are how a queue double-sends.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
Running the worker twice leaves one side effect.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A welcome mail job stores the send id and skips the second run.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Passing the whole payload with a secret in the message. A worker that always sends.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Search index
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [search]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding a search box over product data.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Search index
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
Users need to find their own records by text.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Search the tenant's rows only. If a separate index exists, it updates in the same write path and stores no secrets.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
A list of twenty rows. Filter it in the query you already have.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never index another tenant's text into a shared query with no filter. Never index passwords or tokens.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Search is a second copy of the data, and it leaks the same way a query does.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A query from org A cannot return org B's title.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
The box searches project names for the signed-in org only.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A global index with no tenant field. Indexing the whole user row.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Webhooks
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [webhooks]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before a route that receives events from another service.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Webhooks
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
Another system will POST events to you.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Verify the signature against the raw body. Store the event id. Return 2xx only after the work is safe to retry.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
You are calling them. That is a normal request, not a webhook receiver.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never parse and trust the JSON before the signature check. Never return 200 and then fail the write with no retry path.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Anyone can POST to a public url. The signature is the only proof.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A bad signature changes no row. A duplicate event changes no row.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
Two deliveries of the same event id leave one subscription row.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Using the parsed object to rebuild the body for the signature. Doing a slow job before responding, so the sender retries.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a model feature
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [ai]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when the product is about to call a model.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add a model feature
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The user named one job for the model.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
One server call, one cap, and a small eval before the prompt is allowed to change.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The blueprint is not an AI product. Do not add a model to look modern.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never ship the first prompt with no failing case written down. Never hide the cost.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
The feature works once in the demo and drifts after the next edit.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The eval runs, and a signed-out user cannot trigger the call.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A support draft the user can edit before it is sent.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A chat panel with no cap and no record of what was sent.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add auth
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [auth]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when adding sign-in to an app that does not have it.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add auth
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
Private data is about to exist and there is no session yet.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
One sign-in method the user chose. A session cookie that is http-only. Every private handler checks it.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The app is already signed in. Do not add a second auth library.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never roll a password hash by hand. Never store the session in local storage as the authority.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A custom hash is where accounts get lost, and a client-held session is where they get stolen.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A signed-out request to a private route returns 401.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
Visiting /projects with no cookie redirects to sign-in. The projects handler also returns 401.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Protecting the page and not the action. A second user table beside the first.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add billing
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [billing, stripe]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-11-22
|
|
8
|
+
description: Load when adding subscriptions or one-time payments.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add billing
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The product needs a subscription or a one-time charge.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Stripe hosted Checkout. Create prices in the Stripe dashboard, not in the client.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The customer already pays and you are changing the price. Update the subscription on the server.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never trust the browser for plan status. Never store a card number.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Card data stays at Stripe. Webhooks arrive twice and out of order, so access has to follow a row in your database.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Create the product and price in the Stripe dashboard. Keep the price id.
|
|
30
|
+
2. Add a server route that creates a Checkout Session and returns its url.
|
|
31
|
+
3. Add a webhook route. Read the raw body, then verify `Stripe-Signature` with the endpoint secret.
|
|
32
|
+
4. Insert `event.id` under a unique constraint before you change access. On conflict, return 200 and stop.
|
|
33
|
+
5. Also store `data.object.id` and `event.type`. Two event ids can describe one change.
|
|
34
|
+
6. Write subscription status in your database. Read access from that row.
|
|
35
|
+
7. Handle past_due, canceled, and refunded.
|
|
36
|
+
8. Replay events with the Stripe CLI before live mode.
|
|
37
|
+
|
|
38
|
+
## Done when
|
|
39
|
+
A retried webhook does not grant access twice, and a failed payment removes access.
|
|
40
|
+
|
|
41
|
+
## Example
|
|
42
|
+
`checkout.session.completed` sets `subscriptions.status` to `active`. The same `evt_` id changes nothing the second time.
|
|
43
|
+
|
|
44
|
+
## Common mistakes
|
|
45
|
+
Calling `request.json()` before signature verification. Using `event.created` as the idempotency key.
|
|
46
|
+
|
|
47
|
+
## Sources
|
|
48
|
+
Stripe docs, "Receive Stripe events" and "Fulfill orders", read 2026-11-22.
|
|
49
|
+
|
|
50
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a record flow
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [crud]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when adding create, read, update, and delete for one table.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add a record flow
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
One tenant-owned table needs a full flow.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Server checks the session and the organization on every verb. The screen has loading, empty, and error.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The table is a log you only append. Skip update and delete until the user asks.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never delete by id without the organization filter. Never build the four screens before the read works.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A create that does not scope the row is how the next user's data appears in the list.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
One real row can be created and read back, and another org gets 404.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
Projects list is empty until create. Delete removes the row only for the owning org.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Four routes that trust the body's organization id. A list with no empty state.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add email
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [email]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a product event should send one mail.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add email
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The user named an event that needs mail.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
One template, one send after the write commits, sent from the server.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The event is already mailed. Add a line to that template instead of a new provider.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never send from the browser. Never include a password.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Mail is the path that leaks secrets and double-sends.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The event sends one mail, and a failed provider does not show a success state.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A receipt mail goes out after the subscription row is active, not when the browser hits the success url.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Two providers sending the same event. A template that dumps the whole user row.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a file upload
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [files, upload]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a user must send a file.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add a file upload
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The product stores a file the user picked.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Check the type and the size the user agreed to. Store the bytes outside the repo. Keep the owner on the row.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The file is generated by the server, not uploaded. Use the storage note without an upload form.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never accept any type and serve it back as HTML. Never store the file in the git repo.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
An upload that is served inline is a script.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A disallowed type is rejected, and another user cannot download the file.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A png under the size cap is stored and shown to the owner.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Trusting the browser's file type only. Putting uploads in public/.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Add a webhook
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [webhooks]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when another service will POST events to this app.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Add a webhook
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A provider must notify you of a payment, a message, or a change.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
One route, a signature check on the raw body, and an event-id dedupe.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
You only need to call them. Use a normal server request.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never skip the signature check in development and leave it skipped. Never apply the side effect before storing the event id.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
The url is public. Retries are normal.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A replay does not double-apply. A bad signature writes nothing.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
invoice.paid twice creates one subscription status change.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Trusting a query parameter as the signature. Doing the work and then crashing before the id is stored.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Ship to production
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [release]
|
|
5
|
+
stack: nextjs
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a reviewed branch is ready for the real host.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Ship to production
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The user has asked to deploy.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Run the release checklist, deploy, then watch. Do not expand the scope on the way out.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The change is not ready. Say which gate is open. Do not deploy to see what happens.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never deploy with a failing suite. Never run a manual SQL fix instead of a migration.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Production is where a skipped check becomes the user's outage.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
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.
|
|
34
|
+
|
|
35
|
+
## Done when
|
|
36
|
+
The user knows the version, how to roll back, and that the smoke path worked.
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
After deploy, creating a project in production returns the new row and the error log stays quiet for that request.
|
|
40
|
+
|
|
41
|
+
## Common mistakes
|
|
42
|
+
Deploying a different commit than the one tested. Skipping the smoke check because CI was green.
|
|
43
|
+
|
|
44
|
+
## Sources
|
|
45
|
+
Connore pack.
|
|
46
|
+
|
|
47
|
+
License: MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "connore",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Local context layer. Loads the .ctx index, the task route, and the session handoff into Claude Code.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Abhinay"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"keywords": ["context", "connore", "agents"]
|
|
10
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: connore-backend
|
|
3
|
+
description: Use when working in a project that has a .ctx folder, or when asked what connore runs locally. Covers the content library, the folder layout, the commands and the tool connectors. There is no server.
|
|
4
|
+
allowed-tools: [Read, Bash]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Connore backend
|
|
8
|
+
|
|
9
|
+
Everything runs on the user's machine. Do not look for an API.
|
|
10
|
+
|
|
11
|
+
## Four parts
|
|
12
|
+
|
|
13
|
+
1. Content is the markdown under `.ctx/library/` and `.ctx/mine/`.
|
|
14
|
+
2. Structure is `INDEX.md`, `routes.md`, `PROCESS.md`, `mine/`, `inbox/`, `vault/`.
|
|
15
|
+
3. Engine is the `connore` command.
|
|
16
|
+
4. Connectors are the pointer files and the SessionStart hook.
|
|
17
|
+
|
|
18
|
+
## Order
|
|
19
|
+
|
|
20
|
+
1. Read `.ctx/routes.md` and open only the task that matches the work. Leave the Skip areas closed.
|
|
21
|
+
2. Read `.ctx/INDEX.md` and open the rows that task names.
|
|
22
|
+
3. Prefer `.ctx/mine/` over `.ctx/library/` when both cover the same decision.
|
|
23
|
+
4. Never open `.ctx/vault/`. It is raw and unindexed.
|
|
24
|
+
|
|
25
|
+
## Commands
|
|
26
|
+
|
|
27
|
+
- `connore search "query" --related` finds entries and the ones they link to.
|
|
28
|
+
- `connore routes` rebuilds the task table after the library changes.
|
|
29
|
+
- `connore handoff "note"` writes where the session stopped.
|
|
30
|
+
- `connore doctor`, `connore lint` and `connore graph` check the setup.
|
|
31
|
+
|
|
32
|
+
`connore` must be on the PATH. The hook runs `connore hook`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: connore-handoff
|
|
3
|
+
description: Use at the end of a session, or when the user asks to resume, hand off, or record where the work stopped.
|
|
4
|
+
allowed-tools: [Read, Bash]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Handoff
|
|
8
|
+
|
|
9
|
+
Write the stop point before the session ends.
|
|
10
|
+
|
|
11
|
+
1. Run `connore handoff` with one sentence on what is unfinished.
|
|
12
|
+
2. That writes `.ctx/mine/handoff.md` with the next plan task, the last journal lines, and the note.
|
|
13
|
+
3. On the next session, read that file before writing code.
|
|
14
|
+
|
|
15
|
+
Decisions and failures made during the session belong in `connore log`, not only in the handoff note. The handoff points at them; it does not replace them.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: connore-routes
|
|
3
|
+
description: Use at the start of a coding task to decide which .ctx entries to read and which to skip. Do not load the whole library.
|
|
4
|
+
allowed-tools: [Read, Bash]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Routes
|
|
8
|
+
|
|
9
|
+
`.ctx/routes.md` is the task table. It is generated from the installed library.
|
|
10
|
+
|
|
11
|
+
1. Match the user's task to one heading: frontend and design, backend and architecture, security and quality, integrations, growth and web, or workflow.
|
|
12
|
+
2. Open the files under Read, and only those, plus anything they link.
|
|
13
|
+
3. Do not open a Skip area to be thorough. That is how token use grows without helping.
|
|
14
|
+
4. If the Read list says none installed, say so. Do not invent an entry.
|
|
15
|
+
|
|
16
|
+
Rebuild with `connore routes` after `connore update` or `connore add`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: connore-validate
|
|
3
|
+
description: Use when checking that a .ctx folder is healthy, that entries are valid, or that references resolve. Does not claim a quality score.
|
|
4
|
+
allowed-tools: [Read, Bash]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Validate the layer
|
|
8
|
+
|
|
9
|
+
Three checks, in this order. Report each result. Do not describe a failure as clean.
|
|
10
|
+
|
|
11
|
+
1. `connore doctor` checks the folder, the lock, the vault and the ignore rules.
|
|
12
|
+
2. `connore lint` checks frontmatter, secrets, staleness and broken refs.
|
|
13
|
+
3. `connore graph` lists relationships and entries nothing links to.
|
|
14
|
+
|
|
15
|
+
A clean run means the structure is intact. It does not mean the content made an agent better. That needs a measured comparison, which this skill does not run.
|