XiaomiMiMo/MiMo-Code/packages/opencode/src/skill/builtin/.bundle/claude-code/SKILL.md
claude-code
Operate Claude Code CLI (v2.1+) via the terminal only when the user explicitly requests Claude Code or names this skill. Covers print mode (-p), interactive tmux sessions, and background (--bg) orchestration.
- Source repository stars
- 12,632
- Declared platforms
- 1
- Static risk flags
- 1
- Last source update
- 2026-08-04
- Source checked
- 2026-08-04
Decision brief
What it does—and where it fits
Delegate coding work to Claude Code, Anthropic's autonomous coding agent CLI.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/XiaomiMiMo/MiMo-Code --skill "packages/opencode/src/skill/builtin/.bundle/claude-code"Inspect the Agent Skill "claude-code" from https://github.com/XiaomiMiMo/MiMo-Code/blob/f1e99640da903b22c1147b9fee15d5fdf5691c21/packages/opencode/src/skill/builtin/.bundle/claude-code/SKILL.md at commit f1e99640da903b22c1147b9fee15d5fdf5691c21. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Mode Selection (decide FIRST)
Do NOT hand-roll tmux fan-outs for parallel work — prefer --bg + claude agents --json --all.
Do NOT hand-roll tmux fan-outs for parallel work — prefer --bg + claude agents --json --all. - 02
Print Mode (the 90% path)
Always set: workdir · --max-turns (5–10; print-mode only) · --allowedTools (least privilege: Read,Edit,Write,Bash, patterns like Bash(git )).
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) · sessionid (for resume) · subtype (success | errormaxturns | errorbudget) · totalcostusd · numturns · structuredoutput (with --json-schema).Streaming, stream-json events, bidirectional input, cache-reuse (--exclude-dynamic-system-prompt-sections) → references/print-mode.md. - 03
Background Mode
Review the “Background Mode” section in the pinned source before continuing.
Review and apply the “Background Mode” source section. - 04
Guardrails & Gotchas (violations break agents)
1. -p auto-skips trust/permission dialogs (any non-TTY does) — only run in trusted directories. 2. Interactive mode = tmux required (Windows: only inside WSL — never attempt tmux in PowerShell/cmd; fall back to -p or --bg); two startup dialogs, and the --dangerously-skip-permiss…
-p auto-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 -p or --bg); two startup dialogs, and the --dangerously-skip-permissions dialog defaults to "No, exit" (mus…Session resume is per-directory — --continue only finds sessions from the same cwd. - 05
References (read on demand)
Review the “References (read on demand)” section in the pinned source before continuing.
Review and apply the “References (read on demand)” source section.
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
git diff main... | claude -p 'Review for bugs' --max-turns 1 # pipe input, cheapest reviewEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 83/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 12,632 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- XiaomiMiMo/MiMo-Code
- Skill path
- packages/opencode/src/skill/builtin/.bundle/claude-code/SKILL.md
- Commit
- f1e99640da903b22c1147b9fee15d5fdf5691c21
- License
- MIT
- Collected
- 2026-08-04
- Default branch
- main
View the original SKILL.md
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 variants, env vars, model/effort selection |
references/config.md | CLAUDE.md/memory, settings hierarchy, custom agents, hooks, MCP, plugins, project purge |
references/platforms.md | Running on Windows (PowerShell/Git Bash/WSL) or macOS: shell translation, paths, per-OS gotchas |
Alternatives
Compare before choosing
NousResearch/hermes-agent
claude-code
Delegate coding to Claude Code CLI (features, PRs).
narrative-io/narrative-skills-marketplace
design-analysis
Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "
luongnv89/claude-howto
self-assessment
Comprehensive Claude Code self-assessment and learning path advisor. Runs a multi-category quiz covering 10 feature areas, produces a detailed skill profile with per-topic scores, identifies specific gaps, and generates a personalized learning path with prioritized next steps. Use when asked to "assess my level", "take the quiz", "find my level", "where should I start", "what should I learn next", "check my skills", "skill check", or "level up".
PramodDutta/qaskills
Pairwise Test Generator
Generate optimized test combinations using pairwise (all-pairs) testing algorithms to achieve maximum coverage with minimum test cases across multiple input parameters