
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
openclaw-skill-claude-code
Advanced tools
Resilient Claude Code skill for OpenClaw — persistent, detached coding jobs
Persistent, detached coding jobs for OpenClaw.
Most Claude Code wrappers run exec('claude ...'). If your agent turn times out, the gateway restarts, or the API hangs — your coding task dies.
This skill treats coding tasks as persistent, detached jobs using the @anthropic-ai/claude-agent-sdk.
Agent turns have timeouts (e.g., 900s). Coding tasks take 20+ minutes. This skill starts a Claude agent process, detaches it from the agent session, and returns a jobId. The agent checks back later.
If you restart OpenClaw (maintenance, crash, update), child processes usually get killed. This skill spawns processes in a separate process group with PID tracking on disk. On reboot, it re-acquires running jobs instead of losing them.
Generic wrappers treat any pause as a hang. This skill distinguishes between "Claude is thinking" and "API 429/503", bubbling precise status to the orchestrator.
[ OpenClaw Agent ] -> (SKILL.md instructions) -> [ exec: node scripts/run.mjs ]
|
(Spawn detached job)
|
[ Claude Agent SDK ]
|
(Write state to disk)
v
[ jobs/<jobId>/ ]
├── meta.json (status, timestamps, pid)
├── output.log (streaming output)
└── result.json (final result when done)
start — gets a jobId and pid.status on next turn.running | completed | failed | killed.node scripts/run.mjs start \
--prompt "Read TASK.md and implement. Run tests." \
--cwd /path/to/project \
--job-id task-137
node scripts/run.mjs status --job-id task-137
node scripts/run.mjs logs --job-id task-137 --tail 50
node scripts/run.mjs result --job-id task-137
node scripts/run.mjs list
node scripts/run.mjs kill --job-id task-137
openclaw-skill-claude-code/
├── SKILL.md # OpenClaw skill instructions
├── README.md # Documentation
├── package.json # Dependencies
├── scripts/
│ ├── run.mjs # CLI entry point
│ ├── job-manager.mjs # Job lifecycle management
│ └── worker.mjs # Detached worker process
└── jobs/ # Runtime state (gitignored)
└── <jobId>/
├── meta.json
├── output.log
└── result.json
| Variable | Required | Default | Description |
|---|---|---|---|
ANTHROPIC_API_KEY | Yes | — | Claude API key |
CLAUDE_SKILL_JOBS_DIR | No | <skill-dir>/jobs | Directory for job state |
CLAUDE_SKILL_MODEL | No | SDK default | Override the model |
Job Manager (scripts/job-manager.mjs): Manages the job lifecycle — start, status, result, logs, list, kill. Spawns workers as detached processes and tracks them by PID on disk.
Worker (scripts/worker.mjs): Runs in a detached process. Streams the Claude Agent SDK query() iterator, writing output to output.log and final results to result.json. Handles SIGTERM gracefully and detects rate limits.
CLI (scripts/run.mjs): Thin command-line wrapper over the job manager. All output is structured JSON.
FAQs
Resilient Claude Code skill for OpenClaw — persistent, detached coding jobs
We found that openclaw-skill-claude-code demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.