Files
echo/echo-memory.plugin.src/commands/echo-health.md
T

18 lines
1.2 KiB
Markdown
Raw Normal View History

2026-06-19 21:12:14 -05:00
---
description: Run the ECHO vault-health linter and summarize any invariant violations
2026-06-26 20:05:47 -05:00
allowed-tools: Bash(python3 *vault_lint.py*), Bash(python *vault_lint.py*), Bash(ls /sessions/*), Bash(dirname *)
2026-06-19 21:12:14 -05:00
---
2026-06-21 11:46:54 -05:00
Run the bundled, read-only vault linter and report findings. Pass the conversation's current date (`ECHO_TODAY`) so stale/aging math uses the same clock the agent writes with:
2026-06-19 21:12:14 -05:00
```bash
2026-06-26 20:05:47 -05:00
SDIR="${CLAUDE_PLUGIN_ROOT}/skills/echo-memory/scripts"
[ -d "$SDIR" ] || SDIR=$(dirname "$(ls /sessions/*/mnt/.remote-plugins/*/skills/echo-memory/scripts/vault_lint.py 2>/dev/null | head -1)") # CoWork sandbox fallback
ECHO_TODAY=<currentDate> python3 "$SDIR/vault_lint.py"
2026-06-21 11:46:54 -05:00
# Windows: use `python` or `py -3` if `python3` is not on PATH.
2026-06-19 21:12:14 -05:00
```
2026-06-21 11:46:54 -05:00
Exit codes: `0` clean · `1` violations (printed, grouped by check) · `2` vault unreachable · `3` vault not bootstrapped (run `bootstrap.py`).
2026-06-19 21:12:14 -05:00
2026-06-23 22:17:39 -05:00
Summarize the violations grouped by category and propose fixes, but **do not auto-fix** without the operator's go-ahead. If this is the first substantive session of a calendar month, offer to write the findings to `_agent/health/YYYY-MM-vault-health.md` (per the skill's **Vault Health** section).