claude-code
Fungsinya
Skill ini menunjukkan kepada AI cara menjalankan Claude Code dalam mode non-interaktif sebagai pembantu yang mengedit kode, menganalisis proyek, atau meninjau pekerjaan. Skill ini ditujukan untuk developer yang ingin model kedua untuk meninjau atau mengerjakan sebuah tugas.
Kapan dipakai
- βSaat Anda ingin menyerahkan tugas coding atau refactoring ke Claude Code dan mendapatkan hasilnya kembali.
- βSaat Anda menginginkan pendapat kedua atau tinjauan independen dari model AI lain.
- βSaat Anda ingin beberapa pembantu Claude Code mengerjakan bagian-bagian berbeda dari sebuah tugas sekaligus.
Link skill
https://github.com/kortix-ai/suna/blob/dev/.agents/skills/claude-cli/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMinta Claude Code meninjau perubahan kode saya dan daftarkan bug apa pun yang ditemukannya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
AI menulis instruksi yang jelas, menjalankan perintah claude dalam mode headless dengan folder dan pengaturan izin yang tepat, menyimpan keluarannya, lalu memeriksa sendiri file yang berubah.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah AI mempercayai laporan Claude Code?
Tidak. Skill ini menyatakan bahwa laporan mandiri diperlakukan sebagai klaim, dan file yang berubah serta pengujian harus diverifikasi sebelum tugas dianggap selesai.
Apakah perlu Claude Code terpasang?
Ya. Alat baris perintah claude harus sudah terpasang, dan skill ini meminta pengecekan versi terlebih dahulu.
Apakah pekerjaan bisa berjalan paralel?
Bisa. Skill ini mencakup menjalankan beberapa agent sekaligus, misalnya untuk bagian-bagian terpisah dari sebuah tugas.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 20k
- Peringkat
- #10370
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
codex-cli
20kMembantu agent Anda menyerahkan tugas coding atau tinjauan ke Codex CLI milik OpenAI dan menyimpan hasilnya, sehingga model kedua dapat memeriksa pekerjaan tersebut.
commit-dis
20kMembantu agent Anda menyimpan hanya perubahan yang dibuat dalam chat ini sebagai satu commit di branch Git Anda saat ini, tanpa push atau membuat branch baru.
composio
20kMembantu agent Anda menggunakan Composio untuk menghubungkan aplikasi seperti Gmail, Slack, GitHub, dan Notion, untuk agent Anda sendiri atau untuk produk yang Anda bangun.
e2e
20kMengajari agent Anda menulis pengujian end-to-end yang menjalankan aplikasi web atau seluler dengan tujuan dalam bahasa biasa dan pemeriksaan yang tepat.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.