This file orients coding agents: what to read first, which docs override others, and how agent-friendly each document is.
Root shortcut: the repo-root ../AGENTS.md file points here. Default verification (below) is the only place that lists post-change commands — keep it aligned with TEST-SPEC.md; do not copy those commands into the root AGENTS.md.
This project vendors selected material from everything-claude-code (MIT). Use it when working here:
| Path (repo root) | When to use |
|---|---|
../.cursor/rules/ |
Always — Cursor loads alwaysApply rules; treat them as baseline engineering expectations. |
../.cursor/skills/ |
When the task matches: bun-runtime, nextjs-turbopack, documentation-lookup, etc. Open the relevant SKILL.md and follow it. |
../agents/ |
When planning, reviewing TypeScript, or other flows those files describe. |
Precedence: GUARDRAILS.md, plan/v1-plan.md, and TEST-SPEC.md override generic upstream guidance for this product (e.g. coverage or E2E gates that are not enforced in CI here yet, or hackathon scope limits).
The editor workspace may still include a sibling checkout of everything-claude-code for diffing or updates—do not merge its whole tree into the app; refresh this repo’s copies only when intentionally syncing.
COMMANDS.md— copy-pastebun run …reference (dev, scan, tests, DB). Read this first when you need to run or verify anything. Lives indocs/with the rest of the agent-oriented docs. 0a.../.cursor/rules/— effective immediately via Cursor; skim so you do not fightalwaysApplyconstraints.../plan/v1-plan.md— implementation checklist, API sketch, data model. Primary execution contract for the hackathon slice.../plan/FEATURES.md— after the plan, read for what this repo already implements vsSPEC.md, plus backlog (gaps, optional polish). Use when mapping product ideas to code or scoping new work.TECHNICAL.md— stack details: Bun as package manager,bun:sqlite/better-sqlite3onCODEPIECE_DB, Bun scanner vs Next.js, env table, who writes Cards vs swipes, local scanning.../plan/PRODUCTION.md— when changing Docker / deploy / rollout (prod image,compose.prod.yml, CI). Not required for core feature work.GUARDRAILS.md— hard constraints (attribution, XSS, no dark patterns). Apply to UI and data you store on Card rows.SPEC.md— product intent and long-term features. Do not implement everything here without checking the plan and FEATURES (see conflicts below).
Unless TEST-SPEC.md or the task explicitly says otherwise, after substantive code changes run from the repo root:
bun test
bun run buildDetails and isolation notes: TEST-SPEC.md.
| Topic | Source of truth |
|---|---|
| What to build for this slice | plan/v1-plan.md + TECHNICAL.md |
| Implemented vs SPEC + backlog | plan/FEATURES.md (shipped behavior, partial areas, deferred work) |
| Matching owners/committers, messaging | Out of scope (in SPEC narrative but deferred in the plan) |
| OAuth | Out of scope — anonymous session only |
| Card ingestion | Bun CLI only; Next.js reads Cards, writes swipes |
| Production Docker / rollout | plan/PRODUCTION.md (v1-plan.md is feature implementation only) |
ECC-derived rules / skills / agents/ |
Apply as above; GUARDRAILS, v1-plan, TEST-SPEC win on conflicts |
If SPEC.md and plan/v1-plan.md disagree on features, follow the plan for this repository and leave extra SPEC items for FEATURES backlog.
COMMANDS.md — fast lookup
- Single table of
package.jsonscripts + minimal env + typicalbunflows. Does not replace TECHNICAL or TEST-SPEC for deep detail.
plan/v1-plan.md — strong
- Ordered checklist, tables, API list, mermaid diagram, explicit in/out of scope.
- Env vars are summarized in
TECHNICAL.md.TARGET_REPOquick default forseed:samples:samples/the-algorithms-typescript/(seesamples/README.md).
plan/FEATURES.md — implementation map + backlog
SPEC.mdstays high level; FEATURES lists what is built, what is only partial relative to the spec, and what is not implemented. Optional polish fromv1-plan.mdis indexed here too. Use with v1-plan for checklist work and with SPEC for product questions.
TECHNICAL.md — strong
- Clear who writes what (Bun vs Next.js), DB choices, scanning rules.
- Gap: No copy-paste schema DDL — entities are described in prose + plan table; agents must translate to migrations.
../plan/PRODUCTION.md — deploy roadmap
- Prod Dockerfile,
compose.prod.yml, CI push, volume backups, scan job pattern. Devdocker-compose.ymlstays in README / TECHNICAL.
GUARDRAILS.md — strong for constraints, weak for tasks
- Excellent as a checklist before shipping (rendering, attribution, no leaderboard of devs).
- Many bullets assume social/matching features you are not building yet; agents should still enforce code display, license/path on cards, and no
dangerouslySetInnerHTMLfor snippets.
SPEC.md — good for intent, risky as sole spec
- Clear user story and mechanics; high level only — no implementation inventory.
- Risk: Describes matching, internal rating system, and “services” broadly — agents may over-implement. Cross-check with
v1-plan.mdandplan/FEATURES.md(what is already built vs backlog).
README.md — index + quick start
- Quick start (scan → dev) and Build and run; TECHNICAL for env; TROUBLESHOOTING for ports, Docker, and scan edge cases.
- Honor
../.cursor/rules/and pull in../.cursor/skills/when the task fits (Bun, Next/Turbopack, doc lookup). - Use
docs/COMMANDS.mdwhen running dev, scan, tests, or db:stats / db:push so flags and env match the repo. - Implement in the order of
plan/v1-plan.mdchecklist. - After each vertical slice, re-read GUARDRAILS for anything touching displayed code or user data.
- Follow Default verification when you change behavior or types.
- When unsure whether a SPEC item is in scope, default to omit unless
v1-plan.mdlists it; confirmplan/FEATURES.mdfor what is already shipped vs backlog.