Imported from imsanchez/agents-md-skill (
agents-md-workspace/iteration-5/update-existing-with-gotchas/without_skill/outputs/AGENTS.md). Install upstream withnpx skills add imsanchez/agents-md-skill --skill outputs. Copyright stays with the author.
Taskflow
A task management SaaS app.
Architecture
src/routes/— Express route handlerssrc/models/— Prisma models and queriessrc/services/— Business logic layer
Tech stack
TypeScript, Express, Prisma (PostgreSQL), Redis, Vitest
Development
Build
npm run build
Test
npm test
- Always call
redis.quit()in test teardown (e.g.afterAll) — the Redis connection pool fromsrc/services/cache.tsleaks open handles if not explicitly closed, causing vitest to hang indefinitely after tests pass
Database
- The
task_assignmentstable has a PostgreSQL trigger that syncs rows tosearch_index. Direct SQL inserts/updates bypass this trigger — always use Prisma to write totask_assignmentsso the search index stays consistent