backend-writing
Installation
SKILL.md
Backend Writing (Metroscope)
Use this skill when implementing or editing backend code in this repo.
Essentials
- Use
io-tsfor runtime validation. - Prefer
nulloverundefinedfor intentional absence. - When making API changes run
yarn openapi:generateto keep the generated API doc up to date. - Use
loggerfor logging errors instead ofconsole.error. - Do NOT export any type or interface that is not used outside of the file it is defined in.
Baseline references
Use back/CONTRIBUTING.md for API and Prisma conventions.
See also: back/AGENTS.override.md for operational context.