/**
 * Maps booskills catalog names to their equivalent conductor flow names.
 * When a mapped skill is invoked natively in BooCoder, the flow runner
 * launches the full fan-out (personas → fold → synthesizer → adversarial gate)
 * instead of the single-context body-injection path.
 *
 * Unmapped skills (write-capable, interactive, or routing) fall back to the
 * normal body-injection / external-agent dispatch path.
 */
export const SKILL_FLOW_MAP: Record<string, string> = {
  'boo-researching': 'research',
  'boo-investigating-failures': 'investigate',
  'boo-analyzing-architecture': 'architectural-analysis',
  'boo-reviewing-code': 'code-review',
  'boo-mapping-project-context': 'project-discovery',
  'boo-planning-changes': 'plan-a-feature',
};

export function flowForSkill(skillName: string): string | undefined {
  return SKILL_FLOW_MAP[skillName];
}
