Skip to main content
linear-rb/Learnings
Total entries
284
Active 30d
247
Stale
12
Avg success rate
91.4%
Tokens saved 30d
8.4M
Memory entries13 of 284 shown
SnippetScopeSourceUsesSuccessLast used
Our codebase uses pnpm workspaces; flag any npm/yarn lockfile additions.
org
manual18496%2h ago
Prefer Result<T, E> over throwing for domain errors in src/billing/**
repo · api
accepted14292%5h ago
Don't suggest moving inline styles to CSS modules — design system uses CSS-in-JS.
path · web/components/**
dismissed108100%1d ago
Test files in **/*.test.ts can use any types and mock private fields.
path · **/*.test.*
manual9698%3h ago
Webhook handlers must derive idempotency keys from event.id + timestamp.
path · src/billing/webhooks.*
accepted7387%1d ago
Database migrations go in db/migrations and use the timestamp_name.sql convention.
repo · api
accepted6494%4h ago
useEffect with empty deps is fine for one-time initialization.
path · web/**
dismissed51100%12h ago
API routes return { data, error } shape; don't suggest throwing.
path · src/api/**
manual4791%8h ago
Old: 'use camelCase for SQL columns' — repo migrated to snake_case 6mo agostale
repo · api
accepted1264%62d ago
Frontend components prefix props with 'on' for callbacks (onChange, onSelect).
path · web/components/**
manual3889%1d ago
Don't suggest adding aria-label to buttons that contain visible text.
org
dismissed34100%2d ago
Prisma schema changes require updating the corresponding zod validators.
repo · api
accepted2986%3d ago
Outdated: 'add explicit return types to all functions' — strict mode now on.stale
org
manual850%78d ago
Live demo· sample data, read-onlyStart free →Exit