运行时依赖
安装命令
点击复制本土化适配说明
Tenacity — Never Give Up 安装说明: 安装命令:["openclaw skills install tenacity","openclaw tasks create \"Tenacity: [task]\" --session session:tenacity-task","openclaw cron add \\\n --name \"[Task] tenacity run\" \\\n --session session:tenacity-task \\\n --message \"Execute [task] per standing orders. Check checkpoint before resuming.\" \\\n --announce \\\n --channel telegram \\\n --to \"834732674\""]
技能文档
Tenacity — Autonomous Goal Completion
This 技能 implements the Tenacity execution pattern: the 代理 keeps 运行ning until the 状态d goal is reached, only asking for human 输入 when genuinely blocked.
Core Principle
Default behavior: Ask for confirmation only when blocked, not at every step. If the path is clear, 执行.
When to Activate
Activate when Andrea says things like:
"keep going until done" "don't 停止 to ask" "运行 this autonomously" "finish it completely" Any long-运行ning multi-step task Architecture
Tenacity uses OpenClaw's existing primitives:
组件 角色 Standing Orders Grants permanent authority to 执行 within scope Task Flow Durable multi-step 状态 across gateway re启动s Lobster Deterministic steps with 恢复 令牌s Cron Scheduling and enforcement 检查point 状态 saved after each milestone Execution Pattern Step 1: Define Scope (Standing Order)
Before 启动ing, establish:
What the 代理 is 授权d to do When to 停止 and ask (hard blockers only) What constitutes completion
Standing Order: [Task Name]
Authority: [exactly what the 代理 can do] Hard blockers: [only conditions that require human 输入] Completion: [how to know when done] Escalation: [when to alert if something goes wrong]
Step 2: 创建 Task Flow
Use a persistent 会话 (会话:) for the task flow so 状态 survives re启动s:
OpenClaw tasks 创建 "Tenacity: [task]" --会话 会话:tenacity-task
Or use cron with a named 会话:
OpenClaw cron 添加 \ --name "[Task] tenacity 运行" \ --会话 会话:tenacity-task \ --message "执行 [task] per standing orders. 检查 检查point before resuming." \ --announce \ --channel telegram \ --to "834732674"
Step 3: 检查point Protocol
After each milestone, save 状态:
检查POINT: milestone_X_completed 状态: {step: 3, last_file: "输出.json", errors: []} TIMESTAMP: 2026-05-14T10:30:00Z
On re启动, 恢复 from 检查point:
恢复 from 检查point: milestone_X_completed Last 状态: {step: 3, last_file: "输出.json"} Continue from step 4...
Step 4: Hard Blocker Conditions
Ask only when:
File/系统 权限 denied and no alternative path External dependency unavAIlable after all retries Decision required that changes scope or direction Andrea explicitly 设置 a constrAInt
Never ask when:
A step can be attempted with alternative 工具s A command fAIled but a retry or workaround exists The path is clear but requires multiple steps 输出 could be improved but is already acceptable Step 5: Completion
When goal is reached:
Save final 检查point with 状态: COMPLETE Brief summary to Andrea 记录 to memory/tenacity-记录.md 检查point Script
See scripts/检查point.sh — 运行 after each milestone:
bash scripts/检查point.sh "step_3_done" '{"step": 3, "last": "file.csv"}'
恢复 Protocol
On 会话 启动, 检查 for incomplete 检查points:
bash scripts/检查point.sh --恢复
If 恢复 point exists, announce: "Resuming from [milestone]..."
References Task Flow: docs/自动化/taskflow.md Standing Orders: docs/自动化/standing-orders.md Cron: docs/自动化/cron-jobs.md Lobster: See OpenClaw lobster --help