跳到正文
TakoAPI
返回技能列表

nexus-brain

由 mrnsmh 提供

DevOps & Cloud
—暂无评分
你的评分

简介

Intelligent SRE Bridge for AI-driven system diagnosis and recovery.

描述

该技能的功能

SRE orchestrator that diagnoses service failures using an AI reasoning engine before taking any recovery action. Redacts passwords, tokens, and emails from logs before sending them for analysis. Routes infrastructure failures to automatic restart and code bugs to user alerts.

Forces log analysis before any restart, preventing blind recoveries that hide bugs rather than fix them.

何时使用

  • Diagnosing why a Docker container keeps restarting
  • Auto-recovering a crashed pm2 process after log review
  • Distinguishing a code bug from an infra failure during an outage
  • Reviewing redacted logs before they reach an external AI service
  • Gating recovery actions behind a manual approval step

示例工作流

输入

User asks: My API service is down, figure out what happened and recover if it's safe

智能体
  1. 1

    Fetches recent logs for the affected service

  2. 2

    Redacts sensitive fields (passwords, tokens, emails) from log content

  3. 3

    Sends redacted logs to the configured AI reasoning service via bridge.py

  4. 4

    Classifies the failure as infrastructure-related rather than a code bug

  5. 5

    Restarts the service via docker or pm2, requesting /approve if configured

输出

Service restarted after AI confirms infrastructure failure; a code bug would have triggered a user alert instead of a restart

前置要求

  • opencode installed and accessible in system PATH or local user directory
  • Docker

安装

clawhub install mrnsmh/nexus-brain

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接