Imported from yunniko/care-card-generator (
AGENTS.md). Install upstream withnpx skills add yunniko/care-card-generator. Copyright stays with the author.
care-card-generator — project conventions
Read HANDOVER.md first: current state, decision record, next steps. Goal in GOALS.md (G-001).
Parent initiative in E:\CLAUDE\projects\svc-lab\; company-wide standards in E:\CLAUDE\COMPANY\.
- Stack: Next.js App Router, TypeScript, Tailwind. No database, no auth, no accounts, no uploads — every card is generated client-side from form inputs.
- All sourced safety/care content lives in
lib/candle-care-content.tsandlib/soap-care-content.ts, each with a header comment citing its primary sources and retrieval dates. Don't change a claim without re-checking it — seedocs/domain-reference.mdfor the domain-expert review that found and fixed 2 blocking + 9 caveat-level issues in the first draft (a wax-remaining threshold that ignored container type, an overclaimed soap-safety assurance, several mischaracterized citations). - The "print" flow is
window.print()plus@media printCSS inapp/globals.cssthat hides everything except#care-card-printable— no PDF-generation dependency. Don't add one without a real reason; the browser's own print-to-PDF already covers the use case. - Deliberately not a legal-compliance tool — this is customer-facing care/safety guidance, not
the FDA/CPSC-required label (that's the sibling project
handmade-label-checker). Don't blur that line in new copy. npm install/npm cineed--legacy-peer-deps(a live npm/arborist bug, not specific to this project — seesvc-lab/HANDOVER.md).- Two test layers:
npx vitest run(tests/unit/*.test.ts) andnpx playwright test(tests/e2e/*.spec.ts). Both must pass, plusnpx eslint .andnpm run build, before calling a change done. - See
E:\CLAUDE\COMPANY\INFRASTRUCTURE_DEPLOY.mdfor the redeploy command once live.
This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in node_modules/next/dist/docs/ (resolved from this file's directory; in monorepos the next package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by next dev — verify at node_modules/next/dist/server/lib/generate-agent-files.js. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.