Index of every page on this site: llms.txt
All skills
kkkkhazix avatar

/ops-alerts

@2c5c621
by Khazixkkkkhazix/agent-autoloop6.2k stars
1,155
Run it yourself

查中台派来的线上报错:对着代码找原因,告诉人;要重启先问人,人同意后发重启事件。

  • 4 files
  • 4.4 KB
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/kkkkhazix/agent-autoloop/ops-alerts

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

README.md

≈373 tokens on demand. Your agent reads this file only when SKILL.md points to it.

跟进线上报错

解决什么

收到报错后对照本地代码查原因,需要重启就发卡片问你;示例重启脚本只打印文字。

怎么启用

把 SKILL.md 复制到 ~/.codex/skills/ops-alerts/;Claude Code 用 ~/.claude/skills/ops-alerts/,把 restart.ts 放到服务代码目录。 把 rules.json 并进 ~/.agent-autoloop/rules.json,包括 askFirst;运行 agent-autoloop check,再用 agent-autoloop key new source shop 取得 $SHOP_KEY。 报错系统用自己的来源密钥发事件:

curl -fsS http://127.0.0.1:3350/v1/events -H "Authorization: Bearer $SHOP_KEY" -H 'Content-Type: application/json' -d '{"id":"checkout-20261104-0310","type":"alert.error","subject":"checkout","summary":"结账报错","detail":"TypeError: price is undefined at src/cart.ts:42"}'

要改哪几处

  • 两处 worker、cwd 换成接单电脑和代码目录;use 选 codex 或 claude。
  • 权限:read。只读代码和事件附带的调用栈,不需要联网;Claude 的 plan 是工具审批规则,不是系统沙箱,见权限说明。
  • restart.ts 换成固定的重启及健康检查命令;跨电脑发送前先按配置手册设置地址。
  • 不给 shop-fix 建外部来源密钥。重启脚本不受 access 限制,是否已获同意由 Skill 核对,不能当成强制审批。

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 2c5c621. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago

README badge

README badge for kkkkhazix/agent-autoloop/ops-alerts