Przejdź do treści
Biblioteka skilli
Programowanie · Planowanie

typescript-architect

/typescript-architect

Projektuje architekturę TypeScript: interfejsy, szkielety testów i strukturę modułów dla nowych projektów i funkcji.

Repozytorium
agent-plugins ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje architekturę TypeScript: interfejsy, szkielety testów i strukturę modułów dla nowych projektów i funkcji.

Oryginalny opis (EN)

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

Jak działa

  1. Core Principles
  2. Architecture Outputs
  3. TypeScript Guidelines
  4. Test Architecture
  5. Diagram Templates
Sekcje z nagłówków SKILL.md, w oryginale · 119 linii, 434 słów
Podgląd SKILL.md
---
name: typescript-architect
description: Creates high-level TypeScript architecture with interfaces, test stubs, and module structure. Use when designing TypeScript/JavaScript projects or features.
allowed-tools: Read, Glob, Grep
---

# 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, validateInput)
- Boolean returns: `isX`, `hasX`, `canX`
- Void returns: `executeX`, `saveX`
- Avoid nesting - use early returns
- Use arrow functions for simple functions (<3 lines)
- Use default parameter values

### Data
- Avoid primitive type abuse - use composite types
- Prefer immutability
- Validate untrusted external input at runtime (API payloads, env vars, storage records) before casting to domain types

### Classes
- Follow SOLID principles
- Small classes (<200 lines, <10 public methods, <10 properties)
- Declare interfaces for contracts
- One export per file

## Test Architecture

### Test Distribution
- **~75% Unit Tests**: Fast, isolated, fully mocked
- **~20% Integration Tests**: Module interactions
- **~5% E2E Tests**: Full user flows

### Test Stub Template (Jest/Vitest)
```typescript
describe('FeatureName', () => {
  let sut: SystemUnderTest;

  beforeEach(() => {
    sut = new SystemUnderTest();
  });

  afterEach(() => {
    jest.clearAllMocks();
    // Vitest equivalent: vi.clearAllMocks();
  });

  describe('methodName', () => {
    it('should return expected result when given valid input', () => {
      // Arrange
      const input = createValidInput();

      // Act
      const result = sut.methodName(input);

      // Assert
      expect(result).toEqual(expectedOutput);
    });
  });
});
```

## Diagram Templates

### Component Structure
```mermaid
classDiagram
    class IService {
        <<interface>>
        +process(input: Input): Output
    }
    class ServiceImpl {
        -dependency: IDependency
        +process(input: Input): Output
    }
    IService <|.. ServiceImpl
```

### Data Flow
```mermaid
flowchart LR
    UI[UI Layer] --> State[State Management]
    State --> API[API Layer]
    API --> Backend[Backend]
```

Wersje

W bazie nie ma innych skilli o nazwie typescript-architect.

Migawka bazy z 28.10.2026 · wersja paczki 55f3092ba5c7 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100python-architect
    Tworzy ogólną architekturę projektu w Pythonie z protokołami, szkieletami testów i strukturą modułów przy projektowaniu aplikacji lub funkcji.
  • 100unity-architect
    Projektuje architekturę Unity: hierarchie komponentów, interfejsy, szkielety testów i diagramy Mermaid.
  • 90architecture-review
    Audytuje strukturę projektu, planuje refaktoryzacje i analizuje zależności oraz granice modułów w kodzie TypeScript i JavaScript.
  • 100architect
    Projektuje architekturę systemu i interfejsy komponentów, wspierając podejmowanie decyzji architektonicznych.
  • 96playwright-typescript
    Podaje instrukcje generowania testów Playwright w TypeScript dla projektów w tym języku.
  • 100architect
    Analizuje architekturę systemu, strukturę modułów, kontrakty API, modele danych i wzorce kodu, także przy projektowaniu systemów i architekturze frontendu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.