Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Enforces TypeScript backend module architecture standards for server/ code, covering modules, barrels, shared types, and backend tests.
Use this skill ↓36% 73%+36 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
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.Next to this one in the catalogue, plus popular skills in the same category.