agentleFS
ethosagentethosagent/ethos/skills/software-development/coding-agent/SKILL.md

coding-agent

Skill22 starsChanged 8 days agoMITView on GitHub

Delegate file-heavy implementation work to a specialized coding CLI (Claude Code / Codex / OpenCode / Pi). Runs the delegated CLI inside the process tool — full audit logs, kill control, session record. Used by the coordinator pattern when "implement this feature, here are the files" is the request.

  • Reads credentials

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use discord-e2e, openclaw-repair-sweep and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • molt-botSkill

    discord-e2e

    Test Discord with Convex-leased QA bots: check credentials without a Gateway, exercise owned messages, or prove OpenClaw replies, files, threads, reactions, streaming, and typing. Distinguish API and Gateway evidence from manual user interactions.

    Also in 10 projects that use this

  • molt-botSkill

    openclaw-repair-sweep

    Run scoped OpenClaw issue/PR repair campaigns: coordinate workers, prove root causes, and land or close verified work under the requested authority.

    Also in 10 projects that use this

  • clawdbotSkill

    openclaw-performance

    Performance work in OpenClaw: a slow or heavy flow (latency, CPU, memory, SQL, RPC, renders), writing or reviewing a perf PR, or adding a cache. Count the work, delete waste first, cache last.

    Also in 7 projects that use this

  • clawdbotSkill

    plugin-sdk-impact

    Count Plugin SDK consumers across live ClawHub releases and bundled OpenClaw plugins before deprecation, removal, or behavior changes; supports public release-date filters.

    Also in 7 projects that use this

  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 6 projects that use this

  • hkyutongSkill

    node-connect

    Diagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps. Use when QR/setup code/manual connect fails, local Wi-Fi works but VPS/tailnet does not, or errors mention pairing required, unauthorized, bootstrap token invalid or expired, gateway.bind, gateway.remote.url, Tailscale, or plugins.entries.device-pair.config.publicUrl.

    Also in 18 projects that use this

  • +2 more from molt-bot

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the change is small (one file, a few lines), do not delegate — execute it directly.

    line 52
  2. Distinctive:

    If the user did not specify, ask.

    line 63
  3. Distinctive:

    Run the adapter's check commands before spawning.

    line 67
  4. Distinctive:

    Refuse to delegate: if the CLI is not installed or not authenticated.

    line 74
  5. Very specific:

    Use process_logs to surface progress to the user.

    line 92
  6. Distinctive:

    Never silently let a delegated process run forever.

    line 97
  7. Distinctive:

    When the delegated CLI exits:

    line 101
  8. Very specific:

    If the user is done with the delegation, the session record stays for replay but the running process is gone (it already exited).

    line 117

“Common” is measured: kept by at least 6 in 10 of the 45 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Coding Agent (delegation)

When the work is "implement this feature, here are the files," delegate to a specialized coding CLI. This skill runs the chosen CLI inside the process tool so the user has full audit + kill control, and records the delegation under the workspace's .ethos-work/delegations/<id>/ for replay.

When to use this skill

  • The user explicitly named a CLI: "have Claude Code do this", "delegate to codex".
  • The coordinator pattern is active and the work is large, file-heavy, or requires sustained editing across many files.
  • The work is "implement this feature with these constraints" rather than "decide what to build" — delegation is for execution, not planning.

When the change is small (one file, a few lines), do not delegate — execute it directly.

Step 1 — pick the right CLI

CLIBest forAdapter
claude (Claude Code)Large refactors, multi-file edits, deep codebase reasoningadapters/claude-code.md
codex (OpenAI Codex CLI)Fast iteration loops, smaller scoped changesadapters/codex.md
opencode (OpenCode)Provider-flexible — when the user wants a specific non-Anthropic, non-OpenAI modeladapters/opencode.md
pi (earendil-works)Multi-provider, minimal coding harness — specific models, tight tool allowlistsadapters/pi.md

If the user did not specify, ask. Do not silently pick one.

Step 2 — verify the chosen CLI is installed and authenticated

Run the adapter's check commands before spawning. Each adapter file documents:

  • The which <cli> test (or platform equivalent).
  • The version check.
  • The auth status check.
  • The error to print if any of those fail (with the exact install + login command for the user to run).

Refuse to delegate if the CLI is not installed or not authenticated. A graceful refusal beats spawning a process that fails opaquely.

Step 3 — spawn via the process tool

process_start({
  command: "<cli> <args>",
  name: "delegated-<id>",
  cwd: <project-root>,
})

Capture the returned process_id. The id part of the name is a short slug derived from the request (e.g. delegated-rate-limit-2026-05-06-1430).

Pass any context the delegated CLI needs through its own argument or stdin convention — see the adapter files.

Step 4 — watch logs

Use process_logs to surface progress to the user. Two patterns:

  • Tight feedback (small delegations): poll logs every 10-30 seconds, summarize what the CLI is doing.
  • Long delegations: tell the user "delegated; I'll surface progress when there's a meaningful update", then check logs only when explicitly asked or when process_wait indicates completion.

Never silently let a delegated process run forever. Set a time-box up front and check it.

Step 5 — handle completion

When the delegated CLI exits:

  1. Capture exit code, total runtime, and the final log lines.
  2. Record the session under .ethos-work/delegations/<slug>/ in the project root (add .ethos-work/ to .git/info/exclude; not ~/.ethos, which the terminal guard refuses):
    <slug>/
    ├── command.txt          # the exact command spawned
    ├── stdout.log           # full stdout
    ├── stderr.log           # full stderr
    ├── files-touched.txt    # list of files the delegated CLI modified
    └── result.md            # summary, exit code, recommendation
  3. Summarize the result back to the user: success / partial / failure, what changed, whether to merge or roll back.

Step 6 — clean up

If the user is done with the delegation, the session record stays for replay but the running process is gone (it already exited). If the user interrupted mid-flight, kill the process with process_stop before exiting the skill.

Hard rules

  • Never spawn a delegated CLI without the process tool. Without it, the chat blocks for the full delegation duration and the user can't kill it. Refuse delegation and surface the prerequisite gap.
  • Never delegate work the user has not authorized. Coordinator personalities should ask before delegating, not after.
  • Always record the session. A delegation that is not auditable is a delegation that cannot be debugged.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.