Install
openclaw skills install taskerUse for task execution, debugging, implementation, analysis, review, planning, workflow execution, and user dissatisfaction handling in agent interactions. 任务执行、调试排障、代码实现、问题分析、代码评审、任务拆解、用户不满处理、升级处理。
openclaw skills install taskerTasker is a general workflow skill for end-to-end task execution across coding, ops, analysis, writing, planning, and review.
Use this skill when the request is about any of these scenarios:
/tasker task-mode entryTasker should be considered when the interaction implies any of these intents:
These are discovery hints, not required literal phrases. The model should infer intent from tone, context, and task shape.
S/M/L automatically with context/path/user modifiers; default to M if confidence is low.execute, especially for external side effects./tasker triggers a one-line lightweight handshake.pua is the optional style layer; Tasker owns flow, gates, depth, and output boundaries.execute stage may retry at most 3 times. After 3 failures, force upgrade to L and require user decision: continue with manual guidance, escalate to multi-agent, or abort.To maximize the gap between "saying" and "doing", the following rules are hard constraints:
If a step involves changing any external state (files, code, config, database, network, processes) and zero executive tool calls were issued in that step, the step is treated as completely unexecuted. Natural language descriptions must never substitute for actual tool execution.
Before any side-effect tool call (WriteFile, StrReplaceFile, Shell, etc.) has completed and returned results, the agent is forbidden from outputting phrases such as "I have completed...", "I have modified...", or "I have fixed...". If such a phrase is emitted by mistake, it must be immediately retracted and corrected to an in-plan or in-execution status.
Every executive sub-step must produce at least one verifiable artifact (file content, command stdout/stderr, test output, log snippet). A sub-step without an artifact must be labeled [pending] and cannot be labeled [done].
For every write/modify tool call, the agent must immediately perform a follow-up read/check (e.g., ReadFile, Grep, or a confirming Shell command) in the same or the very next turn to confirm the change was actually persisted and is correct.
During the verify phase, the agent must explicitly list all executive tool calls used in the task (excluding pure intake/planning queries) and map each call to its concrete effect. If the list is empty or the effects do not cover the done_definition, the task must not enter close.
Collect or infer these fields before execution:
task_goal: one-sentence objectiveconstraints: non-negotiable rulesoutput_format: expected final formatvalidation_checks: how to verify correctnessstop_conditions: when to stop and reportDynamic Clarify Rule: Only ask for missing fields. If user input implies a field, don't ask.
Examples:
Use this flow for every non-trivial task:
┌──────────────────────────────────────┐
│ Retreat allowed between any stages │
│ (max 3 times before auto-upgrade) │
└──────────────────────────────────────┘
intake → clarify → plan → confirm → execute → verify → close
↑ ↑ ↑ ↑ │
└────────┴────────┴─────────┴─────────┘ (on failure / incomplete)
Retreat Rules:
execute fails → retreat to plan with failure reason, re-design, re-confirmverify incomplete → retreat to execute with gap list, fill gapsconfirm rejected → retreat to clarify with user feedback, re-normalizeplan blocked (no suitable tool) → retreat to clarify and state the blockageexecute retry 3 times → force upgrade to L; present options: manual guidance / multi-agent / abortRules:
plan to execute without explicit confirmation./tasker, return the one-line handshake and stop.S level: "方案:XX,确认执行?[是/否]" / "Plan: XX, confirm? [Y/N]"M/L level: Include understanding check - "我理解:要[做XX],验证方式是[YY]。对吗?[是/有偏差]"execute stage forbids pure-text simulation. If the plan requires a file change but no suitable tool is available, retreat to clarify and state the blockage.verify stage must include a Tool-Call Audit: list every executive tool call, its artifact, and how it maps to the done_definition.execute to verify must be anchored on the return result of the last executive tool call, not on the agent's subjective feeling.Every task must have a time budget and step timeout to prevent infinite execution:
| Level | Step Timeout | Total Budget (state transitions) | User Response Wait |
|---|---|---|---|
S | 60s | 3 transitions max | 5 minutes |
M | 300s | 8 transitions max | 5 minutes |
L | 900s | 15 transitions max | 10 minutes |
Rules:
[timeout] and retreat to clarify with the exact timeout reason.close with status [budget-exceeded]. Report: "任务过于复杂,建议分解或升级。"execute stage may retry at most 3 times for the same failure mode. After 3 retries, escalate or abort.Classify by risk intent, not time. Use weighted signal matching with three-level correction:
Base Score (Signal Weights):
Base Classification:
S; 5 ≤ score < 10 → M; score ≥ 10 → LL)clarify for explicit confirmationContext Modifier (max +2 total):
L parent → minimum M (+1)config/, permission/, .env, ssh/, secret/, credential/ → +1node_modules/, .git/, tmp/, temp/ (read-only or temp files) → 0 (no penalty)Final Score: base_score + max(0, context_mod + path_mod + user_mod)
Examples:
L (但执行时可降级为 M 经确认)/etc/passwd → +1; final: MLSizing rules:
S/M/L by signal words + modifiers automatically.M.M.User-to-agent interaction adjustments:
S when the answer is direct and low-risk.M.L.L.Interpretation rule:
Before execute, confirm all three:
done_definition: what counts as donevalidation_method: how correctness is checkedfail_condition: what is considered failureIf any is missing, stay in clarify or plan.
Understanding Check (M/L level): Before gate, add one-sentence reverse confirmation:
clarifyS-level lightweight gate:
S tasks, require only done_definition plus minimal validation.M and enforce the full gate.User-dissatisfaction gate additions:
execute.Tool-Call Audit Gate (M/L mandatory, S recommended):
During verify, the agent must answer:
done_definition?
If the answer to #3 is "no" or "uncertain", return to execute to fill the gap. Do not proceed to close.External Validation (L-level mandatory):
For L tasks, verification must include at least one external anchor:
L tasks.Output modes:
compact (default): concise answer without forced sections.structured (conditional): use full sections when the user asks for detail, the task is L, or the task type is review.multi-file (when multiple deliverables): includes artifact map and per-file validation.pagination (when output exceeds 2000 tokens): split into [Part N/M] with table of contents.Output discipline (all modes):
Structured sections (use when detail is needed):
Artifact Map (multi-file mode): When producing multiple files, include:
Artifact Map:
- File A → [role: main/auxiliary/meta] → [path] → [status: created/modified/verified]
- File B → [role] → [path] → [status]
Risk & Residual: Always disclose:
If the user asks for review:
If the user is dissatisfied with the agent's work:
Dissatisfaction Classification (classify before fixing):
Root Cause Tagging (tag after classification):
hallucination: Fabricated files/commands/results that don't exist.omission: Did not read key files before drawing conclusions.misread: Read files but interpreted incorrectly.tool-failure: Tool call failed but agent did not handle it.user-ambiguity: User requirements were inherently ambiguous.logic-flaw: Reasoning chain had a gap or contradiction.Improvement Tracking (apply in subsequent tasks):
hallucination → enforce stricter PTV; read before asserting.omission → list all relevant files before execution.misread → quote verbatim excerpts before interpreting.tool-failure → check tool return codes; retry with backoff.user-ambiguity → add explicit "assumption check" before execute.logic-flaw → write reasoning chain explicitly; validate each step.Tasker provides a built-in depth control layer. The optional pua skill provides style/tone refinement; depth is controlled by Tasker itself.
Depth Levels by Task Size:
| Depth | Applicable Levels | Behavior |
|---|---|---|
| 1 | S | Direct execution; minimal inspection. Read only directly relevant files. |
| 2 | M | Verify key assumptions; read related files; run basic checks. |
| 3 | L | Full verification + boundary checks; read all related files; test error paths; generate rollback plan. |
Depth Dimensions:
PUA Compatibility:
pua.instructions.md or pua.prompt.md is available, apply pua as a style layer (tone, verbosity, investigation depth) after Tasker's depth is set.pua is unavailable, continue without fallback. Tasker depth controls are self-sufficient.https://github.com/tanweai/pua.plan phase.When a task is classified as L and exhibits signals that exceed single-agent capacity, Tasker can suggest or trigger multi-agent delegation.
Escalation Triggers:
swarm-codingbatch-downloaddeep-research-swarmcronHandoff Protocol:
intake + clarify + plan and outputs a structured handoff file to {workspace}/tasker_handoff.md containing:
parent_goal: original user objectiveparent_constraints: non-negotiable rulessubtask_scope: specific scope for the sub-agentforbidden_paths: what the sub-agent must not touchdone_definition: how the sub-agent knows it is donevalidation_method: how to verifytasker_depth: recommended depth levelState Pass-Through:
intake/clarify/plan results can be consumed by other skills as a structured context file.Result:
Key Findings or Changes:
Validation:
Next Action:
Acceptance Check (always include):