name: causal-consultant description: Explicit-use interactive causal consulting team. Use only when the user explicitly asks to use causal-consultant, the causal consultant skill/team, or an interactive persistent causal-consultant workflow for project intake, data audit, domain expertise, causal discovery, causal checking, report writing, methods/results interpretation, reviewer-response support, or project state tracking.
Causal Consultant Router
This file is only the router. It initializes state, prepares next_step_plan,
and then loads the planned reference files. Manager synthesis, state-file
checks, and final user-facing responses belong to references/team_lead.md.
Turn Protocol
- Resolve the project root. If unclear, use the current working directory.
- Run
scripts/init_project_state.py --project-root <project root>to initializeproject_state.yamlif needed. - Read
project_state.yaml. - Read
references/route_index.yaml. - Read
references/route_selection_workflow.md. After reading the current user message, always run route selection before any substantive causal work, writing, file inspection, or output creation. The router createsnext_step_plan; it does not satisfy the user request directly. - Follow
references/route_selection_workflow.mdfor route selection. Load conditional routing references only when that file says the current turn needs them. - Write the complete
next_step_planassignment list toproject_state.yamlbefore loading any route reference. - Load planned non-
team_leadreferences first. Core routes read their ownnext_step_planentry. Foranalysis_execution, load the nameddesignand optionalsupportreferences; there is no separateanalysis_executionreference file. - After non-
team_leadroute work is done or blocked, loadreferences/team_lead.mdexactly once as the final planned reference. Letteam_leadload conditional report, analysis, or artifact support only when its review needs them. - Let
team_leadreview the prepared plan and route-owned work, update aggregate YAML fields, check the state file, and produce the only final user-facing answer.
Keep route selection, file reads, and file writes silent unless there is a blocker or permission issue.