claude-code
Was er macht
Dieser Skill lässt deinen Agenten das Kommandozeilenwerkzeug Claude Code ausführen, um Coding-Arbeit zu delegieren. Er richtet sich an Entwickelnde, die einen eigenen Coding-Agenten eine Aufgabe erledigen lassen wollen, während sie selbst weiterarbeiten.
Wann du ihn nutzt
- ✓Wenn du eine einmalige Code-Korrektur, ein Feature oder ein Review von Claude Code erledigen lassen willst.
- ✓Wenn eine Aufgabe mehrere Runden aus Änderungen, Tests und Review braucht.
- ✓Wenn ein langer Coding-Auftrag im Hintergrund laufen soll.
Link zum Skill
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/claude-code/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
“Ich möchte, dass Claude Code die fehlschlagenden Tests in meinem Projekt behebt und mir berichtet, was es geändert hat.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prüft zuerst, ob das claude-Werkzeug installiert und angemeldet ist. Danach wählt er je nach Aufgabe den Druckmodus, eine interaktive Sitzung oder einen Lauf im Hintergrund.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Claude Code Delegation
Delegate coding work to Claude Code, Anthropic's autonomous coding agent CLI.
Setup (once): npm install -g @anthropic-ai/claude-code && claude auth login · verify with claude auth status / claude doctor. CI token: claude setup-token. Full auth/install variants → references/flags.md.
Platform check (before running anything): detect the OS first. All shell examples in this skill are POSIX (bash). Linux/macOS run them as-is. On Windows, run Claude Code natively in PowerShell/Git Bash for print and background modes, but interactive tmux orchestration requires WSL. Shell-syntax translation table (quoting, env vars, piping, paths) → references/platforms.md.
Mode Selection (decide FIRST)
| Task shape | Mode | Why |
|---|---|---|
| One-shot task: fix bug, add feature, review diff, extract data | Print -p ← default |
No PTY, no dialogs, structured output |
| Multi-turn iterate: refactor → review → fix → test; needs slash commands | Interactive tmux → references/interactive-tmux.md |
Full REPL, requires dialog handling |
| Long-running, shouldn't block; large fan-out supervision | Background --bg |
Native supervision via claude agents |
| High-stakes PR review | claude ultrareview [pr#] |
Cloud multi-agent, exit-code driven (uploads diff to cloud — never on branches with secrets) |
Do NOT hand-roll tmux fan-outs for parallel work — prefer --bg + claude agents --json --all.
Print Mode (the 90% path)
terminal(command="claude -p 'Fix the auth bug in src/auth.py' \
--allowedTools 'Read,Edit' --max-turns 10 --output-format json",
workdir="/path/to/project", timeout=180)
Always set: workdir · --max-turns (5–10; print-mode only) · --allowedTools (least privilege: Read,Edit,Write,Bash, patterns like Bash(git *)).
JSON result fields: result (text) · session_id (for resume) · subtype (success | error_max_turns | error_budget) · total_cost_usd · num_turns · structured_output (with --json-schema).
Common variants:
git diff main... | claude -p 'Review for bugs' --max-turns 1 # pipe input, cheapest review
claude -p 'Continue: add pooling' --resume <session_id> # resume; --continue = latest in cwd; --fork-session = branch
claude -p 'List functions' --output-format json --json-schema '<schema>' --max-turns 5 # structured extraction (needs turns to read files)
claude --bare -p 'task' --settings ci.json # CI: skips hooks/plugins/CLAUDE.md; auth = ANTHROPIC_API_KEY only
claude -p 'task' --max-budget-usd 0.50 --fallback-model haiku # cost cap (min ~$0.05) + overload fallback
Streaming, stream-json events, bidirectional input, cache-reuse (--exclude-dynamic-system-prompt-sections) → references/print-mode.md.
Background Mode
claude --bg 'investigate flaky test in tests/api.test.ts' # NOT compatible with -p
claude agents --json --all # list/inspect
claude attach <id> | logs <id> | stop <id> | respawn <id> | rm <id>
Guardrails & Gotchas (violations break agents)
-pauto-skips trust/permission dialogs (any non-TTY does) — only run in trusted directories.- Interactive mode = tmux required (Windows: only inside WSL — never attempt tmux in PowerShell/cmd; fall back to
-por--bg); two startup dialogs, and the--dangerously-skip-permissionsdialog defaults to "No, exit" (must sendDownthenEnter). Full patterns →references/interactive-tmux.md. - Session resume is per-directory —
--continueonly finds sessions from the same cwd. - Slash commands don't work in
-p— describe the task in natural language instead. - Context >70% degrades quality — in interactive sessions monitor
/context, use/compact. - Clean up: kill tmux sessions and
claude stop/rmbackground sessions when done. - Don't kill slow sessions — capture progress first (
tmux capture-pane/claude logs). - Report back: after completion, summarize what changed (use the JSON
result+git diff).
References (read on demand)
| File | Read when |
|---|---|
references/print-mode.md |
Streaming output, stream-json events, piping, schemas, session mgmt, cache reuse |
references/interactive-tmux.md |
Any tmux/PTY session: dialogs, send-keys, monitoring, slash commands, shortcuts |
references/flags.md |
Full CLI flag & subcommand tables, auth vari |
Häufige Fragen
Läuft er ohne meine Erlaubnis?
Nein. Der Skill wird nur geladen, wenn du ihn ausdrücklich freigibst oder Claude Code nennst.
Was ist, wenn Claude Code nicht installiert ist?
Der Agent hält an und gibt dir Anleitungen zur Installation und Anmeldung.
Funktioniert es unter Windows?
Druck- und Hintergrundmodus laufen nativ. Interaktive Sitzungen brauchen unter Windows WSL.
Details
Originalbeschreibung des Autors
Operate Claude Code CLI (v2.1+) via the terminal. Load only when the user explicitly authorizes this skill or names Claude Code / claude-code. Before any command, confirm the `claude` binary is available; if missing, stop and give install or auth guidance. Covers print mode (-p), interactive tmux sessions, and background (--bg) orchestration.
repo: XiaomiMiMo/MiMo-Code
Beliebtheit
- GitHub-Sterne
- 14k
- Platz im Ranking
- #11304
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
effect
14kHilft deinem Agenten, Fragen zum TypeScript-Framework Effect zu beantworten, indem er Quellcode und Doku prüft, statt sich auf sein Gedächtnis zu verlassen.
arxiv
14kHilft deinem Agenten, akademische Paper auf arXiv zu suchen, zu lesen, zu zitieren und zu verfolgen, mit Zusammenfassungen, BibTeX-Zitaten, PDF-Downloads und Zitierverbindungen.
codex
14kHilft deinem Agenten, das Kommandozeilenwerkzeug OpenAI Codex ohne Chat-Fenster auszuführen, für Coding-Aufgaben, Skripte und automatisierte Abläufe.
compose-next
14kFührt auf deine Anfrage einen vollständigen Feature-Workflow aus: Anforderungen klären, Spezifikation schreiben, umsetzen, prüfen, begutachten und die Änderung abschließen.
Ä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.