5 Commits

Author SHA1 Message Date
Robert Koller
5b8332e88d fix: propagate codex exit code, safe arithmetic, preserve cwd
- Add script -e flag so codex exit code propagates through PTY wrapper
- Use subshell for git repo check to avoid changing caller's cwd
  (fixes broken relative --workdir paths)
- Replace ((ERRORS++)) with ERRORS=$((ERRORS + 1)) to avoid set -e
  terminating on first verification failure
- Add script binary to installer dependency check
2026-03-16 05:26:05 +00:00
Robert Koller
6fbffd98fa fix: install skill as self-contained bundle, harden installer
- Install entire skill dir (SKILL.md + scripts/ + references/) into
  ~/.openclaw/skills/ (shared skill location per OpenClaw docs)
- Scripts live inside the skill folder, not a separate global dir
- Node.js 22 check is now a hard error, not a warning
- timeout check is a hard error (required for delegate.sh)
- Add --force flag to reinstall npm packages on rerun
- Pin npm packages to @latest explicitly
- Drop darwin from os metadata (requires GNU coreutils)
- Fix set -e killing exit code capture in delegate.sh
2026-03-16 05:18:40 +00:00
Robert Koller
c8d5808888 fix: add macOS guard for Codex and fix script/sh quoting
- Codex delegation via delegate.sh now errors on macOS where BSD
  script does not support -c (points user to tmux-session.sh instead)
- Wrap script -c command through bash -c so printf '%q' output is
  interpreted by bash, not /bin/sh (which may be dash)
2026-03-16 05:10:29 +00:00
Robert Koller
126a8f9069 fix: escape WORKDIR and LOG_FILE in bash -c invocations
Paths containing single quotes would break the generated bash -c
script. Use printf '%q' to safely escape both variables, matching
the existing PROMPT escaping approach.
2026-03-16 05:08:27 +00:00
Robert Koller
f980fa72bf skill: add Claude Code + Codex delegation bundle
Adds a skill for delegating code-writing, document generation, and
analysis tasks to Claude Code and OpenAI Codex as sub-processes.

Includes:
- SKILL.md with delegation routing, prompt composition, and security docs
- scripts/delegate.sh — unified delegation launcher with API key stripping
- scripts/tmux-session.sh — tmux session manager for long-running tasks
- references/delegation-policy.md — example policy (adoptable, not prescriptive)

Security: strips 23 known AI provider API keys from sub-process
environment, forcing subscription-based auth and preventing key leakage.
2026-03-16 04:56:31 +00:00