What problem does it solve? Multi-agent systems incur coordination overhead, token costs, and latency from inter-agent communication. This Skill converts a MAS codebase or description into a single-agent skill with sequential phases, eliminating message-passing overhead while preserving behavior. ## Core Features & Use Cases - Compilability Checking: Verifies three formal conditions (serializable communication, shared history, homogeneous backbone) before compilation and reports violations. - Three-Phase Compilation: Performs capability decomposition, backend assignment (external tools vs. internal policies), and topology internalization that converts communication edges into output format constraints. - Structured Output Generation: Produces a compiled SKILL.md with ordered [PHASE] sections plus a tools/ directory of validated Python functions. - Use Case: Given a 3-agent GSM8K pipeline (Decomposer → Solver → Verifier), compile it into one skill with three sequential phases, cutting token usage by roughly half while maintaining accuracy. ## Quick Start Compile this multi-agent system codebase into a single-agent skill using the mas-compiler.