본문으로 건너뛰기
Skillpedia
일반 코딩394k · #49

coding-agent

하는 일

AI 에이전트가 Codex, Claude Code, OpenCode 같은 코딩 도구를 백그라운드에서 실행해 기능을 만들거나, 풀 리퀘스트를 검토하거나, 큰 리팩터링을 하도록 안내합니다. 더 큰 프로그래밍 작업을 넘기려는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓다른 일을 하는 동안 더 큰 기능을 백그라운드에서 만들고 싶을 때.
  • ✓풀 리퀘스트를 검토하거나 큰 리팩터링을 코딩 도구에 맡기고 싶을 때.
  • ✓코딩 작업자가 이슈를 풀 리퀘스트로 바꾸기를 원할 때.

스킬 링크

https://github.com/openclaw/openclaw/blob/main/skills/coding-agent/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“Codex가 새 내보내기 기능을 프로젝트의 별도 복사본에서 만들고, 끝나면 알려 주게 해 주세요.”

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

작동 방식

스킬은 선택한 코딩 도구를 격리된 프로젝트 복사본에서 백그라운드 프로세스로 실행합니다. 작업자의 진행 상황을 지켜보다가 완료되거나 실패하면 보고합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Coding Agent

Use for background feature builds, PR reviews, large refactors, and issue-to-PR loops. Do not use for simple edits, read-only lookup, ACP thread-bound work, or any run inside ~/.openclaw, $OPENCLAW_STATE_DIR, or active OpenClaw state dirs.

Hard rules

  • Always launch with background:true.
  • Codex and OpenCode: use pty:true.
  • Codex: never inherit ambient CODEX_HOME or the default ~/.codex. Use a separately authenticated coding-agent home and scope it to each Codex command.
  • Claude Code: no PTY; use claude --permission-mode bypassPermissions --print.
  • Capture a real notification route before spawning.
  • Worker must send completion/failure via openclaw message send.
  • Do not rely on heartbeat, system events, or notify-on-exit.
  • Monitor with process; do not kill slow workers without cause.
  • If user asked for a specific agent, use that agent.
  • If worker fails/hangs, respawn or ask; do not silently hand-code instead.
  • Never checkout branches or run background coding agents in ~/Projects/openclaw; use an isolated checkout.
  • Classify the source ref as trusted or untrusted before any checkout or worktree creation. Never materialize a contributor-controlled ref outside the repository's approved untrusted-PR sandbox/review workflow, and never launch a permission-bypassed worker in it.
  • For tasks that modify a Git-backed project, prepare and verify the Git worktree before launch, then include the exact Git preparation block below in the worker prompt.

Mandatory Git preparation

Before launching Codex, Claude Code, or OpenCode for work that modifies a Git-backed project:

  1. Establish the intended target repository, then select its canonical remote. Prefer upstream when it exists and matches that target; otherwise verify origin. Resolve the selected remote's default branch dynamically. Determine the target base from an explicit task branch or authoritative existing-PR metadata; for other shared branches, prove the configured/tracked base or ask. Use the canonical default only for new work with no other specified base. Stop if the repository, remote, or target base cannot be proven.
  2. Classify the source ref as trusted or untrusted before any checkout or worktree creation. For contributor-controlled refs, use the repository's approved untrusted-PR sandbox/review workflow, which must own ref materialization inside the sandbox, or stop. The remaining steps and launch forms are for trusted refs only.
  3. For trusted new work, run git fetch --prune <canonical> immediately before creating a new isolated worktree and branch from <canonical>/<targetBaseBranch>.
  4. For trusted new work, verify the worktree's initial HEAD equals the fetched target-base SHA. Record the canonical remote, canonical default branch, target base branch, base SHA, worktree path, and branch.
  5. For a trusted existing PR or shared branch, fetch the canonical target base and source branch immediately before creating an isolated worktree from the fetched source branch. Record that source ref and starting SHA, report its divergence from the refreshed target base, and do not automatically rebase, merge, reset, force-push, or otherwise rewrite shared history.
  6. Launch the worker in the isolated worktree, never the primary checkout. For OpenClaw, the primary checkout under ~/Projects/openclaw remains forbidden.

For tasks that modify a Git-backed project, append this block to the worker prompt with real values:

Git preparation (mandatory before edits):
- canonical remote: <canonicalRemote>
- canonical default branch: <canonicalDefaultBranch>
- target base branch: <targetBaseBranch>
- fetched target base SHA: <targetBaseSha>
- preparation mode: <new work | existing PR/shared branch>
- checkout trust: trusted
- prepared source ref: <canonicalRemote/targetBaseBranch | fetched trusted source ref>
- prepared start SHA: <preparedStartSha>
- isolated worktree: <worktreePath>
- working branch: <branch>
- preparation receipt: <new work: `git fetch --prune <canonicalRemote>` ran immediately before creation from `<canonicalRemote>/<targetBaseBranch>` | existing branch: the canonical target base and trusted source ref were fetched immediately before the worktree was created from `<preparedSourceRef>` at `<preparedStartSha>`>

Before editing, verify the current directory is the isolated worktree and its initial HEAD equals <preparedStartSha>. For new work, that SHA must equal <targetBaseSha>. Never edit the 
자주 묻는 질문

내 메인 프로젝트를 직접 수정하나요?

아닙니다. 작업은 메인 프로젝트 폴더가 아니라 격리된 체크아웃에서 이루어집니다.

간단한 수정도 처리하나요?

아닙니다. 간단한 수정이나 읽기 전용 코드 조회는 직접 하는 편이 낫습니다. 이 스킬은 더 큰 작업용입니다.

작업자가 멈추면 어떻게 되나요?

스킬은 작업자를 지켜보며 다시 시작하거나 사용자에게 물어봅니다. 조용히 직접 작업하지는 않습니다.

상세 정보

작성자의 원본 설명

Delegate coding work to Codex, Claude Code, or OpenCode as background workers; not simple edits or read-only code lookup.

repo: openclaw/openclaw

인기도

GitHub 스타
394k
순위
#49
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬