Przejdź do treści
Biblioteka skilli
Programowanie · Przegląd i audyt

angular-style-guide

/angular-style-guide

Ustala konwencje nazewnictwa, strukturę plików i standardy kodowania dla projektów Angular.

Licencja
MIT
Ostatnia zmiana repozytorium
22.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
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 22.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

Ustala konwencje nazewnictwa, strukturę plików i standardy kodowania dla projektów Angular.

Oryginalny opis (EN)

Naming conventions, file structure, and coding standards for Angular projects. Use for Angular-specific naming and organization; defer language-only TypeScript naming questions.

Jak działa

  1. Priority: P0 (CRITICAL)
  2. Principles
  3. Naming Standards
  4. Folder Structure
  5. Anti-Patterns
  6. References
  7. Canonical response anchors
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 248 słów
Podgląd SKILL.md
---
name: angular-style-guide
description: Naming conventions, file structure, and coding standards for Angular projects. Use for Angular-specific naming and organization; defer language-only TypeScript naming questions.
metadata:
  triggers:
    keywords:
    - angular style
    - naming convention
    - file structure
    - angular-style-guide
---
# Angular Style Guide

## **Priority: P0 (CRITICAL)**

## Principles

- **Single Responsibility**: 1 component/service per file. Functions < 75 lines.
- **Size Limits**: Files < **400 lines**. Refactor if larger.
- **Strict Naming**: **kebab-case** with **type suffix** (e.g., **hero-list.component.ts**, **auth.service.ts**, **user.pipe.ts**, **app.routes.ts**).
- **Barrels**: `index.ts` for public APIs only. No deep barrel imports within same feature — import directly. Wrong barrel placement breaks **tree-shaking**.
- **LIFT**: **Locate** code quickly, **Identify files** by name, keep **Flattest structure** possible, **Try** to be **DRY**.

## Naming Standards

- **Files**: `kebab-case.type.ts`
- **Classes**: **PascalCase** + **type suffix** (**HeroListComponent**, **AuthService**)
- **Directives**: **camelCase** selector with **app prefix** (e.g., `appHighlight`)
- **Pipes**: **camelCase** name (e.g., `truncate`)
- **Services**: **PascalCase** + **Service** suffix (`HeroService`)
- **Interfaces**: No — do not use `IUser`/`IHero`. Name as nouns: `User`, `Hero`. The I-prefix is not recommended by Angular style guide.

## Folder Structure

- **Core**: `src/app/core/` (**singletons** and global state).
- **Shared**: `src/app/shared/` (**reusable UI** and pipes).
- **Features**: `src/app/features/` (**lazy-loaded**). Folder **depth ≤ 3 levels** — no deeper nesting.

## Anti-Patterns

- **No logic in templates**: Move to component class or `computed()` signal.
- **No deep nesting**: Keep folder depth ≤3 levels.
- **No I-prefix on interfaces**: Name interfaces `User`, not `IUser`.

## References

- [Naming Conventions](references/naming-convention.md)

## Canonical response anchors

When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
- app prefix,appHighlight,appFocusTrap
- Flattest structure
- do not use I,avoid the I-prefix,no I-prefix,do not prefix,No. Do not
Pliki w paczce (3)
  • SKILL.md 2 KB
  • evals/evals.json 4 KB
  • references/naming-convention.md 1 KB

Wersje

W bazie nie ma innych skilli o nazwie angular-style-guide.

Migawka bazy z 28.10.2026 · wersja paczki fac7607d2f62 (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

  • 100angular
    Określa standardy kodowania i dobre praktyki dla Angulara w plikach TypeScript, HTML, SCSS i CSS.
  • 100cpp-naming-check
    Sprawdza konwencje nazewnictwa C++ według Google Style Guide i pomaga przy zmianie nazw identyfikatorów.
  • 100angular-architecture
    Ustala standardy struktury projektu Angular, modułów funkcji i lazy loadingu.
  • 96angular
    Pomaga w tworzeniu aplikacji frontendowych w Angular: TypeScript, RxJS i SPA w środowisku przedsiębiorstwa.
  • 100coding-standards
    Zawiera kanoniczne odniesienie do wielojęzycznych standardów kodowania, współdzielone przez agentów recenzujących: reguły nazewnictwa i bazowy styl.
  • 100angular-tooling
    Obejmuje użycie Angular CLI, generowanie kodu, konfigurację budowania i optymalizację bundla.

Uwagi i zgłoszenia

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