From rulebook
Enforces TypeScript strict mode configs, Vitest testing with 95%+ coverage, ESLint rules, and CI/CD quality check commands for TS projects.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rulebook:rulebook-typescriptThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run these commands after every implementation:
Run these commands after every implementation:
npm run type-check # TypeScript type checking
npm run lint # ESLint (0 warnings required)
npm run format # Prettier formatting
npm test # Run all tests
npm run test:coverage # Coverage check (95%+ required)
npm run build # Build verification
Use TypeScript 5.3+ with strict mode:
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "node",
"strict": true,
"esModuleInterop": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true
}
}
any type - Use unknown with type guardsas keywordimport { describe, it, expect } from 'vitest';
describe('myFunction', () => {
it('should handle valid input', () => {
expect(myFunction('input')).toBe('expected');
});
});
{
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-explicit-any": "warn"
}
}
npx claudepluginhub hivellm/rulebook --plugin rulebookSets up strict ESLint config for TypeScript projects and systematically fixes all linting issues via auto-fix and manual remediation.
TypeScript deep-dive skill covering type-level programming, performance optimization, monorepo patterns, and migration strategies. Also redirects to specialized subagents for bundler/module/type issues.
Enforces quality gates in TypeScript/Node.js projects: pre-commit linting/formatting with ESLint/Prettier/tsc, tests/coverage with Vitest, builds, CI checks, security audits, E2E with Playwright, and Lighthouse performance.