/** Lifecycle phase map — mirrors scripts/mcp-server.js PHASE_MAP. */ export const PHASE_MAP: Record = { "survey-context": "Discover", "research-first": "Discover", "search-skills": "Discover", "using-bigpowers": "Discover", "map-codebase": "Discover", "elaborate-spec": "Discover", "model-domain": "Design", "define-language": "Design", "grill-me": "Design", "grill-with-docs": "Design", "deepen-architecture": "Design", "design-interface": "Design", "define-success": "Design", "scope-work": "Plan", "slice-tasks": "Plan", "plan-work": "Plan", "plan-release": "Plan", "plan-refactor": "Plan", "assess-impact": "Plan", "change-request": "Plan", "run-planning": "Plan", "seed-conventions": "Plan", "develop-tdd": "Build", "kickoff-branch": "Build", "execute-plan": "Build", "build-epic": "Build", "spike-prototype": "Build", "craft-skill": "Build", "quick-fix": "Build", "setup-environment": "Build", "wire-observability": "Build", "wire-ci": "Build", "publish-package": "Build", "align-grid": "Build", "orchestrate-project": "Build", "guard-git": "Build", "hook-commits": "Build", "deploy": "Build", "smoke-test": "Build", "validate-contracts": "Build", "verify-work": "Verify", "validate-fix": "Verify", "audit-code": "Verify", "enforce-first": "Verify", "run-evals": "Verify", "investigate-bug": "Verify", "diagnose-root": "Verify", "fix-bug": "Verify", "inspect-quality": "Verify", "request-review": "Verify", "respond-review": "Verify", "trace-requirement": "Verify", "release-branch": "Release", "commit-message": "Release", "session-state": "Sustain", "terse-mode": "Sustain", "compose-workflow": "Sustain", "delegate-task": "Sustain", "dispatch-agents": "Sustain", "edit-document": "Sustain", "evolve-skill": "Sustain", "migrate-spec": "Sustain", "organize-workspace": "Sustain", "reset-baseline": "Sustain", "simulate-agents": "Sustain", "stocktake-skills": "Sustain", "write-document": "Sustain", "plan-tests": "Plan", "gate-trace": "Verify", "security-review": "Verify", }; export function phaseForSkill(name: string): string { return PHASE_MAP[name] ?? "Other"; }