sub-agent
하는 일
이 스킬은 상호작용 없이 백그라운드에서 실행되는 별도의 코딩 도우미에게 코딩 작업을 맡깁니다. 작업을 계속하는 동안 기능 구현, 검토, 리팩터링을 진행하고 싶은 개발자를 위한 스킬입니다.
사용하는 경우
- ✓다른 코딩 도우미가 백그라운드에서 독립적인 기능을 만들도록 하고 싶을 때.
- ✓코드 검토나 리팩터링에 많은 파일 탐색이 필요할 때.
- ✓코딩 도우미를 비대화형 모드로 실행해 묻지 않고 끝까지 처리하게 하고 싶을 때.
스킬 링크
https://github.com/TokenRhythm/opensquilla/blob/main/src/opensquilla/skills/bundled/sub-agent/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“결제 모듈의 리팩터링을 백그라운드 코딩 도우미에게 넘기고, 나중에 진행 상황을 확인해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 선택한 코딩 도우미를 비대화형 명령과 명확한 작업 지시와 함께 시작하고, 끝날 때까지 백그라운드 프로세스를 추적합니다. 프로세스 도구로 진행 상황을 확인하고 결과를 모읍니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Sub-Agent (opensquilla process tools)
Generic "spawn a sub-Agent" entry point for delegating self-contained tasks to Codex / Claude Code / OpenCode / Pi via background process. Use this playbook for self-contained coding and file-editing tasks.
Use OpenSquilla's exec_command and process tools for coding agent work. exec_command starts both short and long commands; use yield_time_ms=0 for a long run and keep the returned execution handle. OpenSquilla does not expose a bash tool; do not use the legacy bash tool-call DSL.
Non-Interactive CLI Mode
OpenSquilla's process tools do not expose a pty parameter. Prefer non-interactive command modes that run and exit cleanly:
# ✅ Correct for Codex/Pi/OpenCode
exec_command(command="codex exec 'Your prompt'")
For Claude Code (claude CLI), use --print --permission-mode bypassPermissions instead.
--dangerously-skip-permissions with PTY can exit after the confirmation dialog.
--print mode keeps full tool access and avoids interactive confirmation:
# ✅ Correct for Claude Code (no PTY needed)
cd /path/to/project && claude --permission-mode bypassPermissions --print 'Your task'
# For background execution: use exec_command(yield_time_ms=0, ...)
# ❌ Wrong for Claude Code
exec_command(command="claude --dangerously-skip-permissions 'task'")
OpenSquilla Tool Parameters
| Tool | Key parameters | Description |
|---|---|---|
exec_command |
command, workdir, timeout, yield_time_ms |
Start a shell command; use yield_time_ms=0 for a long run and keep the returned execution handle. |
process |
action, session_id, data, offset, limit |
Poll, log, write to, or stop a background process. |
Process Tool Actions (for background sessions)
| Action | Description |
|---|---|
list |
List all running/recent sessions |
poll |
Check if session is still running |
log |
Get session output (with optional offset/limit) |
write |
Send raw data to stdin |
submit |
Send data + newline (like typing and pressing Enter) |
eof |
Close stdin |
remove |
Remove a finished session from the process list |
kill |
Terminate the session |
Quick Start: One-Shot Tasks
For quick prompts/chats, create a temp git repo and run:
# Quick chat (Codex needs a git repo!)
SCRATCH=$(mktemp -d) && cd $SCRATCH && git init && codex exec "Your prompt here"
# Or in a real project
exec_command(workdir="~/Projects/myproject", command="codex exec 'Add error handling to the API calls'")
Why git init? Codex refuses to run outside a trusted git directory. Creating a temp repo solves this for scratch work.
The Pattern: workdir + exec_command + process
For longer tasks, use exec_command(yield_time_ms=0, ...):
# Start agent in target directory.
exec_command(yield_time_ms=0, workdir="~/project", command="codex exec --full-auto 'Build a snake game'")
# Returns an execution handle (the current compatibility field is `session_id`)
# Wait for it to finish — blocks until the process exits (or the timeout
# elapses, in which case just call wait again). Prefer this over polling in a
# loop: a looped process(action="poll") burns a full turn + tokens each time.
process(action="wait", session_id="XXX")
# Peek at output without blocking (optional, for progress)
process(action="log", session_id="XXX")
# Send input (if agent asks a question)
process(action="write", session_id="XXX", data="y")
# Submit with Enter (like typing "yes" and pressing Enter)
process(action="submit", session_id="XXX", data="yes")
# Kill if needed
process(action="kill", session_id="XXX")
Why workdir matters: Agent wakes up in a focused directory, doesn't wander off reading unrelated files (like your soul.md 😅).
Codex CLI
Model: gpt-5.2-codex is the default (set in ~/.codex/config.toml)
Flags
| Flag | Effect |
|---|---|
exec "prompt" |
One-shot execution, exits when done |
--full-auto |
Sandboxed but auto-approves in workspa |
자주 묻는 질문
어떤 도우미와 함께 작동하나요?
스킬은 Codex, Claude Code, OpenCode, Pi를 언급합니다.
대화형 터미널이 필요한가요?
아니요. 이 스킬은 실행 후 깔끔하게 종료되는 비대화형 모드를 사용합니다.
오래 걸리는 작업도 실행할 수 있나요?
네. 오래 걸리는 명령을 시작하고 나중에 확인할 수 있도록 핸들을 보관할 수 있습니다.
상세 정보
작성자의 원본 설명
Delegate a self-contained task to a coding assistant through a non-interactive background process. Use for feature development, code review, refactoring, and tasks requiring substantial file exploration.
repo: TokenRhythm/opensquilla
인기도
- GitHub 스타
- 7.1k
- 순위
- #13593
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
browser-use
7.1k에이전트가 OpenSquilla Desktop의 사이드바 브라우저에서 웹 페이지를 열고 읽고 조작하도록 돕습니다. 양식 입력과 화면 확인도 포함합니다.
deep-research
7.1k에이전트가 저장된 계획, 추적되는 출처, 인용이 달린 긴 보고서를 갖춘 다단계 조사를 하도록 가르칩니다.
docx
7.1k에이전트가 서식, 변경 내용 추적, 구조를 그대로 유지하면서 Word .docx 파일을 읽고 편집하거나 만들도록 돕습니다.
html-coder
7.1k에이전트가 접근성 있는 양식과 미디어를 갖춘 깔끔한 HTML 페이지를 쓰고 웹 미리보기로 열도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.