git clone --depth 1 https://github.com/a5c-ai/babysitter /tmp/babysit && cp -r /tmp/babysit/.codex/skills/babysit ~/.claude/skills/babysitSKILL.md
# babysit
Orchestrate `.a5c/runs/<runId>/` through iterative execution.
Subagents that need a scratch checkout or working directory must create it under
`/tmp/<descriptive-name>/`, not under `.a5c/runs/<runId>/work`. Before returning
deliverables, validate that no run-dir worktree was left behind, for example:
```bash
find .a5c/runs -maxdepth 3 -name work -type d -print
```
That command should print nothing. If it prints a non-empty work directory, move
or remove only the scratch data you created before returning.
## Dependencies
### Babysitter SDK and CLI
Read the SDK version from `versions.json` to ensure version compatibility:
```bash
SDK_VERSION=$(node -e "try{console.log(JSON.parse(require('fs').readFileSync('${CODEX_PLUGIN_ROOT}/versions.json','utf8')).sdkVersion||'latest')}catch{console.log('latest')}")
```
Use an installed `babysitter` command only after proving it can execute:
```bash
if command -v babysitter >/dev/null 2>&1 && babysitter --version >/dev/null 2>&1; then
CLI="babysitter"
else
CLI="npm exec --yes --package @a5c-ai/babysitter-sdk@$SDK_VERSION -- babysitter"
fi
```
If a stale or broken global shim fails with `MODULE_NOT_FOUND`, repair it with `npm rm -g @a5c-ai/babysitter @a5c-ai/babysitter-sdk && npm i -g @a5c-ai/babysitter-sdk@$SDK_VERSION`, then re-run `babysitter --version`.
### jq
Make sure `jq` is installed and available in the path. If not, install it.
## Instructions
Run the following command to get full orchestration instructions:
```bash
$CLI instructions:babysit-skill --harness codex --interactive
```
For non-interactive runs (e.g., with `-p` flag or no question tool):
```bash
$CLI instructions:babysit-skill --harness codex --no-interactive
```
Follow the instructions returned by the command above to orchestrate the run.Coordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.
System and API design guidance covering component boundaries, data flow, integration patterns, and scalability considerations.
This skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research external skills", "find workflow patterns", "survey the skill landscape", "what skills exist out there", or wants to investigate public repositories for extractable processes, babysitter plugins, and reusable procedural insights. Searches GitHub for SKILL.md files, classifies repos by archetype, and maintains structured research under docs/reference-repos/.
This skill should be used when the user asks to "babysit issues", "work on assigned issues", "check a5c-agent issues", "process babysitter issues", or wants to find and work on open GitHub issues assigned to a5c-agent in the babysitter repo.
Discover public GitHub repositories that import defineTask from @a5c-ai/babysitter-sdk and maintain a deduplicated catalog of those repositories in docs/repo-with-babysitter-processes.md. Excludes any repo named "babysitter" (to filter out forks of this monorepo). Invoke when asked to find, discover, catalog, or refresh "repos using babysitter", "babysitter in the wild", or "who else is using babysitter".