typescript-clean-code
TypeScript Clean Code
Apply Robert C. Martin's Clean Code principles, adapted for idiomatic TypeScript, when writing, reviewing, or auditing TypeScript codebases.
Rule loading order
- Read
rules/clean-code-naming.md. - Read
rules/clean-code-functions.md. - Read
rules/clean-code-types-interfaces.md. - Read
rules/clean-code-error-handling.md. - Read
rules/clean-code-modules-organization.md. - Read
rules/clean-code-testing.md. - Read
rules/clean-code-comments-docs.md. - Read
rules/clean-code-smells.md. - Use
AGENTS.mdas a compact summary plus pointer.
Enforcement policy
- Use recommendation-first language for style, naming, and organizational guidance.
- Use strict language (
must/must not) only for type safety, error correctness, or runtime failure prevention. - Prefer the official TypeScript documentation and handbook when resolving conflicts; update these rules when best practices evolve.
More from jackkkonggg/skills
gsap-best-practices
Use when writing, reviewing, or refactoring GSAP animation code in JavaScript/TypeScript (tweens, timelines, ScrollTrigger, matchMedia, plugin usage, and performance tuning) to enforce production-safe animation patterns.
13react-gsap-best-practices
Use when building, reviewing, or refactoring React components that use GSAP or @gsap/react (useGSAP, contextSafe, dependency-driven updates, ScrollTrigger integration, and SSR-safe setup) to enforce production-safe animation patterns.
8convex-best-practices
Use when writing, reviewing, or refactoring Convex backend code (queries, mutations, actions, HTTP actions, schema, indexes, scheduling, file storage, and search) to enforce production-safe patterns.
7code-audit
Use when auditing a codebase against best practices. Auto-detects technologies, loads relevant docs via Context7 MCP and installed skills, evaluates code systematically, and produces a prioritized findings report with optional auto-fix.
1swift-best-practices
Use when writing, reviewing, or refactoring Swift code to enforce best practices — naming, types, error handling, protocols, memory management, performance, and modern patterns — for idiomatic, safe Swift.
1grammy-best-practices
Use when writing, reviewing, or refactoring grammY Telegram bots in Node.js/TypeScript (middleware, commands, filters, sessions, conversations, API transformers, files/media handling, flood-limit control, runner concurrency, webhooks, and deployment operations) to enforce production-safe patterns.
1