ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Survival Manager

Skill by fffdz

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/fffdz/survival-manager
Or

Survival Manager - 生存管理系统

自主运行 + 人类授权的混合系统,Inspired by Automaton (Conway Research)

Survival Manager 技能

实现自主运行 + 人类授权的混合系统。

核心组件

1. 生存等级系统

根据账户余额自动调整运行模式:

等级余额模型心跳间隔子代理上限
thriving≥¥5000qwen3.5-397b30 分钟8
normal≥¥1000qwen3.5-plus1 小时4
lowCompute≥¥100qwen3.5-flash2 小时2
critical¥0qwen3.5-flash4 小时1

自动降级策略:

  • 余额下降 → 自动降级
  • 收入增加 → 自动升级
  • 每日 09:00 评估一次

2. 心跳守护进程

定期检查项目:

任务间隔说明
health_check5 分钟网关/浏览器/技能状态
email_check1 小时紧急未读邮件
calendar_check1 小时24h 内事件
fiverr_order_check30 分钟新订单/消息
balance_check1 小时余额/生存等级

心跳触发条件:

  • 时间间隔到达
  • 用户主动询问
  • 检测到异常事件

3. 授权队列

高风险操作需用户授权:

必须授权的操作:

  • 文件删除/写入
  • 外部消息发送
  • 子代理创建
  • 支付/转账
  • 系统配置修改

授权流程:

  1. 写入 authorization-pending.md
  2. Telegram 通知用户
  3. 等待用户决策 (超时 1 小时)
  4. 执行/拒绝/修改

自动批准条件 (需启用):

  • 成本 < ¥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

Author@fffdz
Stars2387
Views0
Updated2026-03-09
View Author Profile
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.