Natural language prompts and skills serve as the strategic backbone of LLM-based agents. Recent advances in prompt and skill optimization have achieved notable gains, yet all existing methods optimize a single text template---missing the synergy among multiple complementary strategies. We propose MOSCOPT, a text-native, parameter-free algorithm that jointly optimizes a pool of N skills and a gating skill G that dynamically selects K skills per step. To effectively optimize the skills, we build the EditAdam with internally maintained dual states. Through the three-phase interleaved updates with EditAdam, the system monotonically improves without gradient or parameter tuning. Extensive experiments and detailed ablations across 5 benchmarks and 3 target LLMs demonstrate that MOSCOPT consistently outperforms all baselines, and confirm that both the mixture-of-skills architecture with selective activation and the collective evolution with three-phase interleaving are essential to its superior performance. Code is released https://github.com/zhangzhenyu13/SummerClaw/tree/master/summerclaw/agent_trainer/algorithms/moscopt.
Figures & tables
Figure 1: MOSCOPT maintains three core components: a skill pool S={s1,…,sN} , a gating skill G , and a summary table Σ(S) . Given a task input, G selects K skills via Σt(S) , outputting ACTIVATE IDs (with top- K -by-Q-score fallback). The K activated skills are loaded into agent context while non-activated skills remain invisible.
Method
SearchQA
GPQA-D
HLE
AIME
LiveMath
avg.
No Skill
48.8
90.7
46.3
94.5
29.9
62.0
5-shot LLM Skill
41.0
88.3
46.5
93.1
29.4
59.7
Reflexion
76.1
90.4
48.7
98.3
37.1
70.1
DSPy
62.2
90.7
46.1
93.8
31.5
64.9
SE-Agent
79.9
89.4
47.0
94.1
46.3
71.3
OPRO
53.2
90.9
46.5
95.7
41.6
65.6
Table 1: Main results with Qwen3.6-Plus and cross models evaluation for MOSCOPT.
Ablation Configuration
Avg. Score
MOSCOPT (full)
74.1
w/o EditAdam (simple reflect edit)
68.5
w/o Gating Optimization ( G fixed)
70.9
Task level Gating
73.1
w/o Collective co-breeding
73.7
w/o Progressive Disclosure
73.9
Table 2: Ablation study on Qwen3.6-Plus. Removing any component degrades performance, confirming the necessity of each design choice.
Deployment Mode
Avg. Score
Full Mixture ( {S,G,K} )
74.1
Static Routing Table (top Q scores)
70.6
Distilled Single Skill (merged top skills)
71.2
Table 3: Comparison of three deployment modes on Qwen3.6-Plus. Full mixture with dynamic gating outperforms both static routing and skill distillation.