| name | isomer-conventions |
| description | Repository-specific code smells and blessed conventions for the Isomer Next monorepo. Use when writing or reviewing code in this repo (tRPC routers, Kysely/Prisma access, zod schemas, React components, tests) to catch deviations from team conventions, and when the user wants to record a new code smell or best practice ("remember this convention", "add a code smell", "we always/never do X here"). |
Isomer conventions
A growable catalog of repo-specific code smells (patterns to avoid) and best
practices (the blessed way). Each entry lives in its own file under
conventions/; the Catalog below indexes them. The catalog starts
empty and grows as the team discovers conventions during review.
Applying conventions
When writing or reviewing code in this repo:
- Skim the Catalog and load any entry whose hook looks relevant to
the diff/file at hand. Don't load all of them — only what's relevant.
- For each relevant entry, check the code against it.
- Flag violations as
path:line — name the convention, show the blessed
pattern, and (for smells) why it matters. Cite the entry file.
- When writing new code, follow the matching best-practice entries by default.
If the catalog is empty or nothing matches, fall back to general good judgment —
do not invent repo conventions that aren't recorded here.
Adding a new entry
Triggered when the user says things like "remember this", "add a code smell",
"we always/never do X here", or describes a convention while reviewing code.
- Check for an existing entry first. If one covers the same ground, update
it instead of creating a duplicate.
- Create
conventions/<kebab-slug>.md following
conventions/TEMPLATE.md. Keep it short — a smell,
why, a Bad/Good pair, and how to detect it. Ground examples in real
path:line from the repo when possible.
- Add a one-line pointer to the Catalog below, grouped under its
category (create the category heading if it's new).
- Confirm what you saved in one line.
Keep SKILL.md lean: detail lives in the entry files, never inline here.
Catalog
React
Audit logging
Readability
Testing
Dependencies
Configuration
Dates & time