Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enforce this repository's TypeScript backend module architecture standards. Use whenever creating, modifying, refactoring, or reviewing backend code under `server/`, including routes, services, modules, repositories, shared backend code, and backend tests. Do not apply these rules to frontend code or non-backend scaffolding.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 29% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 9% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 19% | 0% |
Apply these rules after the repository's basic scaffolding is in place. Limit them to backend code under server/. Preserve the requested task scope: make touched and newly generated backend code compliant without performing an unrelated repository-wide migration.
server/modules/<feature>/.server/modules/. Do not add JavaScript backend module files.server/shared/utils.ts.index.ts barrel that exposes only its required public API.index.ts. Never deep-import another module's routes, services, repositories, adapters, or internal files.server/shared/ as the shared module. Keep shared definitions in server/shared/types.ts, server/shared/interfaces.ts, and server/shared/utils.ts, and expose only required cross-module members through its barrel.types.ts, interfaces.ts, or utils.ts files.type by default. Use interface only for a contract that a class is intended to implement.export type for type exports and import type for type-only imports.server/shared/types.ts or server/shared/interfaces.ts as appropriate.server/shared/utils.ts.//----------------- DESCRIPTION OF GROUP ------------ and separate unrelated groups with // ---------------------------.export function loadSession(). Do not collect ordinary exports at the end of an implementation file.index.ts barrel exports.server/modules/<feature>/tests/.Before finishing:
index.ts barrels and all public exports are necessary and documented.npm run build, npm run typecheck, and npm run lint when the task scope and environment permit.Other measured skills in the registry, with their headline benchmark lift.