Instructions & corrections
Things you tell agents again and again, merged across different wordings, with the corrections behind them, where each rule belongs, and whether a hook, lint rule or config setting could enforce it.
Table
| Item | Value |
|---|---|
| scope-control | 333 |
| react-ui | 164 |
| verification | 136 |
| styling-design | 66 |
| communication-style | 58 |
| docs-writing | 45 |
| data-db | 42 |
| typescript-style | 40 |
| git-github | 38 |
| planning | 32 |
| deployment-infra | 29 |
| other | 27 |
| tooling-build | 27 |
| research | 25 |
| orchestration-subagents | 20 |
| mobile | 19 |
Table
| Item | Value |
|---|---|
| misunderstood-request | 214 |
| ignored-instruction | 189 |
| unrequested-changes | 155 |
| wrong-approach | 142 |
| poor-quality-output | 136 |
| claimed-without-verifying | 83 |
| repeated-same-mistake | 47 |
| overcomplicated | 47 |
| stopped-halfway | 45 |
| broke-something | 41 |
| hallucinated | 38 |
| wrong-tool-or-library | 37 |
| slow-or-looping | 24 |
| asked-unnecessary-questions | 23 |
Table
| Period | Do exactly what was asked and nothing e… | When told 'commit all changes', stage e… | When the user asks a question or says '… | Do not run, build, preview, curl or lau… |
|---|---|---|---|---|
| 2025-Q4 | 6 | 0 | 0 | 3 |
| 2026-Q1 | 5 | 0 | 6 | 0 |
| 2026-Q2 | 41 | 10 | 9 | 1 |
| 2026-Q3 | 137 | 243 | 64 | 50 |
| 2026-Q4 | 19 | 92 | 94 | 3 |
Rules: 103 · global 74 · project 14 · folder 15. Restatements are counted with a hand-tuned regex per rule; the estimated precision is in the table.
All rules
Correction topics
| Topic | n | What agents do wrong | What I want |
|---|---|---|---|
| scope-control | 333 | Add unrequested files, features and edits; act on questions; delete or revert user work | Exactly the literal ask; answers for questions |
| react-ui | 164 | Invent new patterns, one big file, wrong component, flicker, rewrite instead of copying references | Reuse siblings and shadcn, split state files, copy references verbatim |
| verification | 136 | Claim done without running checks; run apps when forbidden | Honest evidence-backed status within allowed checks |
| styling-design | 66 | Heavy cards, gradients, green accents, inconsistent radius/padding | Minimal UI matching theme tokens |
| communication-style | 58 | Verbose hedged answers, menus of options, answering a different question | Short direct answers |
| docs-writing | 45 | Wordy, invented details, wrong voice | Concise accurate copy in the right voice |
| data-db | 42 | Run migrations/queries, raw SQL, defaults | Schema edits plus a Postgres command; Drizzle |
| typescript-style | 40 | any/casts, invented types, JSON thinking | Strict inferred library types, classes |
| git-github | 38 | Commit unasked, co-author, new branches, git undo | Commit all on request, no attribution, manual revert |
| planning | 32 | Start before understanding, too many tickets | Confirm then build; lean tickets |
| deployment-infra | 29 | Touch remote resources, hand-set keys | Local-only, Alchemy-derived infra |
| tooling-build | 27 | Wrong tool, node_modules reading, bulk scripts | Project toolchain and docs |
| research | 25 | Guess APIs, invent facts | Current docs, real citations |
| orchestration-subagents | 20 | Wrong models, unrequested subagents, orchestrator implementing | Exact routing, delegation only when asked |
| mobile | 19 | Web instead of native, no real animations | expo-ui, Reanimated, verified |
| effect-ts | 19 | Explicit return types, plain helpers, v3 APIs | Effect v4 native code with inference |
| package-manager | 18 | npm/pip instead of bun/uv | Project package manager and catalog |
| agent-config | 17 | Ignore skills, use forbidden Context7 | Read named skills, obey tool bans |
| environment | 15 | Leave processes and worktrees, wrong tool | Clean up, use named tools |
| security-secrets | 14 | Read .env, leak errors, ask for keys again | Env-only secrets, generic errors |
| naming | 13 | Wrong brand or domain terms | User vocabulary |
| testing | 13 | Unrequested tests, full suites | Targeted tests only when asked |
| performance | 12 | Wasted compute, lost progress | Checkpointed cheap runs |
| pr-workflow | 6 | Wrong PR target, mixed PRs | Linear-linked focused PRs |
| error-handling | 5 | Silent failures | Logged real errors |
Rules by where they belong
Global (all projects, all agents) (74)Project: Resume (1)Project: comp2017 (2)Project: entropy (5)Project: health (3)Project: paper-reader (1)Project: sindhu (1)Project: task-app (1)Folder / kind of code: Alchemy/Cloudflare projects (1)Folder / kind of code: Bun/pnpm monorepos (1)Folder / kind of code: Effect code (3)Folder / kind of code: Expo apps (1)Folder / kind of code: LLM generation scripts (1)Folder / kind of code: Obsidian vault (1)Folder / kind of code: React Native / web client (1)Folder / kind of code: TanStack Router web apps (1)Folder / kind of code: engine code (1)Folder / kind of code: migrations (1)Folder / kind of code: monorepo tsconfig (1)Folder / kind of code: server/API code (1)Folder / kind of code: thesis LaTeX (1)
Global (all projects, all agents)
scope-control
Do exactly what was asked and nothing else: no extra files, features, endpoints, refactors, restyling or edits outside the named file or lines; if something extra seems needed, ask first.
208 restatements in 167 conversations126 corrections enforceable: partlyWhy: Agents added unrequested endpoints, pages, tables, README edits and style changes; this is the single largest correction category (126 unrequested-changes corrections).
Where: global ·
Automatic enforcement (suggestion): Stop hook / review subagent that diffs changed files against files named in the prompt and flags extras; AGENTS.md rule
Do not run shell commands, git or scripts when the task is only to read code and answer or edit files; use read/write/edit tools.
21 restatements in 18 conversations10 corrections enforceable: yesWhy: Agents ran unnecessary commands and asked permission for them, slowing work; the user answered 'COMMAND NOT ALLOWED' dozens of times.
Where: global ·
Automatic enforcement (suggestion): Claude Code permission deny list for Bash in read/edit sessions, or PreToolUse hook allowing only an allowlist of read-only commands
Never create README, markdown reports, tests, examples, scripts or helper files unless asked; delete temporary files when done.
13 restatements in 12 conversations10 corrections enforceable: yesWhy: Agents generated README, test files, spikes folders and scripts nobody asked for.
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook on Write blocking new *.md / *.test.* / scripts/ files unless prompt mentions them
When asked to comment out, hide or disable something, comment it out and keep it disabled; never delete it or re-enable it.
32 restatements in 28 conversations4 corrections enforceable: noWhy: Agents removed code or re-deployed resources that were meant to be commented out.
Where: global ·
Automatic enforcement (suggestion): none
For long implementations keep going until everything is done and verified, including issues you find; do not stop with a 'still open' list or check in midway.
8 restatements in 8 conversations17 corrections enforceable: partlyWhy: Agents stopped halfway with known-limits lists (17 stopped-halfway corrections).
Where: global ·
Automatic enforcement (suggestion): Stop hook that blocks stopping while TodoWrite items are open
Fix the root cause following the officially recommended path; no duct-tape patches, special cases, dependency patches or harness hacks.
6 restatements in 6 conversations8 corrections enforceable: noWhy: Agents patched dependencies, hardened tests or special-cased items instead of fixing the engine or config.
Where: global ·
Automatic enforcement (suggestion): none
Never delete or rewrite files, types or history the user did not mention (e.g. Next.js generated types, local files); a cancelled action must not be retried.
4 restatements in 4 conversations4 corrections enforceable: partlyWhy: Agents deleted user work and generated types repeatedly.
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook blocking rm on tracked files and next-env.d.ts
Stop all work immediately when told to stop and do not revert anything unless asked.
9 restatements in 7 conversations1 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Remove code made obsolete by a change of approach so no unused flags or helpers remain.
3 restatements in 3 conversations1 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): oxlint/knip unused-code check
communication-style
When the user asks a question or says 'just asking', 'talk first', 'no code', 'not a directive' or 'propose', answer in words only and make no edits or commands until told to proceed.
173 restatements in 128 conversations60 corrections enforceable: partlyWhy: Agents treated questions as orders and started editing or reverting code, wasting time and forcing reverts (57 misunderstood-request corrections).
Where: global ·
Automatic enforcement (suggestion): UserPromptSubmit hook that detects 'just asking'/'no code'/'talk first' and injects a reminder that edits are forbidden this turn (or switches to plan mode)
Answer the exact question first, briefly and definitely (yes/no, names, one line when asked), in easy language with a short example; no essays, menus, caveats or apologies.
91 restatements in 76 conversations9 corrections enforceable: noWhy: Verbose hedged answers were ignored and re-asked ('I'm not gonna read such a big response').
Where: global ·
Automatic enforcement (suggestion): none
When told to make the change or fix it, edit the files immediately with no plan restatement, questions or narration.
56 restatements in 49 conversations10 corrections enforceable: noWhy: Agents described plans or asked confirmation after a clear instruction, wasting turns.
Where: global ·
Automatic enforcement (suggestion): none
Make reasonable product and implementation decisions yourself and pitch one recommendation; only ask when a decision substantially changes what gets built or facts are unknowable.
8 restatements in 4 conversations5 corrections enforceable: noWhy: Agents handed menus of options and asked trivial questions ('what should be in the footer').
Where: global · Balanced against r-no-assumptions for business rules.
Automatic enforcement (suggestion): none
When the user is angry, do not apologise, argue or offer recovery menus; do the one concrete thing asked.
4 restatements in 4 conversations3 corrections enforceable: noWhy: Apologies and excuses escalated frustration.
Where: global ·
Automatic enforcement (suggestion): none
Show an ASCII diagram to confirm layout understanding before implementing when asked.
12 restatements in 9 conversations0 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Do not guess unknown business rules, pricing or content; ask before inventing, and check yourself when the answer is findable.
2 restatements in 1 conversations3 corrections enforceable: noWhy: Agents invented pricing models, rules and copy that were wrong.
Where: global ·
Automatic enforcement (suggestion): none
Respond and write code/fixtures in English only.
2 restatements in 2 conversations1 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
git-github
When told 'commit all changes', stage everything including untracked and other people's edits, commit on the current branch and push if asked.
345 restatements in 266 conversations5 corrections enforceable: partlyWhy: Agents committed only their own edits or created a new branch.
Where: global ·
Automatic enforcement (suggestion): Slash command /commit-all running `git add -A && git commit`
Start distinct work on a fresh branch from main (prefixed stvya/ or named after the Linear issue), commit a baseline before risky changes; but work on main when told.
37 restatements in 34 conversations4 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Never add Claude/Codex co-author trailers or attribution in commits; commits are authored as the user.
15 restatements in 13 conversations3 corrections enforceable: yesWhy: Agents kept adding themselves as co-author.
Where: global ·
Automatic enforcement (suggestion): Claude Code settings `includeCoAuthoredBy: false` / attribution setting; commit-msg hook stripping Co-Authored-By
When asked to undo, revert exactly the named scope manually by editing; keep the user's other and uncommitted work; never use git checkout/reset to undo unless asked.
16 restatements in 15 conversations5 corrections enforceable: yesWhy: Agents reverted uncommitted user work or used git reset and lost changes.
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook blocking `git checkout --`, `git reset --hard`, `git restore`, `git clean` (git-guardrails)
Create new GitHub repos as private under the named account (StvyaSharma or res-fortuitae); PRs target the user's fork, never upstream.
10 restatements in 10 conversations2 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): gh alias `gh repo create --private`
When the user limits a commit to certain files, commit only those and follow the repo's existing message style.
3 restatements in 3 conversations2 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Do not commit, push, stash or merge unless asked.
7 restatements in 6 conversations3 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook blocking git commit/push/stash unless prompt contains 'commit'
verification
Do not run, build, preview, curl or launch the app, dev server, browser, Chromium, Argent or simulator unless the user explicitly asks in this session; verify by reading code and static checks.
57 restatements in 46 conversations40 corrections enforceable: yesArgent/T3 preview tools are agent-specificWhy: Agents repeatedly started apps, browsers and Argent against explicit rules, which the user had to forbid in capitals across hundreds of sessions.
Where: global · Repeated across every tool; some projects (backend/infra, later T3 epic work) explicitly want local runs instead, see r-verify-by-running.
Automatic enforcement (suggestion): Claude Code PreToolUse hook on Bash blocking `bun dev|pnpm dev|npm run dev|next dev|expo start|vite|curl localhost`, and deny permissions for mcp__argent__* and browser MCP tools unless an env flag is set; Codex sandbox config
Never claim something is fixed or working without evidence; run the allowed check (typecheck, tests, the script) and state exactly what was and was not verified.
25 restatements in 25 conversations61 corrections enforceable: partlyWhy: Agents said 'done' when tests failed or fixes did not work (61 claimed-without-verifying corrections), so the user stopped trusting reports.
Where: global ·
Automatic enforcement (suggestion): Stop hook that requires a verification section in the final message, or runs `tsc --noEmit` on changed packages before allowing stop
After implementing, re-read the diff and double-check the logic (filters, dates, ids, all call sites) against the requirement and report mismatches honestly.
107 restatements in 84 conversations10 corrections enforceable: partlyWhy: Agents left logic mixups and missed call sites that the user found by asking 'double check'.
Where: global ·
Automatic enforcement (suggestion): Reviewer subagent pass at the end of each task (Claude Code Stop hook launching a review prompt)
Read the referenced files fully (and sibling components, AGENTS.md, the reference given) before answering or editing; never improvise from a partial read.
57 restatements in 47 conversations20 corrections enforceable: partlyWhy: Agents edited from partial reads and contradicted the code, prompting 'did you even read the code'.
Where: global ·
Automatic enforcement (suggestion): AGENTS.md rule; skill that lists files to read first
When the user allows or asks for it (backend, infra, pipelines, later T3 work), verify by actually running the thing locally and show output or screenshots; passing tests alone is not proof.
26 restatements in 23 conversations20 corrections enforceable: partlyT3 device tools / argent for screenshotsWhy: Agents reported progress from test suites or reasoning while the real app, upload or pipeline was broken.
Where: global · Applies when running is permitted; conflicts with r-no-run-app-unless-asked otherwise.
Automatic enforcement (suggestion): Task template/skill requiring screenshot or command output in the final report; T3 device/preview tools
Finish with zero TypeScript errors and keep fixing until the build or typecheck passes when asked to fix errors.
24 restatements in 24 conversations8 corrections enforceable: yesWhy: Agents stopped with remaining tsc errors or speculated without building.
Where: global ·
Automatic enforcement (suggestion): package.json `typecheck` script plus Stop hook running `tsc --noEmit` (or `tsgo`) on the changed package
styling-design
Before UI work read sibling and shared components and match their styling, tokens, radius, padding and max-width exactly; reuse existing components instead of new patterns.
47 restatements in 44 conversations20 corrections enforceable: noWhy: Agents invented new visual patterns that clashed with the app (66 styling corrections).
Where: global ·
Automatic enforcement (suggestion): none
Keep UI minimal, compact and professional: no gradients, shadows, cards, borders, overlays or big fancy fonts unless asked.
25 restatements in 22 conversations10 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Use the app's CSS variables and brand primary; never hard-code colours or default to green accents.
12 restatements in 12 conversations6 corrections enforceable: partlyWhy: Green accents kept appearing instead of practitioner branding.
Where: global ·
Automatic enforcement (suggestion): Lint rule banning raw Tailwind colour classes (e.g. eslint-plugin-tailwindcss / custom grep)
Make every web UI change mobile responsive with no horizontal scroll or clipped edges; check desktop and mobile.
6 restatements in 6 conversations3 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
package-manager
Use the project's package manager and scripts (bun for most TS, pnpm where stated, uv for Python with a project venv); never npm/pip/system python or node_modules/.bin binaries.
28 restatements in 25 conversations18 corrections enforceable: yesWhy: Agents defaulted to npm/pip/python3 against known setup, prompting angry repeats.
Where: global · Specific manager varies per project.
Automatic enforcement (suggestion): PreToolUse hook blocking `npm install|pip install|python3 -m pip` when bun.lock/uv.lock present; packageManager field in package.json
Use the exact versions, packages, model ids and providers the user names; never substitute or change the chosen model while debugging.
4 restatements in 4 conversations5 corrections enforceable: noWhy: Agents swapped TS 7 for 6, @xenova for @huggingface, or a different model.
Where: global ·
Automatic enforcement (suggestion): none
Do not add dependency overrides or hand-write lockfiles; align real versions and let the tool write the lockfile.
2 restatements in 2 conversations1 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): Hook blocking edits to *lock* files; CI check for overrides field
Add min-release-age=7 to .npmrc in pnpm projects.
1 restatements in 1 conversations1 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): Project template .npmrc
typescript-style
Be strictly type-safe: never use any, `as` casts, `as unknown as` or non-null assertions to silence errors; fix the real type or config.
11 restatements in 11 conversations10 corrections enforceable: yesWhy: Agents repeatedly reached for any/casts as workarounds.
Where: global ·
Automatic enforcement (suggestion): oxlint/eslint rules typescript/no-explicit-any, no-unsafe-type-assertion, no-non-null-assertion as errors; PreToolUse hook grepping edits for ': any' and 'as any'
Use types exported by the library or inferred from the schema (typeof, z.infer, Drizzle inference); never invent or redeclare types.
9 restatements in 9 conversations9 corrections enforceable: partlyWhy: Agents created local types that did not match SDKs.
Where: global ·
Automatic enforcement (suggestion): Review checklist; no lint rule
Keep files small and focused with kebab-case names (snake_case for Python), grouped in feature folders; no god files.
8 restatements in 8 conversations4 corrections enforceable: yesWhy: Agents produced 1000-line single files.
Where: global ·
Automatic enforcement (suggestion): oxlint unicorn/filename-case rule; max-lines rule
Put tunable parameters in named, commented constants at the top of the file.
2 restatements in 1 conversations0 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
planning
For non-trivial or ambiguous work, restate understanding or give a plan with no code, and wait for 'proceed' or 'implement' before editing; a bare 'understood' is not enough.
60 restatements in 58 conversations14 corrections enforceable: partlyClaude Code plan modeWhy: Agents started building before understanding the design, then had to undo work.
Where: global ·
Automatic enforcement (suggestion): Plan mode by default for large prompts (Claude Code permission mode `plan`), or UserPromptSubmit hook on 'confirm first'
Linear tickets need acceptance and verification criteria, labels, dependencies and linked sub-issues; group related items and avoid ticket explosion.
13 restatements in 10 conversations3 corrections enforceable: noLinear MCPWhy:
Where: global ·
Automatic enforcement (suggestion): none
Prioritise coding principles: loose coupling, DI, plug-and-play interfaces, classes that keep invariants; no backward-compat effort for undeployed apps.
5 restatements in 4 conversations2 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
agent-config
Read the skill, AGENTS.md or docs the user names (frontend-design, react-native, Effect AGENTS.md) before starting and follow it, but do not re-read it repeatedly.
48 restatements in 33 conversations5 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): Skill auto-trigger descriptions; UserPromptSubmit hook mapping keywords to skills
Keep AGENTS.md at repo/app root with CLAUDE.md as a relative symlink, and record repeat rules there concisely.
16 restatements in 14 conversations0 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): Setup script `ln -s AGENTS.md CLAUDE.md`
Do not use Context7 or doc lookups when the user just wants code fixed or has forbidden it; read the URL they give instead.
2 restatements in 2 conversations3 corrections enforceable: yesCodex CLIWhy: Codex sessions kept calling Context7 against instructions.
Where: global · Conflicts with r-check-current-docs; obey the session instruction.
Automatic enforcement (suggestion): Disable Context7 MCP in Codex config for those projects
react-ui
Build web UI from shadcn (Base UI, Mira) / packages/ui components only, with no custom CSS or className restyling; use shadcn charts and sonner.
18 restatements in 16 conversations5 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Give async components separate loading, empty and error state files (name.loading.tsx etc.) and keep shared state in a sibling Zustand store, not props.
5 restatements in 5 conversations4 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Layout or redesign requests must preserve existing logic and functionality; duplicate a component for a variant instead of changing the shared one.
6 restatements in 5 conversations4 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
environment
Use the exact tool the user names (Payload MCP, T3 device tools, Computer Use, agent-browser, gh CLI) and check deferred tools before saying it is unavailable.
17 restatements in 15 conversations3 corrections enforceable: noT3 Code / Claude Code MCPWhy:
Where: global ·
Automatic enforcement (suggestion): none
Delete worktrees, simulators, backup files and background processes when work is done; never delete data pinned by git or DVC.
7 restatements in 7 conversations2 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): Stop hook running `git worktree prune`
Run dev servers in the background on unusual unique ports when asked, give the URL, and stop them when told.
3 restatements in 3 conversations0 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
orchestration-subagents
Use exactly the subagent models, accounts and reasoning levels the user specifies (Haiku not Sonnet, Sol low, Codex-Work), respect concurrency limits, and wait for limit resets instead of switching.
12 restatements in 9 conversations6 corrections enforceable: noT3 CodeWhy:
Where: global ·
Automatic enforcement (suggestion): none
In orchestration sessions delegate implementation to subagents in separate worktrees, verify with independent reviewer subagents, merge only after acceptance criteria pass.
14 restatements in 12 conversations3 corrections enforceable: noT3 Code / Claude CodeWhy:
Where: global ·
Automatic enforcement (suggestion): none
Do not spawn subagents for small or debugging tasks unless asked; keep spawned subagents strictly on their stated task.
8 restatements in 7 conversations3 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
pr-workflow
Finish features by committing, pushing and opening a PR linked to the Linear issue; mark the issue In Progress and update it when done.
153 restatements in 142 conversations1 corrections enforceable: partlyLinear MCPWhy:
Where: global ·
Automatic enforcement (suggestion): Linear MCP + skill; branch name from issue slug
Squash-merge finished PRs into main and pull locally; keep unrelated changes (dependency upgrades) in separate stacked PRs; do not push or run CI until tests pass locally.
20 restatements in 13 conversations2 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
research
Before implementing against a changed library (Expo, AI SDK, Alchemy v2, Tailwind v4, Next 16) read the current official or user-supplied docs; follow them exactly instead of guessing.
30 restatements in 27 conversations10 corrections enforceable: noWhy: Agents wrote code from stale memory that did not match docs.
Where: global ·
Automatic enforcement (suggestion): none
Every research or medical claim needs a real, retrieved citation; never fabricate PMIDs or details.
0 restatements in 0 conversations4 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
tooling-build
Default monorepo tooling: bun + turborepo/Nx, shared config package, oxlint + oxfmt (not ESLint/Prettier), TypeScript 7 with effect-tsgo, editor configs for Zed/VS Code; Python uses uv, Ruff, ty.
33 restatements in 29 conversations2 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): Scaffold script / template repo
Do not read or grep node_modules; look up current official docs instead.
5 restatements in 5 conversations3 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook blocking Read/Grep paths containing node_modules
data-db
Use Drizzle ORM with typed queries for DB access (no raw SQL, no Prisma); migrations generated by drizzle-kit, never hand-written.
25 restatements in 22 conversations4 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): oxlint/eslint drizzle plugin; grep hook for sql` template use
Never run DB queries, migrations, drizzle generate/migrate, prisma or anything that touches external services unless explicitly allowed; edit schema.ts and give the Postgres command instead.
8 restatements in 8 conversations8 corrections enforceable: yesWhy: Agents ran migrations and live queries against production data.
Where: global · Strongest in entropy/whitelabel/sindhu.
Automatic enforcement (suggestion): PreToolUse hook blocking `drizzle-kit (generate|migrate|push)`, `prisma`, `psql`, `payload migrate`
security-secrets
Do not read or edit .env files unless told; put generated or supplied secrets into a git-ignored .env once and never paste them in chat or ask again.
11 restatements in 10 conversations5 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): Claude Code deny Read(**/.env*); hook
Enforce auth and admin checks in the backend at the start of each handler, log real errors server-side and return only generic messages to the client.
4 restatements in 4 conversations2 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
docs-writing
In UI/website copy avoid em dashes, emojis, marketing filler, Oxford commas and the colon-plus-three-items AI tell; use plain American English.
13 restatements in 9 conversations3 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): Lint script grepping for '—' in copy files
Add JSDoc with examples on exported code, components, stores, hooks and parameters when the project asks for it, plus comments on logic changes.
11 restatements in 10 conversations1 corrections enforceable: partlyWhy:
Where: global ·
Automatic enforcement (suggestion): eslint-plugin-jsdoc require-jsdoc in lint config
testing
Run only targeted or affected tests (e.g. vitest --changed) and leave compute-heavy checks for the end; tell subagents the same.
1 restatements in 1 conversations1 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): package.json `test:changed` script with `vitest --changed`
No verified quote available.
When tests are requested, put them in a separate tests/ folder and make them comprehensive (unit with DI plus integration, every user action).
2 restatements in 1 conversations0 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
deployment-infra
Test and run everything locally; never deploy, destroy or touch remote/deployed resources or EAS remote builds unless asked; dev and prod share one resource definition.
10 restatements in 8 conversations8 corrections enforceable: yesWhy:
Where: global ·
Automatic enforcement (suggestion): PreToolUse hook blocking `alchemy deploy|destroy`, `wrangler deploy`, `eas build` without --local
error-handling
Add targeted logs at each layer when something fails silently (Effect.log in Effect code) and read real output rather than speculating.
10 restatements in 9 conversations2 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
other
When asked to fix wrong content, correct it; do not remove or quarantine it.
2 restatements in 2 conversations1 corrections enforceable: noWhy:
Where: global ·
Automatic enforcement (suggestion): none
Project: Resume
docs-writing
In resume and personal writing keep the user's voice, invent no metrics, write in first person for personal sites.
2 restatements in 2 conversations2 corrections enforceable: noWhy:
Where: project:Resume ·
Automatic enforcement (suggestion): none
Project: comp2017
docs-writing
In COMP2017 Slidev decks use magic-move for step-by-step code with focused lines and a short inline comment per step, drive visuals with $clicks in sync, two-cols for comparisons.
19 restatements in 15 conversations5 corrections enforceable: noWhy:
Where: project:comp2017 ·
Automatic enforcement (suggestion): none
Keep slides concise and correct for C99; use only taught concepts, plausible tricky MCQs, real diagrams (mermaid) not ASCII, native Slidev markdown not div soup.
4 restatements in 4 conversations5 corrections enforceable: noWhy:
Where: project:comp2017 ·
Automatic enforcement (suggestion): none
Project: entropy
react-ui
In entropy admin pages use CSR with TanStack Query via dedicated per-page API routes; fetch protected data via SSR; public pages call no APIs.
30 restatements in 29 conversations3 corrections enforceable: noWhy:
Where: project:entropy ·
Automatic enforcement (suggestion): none
data-db
Store timestamps as UTC timestamptz and display local time.
5 restatements in 4 conversations1 corrections enforceable: noWhy:
Where: project:entropy ·
Automatic enforcement (suggestion): none
Use text({ enum: [...] }) columns instead of pgEnum and do not add DEFAULT values unless asked.
2 restatements in 2 conversations2 corrections enforceable: noWhy:
Where: project:entropy ·
Automatic enforcement (suggestion): none
naming
Brand is 'Elemnt Health' (company) and 'Elemnt Wellness' (product); write for non-technical practitioners with plain wording.
3 restatements in 3 conversations2 corrections enforceable: partlyWhy:
Where: project:entropy ·
Automatic enforcement (suggestion): cspell custom dictionary flagging 'Element Health'
Project: health
data-db
In health pipelines keep outputs inside data/pipelines/<name>/, raw and processed data in DVC, structured typed outputs, and do not modify other pipelines.
15 restatements in 10 conversations2 corrections enforceable: noWhy:
Where: project:health ·
Automatic enforcement (suggestion): none
error-handling
Every server log goes to the Effect pretty console logger and telemetry; failures log exact validation issues.
1 restatements in 1 conversations1 corrections enforceable: noWhy:
Where: project:health ·
Automatic enforcement (suggestion): none
performance
Do not spend money on paid model runs unrequested; cap spend, monitor and rerun only affected units.
1 restatements in 1 conversations1 corrections enforceable: noWhy:
Where: project:health ·
Automatic enforcement (suggestion): none
Project: paper-reader
scope-control
Respect stated product constraints (paper-reader and task app have no auth; no CI on non-main) and never raise them again.
2 restatements in 2 conversations2 corrections enforceable: noWhy:
Where: project:paper-reader ·
Automatic enforcement (suggestion): none
Project: sindhu
styling-design
In sindhu use StyleX + astryx with styles in separate files, Payload MCP for content, the exact dev command given, and no data-touching commands.
18 restatements in 17 conversations3 corrections enforceable: noWhy:
Where: project:sindhu ·
Automatic enforcement (suggestion): none
Project: task-app
testing
In task-app model core logic in Bend with general laws in LAWS.bend, run PROOF.bend before committing, and do not start the TypeScript port until told.
3 restatements in 2 conversations0 corrections enforceable: noWhy:
Where: project:task-app ·
Automatic enforcement (suggestion): none
Folder / kind of code: Alchemy/Cloudflare projects
deployment-infra
Declare all infra (Cloudflare, Neon, R2, keys) in Alchemy v2 inside packages/infra; no per-package wrangler configs; derive credentials from infra code.
44 restatements in 38 conversations4 corrections enforceable: noWhy:
Where: folder:Alchemy/Cloudflare projects ·
Automatic enforcement (suggestion): none
Folder / kind of code: Bun/pnpm monorepos
package-manager
Put shared dependency versions in the root workspace catalog and reference them with catalog:.
6 restatements in 6 conversations1 corrections enforceable: partlyWhy:
Where: folder:Bun/pnpm monorepos ·
Automatic enforcement (suggestion): syncpack / check script failing on non-catalog versions
Folder / kind of code: Effect code
effect-ts
Write all backend logic as Effect v4: Effect.fn/Effect.gen functions, services and Layers for DI, Schema, HTTP client with retry, pretty logger; no plain async helpers, shims or casts.
26 restatements in 21 conversations7 corrections enforceable: partlyWhy: Agents mixed plain TS helpers, Zod, fetch and v3 APIs into Effect code.
Where: folder:Effect code ·
Automatic enforcement (suggestion): effect-tsgo/Effect LSP strict diagnostics; AGENTS.md; effect-solutions skill
In Effect code never write explicit return types; let Effect infer success, error and requirement channels.
8 restatements in 7 conversations5 corrections enforceable: partlyWhy: Repeated explicit return types drew angry corrections across tools.
Where: folder:Effect code ·
Automatic enforcement (suggestion): Custom lint/grep hook flagging `): Effect.Effect<` annotations
Abstract third-party libraries and data sources behind swappable Effect adapters/Layers; inject data as dependencies, no hidden filesystem assumptions.
1 restatements in 1 conversations1 corrections enforceable: noWhy:
Where: folder:Effect code ·
Automatic enforcement (suggestion): none
Folder / kind of code: Expo apps
mobile
In Expo apps use expo-ui / GlassView and native Stack large-title headers, Reanimated for motion, only expo/eas commands, and copy reference code verbatim.
46 restatements in 22 conversations5 corrections enforceable: noWhy:
Where: folder:Expo apps ·
Automatic enforcement (suggestion): none
Folder / kind of code: LLM generation scripts
performance
Long LLM/data scripts must checkpoint and resume, use configurable concurrency, timeouts and exponential retry, treat rate limits as waits and never write errors into data.
7 restatements in 7 conversations2 corrections enforceable: noWhy:
Where: folder:LLM generation scripts ·
Automatic enforcement (suggestion): none
Folder / kind of code: Obsidian vault
docs-writing
Obsidian notes: descriptive file names, Obsidian-supported math, ASD-STE100 style without lists or code for Learning notes, images in the attachments folder; save docs where the user names.
0 restatements in 0 conversations2 corrections enforceable: noWhy:
Where: folder:Obsidian vault ·
Automatic enforcement (suggestion): none
Folder / kind of code: React Native / web client
react-ui
Persist mobile state with zustand + MMKV, web filters in URL params (nuqs), local-first data in Expo SQLite via Drizzle, React Query gcTime Infinity / staleTime 5m.
15 restatements in 11 conversations2 corrections enforceable: noWhy:
Where: folder:React Native / web client ·
Automatic enforcement (suggestion): none
Folder / kind of code: TanStack Router web apps
react-ui
Put components used by one route in that route's ~components (or -components) folder; only shared ones go in src/components.
4 restatements in 3 conversations3 corrections enforceable: partlyWhy:
Where: folder:TanStack Router web apps ·
Automatic enforcement (suggestion): oxlint import boundaries / AGENTS.md
Folder / kind of code: engine code
typescript-style
Keep domain knowledge (mappings, weights) in data files, not hard-coded in code.
4 restatements in 3 conversations2 corrections enforceable: noWhy:
Where: folder:engine code ·
Automatic enforcement (suggestion): none
Folder / kind of code: migrations
data-db
Never delete or rewrite already-applied migration files.
1 restatements in 1 conversations1 corrections enforceable: yesWhy:
Where: folder:migrations ·
Automatic enforcement (suggestion): PreToolUse hook denying edits under migrations/ or drizzle/ meta
Folder / kind of code: monorepo tsconfig
tooling-build
For module-resolution errors fix tsconfig (extend the shared base) instead of rewriting code or building packages; import workspace packages as source, not dist.
6 restatements in 6 conversations1 corrections enforceable: noWhy:
Where: folder:monorepo tsconfig ·
Automatic enforcement (suggestion): none
Folder / kind of code: server/API code
other
Use tRPC for API endpoints (not raw Hono routes or server actions).
4 restatements in 4 conversations1 corrections enforceable: noWhy:
Where: folder:server/API code ·
Automatic enforcement (suggestion): none
Folder / kind of code: thesis LaTeX
docs-writing
In the thesis write concisely to academic standard with no repetition, invented labels or hedging, and only citations that truly support the sentence; never remove citations; one example means one-shot.
18 restatements in 13 conversations3 corrections enforceable: noWhy:
Where: folder:thesis LaTeX ·
Automatic enforcement (suggestion): none