
Typescript
- 280 installs
- 706 repo stars
- Updated July 14, 2026
- alinaqi/claude-bootstrap
typescript is a Claude skill that applies strict TypeScript types, interfaces, generics, and module patterns across React and Node files with ESLint and Jest for developers working in the claude-bootstrap monorepo.
About
typescript is a Claude skill from alinaqi/claude-bootstrap enforcing non-negotiable strict mode across **/*.ts, **/*.tsx, and tsconfig*.json files. The skill mandates compilerOptions including strict, noImplicitAny, strictNullChecks, noUnusedLocals, noUnusedParameters, and noImplicitReturns in tsconfig.json. Developers reach for typescript when editing React components or Node modules in the bootstrap monorepo and need consistent interface, generic, and module boundary patterns paired with ESLint and Jest. The skill defines a src/core pure-business-logic project structure for medium-effort TypeScript work. It auto-triggers on TypeScript file paths rather than user invocation.
- Strict typing and tsconfig defaults
- Shared domain interfaces
- React prop and hook typing
- API request/response types
- Module path and import conventions
Typescript by the numbers
- 280 all-time installs (skills.sh)
- Ranked #762 of 2,245 Frontend Development skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/alinaqi/claude-bootstrap --skill typescriptAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 280 |
|---|---|
| repo stars | ★ 706 |
| Last updated | July 14, 2026 |
| Repository | alinaqi/claude-bootstrap ↗ |
How do you enforce strict TypeScript across a monorepo?
Apply strict TypeScript types, interfaces, generics, and module patterns across React and Node files in the bootstrap monorepo.
Who is it for?
Developers editing TypeScript in the claude-bootstrap monorepo who need enforced strict mode, ESLint alignment, and Jest-ready patterns on React and Node files.
Skip if: Plain JavaScript codebases or Python backends outside the bootstrap monorepo's TypeScript file paths.
When should I use this skill?
A developer opens or edits **/*.ts, **/*.tsx, or tsconfig*.json files in the claude-bootstrap monorepo.
What you get
Strict tsconfig.json settings, typed interfaces and generics, ESLint-clean modules, and Jest-compatible TypeScript test files.
- strict tsconfig.json configuration
- typed TypeScript modules
Files
TypeScript Skill
---
Strict Mode (Non-Negotiable)
// tsconfig.json
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
}
}---
Project Structure
project/
├── src/
│ ├── core/ # Pure business logic
│ │ ├── types.ts # Domain types/interfaces
│ │ ├── services/ # Pure functions
│ │ └── index.ts # Public API
│ ├── infra/ # Side effects
│ │ ├── api/ # HTTP handlers
│ │ ├── db/ # Database operations
│ │ └── external/ # Third-party integrations
│ └── utils/ # Shared utilities
├── tests/
│ ├── unit/
│ └── integration/
├── package.json
├── tsconfig.json
└── CLAUDE.md---
Tooling (Required)
// package.json scripts
{
"scripts": {
"lint": "eslint src/ --ext .ts,.tsx",
"typecheck": "tsc --noEmit",
"test": "jest",
"test:coverage": "jest --coverage",
"format": "prettier --write 'src/**/*.ts'"
}
}// eslint.config.js
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
{
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'max-lines-per-function': ['error', 20],
'max-depth': ['error', 2],
'max-params': ['error', 3],
}
}
);---
Testing with Jest
// tests/unit/services/user.test.ts
import { calculateTotal } from '../../../src/core/services/pricing';
describe('calculateTotal', () => {
it('returns sum of item prices', () => {
// Arrange
const items = [{ price: 10 }, { price: 20 }];
// Act
const result = calculateTotal(items);
// Assert
expect(result).toBe(30);
});
it('returns zero for empty array', () => {
expect(calculateTotal([])).toBe(0);
});
it('throws on invalid item', () => {
expect(() => calculateTotal([{ invalid: 'item' }])).toThrow();
});
});---
GitHub Actions
name: TypeScript Quality Gate
on: [push, pull_request]
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Type Check
run: npm run typecheck
- name: Test with Coverage
run: npm run test:coverage
- name: Coverage Threshold (80%)
run: npm run test:coverage -- --coverageThreshold='{"global":{"branches":80,"functions":80,"lines":80,"statements":80}}'---
Pre-Commit Hooks
Using Husky + lint-staged:
npm install -D husky lint-staged
npx husky init// package.json
{
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
}
}# .husky/pre-commit
npx lint-staged
npx tsc --noEmit
npm run test -- --onlyChanged --passWithNoTestsThis runs on every commit: 1. ESLint + Prettier on staged files 2. Type check entire project 3. Tests for changed files only
---
Type Patterns
Discriminated Unions for Results
type Result<T> =
| { ok: true; value: T }
| { ok: false; error: string };
function parseUser(data: unknown): Result<User> {
// Type-safe error handling without exceptions
}Branded Types for IDs
type UserId = string & { readonly brand: unique symbol };
type OrderId = string & { readonly brand: unique symbol };
// Can't accidentally pass UserId where OrderId expected
function getOrder(orderId: OrderId): Order { ... }Const Assertions for Literals
const STATUSES = ['pending', 'active', 'closed'] as const;
type Status = typeof STATUSES[number]; // 'pending' | 'active' | 'closed'Zod for Runtime Validation
import { z } from 'zod';
const UserSchema = z.object({
email: z.string().email(),
name: z.string().min(1).max(100),
});
type User = z.infer<typeof UserSchema>;---
TypeScript Anti-Patterns
- ❌
anytype - useunknownand narrow - ❌ Type assertions (
as) - use type guards - ❌ Non-null assertions (
!) - handle null explicitly - ❌
@ts-ignorewithout explanation - ❌ Enums - use const objects or union types
- ❌ Classes for data - use interfaces/types
- ❌ Default exports - use named exports
Related skills
Forks & variants (1)
Typescript has 1 known copy in the catalog totaling 3 installs. They canonicalize to this original listing.
- alinaqi - 3 installs
FAQ
Which tsconfig options does typescript enforce?
typescript enforces strict, noImplicitAny, strictNullChecks, noUnusedLocals, noUnusedParameters, noImplicitReturns, esModuleInterop, and forceConsistentCasingInFileNames in tsconfig.json across the bootstrap monorepo.
What file paths trigger the typescript skill?
The typescript skill triggers on **/*.ts, **/*.tsx, and tsconfig*.json paths in alinaqi/claude-bootstrap. The skill applies strict typing, ESLint alignment, and Jest patterns for medium-effort TypeScript work.