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: Motion sources
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [catalog, motion]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-04
|
|
8
|
+
description: Where to study motion, then record duration and easing.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Motion sources
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A section needs enter, hover, text, or scroll motion.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Record duration and easing in `.ctx/mine/catalog/motion/<name>.md`. Match the project token file if it already has motion values.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The motion is a one-off marketing effect. Still write the duration. Do not add a second library for one effect.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never copy a React Bits, Magic UI, or Motion Primitives component file into the pack.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Agents repeat the last animation they saw. A written duration stops that.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Look at React Bits or Magic UI for the pattern name.
|
|
30
|
+
2. Read Motion docs for the property you will animate.
|
|
31
|
+
3. Use GSAP only when CSS or Motion cannot express the timeline.
|
|
32
|
+
4. Write the duration in milliseconds and the easing curve in the note.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The note states duration, easing, and the source URL.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
`hero-fade.md` says "200ms, ease-out, source: https://reactbits.dev".
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Adding GSAP and Motion for the same fade. Leaving duration as "fast".
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
React Bits, Magic UI, Motion Primitives, Motion, GSAP. Linked only on 2026-12-04. Not vendored.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Starter collection plan
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [catalog, plan]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-04
|
|
8
|
+
description: The first capture targets. Counts live in mine, not in this file.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Starter collection plan
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You are deciding what to capture next.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Run `connore catalog`. Add the next missing note under `.ctx/mine/catalog/<group>/`.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The task is a single screen. Capture that screen only. Do not fill every group first.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never treat the targets as a requirement to download 17 folders of upstream code.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A small set of notes the agent can retrieve beats a large unread dump.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Start with shadcn/ui, Mobbin links, React Bits, Bulletproof React, and the Next.js SaaS starter.
|
|
30
|
+
2. For each one, store your note, not their repo.
|
|
31
|
+
3. On a UI task, load the screenshot twin, the token file, the component note, and the project rule together.
|
|
32
|
+
4. Stop when the current task has those four. Raise the counts later.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
`connore catalog` shows a count for the group you just wrote.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A button task loads `tokens`, `components/button.md`, and the design rules. It does not load the schema notes.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Cloning all five starters before any note exists. Counting a PNG with no markdown twin.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
This plan. Upstream names are linked from the other catalog entries. Not vendored on 2026-12-04.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: UI screenshots
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [catalog, design, screenshots]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-04
|
|
8
|
+
description: Where to capture UI references without copying paid galleries.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# UI screenshots
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You need a layout, dashboard, auth flow, pricing block, or type style.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Save one section per file in `.ctx/inbox/`, write the twin, then move both to `.ctx/mine/catalog/screenshots/`.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
You need a full page. Use `.ctx/mine/catalog/pages/` and still write the twin.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never put a Mobbin, Dribbble, Awwwards, SaaSFrame, or Land-book image in `library/` or in a pack.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Those sites show real product UI. Their terms do not allow you to redistribute the images.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Capture the section, the mobile frame, and the hover state only if you can see it.
|
|
30
|
+
2. In the twin, record the page URL, the section name, and the hex, type, spacing, and radius you can read.
|
|
31
|
+
3. Write "unknown" for anything you cannot see. Do not invent a token.
|
|
32
|
+
4. Run `connore index`.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
`connore search` finds the section, and the twin names the source URL.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
`settings-billing.md` says "source: https://mobbin.com, file stays in mine/, not in the pack."
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A PNG with no twin. A gallery image committed under `packs/`.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Mobbin, Dribbble, Awwwards, SaaSFrame, Land-book. Linked only on 2026-12-04. Not vendored.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Coding rules and agent skills
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [catalog, skills]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-04
|
|
8
|
+
description: Where to read agent instructions, then write a rule this repo will follow.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Coding rules and agent skills
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You want a standing rule for names, tests, security, or review.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Write one rule in `.ctx/mine/catalog/coding-rules/<name>.md` or one skill in `.ctx/mine/catalog/skills/<name>.md`.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The pack already has the rule. Load that file. Do not copy it into mine.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never paste an Awesome list, a Cursor rules repo, or an Anthropic skill file in full.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A rule the agent can open beats a link dump it will not read.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Read AGENTS.md examples, Anthropic's skill format, or a public Cursor rules collection for shape only.
|
|
30
|
+
2. Write the rule as Use when, Default, and Never.
|
|
31
|
+
3. Keep it under 60 lines.
|
|
32
|
+
4. Name the upstream URL if you adapted the idea.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The file states one Default and one Never, with no copied prompt block.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
`errors.md` says "return 400 for a bad field; never return the stack."
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Dropping `awesome-cursorrules` into `.ctx/`. A skill that says "be careful" and nothing else.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
AGENTS.md, Anthropic skills, Awesome Copilot, Awesome Cursor Rules, public AGENTS.md examples. Linked only on 2026-12-04.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Design token sources
|
|
3
|
+
type: doc
|
|
4
|
+
tags: [catalog, design, tokens]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-04
|
|
8
|
+
description: Where to read token structure, then fill the project token file.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Design token sources
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You are filling color, type, spacing, radius, or shadow for this repo.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Write the values in the project token file. Record the source URL in that file. Do not paste a whole theme.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
You only need a palette idea. Save one palette note in `.ctx/mine/catalog/tokens/`.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never invent a hex. Never copy a paid theme file into the pack.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Agents reuse the token file. A second unofficial palette makes the screen drift.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Read the Design Tokens Community Group format before inventing keys.
|
|
30
|
+
2. Take spacing and type scale ideas from Tailwind docs, not the whole default theme.
|
|
31
|
+
3. Take CSS variable names from the shadcn theme docs or Radix Themes docs.
|
|
32
|
+
4. Record the font family from Google Fonts, plus the size you actually use.
|
|
33
|
+
5. Replace each blank value in the project token file with one measured value.
|
|
34
|
+
|
|
35
|
+
## Done when
|
|
36
|
+
The token file has a measured value for every color this screen uses.
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
`accent: #e9762b` in the token file, with the source URL on the following line.
|
|
40
|
+
|
|
41
|
+
## Common mistakes
|
|
42
|
+
Leaving Tailwind's full palette in the repo "for later". Guessing a shadow blur.
|
|
43
|
+
|
|
44
|
+
## Sources
|
|
45
|
+
Design Tokens Community Group, Tailwind CSS, shadcn/ui theme, Radix Themes, Coolors, Google Fonts. Linked only on 2026-12-04.
|
|
46
|
+
|
|
47
|
+
License: MIT
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Start
|
|
3
|
+
type: protocol
|
|
4
|
+
tags: [planning]
|
|
5
|
+
source: library
|
|
6
|
+
updated: 2026-11-19
|
|
7
|
+
description: Read this first before any new project or feature.
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# START: read this first for any new project or feature
|
|
11
|
+
1. Classify: state in one sentence what is being built, and pick a blueprint
|
|
12
|
+
from .ctx/library/blueprints/. If none fits, say so and use
|
|
13
|
+
base/workflow/idea-to-spec.md.
|
|
14
|
+
2. Ask: put at most 5 questions to the user, covering only items the
|
|
15
|
+
blueprint marks "confirm with user" (audience, must-have features, auth,
|
|
16
|
+
payments, deadline). Never invent business requirements.
|
|
17
|
+
3. Plan: write .ctx/mine/plan.md from the blueprint (phases, tasks,
|
|
18
|
+
acceptance criteria, gates, risks), under 150 lines. Show it to the user
|
|
19
|
+
and wait for approval.
|
|
20
|
+
4. Execute one phase at a time. For each task, load only the entries the
|
|
21
|
+
blueprint lists for it.
|
|
22
|
+
5. Gate: at the end of every phase run its gate. If a gate fails, fix it
|
|
23
|
+
before moving on. Never skip or weaken a gate.
|
|
24
|
+
6. Record: tick tasks in plan.md, run `connore log decision`, and note any
|
|
25
|
+
deviation from the plan.
|
|
26
|
+
7. Hand off: before a session ends, update "Current state" and "Next step".
|
|
27
|
+
Rules: prefer library defaults over improvising. Don't add dependencies or
|
|
28
|
+
services that aren't in the plan without asking. Stop and ask before any
|
|
29
|
+
irreversible step (deleting data, paid services, production deploys).
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Blueprint template
|
|
3
|
+
type: template
|
|
4
|
+
tags: [planning, blueprint]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when adding a new product blueprint.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Blueprint template
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
No existing blueprint fits, and the user agreed a new one is needed.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Copy the section list from an existing reviewed blueprint. Fill every section with this product's facts. Leave confirm-with-user as questions, not invented answers.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
An existing blueprint is close. Use it and say what you skipped.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never mark a blueprint reviewed with an empty section. Never invent prices or customers inside it.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A thin blueprint sends the next project straight to code.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Write Summary through Entries to load.
|
|
30
|
+
2. Put the first release in the earliest phase.
|
|
31
|
+
3. Put a gate that can be checked on each phase.
|
|
32
|
+
4. Keep later ideas in Later, not in phase 1.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A reader can run the phases without asking what the product is.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
An internal tool blueprint with no billing phase, because the summary says there is no billing.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A blueprint that is the SaaS one with the title changed.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Plan template
|
|
3
|
+
type: template
|
|
4
|
+
tags: [planning, plan]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when you need the shape of a plan and will not run connore plan.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Plan template
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
The CLI is unavailable and a plan still has to be written.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Each phase has tasks, an acceptance line, and a gate. The next step is one line.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The CLI is available. Run connore plan init instead of copying this file.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never leave the next step as continue. Never open every phase at once.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A plan with no gate is a list of wishes.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Name the blueprint.
|
|
30
|
+
2. Write the current phase and the next task.
|
|
31
|
+
3. Give each phase a check you can run.
|
|
32
|
+
4. Keep later phases closed.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
Someone can tell what to do next and what must be true first.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
Next: add the session check. Gate: a signed-out request returns 401.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A flat list of features with no order.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Anti-patterns
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [rules]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a change is about to repeat a known failure.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Anti-patterns
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You are choosing a shape for auth, data, or UI.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Prefer the boring path the entries already name. If you are about to do the thing an entry forbids, stop.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The user explicitly asked for the exception and accepted the risk. Record that with connore log.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never copy a secret into the client, trust a role from the browser, or ship a screen with only the happy path.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
These are the failures the rest of the pack exists to prevent.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Check the route table for the task.
|
|
30
|
+
2. Read the Never section of the matching entry.
|
|
31
|
+
3. If your change matches it, pick the default instead.
|
|
32
|
+
4. If the user overrides it, log the decision.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The change does not match a Never line, or the override is logged.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
The handler checks the organization instead of trusting the body's org id.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A new global store for one form. A second auth library for one button.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Code style
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [style]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when writing code in a project that already has a style.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Code style
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You are adding code next to existing code.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Match the files around you: names, types, and how errors are returned. Do not reformat unrelated lines.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The project has a formatter. Run it instead of inventing a style.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never reformat a file you did not need to change. Never introduce a second way to do the same thing.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A style drive hides the real diff and causes conflicts.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Read the nearest file of the same kind.
|
|
30
|
+
2. Name things the way that file names them.
|
|
31
|
+
3. Keep the diff to the behavior.
|
|
32
|
+
4. Run the project's formatter if it has one.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The diff is the behavior, and it looks like the neighboring file.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A new route returns errors the same way api-conventions.md describes, because that is what the folder does.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
Rewriting quotes and wrapping in a bugfix. Adding a new helper beside the one the file uses.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Definition of done
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [done, review]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-11-22
|
|
8
|
+
description: Load before calling a change finished.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Definition of done
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
You are about to commit, open a review, or tell the user the task is finished.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Done means the check suite passes, the diff matches the spec, and a decision log exists if you chose between two designs.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The task was a read-only question. Say what you found and skip the suite.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never call a change done because the page looks right and the checks were not run.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A green suite is shared evidence. A screenshot is one person's screen.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Match each spec sentence to a line in the diff or a test name.
|
|
30
|
+
2. Run the project check suite. Fix the first failure before starting a new change.
|
|
31
|
+
3. Read the diff for secrets, debug prints, and files outside the task.
|
|
32
|
+
4. If you chose one approach over another, run `connore log decision` with the reason.
|
|
33
|
+
5. Write the review note as what changed and how it was checked.
|
|
34
|
+
|
|
35
|
+
## Done when
|
|
36
|
+
The suite exits 0, every spec sentence is covered, and no secret is in the diff.
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
A form task is done when the empty, error, and success states are tested and `npm test` exits 0.
|
|
40
|
+
|
|
41
|
+
## Common mistakes
|
|
42
|
+
Marking done after the happy path. Leaving a failing check in a file you did not mean to touch.
|
|
43
|
+
|
|
44
|
+
## Sources
|
|
45
|
+
connore base rules. No vendor text.
|
|
46
|
+
|
|
47
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Dependency policy
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [dependencies]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before adding a package.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Dependency policy
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A task seems to need a new library.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Add a dependency only when the standard library or the existing stack cannot do the job. Name it in the change.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The project already depends on a library that does this. Use that one.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never add a package to save ten lines. Never upgrade the world inside an unrelated fix.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
Dependencies are code you did not read, and they stay forever.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Look for an existing dependency first.
|
|
30
|
+
2. If you add one, pin it the way the project pins others.
|
|
31
|
+
3. Keep it out of the client if only the server needs it.
|
|
32
|
+
4. Mention it in the summary.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The new package is the smallest one that does the job, and the client bundle did not grow by accident.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A date format uses the library the app already has.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A new UI kit for one badge. A major upgrade inside a copy change.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. Original wording. No vendor text copied.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Error handling
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [errors]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when a call can fail and the user must be able to continue.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Error handling
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A request, a job, or a parse can throw.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Catch at the boundary. Tell the user what to do next. Keep the detail in the log.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
A programmer error during development. Let it crash the test. Do not swallow it.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never catch and continue with an empty success. Never show the user a raw exception string.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A swallowed error looks like the write worked.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Decide the boundary: the handler, the job runner, or the form.
|
|
30
|
+
2. Log a stable message and an id, not the user's secret.
|
|
31
|
+
3. Return a status the caller already branches on.
|
|
32
|
+
4. Leave the user's input in place.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
A forced failure is visible, logged, and does not report success.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
A payment call times out. The order stays unpaid. The user sees a retry, not a receipt.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
An empty catch. A success toast before the response arrives.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack.
|
|
45
|
+
|
|
46
|
+
License: MIT
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Security audit
|
|
3
|
+
type: playbook
|
|
4
|
+
tags: [security, audit]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load when asked to review a change for security, not to build a feature.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Security audit
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
A review, a release, or the user asks what could go wrong.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Read the diff. Check auth, tenant filters, secrets, webhook signatures, and anything rendered from a user. Report findings with the file. Do not claim a clean bill beyond what you opened.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
The user asked to scan with an external product. Follow that product's own steps. Do not imitate it from memory.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never say the app is secure. Never invent a finding to look thorough. Never paste a live secret into the report.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
A vague pass is worse than a short list of what was actually checked.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. List the handlers and jobs the diff touches.
|
|
30
|
+
2. For each write, confirm the session and the tenant filter.
|
|
31
|
+
3. Search the diff for keys, tokens, and private urls.
|
|
32
|
+
4. Confirm webhook routes verify a signature before they write.
|
|
33
|
+
5. Write the findings as file, risk, and what to change.
|
|
34
|
+
|
|
35
|
+
## Done when
|
|
36
|
+
The report names what was checked and what was not opened.
|
|
37
|
+
|
|
38
|
+
## Example
|
|
39
|
+
The billing handler checks the session but the refund handler does not. That is the finding.
|
|
40
|
+
|
|
41
|
+
## Common mistakes
|
|
42
|
+
A green summary with no files named. Rewriting the feature while reviewing it.
|
|
43
|
+
|
|
44
|
+
## Sources
|
|
45
|
+
Connore pack. Not a substitute for a dedicated scanner.
|
|
46
|
+
|
|
47
|
+
License: MIT
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Security baseline
|
|
3
|
+
type: rule
|
|
4
|
+
tags: [security]
|
|
5
|
+
stack: any
|
|
6
|
+
status: reviewed
|
|
7
|
+
verified: 2026-12-07
|
|
8
|
+
description: Load before handling a session, a secret, or user content.
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Security baseline
|
|
12
|
+
|
|
13
|
+
## Use when
|
|
14
|
+
Auth, a write, an upload, or anything rendered from a user.
|
|
15
|
+
|
|
16
|
+
## Default
|
|
17
|
+
Secrets stay in the environment. Queries are parameterized. User content is escaped by the framework. Cookies that hold a session are http-only.
|
|
18
|
+
|
|
19
|
+
## Use instead when
|
|
20
|
+
A static page with no input and no session. The baseline is then just do not add a secret to the repo.
|
|
21
|
+
|
|
22
|
+
## Never
|
|
23
|
+
Never commit a real key. Never build SQL or HTML by concatenating user input. Never log a password, a token, or a card number.
|
|
24
|
+
|
|
25
|
+
## Why
|
|
26
|
+
These are the failures that do not show up in the happy-path demo.
|
|
27
|
+
|
|
28
|
+
## Steps
|
|
29
|
+
1. Read secrets from the environment. Keep an example file with placeholders only.
|
|
30
|
+
2. Authorize the write on the server.
|
|
31
|
+
3. Store uploads outside the repo and serve them with a type you chose.
|
|
32
|
+
4. Depend on the framework's escaping. Do not inject raw HTML from a user.
|
|
33
|
+
|
|
34
|
+
## Done when
|
|
35
|
+
The repo has no live secret, and a user cannot read another tenant's row.
|
|
36
|
+
|
|
37
|
+
## Example
|
|
38
|
+
The example env file contains YOUR_KEY_HERE. The real value is only in the host's environment.
|
|
39
|
+
|
|
40
|
+
## Common mistakes
|
|
41
|
+
A token in a client component. A query built with a template string. An upload served back as HTML.
|
|
42
|
+
|
|
43
|
+
## Sources
|
|
44
|
+
Connore pack. This is a baseline, not a penetration test.
|
|
45
|
+
|
|
46
|
+
License: MIT
|