Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

coding-agent

БесплатноБез исполняемых скриптовНе проверен

Run Codex CLI, Claude Code, or other coding agents as background processes for programmatic control. Use when a user asks to run a coding agent, delegate a…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Coding Agent

Overview

Run coding agents (Claude Code, Codex CLI, Gemini CLI, or others) as background processes for programmatic task delegation. Spawn sub-agents to handle well-scoped tasks, monitor their progress, and collect results. Useful for parallel task execution, complex multi-step workflows, and automated coding pipelines.

Instructions

When a user asks you to delegate work to a coding agent or run one in the background, follow this process:

Step 1: Verify the agent CLI is available

Check which coding agent CLIs are installed:

# Check for Claude Code
claude --version 2>/dev/null && echo "claude available" || echo "claude not found"

# Check for Codex CLI
codex --version 2>/dev/null && echo "codex available" || echo "codex not found"

# Check for Gemini CLI
gemini --version 2>/dev/null && echo "gemini available" || echo "gemini not found"

If none are available, instruct the user to install one:

# Claude Code (npm installs the same native binary as the standalone installer)
npm install -g @anthropic-ai/claude-code

# Codex CLI
npm install -g @openai/codex

# Gemini CLI
npm install -g @google/gemini-cli

Each CLI needs its own sign-in or API key (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY) before it can run non-interactively; check this before you promise the user a background run.

Step 2: Define the task clearly

Before spawning an agent, ensure the task is:

  • Well-scoped: A single, clear objective (not "fix everything")
  • Self-contained: The agent can complete it without interactive input
  • Verifiable: You can check the output or result when done

Write a clear prompt that includes:

  • What to do (specific action)
  • Where to do it (file paths, directories)
  • Constraints (do not modify other files, follow conventions)
  • Expected output format

Step 3: Run the agent

Claude Code (background, non-interactive). -p (--print) runs one prompt and exits. In print mode nobody can answer permission prompts, so pre-approve exactly the tools the task needs:

LOG=$(mktemp /tmp/claude-agent.XXXXXX)
claude -p "Refactor the function parseConfig in src/config.ts to use zod validation. Do not modify other files." \
  --permission-mode acceptEdits \
  --allowedTools "Read" "Edit" "Bash(npx tsc --noEmit)" \
  --max-budget-usd 2 \
  --output-format text > "$LOG" 2>&1 &

AGENT_PID=$!     # the PID of claude itself (no pipe, so $! is not tee's PID)
echo "Agent running with PID: $AGENT_PID, log: $LOG"

--output-format json returns one JSON object; stream-json (needs --verbose) streams events. --permission-mode accepts manual, acceptEdits, plan, auto, dontAsk and bypassPermissions; --permission-prompts none makes anything that would prompt get denied instead of waiting; --dangerously-skip-permissions disables all checks, so use it only in a throwaway container. Claude Code also has its own background sessions: claude --bg "investigate the flaky test" --name flaky-test starts one and returns immediately, and claude agents lists and manages them.

Codex CLI. codex exec is the non-interactive entry point; it is read-only by default, streams progress to stderr and prints only the final message to stdout:

LOG=$(mktemp /tmp/codex-agent.XXXXXX)
codex exec --sandbox workspace-write --ephemeral \
  "Write unit tests for src/auth/login.ts covering success, failure, and timeout cases" \
  -o "$LOG.last" > "$LOG" 2>&1 &
AGENT_PID=$!

-o <file> writes the last message to a file, --json gives a JSONL event stream, --output-schema schema.json forces a structured final answer, and --skip-git-repo-check allows a non-git directory. --full-auto is no longer supported; use --sandbox workspace-write for edits, and --worktree to run in a fresh git worktree.

Gemini CLI:

gemini -p "Summarize the TODO comments in src/ as a markdown list" \
  --approval-mode auto_edit --output-format json > /tmp/gemini-todos.json 2>&1 &

Approval modes are default, auto_edit, yolo and plan; exit code 42 means bad input and 53 means the turn limit was hit.

Step 4: Monitor and collect results

# Check if the agent is still running
ps -p $AGENT_PID > /dev/null 2>&1 && echo "Still running" || echo "Finished"

# Wait for completion (only works in the same shell that started it)
wait $AGENT_PID
EXIT_CODE=$?
echo "Agent exited with code: $EXIT_CODE"

# Read the output
cat "$LOG"

# Stop a runaway agent by PID, never by name
kill $AGENT_PID

Step 5: Validate the results

After the agent finishes:

  • Check the exit code (0 = success)
  • Review the output for errors or warnings
  • Verify the changes by reading modified files
  • Run any relevant tests to confirm correctness
  • Report the results to the user

Examples

Example 1: Delegate test writing to a background agent

User request: "Write tests for the auth module while I work on the API"

Actions:

#
Полный SKILL.md на GitHub

Установить coding-agent в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл coding-agent?

Run Codex CLI, Claude Code, or other coding agents as background processes for programmatic control. Use when a user asks to run a coding agent, delegate a task to another AI, spawn a sub-agent, run Claude Code in the background, or orchestrate multiple coding agents on separate tasks.

Как установить скилл coding-agent?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл coding-agent запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить coding-agent с