Skip to content

Commit ad984e1

Browse files
author
SIN-Agent
committed
refactor: doctor-v8 — agent-driven, read-only scanner, DEPRECATED old auto-cli
1 parent 8037ad1 commit ad984e1

18 files changed

Lines changed: 14368 additions & 9542 deletions

docs/DOCTOR-SKILL.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# /doctor — Agent-Driven Repository Health Auditor (v8)
2+
3+
Der Doctor ist KEIN automatisches Script das blind Docs überschreibt.
4+
Der Doctor ist ein AGENT-WORKFLOW den du als AI-Agent Schritt für Schritt ausführst.
5+
6+
## Prinzipien
7+
8+
1. **KEINE automatischen Änderungen** — jeder Change wird von dir (AI) bewusst entschieden
9+
2. **KEINE Text-Replacements in Docs** — Docs dokumentieren IST-Zustand, nicht SOLL
10+
3. **JEDER Schritt durch LLM analysiert** — du verstehst WAS du änderst und WARUM
11+
4. **VORHER lesen, NACHHER prüfen** — nie blind Dateien überschreiben
12+
13+
## Workflow (Du führst aus)
14+
15+
### Phase 1: Tool-Check
16+
```bash
17+
python3 runner/doctor_tools.py --check
18+
```
19+
→ Listet verfügbare Tools. Du siehst was da ist.
20+
21+
### Phase 2: Repo-Scan (pro Repo)
22+
```bash
23+
python3 runner/doctor_tools.py --scan <REPO_PATH>
24+
```
25+
→ Gibt JSON aus mit: Sprachen, Dateien, Commits, Missing-Docs, Semgrep-Warnings.
26+
DU liest das JSON und verstehst den Zustand.
27+
28+
### Phase 3: LLM-Analyse (DU führst aus)
29+
Du nimmst den Scan-Output und fragst DICH SELBST (LLM):
30+
- Welche Docs fehlen WIRKLICH?
31+
- Welche Docs sind veraltet?
32+
- Welche Patterns sind problematisch?
33+
- Was sollte geändert werden?
34+
35+
### Phase 4: Gezielte Änderungen (DU führst aus)
36+
NUR die von dir (LLM) identifizierten Änderungen:
37+
- Fehlende Docs erstellen (nur wenn wirklich nötig)
38+
- Veraltete Docs updaten (nur spezifische Sektionen)
39+
- Semgrep-Warnings fixen (nur in Source-Code, nie in Docs!)
40+
- Prettier formatieren (nur Format, kein Inhalt)
41+
42+
### Phase 5: Commit
43+
```bash
44+
git add -A && git commit -m "docs: doctor-v8 — targeted updates"
45+
```
46+
47+
## Geschützte Docs (NIE automatisch ändern)
48+
49+
Diese Docs dokumentieren Architektur-Entscheidungen und werden NUR manuell geändert:
50+
- banned.md, brain.md, fix.md, successful.md
51+
- learn.md, anti-learn.md, commands.md
52+
- AGENTS.md, goal.md, architecture.md
53+
54+
## Tool-Liste
55+
56+
| Tool | Zweck | Befehl |
57+
|------|-------|--------|
58+
| cloc | Code-Statistiken | `cloc . --json` |
59+
| git-log | Commit-Historie | `git log --oneline -20` |
60+
| semgrep | Architecture-Guard | `semgrep --config=.semgrep_rules.yaml` |
61+
| prettier | Markdown-Format | `prettier --write '*.md'` |
62+
| graphify | Knowledge-Graph | `graphify update .` |

graphify-out/GRAPH_REPORT.md

Lines changed: 282 additions & 381 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/3035ad0c5950dff926d5844d85c62f18c5ca16d805d91bd081b6f3e5afbcd892.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/5501862af8d443e5ee36a4e9821f312596483d8bee95b3f1b9e4a7afc4cdba92.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/763b70182aeeb09aa4285f77141ebeebee19f53490c0b4c01beccb5b73ecf4f4.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/7dcfb6a138b19cd669b3eefcad5a8bd3c13faa831cdaa7725d72fd070768c12f.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/7f5a83aa9f3febf9cb5fd3762ad3de98e6b8b7ff37ebe115555cea4e61666541.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/915f1f1769a70df25f41a963bd4c04bb6a41d42b092682cf779c4545c238077a.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/a12f194badce03b6aab751f9939e455f9ad76f8ddf6f10aabf880cca463a3485.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

graphify-out/cache/ast/a4fad0624a878a4925f1b7b4ac4a583e2f9c9662ded15ba6b7a1408976f2d49a.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)