Back to Registry
View Author Profile
Official Verified
Survival Manager
Skill by fffdz
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/fffdz/survival-managerOr
Survival Manager - 生存管理系统
自主运行 + 人类授权的混合系统,Inspired by Automaton (Conway Research)
Survival Manager 技能
实现自主运行 + 人类授权的混合系统。
核心组件
1. 生存等级系统
根据账户余额自动调整运行模式:
| 等级 | 余额 | 模型 | 心跳间隔 | 子代理上限 |
|---|---|---|---|---|
| thriving | ≥¥5000 | qwen3.5-397b | 30 分钟 | 8 |
| normal | ≥¥1000 | qwen3.5-plus | 1 小时 | 4 |
| lowCompute | ≥¥100 | qwen3.5-flash | 2 小时 | 2 |
| critical | ¥0 | qwen3.5-flash | 4 小时 | 1 |
自动降级策略:
- 余额下降 → 自动降级
- 收入增加 → 自动升级
- 每日 09:00 评估一次
2. 心跳守护进程
定期检查项目:
| 任务 | 间隔 | 说明 |
|---|---|---|
| health_check | 5 分钟 | 网关/浏览器/技能状态 |
| email_check | 1 小时 | 紧急未读邮件 |
| calendar_check | 1 小时 | 24h 内事件 |
| fiverr_order_check | 30 分钟 | 新订单/消息 |
| balance_check | 1 小时 | 余额/生存等级 |
心跳触发条件:
- 时间间隔到达
- 用户主动询问
- 检测到异常事件
3. 授权队列
高风险操作需用户授权:
必须授权的操作:
- 文件删除/写入
- 外部消息发送
- 子代理创建
- 支付/转账
- 系统配置修改
授权流程:
- 写入
authorization-pending.md - Telegram 通知用户
- 等待用户决策 (超时 1 小时)
- 执行/拒绝/修改
自动批准条件 (需启用):
- 成本 < ¥10
- 操作在白名单内
- 非高风险类型
4. 财务追踪
收入追踪
- 文件:
finance/income-log.md - 渠道:Fiverr / 直接客户 / 自动化服务
- 目标:日¥100 / 周¥700 / 月¥3000
支出追踪
- 文件:
finance/expense-log.md - 类别:API 调用 / 服务器 / 软件订阅
- 预算:日¥50 / 月¥500
成本估算
模型调用成本 = 调用次数 × 单次成本
qwen3.5-flash: ¥0.002/次
qwen3.5-plus: ¥0.01/次
qwen3.5-397b: ¥0.10/次
5. Agent 通信
收件箱系统
- 路径:
agent-inbox/ - 格式:
{agent-id}-{timestamp}.md - 用途:子代理汇报/请求/协调
通知优先级
| 级别 | 事件 | 通知方式 |
|---|---|---|
| critical | 生存等级变更 | Telegram+ 声音 + 弹窗 |
| revenue | 收入到账 | Telegram+ 声音 |
| authorization | 授权请求 | Telegram+ 声音 |
| warning | 预算警告 | Telegram |
| info | 常规更新 | 仅日志 |
脚本工具
scripts/check-survival.ps1
检查当前生存状态:
# 读取配置
$config = Get-Content "survival-config.json" | ConvertFrom-Json
# 检查余额
$balance = $config.survival.balance
$tier = $config.survival.currentTier
# 评估等级
if ($balance -ge 5000) { $newTier = "thriving" }
elseif ($balance -ge 1000) { $newTier = "normal" }
elseif ($balance -ge 100) { $newTier = "lowCompute" }
else { $newTier = "critical" }
# 输出报告
Write-Host "生存等级:$tier → $newTier"
Write-Host "余额:¥$balance"
Write-Host "模型:$($config.survival.tiers.$newTier.model)"
scripts/log-income.ps1
记录收入:
param(
[decimal]$Amount,
[string]$Source,
[string]$Channel = "fiverr"
)
$timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
$logEntry = "| $timestamp | $Source | ¥$Amount | $Channel | ✅ | - |`n"
Add-Content "finance/income-log.md" $logEntry
# 更新余额
$config = Get-Content "survival-config.json" | ConvertFrom-Json
$config.survival.balance += $Amount
$config | ConvertTo-Json -Depth 10 | Set-Content "survival-config.json"
scripts/request-authorization.ps1
请求授权:
param(
[string]$Operation,
[string]$Description,
[decimal]$Cost,
[string]$Priority = "normal"
)
$authId = "AUTH-" + (Get-Date -Format "yyyyMMdd-HHmmss")
$logEntry = @"
### $authId
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-fffdz-survival-manager": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.