1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 10:19:35 +01:00

docs: update CLAUDE for nix gh commands

This commit is contained in:
Sebastian Frick 2026-02-19 09:13:52 +01:00
parent e34b321517
commit 554185a012

View file

@ -67,6 +67,62 @@ Conventional Commits. Kein `Co-Authored-By` Header niemals.
## DDD Skill
Für neue Bounded Contexts: `/ddd-implement` Skill verwenden. Dokumentation unter `.claude/skills/ddd-implement/SKILL.md`.
## GitHub CLI (`gh`)
> **WICHTIG: `gh`-Befehle NIEMALS ohne ausdrückliche Zustimmung des Users ausführen!**
> Issues anlegen, PRs erstellen, Labels/Milestones verwalten all das verändert den Remote-Zustand und ist schwer rückgängig zu machen. IMMER vorher fragen.
`gh` ist nicht direkt installiert, sondern wird über Nix bereitgestellt:
```bash
# Alle gh-Befehle mit diesem Prefix ausführen:
nix shell nixpkgs#gh -c gh <command>
# Auth prüfen
nix shell nixpkgs#gh -c gh auth status
# Repo-Info
nix shell nixpkgs#gh -c gh repo view --json name,owner
```
### Milestones (via API, kein `gh milestone`-Subcommand)
```bash
# Auflisten
nix shell nixpkgs#gh -c gh api repos/{owner}/{repo}/milestones
# Erstellen
nix shell nixpkgs#gh -c gh api repos/{owner}/{repo}/milestones \
-f title="Name" -f state=open -f description="Beschreibung"
```
### Labels
```bash
# Auflisten
nix shell nixpkgs#gh -c gh label list --limit 100
# Erstellen
nix shell nixpkgs#gh -c gh label create "label-name" --color "0E8A16" --description "Beschreibung"
```
### Issues
```bash
# Erstellen (Body via HEREDOC für Multiline)
nix shell nixpkgs#gh -c gh issue create \
--title "Titel" \
--milestone "Milestone Name" \
--label "label1,label2" \
--body "$(cat <<'EOF'
Issue-Body mit Markdown...
EOF
)"
# Auflisten
nix shell nixpkgs#gh -c gh issue list --milestone "Name" --limit 50
```
## Doku
- `docs/QUICK_START.md` Lokale Entwicklung, Docker, Seed-Daten
- `docs/USER_MANAGEMENT.md` Referenz-BC mit AuthorizationPort, JWT, Audit