Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/tomevault-io/tomes --skill smoke-test명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | smoke-test |
| description | | Use when this capability is needed. |
Run
gbrain smoke-testorbash scripts/smoke-test.shafter any container restart.
This skill guarantees:
~/.gbrain/smoke-tests.d/*.sh drop-in scripts/tmp/gbrain-smoke-test.log| # | Test | Auto-Fix |
|---|---|---|
| 1 | Bun runtime | Install from bun.sh |
| 2 | GBrain CLI loads | Reinstall deps |
| 3 | GBrain database (doctor) | — |
| 4 | GBrain worker process | Start worker |
| 5 | OpenClaw Codex plugin (Zod CJS) | npm install zod@4 --force |
| 6 | OpenClaw gateway | — (may not be started yet) |
| 7 | Embedding API key | — (check .env) |
| 8 | Brain repo exists | — |
gbrain smoke-test
bash scripts/smoke-test.sh
Add to your ensure-services.sh or equivalent:
bash /path/to/gbrain/scripts/smoke-test.sh >> /tmp/bootstrap.log 2>&1
exec: bash /data/gbrain/scripts/smoke-test.sh
Create executable scripts in ~/.gbrain/smoke-tests.d/:
# ~/.gbrain/smoke-tests.d/check-redis.sh
#!/bin/bash
redis-cli ping | grep -q PONG
Rules:
check-redis from check-redis.sh)Edit scripts/smoke-test.sh. Follow this pattern:
# ── N. [Service Name] ──────────────────────────────────────
if [test condition]; then
pass "[Service Name]"
else
# Auto-fix attempt
[fix command]
if [re-test condition]; then
fixed "[What was fixed]"
pass "[Service Name] (after fix)"
else
fail "[Service Name] — [error detail]"
fi
fi
timeout N on any command that could hangpass(), fail(), fixed(), skip()skip() when a prerequisite is missing, don't fail| Var | Default | Description |
|---|---|---|
GBRAIN_SMOKE_LOG | /tmp/gbrain-smoke-test.log | Log file path |
GBRAIN_DIR_OVERRIDE | (auto-detect) | Force gbrain install path |
GBRAIN_DATABASE_URL | (from .env) | Database connection URL |
OPENCLAW_GATEWAY_PORT | 18789 | Gateway port to test |
GBRAIN_BRAIN_PATH | /data/brain | Brain repo path |
Cannot find module './core.cjs' → all Codex ACP sessions failcore.cjs in some installsnpm install zod@4 --force in the codex extension's zod dirGBRAIN_DATABASE_URL not propagated to worker subprocessDATABASE_URL and GBRAIN_DATABASE_URLtimeout N around any command that
could hang. A single hung drop-in stalls every subsequent run.pass → fail-detected → fix → re-test loop is the contract; fixes
that skip the re-test can report success on a still-broken state.skip as fail. Missing prerequisites (no OpenClaw installed,
no brain repo configured) are skips, not failures. Exit code = count of
real failures, not skipped checks.GBRAIN_DATABASE_URL, HOME, etc.) so the script travels across
container rebuilds.The script writes a one-line status per check to stdout (✅/❌/🔧/⏭️) plus a
final summary line: Results: N/M passed, F auto-fixed, S skipped. A
structured timestamped log appends to $GBRAIN_SMOKE_LOG
(default /tmp/gbrain-smoke-test.log) for post-run forensics. Exit code
equals the count of unfixed failures (0 = all pass, positive integer =
count of remaining failures).
Source: beyonai/ByClaw — distributed by TomeVault.