360 Secure SkillHub
360 安全技能中心

FACEPALM

读取 OpenClaw 的 gateway.log 与最近 5 分钟会话记录,交叉比对控制台错误与聊天上下文,再借助 OpenRouter 上的 Codex 5.3 生成诊断与修复建议。既可手动运行脚本,也可在检测到排错循环时被 Agent Swarm 自动调用。依赖 openclaw CLI 与 OpenRouter API Key。

austindixson
austindixson
热度 24.69
最近更新 2026-05-20 03:39:01
分类:开发依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:调试排错 / DevOps / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add facepalm
Metadata
name
FACEPALM
displayName
FACEPALM
description
Crosscheck OpenClaw console logs with chat history (last 5 mins) and use Codex 5.3 to troubleshoot issues. Standalone troubleshooting tool that can be invoked manually or integrated with other skills.
version
1.0.0

FACEPALM

Description

Crosscheck OpenClaw console logs with chat history (last 5 mins) and use Codex 5.3 to troubleshoot issues. Standalone troubleshooting tool that can be invoked manually or integrated with other skills.

FACEPALM

Crosscheck console logs with chat history to troubleshoot issues intelligently.

FACEPALM analyzes OpenClaw console logs (gateway.log) and chat history from the last 5 minutes, then uses Codex 5.3 to diagnose and troubleshoot issues. It's automatically invoked by Agent Swarm when troubleshooting loops are detected.

Usage

  • Automatic: Invoked by Agent Swarm when a troubleshooting loop is detected (repeated errors, failed attempts)
  • Manual: Run directly when you need intelligent troubleshooting analysis
python3 workspace/skills/FACEPALM/scripts/facepalm.py [--minutes N] [--json]

Features

  • Reads gateway.log from the last 5 minutes
  • Extracts chat history from active session transcripts
  • Crosschecks console errors with chat context
  • Uses Codex 5.3 (openrouter/openai/gpt-5.3-codex) for intelligent troubleshooting
  • Returns actionable diagnosis and fixes

Requirements

  • OpenClaw with gateway.log and session transcripts
  • OpenRouter API key configured (for Codex 5.3 access)
  • openclaw CLI on PATH (for invoking Codex via openclaw agent)

Links