claude-code
Was er macht
Dieser Skill zeigt der KI, wie sie Claude Code im nicht interaktiven Modus als Helfer startet, der Code ändert, Projekte analysiert oder Arbeit prüft. Er ist für Entwickler gedacht, die ein zweites Modell für Prüfung oder Ausführung einer Aufgabe einsetzen wollen.
Wann du ihn nutzt
- ✓Wenn du eine Programmier oder Refactoring Aufgabe an Claude Code übergeben und das Ergebnis zurückbekommen willst.
- ✓Wenn du eine zweite Meinung oder eine unabhängige Prüfung von einem anderen KI Modell willst.
- ✓Wenn mehrere Claude Code Helfer gleichzeitig an getrennten Teilen einer Aufgabe arbeiten sollen.
Link zum Skill
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/claude-cli/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Lass Claude Code meine Code Änderungen prüfen und alle Fehler auflisten, die es findet.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI schreibt eine klare Anweisung, startet den claude Befehl im Headless Modus mit dem richtigen Ordner und den passenden Berechtigungen, speichert die Ausgabe und prüft danach selbst die geänderten Dateien.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Claude Code as a Sub-Agent
Claude Code is Anthropic's terminal coding agent. Its headless mode,
claude -p (a.k.a. --print), makes it a disposable sub-agent: you write the
metaprompt, Claude explores/edits/runs commands on its own, and returns a final
message you capture and verify. You stay the planner; Claude is the implementer —
it's a strong long-context planner, so this is useful for reviews, big-picture
design, and cross-cutting refactors.
Golden rule: Claude's self-report is a claim, not the truth. Capture its output, then independently verify the artifacts yourself (read the files, re-run the tests) before treating the task as done.
Verified locally: claude 2.1.167. Confirm install with claude --version.
The core command
claude -p "your metaprompt here" \
--add-dir <workdir> \
--permission-mode <default|acceptEdits|plan|bypassPermissions> \
--output-format json >/tmp/claude_<rand>.json 2>>/tmp/claude_<rand>.log
-p, --print— headless: print the response and exit. Required for scripting.- Prompt as the arg, OR pipe via stdin:
echo "$PROMPT" | claude -p(good for long/generated prompts). --output-format—text(default),json(single object withresult+session_id+ cost/usage), orstream-json(NDJSON events as they arrive). Usejsonfor clean capture and to grab thesession_idfor resume.- Redirect stdout to a capture file and stderr to a log so progress noise
doesn't pollute your context. Generate
<rand>once per run. --model <alias|id>— pin the model (e.g.opus,sonnet, or a full id).--add-dir <dir>...— extra directories Claude may read/write.--append-system-prompt <text>— inject extra instructions/persona.
Permission modes (pick the least privilege)
default— Claude asks before edits/commands. In headless-pit cannot prompt, so write actions are effectively blocked → good for read-only review/analysis.plan— Claude plans but does not edit. Use for "design this / find the bug".acceptEdits— auto-accepts file edits. Use for real implementation.bypassPermissions(or--dangerously-skip-permissions) — no gating at all. Powerful; only use when the user has explicitly authorized autonomous edits AND the working dir is scoped, or in a throwaway dir. When unsure, ask which mode before granting write access.
Output & session resume
- Parse
--output-format json: theresultfield is the final message; thesession_idfield lets you continue the same conversation. - Resume with context intact:
claude -p --continue "now also update the tests" # most recent session claude -p --resume <session-id> "..." # a specific session - Use resume for multi-turn delegation (draft → refine → fix) instead of re-sending all context.
Delegation patterns
- One-shot task — scope
--add-dir,acceptEdits, capture, verify. - Second opinion / adversarial review —
planmode, ask Claude to critique your diff or find bugs. Different model, different blind spots. - Plan/implement split — Claude designs; you implement (or vice-versa).
- Parallel fan-out — for N independent tasks, launch N
claude -pruns, each with its own capture/log file. For concurrent WRITE runs, give each its owngit worktree adddir and point--add-dirthere to avoid edit collisions.
The supervision loop (never skip)
- Delegate —
claude -p ... --output-format json >out 2>>log. - Capture — read the
resultfromout(andlog/stream-json for detail). - Verify INDEPENDENTLY — do not trust "tests pass" / "done":
git status/git diffto see what actually changed.- Read the changed files yourself.
- Re-run the build/tests/linter yourself and read the real output.
- Iterate — if wrong,
claude -p --continue "<correction>"and repeat. - Report — state what changed, what you verified, and how. Say plainly when something failed or was skipped.
Cleanup: remove /tmp/claude_* capture/log files (and any throwaway worktrees)
when done.
Häufige Fragen
Vertraut die KI dem Bericht von Claude Code?
Nein. Der Skill sagt, dass die Selbstauskunft als Behauptung gilt und geänderte Dateien und Tests vor dem Abschluss selbst geprüft werden.
Muss Claude Code installiert sein?
Ja. Das claude Kommandozeilen Werkzeug muss installiert sein, und der Skill sagt, dass zuerst die Version geprüft wird.
Kann die Arbeit parallel laufen?
Ja. Der Skill deckt auch den Betrieb mehrerer Agenten gleichzeitig ab, etwa an getrennten Teilen einer Aufgabe.
Details
Originalbeschreibung des Autors
Drive Anthropic's Claude Code CLI (`claude -p`) as a non-interactive coding sub-agent from inside Codex. Use when you want to delegate a coding/analysis/refactor task to Claude, get a second opinion / adversarial review from another model, hand off long-context planning, or fan out parallel agents. Covers the exact `claude -p` flags, permission modes, output capture, JSON/stream-json modes, session resume, parallel fan-out, and the mandatory "delegate → capture → independently verify, never trust the self-report" supervision loop.
repo: kortix-ai/suna
Beliebtheit
- GitHub-Sterne
- 20k
- Platz im Ranking
- #10370
- Lizenz
- —
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
codex-cli
20kLässt deinen Agenten eine Programmier oder Prüfaufgabe an die Codex CLI von OpenAI übergeben und das Ergebnis festhalten, damit ein zweites Modell die Arbeit prüfen kann.
commit-dis
20kLässt deinen Agenten nur die Änderungen aus diesem Chat als einen Commit auf deinem aktuellen Git Branch speichern, ohne zu pushen oder einen neuen Branch anzulegen.
composio
20kHilft deinem Agenten, Composio zu nutzen, um Apps wie Gmail, Slack, GitHub und Notion zu verbinden, für deinen eigenen Agenten oder für ein Produkt, das du baust.
e2e
20kBringt deinem Agenten bei, End to End Tests zu schreiben, die eine Web oder Mobile App mit einfachen Zielen und exakten Prüfungen steuern.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.