AI-DDTK Daily Preflight (run once at session start)
-
Probe MCP tools: call wpcc_list_features + local_wp_list_sites
- If either fails: run ./install.sh setup-mcp && ./install.sh status, retry
- If MCP works: skip shell probing for covered tools
-
Probe shell-only tools: command -v rg php node python3 git tmux
-
Establish context: local_wp_list_sites → select active site → pw_auth_status
-
Print preflight report in this format:
MCP: connected | 21 tools available
Site: mysite.local (selected)
Auth: admin — valid 6h | expired | none
Shell: rg ✓ php ✓ tmux ✓ (list missing as ✗)
-
Session rules (repeat these to yourself before every tool call):
- ALWAYS use AI-DDTK MCP tools (wpcc_, local_wp_, pw_auth_,
qm_, wp_ajax_test, tmux_*) instead of ad-hoc shell equivalents
- ALWAYS use wpcc for code scanning, never ad-hoc grep/rg patterns
- ALWAYS use tmux_* for long-running commands, never raw background jobs
- Keep runtime artifacts in ./temp
- If you catch yourself writing an ad-hoc script for something
AI-DDTK already does, stop and use the toolkit instead
AI-DDTK Daily Preflight (run once at session start)
Probe MCP tools: call wpcc_list_features + local_wp_list_sites
Probe shell-only tools: command -v rg php node python3 git tmux
Establish context: local_wp_list_sites → select active site → pw_auth_status
Print preflight report in this format:
MCP: connected | 21 tools available
Site: mysite.local (selected)
Auth: admin — valid 6h | expired | none
Shell: rg ✓ php ✓ tmux ✓ (list missing as ✗)
Session rules (repeat these to yourself before every tool call):
qm_, wp_ajax_test, tmux_*) instead of ad-hoc shell equivalents
AI-DDTK already does, stop and use the toolkit instead