feat: add performance, conversion and accessibility skills
All checks were successful
Production Build & Deploy / build-and-deploy (push) Successful in 25s

This commit is contained in:
DanielS
2026-07-07 01:00:21 +02:00
parent ec42fbe520
commit 1c185f4121
5 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
---
name: clean-code-architecture
description: Erzwingt eine saubere, modulare und leicht wartbare Code-Architektur basierend auf Best Practices des modernen Software-Engineering.
---
# Clean Code Architecture Guidelines
* **Single-Responsibility-Prinzip:** Jede UI-Komponente (z.B. `Button.astro`, `Card.astro`) erfüllt genau eine Aufgabe. Logik und visuelle Präsentation werden strikt getrennt.
* **DRY (Don't Repeat Yourself):** Wiederkehrende Layout-Muster, Farbkombinationen oder Abstände werden konsequent in globale CSS-Variablen, Tailwind-Configs oder wiederverwendbare Unterkomponenten ausgelagert.
* **Selbstdokumentierender Code:** Nutzung von aussagekräftigen, semantischen CSS- und Komponenten-Namen (z.B. `BentoGridGold.astro` statt `Grid2.astro`). Komplexe Logik wird inline kurz und prägnant kommentiert.