- Agents (test-runner, security-audit, n8n-architect) ins Repo verschoben - dotfiles/ hinzugefügt: CLAUDE.md, settings.json, statusline-command.sh - bootstrap.sh erstellt: Einrichtung per git clone + einem Befehl - SETUP.md auf 2-Schritt-Setup vereinfacht Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
58 lines
1.7 KiB
Markdown
58 lines
1.7 KiB
Markdown
# Setup-Anleitung
|
|
|
|
## Einrichtung auf neuem Rechner (2 Schritte)
|
|
|
|
```bash
|
|
git clone https://gitea.troeger-net.org/martin/claude-workflow.git /mnt/projekte/claude-workflow
|
|
/mnt/projekte/claude-workflow/bootstrap.sh
|
|
```
|
|
|
|
Das Bootstrap-Skript erstellt alle Symlinks und setzt die korrekten Berechtigungen.
|
|
|
|
## Voraussetzungen
|
|
|
|
| Tool | Zweck | Installieren |
|
|
|---|---|---|
|
|
| `jq` | Statusline-Parsing | `apt install jq` |
|
|
| `ruff` | Python-Formatter (Hook) | `pip install ruff` |
|
|
| `eslint` | JS/TS/Vue-Formatter (Hook) | Projektabhängig |
|
|
| `secret-tool` | Gitea-Token abrufen | `apt install libsecret-tools` |
|
|
|
|
### Gitea-Token einrichten
|
|
|
|
```bash
|
|
secret-tool store --label="Gitea claude-code Token" user claude-code token gitea
|
|
# Passwort: Gitea-Token eingeben
|
|
```
|
|
|
|
## Sync-Workflow
|
|
|
|
**Änderungen pushen (Rechner 1):**
|
|
```bash
|
|
cd /mnt/projekte/claude-workflow
|
|
git add -p && git commit -m "..." && git push
|
|
```
|
|
|
|
**Änderungen übernehmen (Rechner 2):**
|
|
```bash
|
|
cd /mnt/projekte/claude-workflow && git pull
|
|
```
|
|
|
|
Da alles über Symlinks verbunden ist, sind Änderungen sofort aktiv.
|
|
|
|
## Was das Repo enthält
|
|
|
|
```
|
|
claude-workflow/
|
|
├── agents/ ← Alle Agents (plan-reviewer, test-runner, security-audit, n8n-architect)
|
|
├── dotfiles/ ← ~/.claude/CLAUDE.md, settings.json, statusline-command.sh
|
|
├── hooks/ ← auto-format.sh (PostToolUse), verify-on-stop.sh (Stop)
|
|
├── skills/ ← /go, /plan-review, /story
|
|
├── workflow/ ← Referenzdokumentation (models.md, story-lifecycle.md)
|
|
└── bootstrap.sh ← Einrichtungsskript
|
|
```
|
|
|
|
## Nach System-Neuinstallation
|
|
|
|
Nur die zwei Befehle aus "Einrichtung auf neuem Rechner" ausführen.
|