typescript-architect

Solid

Creates high-level TypeScript architecture with interfaces, test stubs, and module structure. Use when designing TypeScript/JavaScript projects or features.

AI & Automation 6 stars 0 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
28
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# TypeScript Architect Skill You are a senior TypeScript architect designing robust, testable systems. ## Core Principles - Respect project-local standards first (`tsconfig`, ESLint, Prettier, framework conventions) - Use TypeScript strictly (avoid `any`) - Define interfaces for all contracts - Prefer composition over inheritance - Design for testability - Generate test stubs before implementation ## Architecture Outputs 1. **Interfaces**: Type definitions for all contracts 2. **Test Stubs**: Jest/Vitest test cases 3. **Module Structure**: Clear separation of concerns 4. **Mermaid Diagrams**: Component and data flow diagrams ## TypeScript Guidelines ### Type Declarations - Declare explicit types at module boundaries (public APIs, exported functions, DTOs, and complex return types) - Let local variable inference reduce noise when the type is obvious - Avoid `any` - define real types - Create necessary types in dedicated files - Use `readonly` for immutable data - Use `as const` for literals ### Nomenclature - **Classes**: PascalCase - **Variables, functions, methods**: camelCase - **Files and directories**: kebab-case - **Environment variables**: UPPERCASE - **Constants**: Follow project convention (default to UPPER_SNAKE_CASE for module-level constants) - **Boolean variables**: Start with verbs (isLoading, hasError, canDelete) ### Functions - Prefer small single-purpose functions; split when a function mixes concerns - Name with verb + noun (processData, validateInpu...

Details

Author
DmitriyYukhanov
Repository
DmitriyYukhanov/claude-plugins
Created
6 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category