본문으로 건너뛰기
Skillpedia
에이전트20k · #10370

claude-code

하는 일

이 스킬은 AI가 Claude Code를 비대화형 모드로 실행해 코드를 고치거나 프로젝트를 분석하거나 작업을 검토하도록 안내합니다. 작업을 검토하거나 수행할 두 번째 모델이 필요한 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓코딩 또는 리팩터링 작업을 Claude Code에 맡기고 결과를 돌려받고 싶을 때.
  • ✓다른 AI 모델의 두 번째 의견이나 독립적인 검토가 필요할 때.
  • ✓여러 Claude Code 도우미가 작업의 서로 다른 부분을 동시에 처리하게 하고 싶을 때.

스킬 링크

https://github.com/kortix-ai/suna/blob/dev/.agents/skills/claude-cli/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/kortix-ai/suna/blob/dev/.agents/skills/claude-cli/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Claude Code에게 제 코드 변경 사항을 검토하고 찾은 버그를 정리해 달라고 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI가 명확한 지시문을 작성하고, 알맞은 폴더와 권한 설정으로 claude 명령을 헤드리스 모드에서 실행한 뒤, 출력을 저장하고 변경된 파일을 직접 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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 with result + session_id + cost/usage), or stream-json (NDJSON events as they arrive). Use json for clean capture and to grab the session_id for 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 -p it 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: the result field is the final message; the session_id field 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 — plan mode, 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 -p runs, each with its own capture/log file. For concurrent WRITE runs, give each its own git worktree add dir and point --add-dir there to avoid edit collisions.

The supervision loop (never skip)

  1. Delegate — claude -p ... --output-format json >out 2>>log.
  2. Capture — read the result from out (and log/stream-json for detail).
  3. Verify INDEPENDENTLY — do not trust "tests pass" / "done":
    • git status / git diff to see what actually changed.
    • Read the changed files yourself.
    • Re-run the build/tests/linter yourself and read the real output.
  4. Iterate — if wrong, claude -p --continue "<correction>" and repeat.
  5. 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.

자주 묻는 질문

AI는 Claude Code의 보고를 믿나요?

아니요. 이 스킬은 Claude Code의 자체 보고를 하나의 주장으로 보고, 작업을 끝냈다고 하기 전에 변경된 파일과 테스트를 직접 확인하라고 안내합니다.

Claude Code가 설치되어 있어야 하나요?

예. claude 명령줄 도구가 설치되어 있어야 하며, 스킬은 먼저 버전을 확인하라고 안내합니다.

작업을 병렬로 진행할 수 있나요?

예. 이 스킬은 여러 에이전트를 동시에 실행하는 방법도 다룹니다. 예를 들어 작업의 서로 다른 부분을 나눠 맡길 수 있습니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
20k
순위
#10370
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬