web-build
Installation
SKILL.md
Web build
- Build only what the request needs. Keep an existing project's stack unless asked to change it.
- Before product, naming, or design choices, read
~/ed.mdif present. Only on Ed's personal machine, read~/me.mdif present for project names, paths, lowercase UI text, Svelte runes, Tailwind, fonts, and auth defaults. Else use the user's or team's conventions. - Use SvelteKit, TypeScript, and pnpm. Start new projects with
pnpm dlx sv create <path> --template minimal --types ts --install pnpm. Add prettier, eslint, vitest, playwright, tailwindcss, and the Cloudflare adapter throughpnpm dlx sv add. - Use
@sveltejs/adapter-cloudflarefor Cloudflare hosting. Follow the current SvelteKit Cloudflare setup; use the existing Workers or Pages target when present. - Add Qdrant only when the app needs a database. Keep Qdrant calls and credentials on the server. Use an existing instance when available; follow the current Qdrant docs. Add search by meaning only when the request needs it.
- Keep database access in
src/lib/server/. Keep each business rule in one owning module; routes call it and components display its results. Validate input and check access on the server. - Follow the repo's design system and code rules. Use
creativeandui-uxfor design choices when available. - Keep secrets out of browser code and git. Ignore
.envand.dev.vars. - Reuse a running dev server. If
.logexists, check it before diagnosing server problems and after changes. Run the project's type check, build, and tests relevant to the change. View UI changes with an available browser tool before saying done; preferagent-browserwhen installed. - Ask before deployment or irreversible remote data changes unless already authorized. Commit and push only when requested.