Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .claude/commands/agent-status.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ Zeige Status f眉r: $ARGUMENTS (oder alle Agents)
## Pr眉fungen

### 1. Agent-Konfiguration

- Supervisor-Hierarchie intakt?
- STOP-Score Berechnung aktiv?
- Evidence-Logging aktiviert?

### 2. Aktive Sessions

- Laufende Auftr盲ge
- Pending Approvals
- STOP_REQUIRED Events

### 3. Performance

- Durchschnittlicher STOP-Score
- Erfolgsrate
- Letzte Aktivit盲t
Expand Down
4 changes: 4 additions & 0 deletions .claude/commands/brain.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ Nutze die Brain API f眉r Wissensmanagement.
## Verf眉gbare Aktionen:

### Suchen

```bash
curl -s -H "Authorization: Bearer $TOKEN" \
"http://localhost:3000/api/brain/search?q=QUERY"
```

### Text hinzuf眉gen

```bash
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
Expand All @@ -19,12 +21,14 @@ curl -s -X POST -H "Authorization: Bearer $TOKEN" \
```

### Dokumente auflisten

```bash
curl -s -H "Authorization: Bearer $TOKEN" \
"http://localhost:3000/api/brain/docs"
```

### Statistiken

```bash
curl -s -H "Authorization: Bearer $TOKEN" \
"http://localhost:3000/api/brain/stats"
Expand Down
5 changes: 5 additions & 0 deletions .claude/commands/design.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,38 @@ F眉hre ein UI/UX Review durch f眉r: $ARGUMENTS
## Pr眉fungen

### 1. Visual Design

- [ ] Konsistente Farbpalette
- [ ] Typography einheitlich
- [ ] Spacing/Padding konsistent
- [ ] Icons einheitlich
- [ ] Bilder optimiert

### 2. User Experience

- [ ] Intuitive Navigation
- [ ] Klare Call-to-Actions
- [ ] Feedback bei Aktionen (Loading, Success, Error)
- [ ] Formulare benutzerfreundlich
- [ ] Error Messages verst盲ndlich

### 3. Accessibility (A11y)

- [ ] Kontrast ausreichend (WCAG 2.1)
- [ ] Alt-Texte f眉r Bilder
- [ ] Keyboard Navigation
- [ ] Screen Reader kompatibel
- [ ] Focus States sichtbar

### 4. Responsive Design

- [ ] Mobile (< 640px)
- [ ] Tablet (640px - 1024px)
- [ ] Desktop (> 1024px)
- [ ] Touch-friendly auf Mobile

### 5. Performance UX

- [ ] Ladezeit < 3 Sekunden
- [ ] Skeleton Loaders
- [ ] Lazy Loading f眉r Bilder
Expand Down
16 changes: 13 additions & 3 deletions .claude/commands/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,37 @@ Erstelle/Aktualisiere Dokumentation f眉r: $ARGUMENTS
## Dokumentations-Typen

### 1. README.md

- Projekt-Beschreibung
- Quick Start Guide
- Installation
- Usage Examples
- Contributing Guidelines

### 2. API Documentation

- Endpoints Liste
- Request/Response Beispiele
- Authentication
- Error Codes
- Rate Limits

### 3. Code Documentation

- JSDoc f眉r alle Funktionen
- Inline Kommentare f眉r komplexe Logik
- Type Definitions

### 4. User Guide

- Getting Started
- Features 脺bersicht
- Step-by-Step Tutorials
- FAQ
- Troubleshooting

### 5. Architecture Docs

- System Overview
- Component Diagram
- Data Flow
Expand All @@ -48,22 +53,27 @@ Erstelle/Aktualisiere Dokumentation f眉r: $ARGUMENTS
# [Titel]

## 脺bersicht

[Kurze Beschreibung]

## Inhaltsverzeichnis

1. [Section 1]
2. [Section 2]
...
...

## [Section 1]

[Inhalt]

## [Section 2]

[Inhalt]

---
*Erstellt am: [Datum]*
*Version: [Version]*

_Erstellt am: [Datum]_
_Version: [Version]_
```

## Regeln
Expand Down
12 changes: 10 additions & 2 deletions .claude/commands/fix.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,32 @@ Analysiere und behebe: $ARGUMENTS
## Vorgehen (Root Cause First)

### 1. Error-Analyse

- Exakte Error-Message lesen
- Stack Trace analysieren
- Betroffene Dateien identifizieren

### 2. Root Cause finden

- Nicht Symptome fixen, sondern Ursache
- Abh盲ngigkeiten pr眉fen
- Kontext zur Gesamtarchitektur beachten

### 3. Fix implementieren

- Kleinster m枚glicher Fix
- TypeScript-konform
- Keine neuen `any` Types

### 4. Verifikation

- Fehler reproduzieren
- Fix testen
- Keine Regression

## Output Format

```
````
## Fehler-Analyse

**Error**: [Exakte Message]
Expand All @@ -46,10 +50,14 @@ Analysiere und behebe: $ARGUMENTS

// Nachher
...
```
````

### Verifikation

- [ ] Fehler behoben
- [ ] Keine Regression
- [ ] Types korrekt

```

```
5 changes: 5 additions & 0 deletions .claude/commands/implement.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,19 @@ Implementiere: $ARGUMENTS
## Vorgehen (nach Coding Standards)

### 1. Analyse

- Verstehe den Kontext zur Gesamtarchitektur
- Identifiziere Abh盲ngigkeiten zwischen Modulen
- Pr眉fe bestehende Patterns im Code

### 2. Planung

- Kleine, testbare Schritte definieren
- Types zuerst (shared types wenn Frontend+Backend)
- State-Management vor UI

### 3. Implementation

- TypeScript strict mode
- Keine `any` Types
- JSDoc f眉r alle Funktionen
Expand All @@ -29,11 +32,13 @@ Implementiere: $ARGUMENTS
- SCREAMING_SNAKE_CASE (Konstanten)

### 4. Integration

- Error-Handling (try/catch, Loading, Error States)
- Input-Validierung Frontend + Backend
- API-Types teilen

### 5. Verifikation

- Nach jedem Schritt testen
- Bei Fehlern: Root Cause zuerst fixen

Expand Down
4 changes: 4 additions & 0 deletions .claude/commands/review.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,25 @@ F眉hre ein Code Review durch f眉r: $ARGUMENTS
## Pr眉fe folgende Aspekte:

### 1. TypeScript Standards

- [ ] Strikte Typisierung (keine `any`)
- [ ] Korrekte Namenskonventionen
- [ ] JSDoc Dokumentation vorhanden

### 2. Sicherheit

- [ ] Input-Validierung
- [ ] Keine hardgecodeten Secrets
- [ ] XSS/Injection Prevention

### 3. Code-Qualit盲t

- [ ] DRY-Prinzip eingehalten
- [ ] Single Responsibility
- [ ] Aussagekr盲ftige Namen

### 4. Integration

- [ ] API-Types geteilt
- [ ] Error-Handling vollst盲ndig
- [ ] State vor UI
Expand Down
5 changes: 5 additions & 0 deletions .claude/commands/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,34 @@ F眉hre ein Sicherheits-Audit durch f眉r: $ARGUMENTS
## Pr眉fungen

### 1. Secrets & Credentials

- [ ] Keine hardgecodeten API-Keys
- [ ] Keine Passw枚rter im Code
- [ ] .env Dateien in .gitignore
- [ ] Keine Secrets in Git History

### 2. Input Validierung

- [ ] Frontend: Alle User-Inputs validiert
- [ ] Backend: Alle API-Inputs validiert
- [ ] SQL Injection Prevention
- [ ] XSS Prevention

### 3. Authentication & Authorization

- [ ] Auth auf allen gesch眉tzten Routen
- [ ] Token Expiration konfiguriert
- [ ] CORS richtig konfiguriert
- [ ] Rate Limiting aktiv

### 4. Dependencies

- [ ] `npm audit` ausf眉hren
- [ ] Keine bekannten Vulnerabilities
- [ ] Dependencies aktuell

### 5. OWASP Top 10

- [ ] Injection
- [ ] Broken Authentication
- [ ] Sensitive Data Exposure
Expand Down
4 changes: 4 additions & 0 deletions .claude/commands/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,26 @@ Schreibe/F眉hre Tests aus f眉r: $ARGUMENTS
## Test-Typen

### 1. Unit Tests

- Einzelne Funktionen testen
- Mocking f眉r Dependencies
- Edge Cases abdecken
- 80%+ Coverage Ziel

### 2. Integration Tests

- API Endpoints testen
- Database Operations
- External Services (mocked)

### 3. E2E Tests

- User Flows testen
- Critical Paths
- Cross-Browser (wenn relevant)

### 4. Component Tests (Frontend)

- React Component Rendering
- User Interactions
- State Changes
Expand Down
17 changes: 10 additions & 7 deletions .claude/commands/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,27 @@ Analysiere und plane Automatisierung f眉r: $ARGUMENTS
## Analyse-Schritte

### 1. Aktuellen Workflow verstehen

- Welche manuellen Schritte gibt es?
- Wer macht was?
- Wie lange dauert jeder Schritt?
- Wo sind Bottlenecks?

### 2. Automatisierungs-Potenzial

- Welche Schritte sind repetitiv?
- Welche Schritte brauchen keine menschliche Entscheidung?
- Welche k枚nnen Agents 眉bernehmen?

### 3. Agent-Zuweisung
| Task | Agent | Trigger |
|------|-------|---------|
| Code Review | /review | PR erstellt |
| Security Check | /security | Vor Deploy |
| Tests | /test | Nach Code Change |
| Docs | /docs | Nach Feature Complete |
| Design Check | /design | Vor Release |

| Task | Agent | Trigger |
| -------------- | --------- | --------------------- |
| Code Review | /review | PR erstellt |
| Security Check | /security | Vor Deploy |
| Tests | /test | Nach Code Change |
| Docs | /docs | Nach Feature Complete |
| Design Check | /design | Vor Release |

## Workflow-Template

Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## OTOP Rules (MUST)

- Add `data-otop-id` + `data-testid` to every interactive UI component (Web).
- React Native: add `testID` + `accessibilityLabel="otop:<id>"`.
- Do not hardcode API URLs; use ENV/proxy.
Expand Down
Loading