Create and manage durable, file-based task state machines under the OpenClaw workspace.
Target filesystem shape:
TASK_REGISTRY.md (global index)tasks// TASK.md (front matter + purpose/decisions/blockers/changelog + capabilities)TODOS.md (checklist)scripts/crons/artifacts/queue.jsonl, done.jsonl, failed.jsonl, lock.json)Run on host where OpenClaw is running:
python3 --versionopenclaw statusopenclaw cron --helpSkill-local config files:
config.env.exampleconfig.envKeys:
WORKSPACE_DIR (default: /home/miles/.openclaw/workspace)TASKS_DIR (default: tasks)REGISTRY_FILE (default: TASK_REGISTRY.md)DEFAULT_AGENT_ID (default: main)DEFAULT_CRON_TZ (default: America/Indianapolis)Answer in chat:
1) task slug (filesystem-safe)
2) task title
3) task purpose
4) optional skills/plugins/tools expected for this task
5) whether queue files are needed
6) whether a cron job should be created now
Then run:
python3 scripts/task_father.py init --title "..." --purpose "..." --skills "a,b" --plugins "x,y" --tools "read,write,exec" python3 scripts/task_father.py enable-queue python3 scripts/task_father.py cron-add --cron "/10 *" --message "" --name "task-" cp config.env.example config.envconfig.envpython3 scripts/task_father.py init --title "..." state.json + changelog):python3 scripts/task_father.py set-state active python3 scripts/task_father.py log "blocked by API quota" python3 scripts/task_father.py enable-queue python3 scripts/task_father.py cron-add --cron "/5 *" --message "..." --name "task-" python3 scripts/task_father.py cron-rm --name "task-" Each task must contain:
1) TASK.md with front matter and sections:
2) TODOS.md with checklist items.
3) If queue-style long processing is used:
queue.jsonl, done.jsonl, failed.jsonl, lock.json.4) Scripts under:
/scripts/ 5) Cron files under:
/crons/ config.env, not in SKILL.md.共 1 个版本