Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

system-restoration系统恢复

Agent Skill

system-restoration 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,446

周安装

104

GitHub Stars

公开资料未说明

下载量

857
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:system-restoration(系统恢复)
来源仓库:https://github.com/stephen550/system-restoration
安装命令:
openclaw skills install system-restoration
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install system-restoration

简介

system-restoration 用于恢复 HPE 运营智能系统的正常运行,应对停机、警报缺失或数据源中断等问题。

  • 适用于系统异常诊断与快速修复,尤其针对 LaunchD 服务等企业级后台组件。
  • 通过预设恢复流程重新初始化关键服务,缩短业务中断时间至最小范围。
  • 使用前应熟悉 HPE 环境架构,避免盲目操作引发连锁故障;建议先备份重要数据。
  • 需确认当前环境支持相关恢复协议,否则可能无法成功重建服务连接。

SKILL.md

name
system-restoration
description
Restore Advantage HPE operational intelligence systems. Use when systems are down, missing alerts, broken scheduling, or data source issues. Covers LaunchD services, cron jobs, API fixes, and service restoration for zero revenue alerts, morning pulse, live nudges, and material truth reports.

System Restoration

Comprehensive guide for restoring Advantage HPE's operational intelligence systems when they fail or go down.

Investigation Workflow

1. System Status Assessment

Before fixing anything, map out what's broken:

Core Intelligence Systems:

  1. Zero Revenue Alerts → #margin-alerts (Every 30 min)
  2. Morning Pulse → #manager-nudges (Daily 6:35 AM)
  3. Live Nudges → #manager-nudges (Every 15 min)
  4. Material Truth Report → #material-intel-systems (Daily 7:00 AM)
  5. Friend-Zone Reformatter → #live-ops (ServiceTitan email alerts)

Investigation Commands:

# Check LaunchD services
launchctl list | grep ranger

# Check cron jobs  
cron list

# Check running processes
ps aux | grep -E "(keel|pulse|margin|nudge)" | grep -v grep

# Find system code
find /Users/stephendobbins/.config/ranger -name "*.py" | grep -E "(pulse|margin|nudge)"
find /Users/stephendobbins/.openclaw/workspace -name "*.py" | grep -E "(zero|revenue)"

2. Locate Code & Determine Failure Cause

Common Locations:

  • /Users/stephendobbins/.config/ranger/scripts/ - Main operational scripts
  • /Users/stephendobbins/.config/ranger/materials/ - Material intelligence
  • /Users/stephendobbins/.openclaw/workspace/ - Recent scripts & fixes
  • /Users/stephendobbins/Library/LaunchAgents/ - LaunchD service definitions

Common Failure Patterns:

  • LaunchD services unloaded - Emergency shutdown or system restart
  • Data source broken - ServiceTitan API returning wrong data
  • Scheduling missing - Functions exist but no cron/LaunchD trigger
  • Script errors - Import failures, credential issues

System-Specific Restoration

Zero Revenue Alerts

Script: /Users/stephendobbins/.config/ranger/scripts/margin_alerts.py Channel: #margin-alerts (C0A5L7MG60P) Schedule: Every 30 minutes

Restoration Steps:

  1. Verify script exists and posts to Slack
  2. Load LaunchD service: launchctl load /Users/stephendobbins/Library/LaunchAgents/com.ranger.margin-alerts.plist
  3. Test manually: cd /Users/stephendobbins/.config/ranger/scripts && python3 margin_alerts.py
  4. Check logs: tail /tmp/margin_alerts.log

Morning Pulse

Script: /Users/stephendobbins/.config/ranger/scripts/pulse_os_full.py Channel: #manager-nudges (C0A5V9JL2KV) Schedule: Daily 6:35 AM CT

Restoration Steps:

  1. If broken API data: Check for .bak backup with working data sources
  2. Restore backup: cp pulse_os_full.py.bak pulse_os_full.py
  3. Fix data sources: Replace API calls with browser automation (see references/browser-data-sources.md)
  4. Load LaunchD service: launchctl load /Users/stephendobbins/Library/LaunchAgents/com.ranger.morning-pulse.plist
  5. Test: python3 pulse_os_full.py pulse

Live Nudges

Script: /Users/stephendobbins/.config/ranger/scripts/pulse_os_full.py nudges Channel: #manager-nudges Schedule: Every 15 minutes

Function: run_nudges() on line 548-617 Features: 🚗 dispatched / 📍 arrived / ✅ completed alerts

Restoration Steps:

  1. Verify function exists: grep -n "def run_nudges" pulse_os_full.py
  2. Create LaunchD service (see scripts/create-live-nudges-service.py)
  3. Load service: launchctl load /Users/stephendobbins/Library/LaunchAgents/com.ranger.live-nudges.plist
  4. Test: python3 pulse_os_full.py nudges

Material Truth Report

Script: /Users/stephendobbins/.config/ranger/materials/reconciliation_report.py Channel: #material-intel-systems (C0A5L7RB5EK) Schedule: Daily 7:00 AM CT

Restoration Steps:

  1. Test script: cd /Users/stephendobbins/.config/ranger/materials && python3 reconciliation_report.py --no-email
  2. Create cron job with 7:00 AM schedule
  3. Verify channel posting

Data Source Repair

ServiceTitan API vs UI Data

Problem: ServiceTitan API often returns test/historical data instead of real operational data.

Solution: Replace API calls with browser automation:

  1. Create browser data source module (see scripts/browser_data_sources.py)
  2. Import in main script: Replace parse functions with browser equivalents
  3. Preserve output format - Same sections, different data source

Browser Data Functions:

  • get_browser_low_margin_jobs()
  • get_browser_stale_estimates()
  • get_browser_revenue_leaks()
  • get_browser_driver_incidents()

KEEL System Issues

Script: /Users/stephendobbins/.config/ranger/keel/keel_slack_bot.py

Safe restart for field tech DM only:

  1. Disable operational intelligence: Set OPERATIONAL_INTELLIGENCE_ENABLED = False
  2. Restart process: cd /Users/stephendobbins/.config/ranger/keel && python3 keel_slack_bot.py &
  3. Verify running: ps aux | grep keel_slack_bot

Service Management Commands

LaunchD Services

# List services
launchctl list | grep ranger

# Load service  
launchctl load /Users/stephendobbins/Library/LaunchAgents/com.ranger.<service>.plist

# Unload service
launchctl unload /Users/stephendobbins/Library/LaunchAgents/com.ranger.<service>.plist

# Start service immediately
launchctl start com.ranger.<service>

# Check service logs
tail /tmp/<service>.log
tail /tmp/<service>.err

Cron Jobs (OpenClaw)

# List jobs
cron list

# Add job  
cron add <job-definition>

# Remove job
cron remove <job-id>

Emergency Shutdown Recovery

When systems are emergency-stopped due to bad data:

  1. Investigate root cause - Usually ServiceTitan API data issues
  2. Fix data sources - Switch to browser automation or correct API endpoints
  3. Test manually - Verify data accuracy before re-enabling
  4. Restore services - Load LaunchD services and cron jobs
  5. Monitor initially - Check logs and channel posts for accuracy

Resources

scripts/

  • create-live-nudges-service.py - Generate LaunchD plist for live nudges
  • browser_data_sources.py - Browser automation replacement for broken APIs

references/

  • launchd-service-templates.md - LaunchD plist templates for different schedules
  • channel-ids.md - Slack channel IDs for all operational intelligence channels
  • troubleshooting-checklist.md - Step-by-step debugging guide

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.42%
按下载量换算672

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills