Sweeps a scope for residue - the half of a refactor that never got deleted. Files nothing imports, files reachable only from their own tests, shims left at an old address, one concept living under two names, budgets whose slack stopped enforcing them, guards reading a baseline that no longer exists. Reports leads with…
Catch and inspect PostHog and Customer.io calls with analyticssim, haven's product-analytics stand-in. Use when someone says 'haven analytics', 'did the tracking event fire', 'posthog events', 'customer.io identify', 'analyticssim', 'nurturing calls', 'haven sim analytics', 'haven up +analytics', 'what did the app…
Declare a REST route, a tRPC procedure or an SSE/subscription stream on a module: defineRestRouter, defineTrpcRouter, defineTrpcContract, .withInput/.withOutput/.withPermission/.withDocs, /api/ paths (/v1 optional), framework-owned validation (malformedrequest 400 vs validationerror 422), throwing a HandledError, why…
Route a question to the right section of the one architecture record, dev/docs/ARCHITECTURE.md, and to the skill that teaches it. Use before composing a process, writing a module, a contract operation, a repository or any new shape; and when someone says 'what does the architecture say about', 'where in the record'…
Review a diff or a branch range for the architecture drift lint cannot see. Run the scoped linters and the parity check first. Then work a checklist keyed to dev/docs/ARCHITECTURE.md: new Api operations or contract shapes without a ruling, new or cut edges between modules, authorization or audit hand-rolled beside the…
Everything on the Node side of a LangWatch module: composing a process (apps/api, apps/worker, apps/tasks), Server/container/boot, a module's process-half shape, the four-way rule for what a module may demand, declaring REST endpoints and tRPC procedures, the worker role (drain order, eventing pipelines, process…
Write or change a module's browser half (modules/ /browser): a screen, a drawer, a section, a hook, a slice of browser state, a cached read, or a data fetch in the UI. Use when someone says 'add a screen', 'add a drawer', 'where does this component go', 'browser state', 'global UI store', 'defineBrowserModule', 'stale…
Build or theme Chakra UI v3 components, recipes, slot recipes and tokens INSIDE packages/design-system only. Use only when editing files under packages/design-system. Feature code in modules//browser or apps/ui never imports Chakra: use the design-system skill instead.
Review or refactor Chakra UI v3 code INSIDE packages/design-system only. Use only when editing files under packages/design-system. Feature code in modules//browser or apps/ui never imports Chakra: use the design-system skill instead.
Change the ClickHouse schema without breaking the previous release, which keeps serving on the new schema: where the goose migrations live, clickhouse: numbering and the migration-order check for collisions, one owner per file, one statement per StatementBegin block, IF NOT EXISTS / IF EXISTS on every CREATE, ADD…
Write or change a module's contract package (modules/ /contract): the Api interface and moduleApi token, Zod schemas with z.infer, HandledError subclasses and their codes, the tRPC declarations (defineTrpcContract), REST wire schemas, method verbs (get/find/list, ADR-146). Use when someone says 'add an Api operation'…
Take over as coordinator of the current LangWatch drive: read the live state from disk (the lane roster, the newest handover, the shape counters), report it, then work the handover's next action by writing manifests and spawning lanes. Replaces pasting a brief out of a handover document - the state is read, never…
Which component to use, where tokens and colour live, and why nothing but packages/design-system imports Chakra or Emotion. Use when someone says 'which component', 'design system', '@langwatch/design-system', 'import Chakra', '@chakra-ui/react', 'primitives', 'Box/Flex/Button', 'theme', 'token', 'colour', 'hex'…
How the Node side of a dev stack runs without haven, and the backend host: pnpm dev (UI built once, backend reloading), pnpm dev:hmr (adds the Vite ui lane), tools/dev-runtime (api + worker in one Node process), backend reload on a file change, the debounce (quiet window + max wait), ports derived from PORT. Use when…
Event-sourced work on a module's pipeline: definePipeline, commands and events, projections (fold/map), subscribers, peer subscribers (withPeerSubscriber), scheduled process managers (.schedule({ everyMs }).onWake), intents and the outbox, background and periodic work, the worker role vs api vs tasks, at-least-once…
Everything on the browser side of a LangWatch module: createUi and the shell, a module's browser-half layer order (model/behavior/ui), host services vs components (browser-host vs design-system), where shared code goes now that kits are gone (record §3.4), building a new browser module end to end (defineBrowserModule…
Test the GitHub App, repositories, pull requests and webhooks locally with githubsim, haven's GitHub stand-in: install page, installation tokens, scripted 401/403/404/422/429/5xx, signed webhooks, OAuth. Use when someone says 'haven github', 'githubsim', 'haven up +github', 'haven sim github', 'connect GitHub…
Sign in to this worktree's stack as admin or a seeded login with haven browser login --as, which writes a Playwright storage-state file and never prints the password. Use when someone says 'haven auth', 'haven browser login --as', 'sign in as admin', 'log in as a seeded user', 'storage state', 'a signed-in session for…
Drive a signed-in headless browser against this worktree's stack with haven browser: lanes, --as, snapshots, clicks, forms, screenshots, record and replay, with no password handled by the agent. Use when someone says 'haven browser', 'drive the UI', 'open the app in a browser', 'sign in as admin in the browser'…
Reset, reseed, locate and prune a haven stack's databases with haven db, and know which verbs destroy data. Use when someone says 'haven db', 'reset the database', 'drop the database', 'reseed in place', 'db preset', 'demo preset', 'database url', 'connection string for postgres', 'haven db prune', 'haven seed'…
Print a haven stack's resolved environment without leaking a secret, and know where each value comes from: haven env, --reveal, overlay versus the root .env, made-up stack credentials, Stripe key choice, the knobs in haven help env, haven machine limits. Use when someone says 'haven limits', 'haven env', 'what env…
Read a haven stack's own logs, errors, traces, metrics and profiles: haven logs, errors, obs traces, obs query, obs metrics, obs profiles and the status stores and jobs sections, with --agent for plain output. Use when someone says 'haven logs', 'read the api log', 'tail the log', 'haven logs -f', 'haven traces'…
At most 3 mods per repository are shown here, and a mod shipped inside a plugin is left to that plugin's page — the rest are on their repository pages: