doctor
Check onboarding readiness for OpenInvest agent sessions: confirms memory setup and flags missing optional LLM or mail credentials before committee runs.
Instructions
Health check, the first call of a session (same output as run.sh doctor,
for agents without shell access): is onboarding done, and which optional
pieces are missing.
status is "ready" when memory (user / strategy / portfolio) is initialized,
or "needs_setup" when it is not (or portfolio.md is still the v1 format) —
only then hand over to the invest-setup skill. A missing LLM key or mail
credentials never makes it "needs_setup": those checks entries are marked
optional_for_coordinator / optional_for_email. The Coordinator path
(prepare_committee + subagents) works without a key; only the Direct path
(run_committee, cron) needs one, see direct_ready.
Read-only; makes one short HTTP probe to the configured LLM endpoint when a key is set.
Returns:
Object with status, version, coordinator_ready, direct_ready,
next_step, and checks (name / status / detail / hint per check).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |