coding-agent · swarmclawai — скилл для Claude Code: делегирование задач
Передаёт внешним кодовым агентам работу над отдельным проектом, ревью PR и крупным рефакторингом. Пригодится, когда задаче нужно изучить файлы и сделать несколько итераций.
npx skills add swarmclawai/swarmclaw --skill coding-agent -a claude-codeЧто делает coding-agent
Скилл запускает через оболочку Claude Code, Codex, Pi или OpenCode, чтобы поручить им задачу в отдельном проекте. Он подходит для разработки функций, ревью PR и рефакторинга, когда агенту нужно исследовать файлы. Простые правки в одну строку и чтение кода он оставляет обычным инструментам.
Для Claude Code инструкция рекомендует режим --print --permission-mode bypassPermissions без PTY. Codex запускается в Git-репозитории; для черновой работы инструкция предлагает создать временную папку и инициализировать там Git. PR следует проверять в отдельной папке или git worktree, не в каталоге SwarmClaw. Это ограничение важно: запускать агентов внутри проекта SwarmClaw нельзя.
Какие задачи решает
- делегировать разработку функции во внешнем проекте
- проверить PR в отдельной рабочей папке
- разобрать большой кодовый проект перед рефакторингом
- параллельно исправить несколько задач через
git worktree
Примеры запросов агенту
- Реализуй эту функцию в отдельном проекте и изучи связанные файлы перед правками.
- Проверь этот PR в отдельной рабочей папке и сообщи о найденных проблемах.
- Исправь две задачи параллельно в отдельных
git worktreeи создай коммиты.
Как установить coding-agent
1Через Skills CLI (Vercel)
npx skills add swarmclawai/swarmclaw --skill coding-agent -a claude-code2Вручную: положить файлы
~/.claude/skills/coding-agent/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/coding-agent/
1Через Skills CLI (Vercel)
npx skills add swarmclawai/swarmclaw --skill coding-agent -a codex2Вручную: положить файлы
.agents/skills/coding-agent/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add swarmclawai/swarmclaw --skill coding-agent -a cursor2Вручную: положить файлы
.cursor/skills/coding-agent/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install swarmclawai/swarmclaw coding-agent2Вручную: положить файлы
.github/skills/coding-agent/SKILL.md1Через Skills CLI (Vercel)
npx skills add swarmclawai/swarmclaw --skill coding-agent -a gemini-cli2Командой платформы
gemini skills install https://github.com/swarmclawai/swarmclaw --path skills/coding-agentВручную: положить файлы
.devin/skills/coding-agent/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add swarmclawai/swarmclaw --skill coding-agent -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о coding-agent
Как установить coding-agent в Claude Code?
Выполните npx skills add swarmclawai/swarmclaw --skill coding-agent -a claude-code. Скилл устанавливается по пути ~/.claude/skills/coding-agent/SKILL.md.
Что делает coding-agent?
Он делегирует задачи внешним кодовым агентам через оболочку: разработку, ревью PR и рефакторинг. Для чтения кода и простых правок в одну строку инструкция рекомендует обычные инструменты.
Можно ли запускать Codex вне Git-репозитория?
Codex отказывается работать вне Git-каталога. Для черновой работы инструкция предлагает создать временную папку и выполнить в ней git init.
Исходный текст
SKILL.md · MIT
---
name: coding-agent
description: 'Delegate coding tasks to external coding agents (Claude Code, Codex, Pi, OpenCode) via shell. Use when: (1) building new features or apps in a separate project, (2) reviewing PRs, (3) refactoring large codebases, (4) iterative coding that needs file exploration. NOT for: simple one-liner fixes (just edit directly), reading code (use read/file tools), or work inside the SwarmClaw workspace itself.'
metadata:
{
"openclaw": { "emoji": "🧩", "requires": { "anyBins": ["claude", "codex", "opencode", "pi"] } },
}
---
# Coding Agent
Delegate coding tasks to external coding agents via shell tools.
## Agent Execution Modes
### Claude Code (recommended)
Use `--print --permission-mode bypassPermissions` for non-interactive execution:
```bash
cd /path/to/project && claude --permission-mode bypassPermissions --print 'Your task here'
```
For background execution, use the shell tool's background mode.
**Do NOT use PTY mode with Claude Code** — `--print` mode keeps full tool access and avoids interactive confirmation dialogs.
### Codex
Codex requires a git repository and PTY mode:
```bash
# Quick one-shot (auto-approves changes)
cd /path/to/project && codex exec --full-auto 'Build a dark mode toggle'
# Codex refuses to run outside a git directory. For scratch work:
SCRATCH=$(mktemp -d) && cd $SCRATCH && git init && codex exec "Your prompt"
```
### Pi Coding Agent
```bash
# Install: npm install -g @mariozechner/pi-coding-agent
cd /path/to/project && pi 'Your task'
# Non-interactive mode
pi -p 'Summarize src/'
# Different provider/model
pi --provider openai --model gpt-4o-mini -p 'Your task'
```
### OpenCode
```bash
cd /path/to/project && opencode run 'Your task'
```
## PR Reviews
Clone to a temp folder or use git worktree — never review PRs in the SwarmClaw project directory:
```bash
# Clone to temp for safe review
REVIEW_DIR=$(mktemp -d)
git clone https://github.com/user/repo.git $REVIEW_DIR
cd $REVIEW_DIR && gh pr checkout 130
codex review --base origin/main
# Or use git worktree
git worktree add /tmp/pr-130-review pr-130-branch
cd /tmp/pr-130-review && codex review --base main
```
## Parallel Issue Fixing
Use git worktrees to fix multiple issues in parallel:
```bash
# Create worktrees
git worktree add -b fix/issue-78 /tmp/issue-78 main
git worktree add -b fix/issue-99 /tmp/issue-99 main
# Launch agents (use background shell execution)
cd /tmp/issue-78 && codex --yolo 'Fix issue #78: <description>. Commit when done.'
cd /tmp/issue-99 && codex --yolo 'Fix issue #99: <description>. Commit when done.'
# Create PRs after
cd /tmp/issue-78 && git push -u origin fix/issue-78
gh pr create --repo user/repo --head fix/issue-78 --title "fix: ..." --body "..."
# Cleanup
git worktree remove /tmp/issue-78
git worktree remove /tmp/issue-99
```
## Rules
1. **Use the right execution mode per agent**: Claude Code uses `--print` (no PTY); Codex/Pi/OpenCode may need interactive terminal.
2. **Respect tool choice** — if the user asks for Codex, use Codex. Don't silently switch agents.
3. **Be patient** — don't kill sessions because they seem slow.
4. **Monitor progress** — check output periodically without interfering.
5. **Never run coding agents inside the SwarmClaw project directory** — use a separate project directory or temp folder.
## Progress Updates
When spawning coding agents in the background:
- Send a short message when you start (what's running, where).
- Update only when something changes (milestone, error, completion).
- If you kill a session, say so immediately and explain why.
© swarmclawai · MIT · swarmclawai/swarmclaw
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — coding-agent от других авторов.