mobius-self-test

SkillCloud & infra

Lets your agent run smoke tests that confirm a deployed backend is healthy and working after a redeploy.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the mobius-self-test skill

About this skill

Mobius self-test capability. Runs automatically after deployment, or manually on demand: a set of HTTP smoke tests (health, auth, core read APIs, voice config, optional write round-trip) to quickly confirm the system is actually usable after redeployment. Use when you suspect the system is misbehavi

What this skill tells your AI

The instructions your AI receives, as published by mobius-system/mobius in skills/mobius-self-test/SKILL.md and read by ahel’s review.

何时使用

  • 刚部署/重启完 Mobius 后端,需要确认服务正常
  • 用户反馈"系统好像坏了"、"打不开"、"接口报错"
  • 用户要求"跑个自检"、"检查下服务"
  • 自我迭代修改后端代码后,验证没有破坏基本功能

触发方式

1. CLI(服务器上直接跑)

cd /app/mobius
npm run test:self-test

带写往返(建 memory → 列 memory → 删 memory):

MOBIUS_SELF_TEST_WRITE=1 npm run test:self-test

2. HTTP 端点(agent/网页可触发)

curl -sS http://localhost:33316/api/admin/self-test \
  -H "Authorization: Bearer <admin-token>"

怎么看结果

  • ✅ = 通过,❌ = 失败,⏭ = 跳过
  • 末行 SELF_TEST_JSON 包含完整 JSON 报告
  • 部署后自检日志:/data/logs/self-test.log
  • 全 ✅ 且 exit 0 = 系统正常
  • 有 ❌ → 逐个检查失败项的错误信息

检查项目

#类别端点说明
1健康GET /api/health{"status":"ok"}
2健康GET /api/v2/health版本信息
3鉴权GET /api/auth/config认证配置
4鉴权GET /api/auth/mesystem token
5核心读GET /api/projects项目列表
6核心读GET /api/sessions/model-options模型列表
7核心读GET /api/tasks/recent最近任务
8核心读GET /api/extensions扩展列表
9搜索GET /api/search?q=test全局搜索
10群聊GET /api/conversations群聊列表
11会话GET /api/sessions?limit=5会话列表
12语音GET /api/assistant/tts/voicesTTS 配置
13上传POST /api/upload文件上传 (仅 write)
14SSEGET /api/sessions/:id/events流式连接 + 首事件
15写POST→DELETE /api/memories往返 (仅 write)

部署后自动自检

server.js 启动后自动跑(MOBIUS_SELF_TEST_ON_BOOT=0 可关闭):

  • 延迟 5s(等 server 完全就绪)
  • 结果 append 到 /data/logs/self-test.log
  • 失败绝不阻塞/崩 server

Signals

GitHub stars
138
Forks
27
Last commit
Sep 2026

Others that do the same job

Advanced
Item type
skill
Key
mobius-self-test
Source
github.com/mobius-system/mobius