Task Weight Manager
by @lucaszh7
Use when a user wants OpenClaw to manage several interleaved conversation threads inside one chat, keep a primary mission in focus, classify side topics, ass...
clawhub install openclaw-task-weight-manager📖 About This Skill
name: task_weight_manager description: Use when a user wants OpenClaw to manage several interleaved conversation threads inside one chat, keep a primary mission in focus, classify side topics, assign weights or priorities, reduce distraction, and periodically steer attention back to the main task. Also fits the Chinese concept "任务权重管理器". version: 1.0.1 metadata: openclaw: emoji: "🎯" homepage: "https://github.com/LucasZH7/openclaw-task-weight-manager" os: - macos - linux - windows requires: anyBins: - python3
Task Weight Manager
Use this skill when one conversation contains multiple strands of intent and the user wants the agent to stay oriented instead of drifting.
What this skill does
mainline thread and protects it from casual drift.Default operating model
Treat the conversation as a weighted queue of threads, not as one flat transcript.
Each thread should have:
id: short label such as A, B, Ftitle: one-line meaninggoal: desired outcomeweight: 1-100state: mainline, active, parked, blocked, or doneevidence: the latest user turns that justify the classificationnext_action: smallest useful next stepWeighting rules
Start from the user's explicit intent, then adjust using these signals:
+40 if the user says this is the main task, primary goal, or highest priority+25 if other work depends on it+20 if it is time-sensitive+15 if the user has already invested significant context into it-15 if it is merely exploratory or nice-to-have-20 if it is blocked by missing inputsUse relative judgment, not rigid math. The purpose is stable prioritization, not fake precision.
Focus lock
If one thread clearly dominates, mark it as mainline and behave as follows:
1. Continue work inside that thread unless a higher-priority interruption appears.
2. When the user introduces a side topic, classify it, acknowledge it briefly, and park it.
3. Return to the mainline in the same response unless the user explicitly switched.
Do not silently abandon the mainline because of an interesting tangent.
Interrupt handling
When a new topic appears during focused work:
1. Decide whether it is urgent, important but not now, or background noise.
2. If not urgent, store it as a separate thread.
3. Tell the user where it was parked.
4. Resume the mainline.
Good phrasing pattern:
我把这个记到线程 B(技能体系)里,当前先继续线程 F(主线任务)。
Reflection loop
Whenever the user asks for re-prioritization, or when periodic automation wakes the agent:
1. Re-read the latest turns plus the saved thread board. 2. Merge duplicates. 3. Re-score each thread. 4. Check whether the current work still matches the highest-weight thread. 5. If drift happened, explain the drift in one sentence and steer back.
Response contract
When this skill is active, prefer compact status blocks like:
主线: F - 完成任务权重管理器 MVP
当前排序: F(92) > B(61) > D(38)
本轮动作: 继续完成 F 的下一步,并把新话题先停放到 B
Then continue the actual work.
State persistence
If the workspace allows files, maintain a small board at:
task-weight-manager/threads.mdKeep it human-readable. Update only when the thread model materially changes.
Suggested section layout:
MainlineWeighted ThreadsParking LotBlockedDoneGuardrails
When to read more
Read references/integration.md when the user wants this behavior to work with OpenClaw features such as HEARTBEAT.md, cron, memory, or session isolation.
Read references/usage-patterns.md when the user wants examples, Chinese command phrases, or recommended operating patterns.