ワンクリックで
remove-demo-code
// Use when starting a real project from this template. Removes the CRM demo (Contact/Task/Project) cleanly so the repo is a blank slate without breaking guardrails.
// Use when starting a real project from this template. Removes the CRM demo (Contact/Task/Project) cleanly so the repo is a blank slate without breaking guardrails.
| name | remove-demo-code |
| description | Use when starting a real project from this template. Removes the CRM demo (Contact/Task/Project) cleanly so the repo is a blank slate without breaking guardrails. |
When you start a real project, strip the CRM demo (Contact, Task, Project) but keep all the guardrails, agent files, and skills. Total time: ~5 minutes.
npm run db:reset
Wipes the dev DB. Confirm when prompted.
Open prisma/schema.prisma and delete the three demo models (Contact, Task, Project, ProjectMember) and the two enums (TaskStatus, Priority). Keep the datasource and generator blocks. Add your own models.
npm run db:migrate
rm src/shared/schemas/{contact,task,project}.ts
rm src/server/routers/{contact,task,project}.ts
rm src/server/__tests__/contact.router.test.ts
Edit src/shared/schemas/index.ts and src/server/routers/index.ts to remove the deleted exports.
rm src/client/components/{ContactForm,TaskForm,ProjectForm}.tsx
rm src/client/pages/{ContactsPage,TasksPage,ProjectsPage}.tsx
rm src/client/__tests__/ContactForm.test.tsx
Open src/client/App.tsx — remove the demo routes and nav buttons. Open src/client/pages/HomePage.tsx — replace with whatever your app needs (or keep the layout, swap the data).
Edit prisma/seed.ts — delete the contacts/projects/tasks and add your own.
README.md — replace the project description and screenshots with yours.AGENTS.md — update the "Adding a feature" section if your domain is different from CRUD-on-Postgres.package.json — change name and description.npm run typecheck && npm run lint && npm run test:run && npm run build
All four must pass. If any fail, you missed an import — search for Contact, Task, Project.
If you used degit you don't need this. If you cloned, reset:
rm -rf .git
git init
git add .
git commit -m "feat: initial commit"
prisma/schema.prisma replacedappRouter updatedtypecheck, lint, test, build all passUse when adding a new full-stack CRUD resource (e.g. "add a Comments resource"). Walks through Prisma model, Zod schema, tRPC router, and React page in order. Mirrors the patterns already used by Contact/Task/Project.
Use before pushing to a deployed environment (staging or prod). Walks through env vars, migrations, secrets, build, and rollback prep.
Use the first time an agent (or human) opens this repo. Installs deps, prepares the env, validates that the dev environment works, and points the agent at the right files.
Use on every commit. The pre-commit hooks run checks in parallel. If any fail, read ALL errors, fix them in one pass, and retry. NEVER use --no-verify.