Agent skill
fft-debug
Diagnose and resolve FFT_nano runtime issues across container execution, provider credentials, Telegram/WhatsApp routing, scheduler behavior, and per-group logs/state.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/fft-debug
SKILL.md
FFT Debug
Use this skill for incident triage and deterministic debugging of FFT_nano host and container paths.
Guardrails
- Never use destructive git commands unless explicitly requested.
- Preserve unrelated worktree changes.
- Keep admin/coder controls in main chat only; do not bypass main-chat restrictions.
Fast Triage
- Confirm single instance lock:
ls -la data/fft_nano.lock
- Check startup/runtime logs:
tail -n 200 logs/fft_nano.logtail -n 200 logs/fft_nano.error.log
- Check per-group container logs:
ls -la groups/<group>/logstail -n 200 groups/<group>/logs/*
- Inspect registration + IPC state:
cat data/registered_groups.jsonfind data/ipc -maxdepth 3 -type f
Common Failure Modes
- Provider key missing: Pi reports no models available.
- Wrong
PI_API/PI_MODEL: model/provider not found. - Multiple bot instances: Telegram getUpdates conflict.
- Apple Container networking timeout on macOS.
Recommended Debug Commands
- Build/runtime checks:
npm run typechecknpm test
- Dry-run routing check (no live model call):
FFT_NANO_DRY_RUN=1 ./scripts/start.sh dev telegram-only
- Runtime detail logging:
LOG_LEVEL=debug ./scripts/start.sh dev telegram-only
Telegram Debug Path
- Verify bot token present at runtime.
- In bot DM:
/id,/status,/help. - Admin checks in main chat only:
/tasks,/groups,/panel,/coder,/coder-plan. - If
/main <secret>fails, verifyTELEGRAM_ADMIN_SECRETand restart.
Container Runtime Debug
- macOS Apple Container:
container system statuscontainer system stop && container system start
- Linux Docker:
docker infodocker ps
Database/State Debug
- SQLite file location:
store/messages.db - Router state:
data/router_state.json - Group registry:
data/registered_groups.json - Per-group Pi state:
data/pi/<group>/.pi/
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?