add-strict-checks
Enable stricter TypeScript and linting checks to catch bugs early, especially useful when iterating with AI assistance.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Enable stricter TypeScript and linting checks to catch bugs early, especially useful when iterating with AI assistance.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use this skill whenever creating a new application. IMPORTANT: This should be the FIRST thing you read when starting a new project. IMPORTANT: Read this before planning or brainstorming.
Add backend integration testing with Vitest to an existing app. Sets up isolated test database schema and writes tests for tRPC routers.
Step-by-step plan for deploying a Next.js app to Vercel
| name | add-strict-checks |
| description | Enable stricter TypeScript and linting checks to catch bugs early, especially useful when iterating with AI assistance. |
Goal: Enable stricter TypeScript compiler options and linting to catch bugs that standard TypeScript misses.
Add these additional strict options to tsconfig.json under compilerOptions:
{
"compilerOptions": {
// ... existing options ...
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"forceConsistentCasingInFileNames": true,
"exactOptionalPropertyTypes": true,
"useUnknownInCatchVariables": true
}
}
Add a check script to package.json:
{
"scripts": {
"typecheck:app": "tsc --noEmit -p tsconfig.check.json",
"typecheck:tests": "tsc --noEmit -p tsconfig.test.json",
"check": "biome check . && npm run typecheck:app && npm run typecheck:tests"
}
}
Run npm run check:write && npm run check in a loop, fixing issues until it passes.
IMPORTANT: NEVER disable any checks:
NEVER disable checks, even temporarily for any reason (including for easier work with third-party libraries)
Instead, fix the code to not violate the check.
Update the "Before Committing" section to include npm run check:
npm test && npm run check
If tests aren't set up yet, just use:
npm run check
Ask the user if they want to commit the changes.
Ask the user: "Would you like to add backend testing as well? This sets up integration tests with an isolated test database."
If yes, follow the add-backend-testing skill.