# Claude Code Workflow — Schnellreferenz ## Story-Lifecycle | Phase | Befehl / Agent | Modell | |---|---|---| | 1. Planung | `EnterPlanMode` | Sonnet | | 2. Plan-Review | `/plan-review` | **Opus 4.7** | | 3. Implementierung | Claude direkt | **Sonnet 4.6** | | 4. Test + Simplify + PR | `/go` | Haiku / Sonnet | | 5. Security-Audit | `security-audit`-Agent | **Opus 4.7** | Kurzform für den kompletten Lifecycle: `/story` --- ## Modell-Matrix | Aufgabe | Modell | Warum | |---|---|---| | Planung, Review | Opus 4.7 | Qualität entscheidend | | Implementierung | Sonnet 4.6 | Bestes Preis-Leistungs-Verhältnis | | Tests, Lint, Format | Haiku 4.5 | Schnell + günstig | | Security-Audit | Opus 4.7 | Sicherheit hat Priorität | | PR-Erstellung | Haiku 4.5 | Mechanische Aufgabe | --- ## Skills (Slash-Commands) | Befehl | Beschreibung | Datei | |---|---|---| | `/go` | Tests + Simplify + PR in einem Schritt | `skills/go.md` | | `/plan-review` | Opus reviewt aktuellen Plan | `skills/plan-review.md` | | `/story` | Voller Story-Lifecycle | `skills/story.md` | --- ## Aktive Hooks | Event | Aktion | Skript | |---|---|---| | `PostToolUse` (Edit/Write) | Auto-Format (ruff / eslint) | `hooks/auto-format.sh` | | `Stop` | Offene Tasks prüfen | `hooks/verify-on-stop.sh` | --- ## Agenten | Agent | Modell | Aufgabe | |---|---|---| | `test-runner` | Sonnet | Tests ausführen, Coverage prüfen | | `security-audit` | Sonnet | OWASP-Analyse, Security-Tests | | `plan-reviewer` | **Opus 4.7** | Plan auf Lücken/Risiken prüfen | | `n8n-architect` | Sonnet | n8n-Workflow-Design | --- ## MCP-Server | Server | Wann nutzen | |---|---| | `context7` | Bei jeder Bibliothek/Framework-Frage | | `n8n-local` | n8n-Workflow-Inspektion | --- ## Kontext-Management - **< 200k Tokens**: Normal weiterarbeiten - **200–350k Tokens**: `/compact` mit konkretem Hinweis ausführen - **> 350k Tokens**: Neue Session, Subagenten für Isolation nutzen - Nie auf automatisches Compacting verlassen — manuell mit Hints ist besser --- ## Weitere Details - Modell-Strategie: `models.md` - Story-Lifecycle: `story-lifecycle.md` - Installation/Setup: `../SETUP.md`