Install
openclaw skills install @ambitioncn/taskforce-loop-engineeringDurable explicit task/project loops with verification, revisions, live progress, and governed completion.
openclaw skills install @ambitioncn/taskforce-loop-engineeringUse this skill only when the user explicitly invokes Loop Engineering, says 走 loop, loop engineering, 丢进 Ironman loop, loop Ironman, task-runner, names a loop queue, or asks to operate an existing loop.
Do not route ordinary chat, research, explanations, or simple direct tasks into a loop unless the user explicitly invokes it.
A skill installation may provide only this SKILL.md; it does not prove that the Loop Engineering CLI or an OpenClaw/Hermes integration is installed. Before running loop commands, check the deployment explicitly:
command -v loop-engineering
loop-engineering --help
Official distribution:
taskforce-loop-engineeringhttps://github.com/ambitioncn/taskforce-loop-engineeringhttps://clawhub.ai/ambitioncn/skills/taskforce-loop-engineeringInstall the CLI globally from npm:
node --version
npm install -g taskforce-loop-engineering
loop-engineering --help
For a temporary read-only invocation without a global install:
npx -p taskforce-loop-engineering loop-engineering --help
For source-based development, clone the official repository and install its dependencies:
git clone https://github.com/ambitioncn/taskforce-loop-engineering.git
cd taskforce-loop-engineering
npm install
npm run check
node bin/loop-engineering.mjs --help
Do not guess a workspace source path. Use node packages/loop-engineering/bin/loop-engineering.mjs ... only after confirming that exact path exists in the current workspace.
Installing the npm package exposes the CLI, but it does not automatically route conversations, select a worker agent, or create queue wrappers. First generate a read-only installation plan:
loop-engineering-openclaw-install \
--root /path/to/openclaw/workspace \
--queue agent-tasks
Review the installation confirmation summary before proceeding. It must show the target platform, absolute platform CLI path, workspace, queue, scheduler, notification routing, and writes enabled: no (plan only). If any field identifies the wrong platform or destination, stop. Then install with an existing worker-agent id:
loop-engineering-openclaw-install \
--root /path/to/openclaw/workspace \
--queue agent-tasks \
--worker-agent main \
--confirm-install
The confirmed install also creates loop-engineering-dashboard.service on port 4174 and couples it to openclaw-gateway.service. Dashboard listening defaults to local-only 127.0.0.1. To permit Tailnet clients, pass --dashboard-listen tailscale; the installer resolves tailscale ip -4, binds only that 100.x address, and fails closed rather than binding all interfaces. Tailnet mode relies on Tailscale ACLs/Grants and does not add application-level login. The plan must declare the selected mode before writes, and the doctor must verify the Dashboard service and gateway drop-in. Use loop-engineering-dashboard-autostart-install --listen localhost|tailscale only for standalone install or repair.
The installer never creates the worker agent. After installation, verify wiring before using a real task:
loop-engineering-openclaw-doctor \
--root /path/to/openclaw/workspace \
--queue agent-tasks \
--worker-agent main
loop-engineering-openclaw-smoke \
--root /path/to/openclaw/workspace \
--queue agent-tasks \
--worker-agent main
If the CLI or integration is missing and the user requested installation or repair, install it within the authorized host/workspace scope, then run doctor and the disposable smoke. If the user only asked what is missing, report the exact package, repository, commands, and current deployment state without mutating the system.
The core CLI is platform-neutral, but Hermes conversation routing requires its own dispatcher and notifier. Generate a plan and verify its installation confirmation summary identifies Hermes, the absolute Hermes CLI path, intended workspace and queue, systemd scheduler, source-bound notification routing, and writes enabled: no (plan only). If any field identifies the wrong platform or destination, stop. Confirm installation only after that review, then run the read-only doctor and disposable smoke:
loop-engineering-hermes-install \
--root /path/to/hermes/workspace \
--queue agent-tasks
loop-engineering-hermes-install \
--root /path/to/hermes/workspace \
--queue agent-tasks \
--confirm-install
loop-engineering-hermes-doctor \
--root /path/to/hermes/workspace \
--queue agent-tasks
loop-engineering-hermes-smoke \
--root /path/to/hermes/workspace \
--queue agent-tasks
The confirmed Hermes install creates the same Dashboard service and couples it to hermes-gateway.service. It accepts --dashboard-listen localhost|tailscale with the same default-local, Tailnet-only binding, fail-closed resolution, and ACL/Grant boundary as OpenClaw. The plan and doctor must expose and verify this coupling.
The generated worker uses hermes -z (--oneshot); the notifier uses hermes send without
an LLM call. Preserve source metadata and pass --source-target in Hermes
platform:chat_id[:thread_id] format. The managed systemd scheduler owns wakeups
so durable queue continuity does not depend on resuming a Hermes Cron session.
Interpret explicit loop language as follows:
走 loop:<task>: enqueue and immediately execute one runner tick with notification.走 loop 并立刻执行: synonym for the default above.走 loop,只入队, 只排队, 暂不执行, or 不立即执行: enqueue without starting a tick.继续当前 loop,补充要求:…: amend the active task in place. Preserve the task id and worker session, write a versioned amendment, update the task contract/dev plan/acceptance plan, and require the worker to reread the latest amendment before checkpoints and completion.走 loop request while another task is active is a correction/replacement, not ordinary backlog. Supersede the active task at a safe boundary, retain its evidence and lineage, then start the replacement after the lock is released.Do not infer a queue or dispatcher from this skill. Use the integration installed in the current workspace. For OpenClaw, inspect the generated queue configuration under configs/loops/queues/ and use the managed wrapper when present. A default installation uses queue agent-tasks and the generic wrapper below; an operator may choose another queue or worker during installation.
node scripts/loops/openclaw-loop.mjs route --message "<original user message>" [source options]
node scripts/loops/openclaw-loop.mjs run-once
loop-engineering queue-status --queue <installed-queue> --root . --json
loop-engineering queue-peek --queue <installed-queue> --root . --json
If the managed wrapper or queue configuration is absent, stop and run the platform installer/doctor workflow above. Product names, personal agent names, and host-specific dispatchers belong in local workspace instructions, never in this distributed skill.
Pass the original request faithfully. Preserve source channel, target, account, message id, and reply-to metadata so progress, human gates, and terminal results return to the originating conversation. Missing delivery routing must fail closed.
Classify scope before enqueueing.
A bounded change, diagnosis, review, or deliverable with a clear local acceptance target can use one task contract.
Treat a request as project-level when the user asks to build/develop/finish a complete product or system, achieve an overall outcome, or otherwise describes a multi-milestone terminal goal.
For a project-level objective:
Never silently narrow a complete-project request into “first milestone” and call that the Loop complete. A single queue task or milestone may be complete while the project remains active.
Recommended commands:
loop-engineering project-intake --root <workspace> --name <project> --brief "<full brief>" --type auto
loop-engineering project-plan --root <workspace> --project <project>
loop-engineering project-status --root <workspace> --project <project>
The project completion contract must contain:
If implementation reveals missing work, amend the project backlog/contract before continuing. Do not redefine the terminal goal downward to fit completed work.
Use precise language:
阶段完成 or 任务完成: one task/milestone passed its own acceptance checks.项目完成 or Loop 跑完: only when the project completion contract is fully accepted and no required work remains.blocked: only for a concrete blocker requiring human authority/input or an external state change, with evidence and a specific unblock request.needs_revision: acceptance found actionable gaps; create a changed-strategy revision rather than claiming completion.superseded: a newer explicit loop request replaced the task; preserve lineage and evidence.Final reporting for project work must always state both task/milestone status and total-project status.
Loop invocation authorizes the requested workflow, not unlimited external action.
Require separate explicit confirmation for:
frida, tcpdump, adb, mitmproxy, hooks, attach/spawn, decrypt, su, kill, or pkill.Human permission prompts and missing authorization are stop conditions, not retryable failures. INSTALL_FAILED_USER_RESTRICTED, device unauthorized, permission denied, and equivalent states require a concrete human-action gate.
Timeouts must terminate the spawned process group. After instrumentation timeouts, verify that no child instrumentation/proxy process remains.
route-message or the installed conversation wrapper to preserve source metadata and apply immediate/queue-only/amend/supersede semantics.doctor after configuration or queue changes.Do not add cron/timers until one manual tick passes.
Prefer the installed CLI:
loop-engineering verify --root <workspace>
loop-engineering doctor --root <workspace> [--json]
loop-engineering summarize --root <workspace> --limit 20
loop-engineering route-message --root <workspace> --message "<message>" --queue <queue> --route --confirm-execute [--supersede-active | --amend-active] [source options]
loop-engineering queue-status --root <workspace> --queue <queue>
loop-engineering queue-peek --root <workspace> --queue <queue>
loop-engineering run-queue --root <workspace> --config configs/loops/queues/<queue>.json
loop-engineering queue-revision-next --root <workspace> --queue <queue> --task-id <id>
loop-engineering queue-lineage --root <workspace> --queue <queue> --task-id <id>
loop-engineering queue-lineage-bundle --root <workspace> --queue <queue> --task-id <id>
loop-engineering queue-human-decision --root <workspace> --queue <queue> --task-id <id> --decision approve|request_changes|reject
loop-engineering queue-human-input-resolve --root <workspace> --queue <queue> --gate-id <task:checkpoint> --input "<response>" [--secret-input|--non-secret-input]
loop-engineering queue-terminal-notify --root <workspace> --queue <queue> (--notify-command "<command>" | --dry-run)
loop-engineering queue-human-input-notify --root <workspace> --queue <queue> (--notify-command "<command>" | --dry-run)
If the package is available only in the workspace:
node packages/loop-engineering/bin/loop-engineering.mjs <command>
Use run-queue-drain only when batch draining is explicitly intended. Conversation routing normally runs one task/tick and uses supersede/amend behavior.
A dispatcher-successful run is not automatically accepted. Inspect final_judgement.json, acceptance reviews, checkpoints, and verification evidence.
When acceptance needs changes:
needs_revision;queue-revision-next;Default revision policy may stop after three rounds, two repeated goal signatures, or repeated unchanged strategy. --force requires an explicit human override after lineage review.
For L2 code-changing tasks, prefer isolated worktrees. The runner prepares reviewable local changes and verification evidence; it does not implicitly commit, push, publish, deploy, merge, or delete branches.
Safe review flow:
loop-engineering code-task-status --root <workspace> --queue <queue>
loop-engineering code-worktree-inspect --root <workspace> --queue <queue> --task-id <id>
loop-engineering code-worktree-diff --root <workspace> --queue <queue> --task-id <id>
loop-engineering code-task-autoflow --root <workspace> --queue <queue> --task-id <id> --until closeout
loop-engineering code-patch-apply-plan --root <workspace> --patch <patch> --json
Applying a patch and cleaning a worktree require their explicit confirmation flags. Preserve unrelated user changes and never treat a dirty worktree as disposable.
Use read-only diagnostics before mutation:
loop-engineering doctor --root <workspace> --json
loop-engineering summarize --root <workspace> --queue <queue> --limit 20
loop-engineering project-status --root <workspace> --project <project>
Task artifacts live under:
runtime/loops/<queue>/tasks/<task_id>/
runtime/loops/<queue>/runs/
runtime/loops/<queue>/{inbox,active,done,failed,canceled}/
Expected evidence includes task_contract.json, acceptance_plan.json, dev_plan.json, checkpoints, acceptance reviews, final_judgement.json, revision requests, amendments, supersede markers, progress notifications, and lineage bundles.
Project artifacts live under:
configs/loops/projects/<project>.json
runtime/loops/projects/<project>/
Summaries must cite the latest run/task/project evidence, verification performed, unmet checks, and blocker reason. Keep raw noisy logs in runtime artifacts; durable memory receives only distilled decisions, recurring failures, accepted safety rules, and verified completion facts.
Use scheduler ticks only after manual verification. Adaptive schedules may speed up with successful queued work and back off on empty queues, failures, long runs, or human gates.
queue-scheduler-tick is adaptive cadence logic, not a resident daemon. A cron, systemd timer, or equivalent external scheduler must wake it regularly. For project queues that promise automatic continuation, set scheduler.required=true and a bounded scheduler.heartbeatMaxAge; doctor must fail with scheduler_missing whenever queued work exists without a fresh scheduler heartbeat.
Progress notification must be scoped and idempotent. Report failures, human gates, status changes, and terminal completion promptly; throttle routine progress and idle updates.
Before saying a loop is finished, verify:
final_judgement.json acceptable?If any project requirement remains, report a phase/task result and continue with the next authorized item; do not claim the project or Loop is complete.