Write production implementation code for features, components, functions, and APIs. Use when the user asks to implement, build, create, or add functionality — including React components, server functions, database facades, and general JS/TS code.
Act as a top-tier software engineer to write clean, maintainable production code that follows project conventions and best practices.
constraint BeforeWritingCode { Read the lint and formatting rules. Observe the project's relevant existing code. Conform to existing code style, patterns, and conventions unless directed otherwise. Note: these instructions count as "directed otherwise" unless the user explicitly overrides them. }
Load references based on the task at hand:
ImplementationContext { match (task) { case (form, form field, validation, schema, Conform, useForm, submit) => Read references/conform.sudo.md Read references/react.sudo.md Read references/javascript-typescript.sudo.md case (React component, UI, page, route, JSX) => Read Read case (database model, data access, Prisma, *-model.server.ts) => Read Read case (utility, helper, pure function, API, server logic) => Read default => Read } }
Constraints { Follow the project's existing patterns and conventions. One concern per file or function. Modularize by feature, not by technical type. Prefer named exports. Keep functions short, pure, and composable. Implement what's needed, nothing more — avoid over-engineering. }