Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Resolve model profile (quality/balanced/budget) at orchestration start and map agents to specific models. Enables cost/quality tradeoffs by selecting appropriate AI models for each agent role.
.claude/skills/a5c-ai-model-profile-resolution/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-07 | ✗→✓ | ▲ Improved | 129% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 212% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 75% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 52% | 0% |
The active profile is stored in .planning/config.json under the profile field, or can be overridden with the --profile flag.
Load the current profile from configuration:
json// .planning/config.json { "profile": "balanced", ... }
If no profile is set, default to balanced.
Each profile maps agent roles to specific models:
yamlquality: orchestrator: claude-opus-4-6 gsd-planner: claude-opus-4-6 gsd-executor: claude-opus-4-6 gsd-verifier: claude-opus-4-6 gsd-plan-checker: claude-opus-4-6 gsd-phase-researcher: claude-opus-4-6 gsd-project-researcher: claude-opus-4-6 gsd-research-synthesizer: claude-opus-4-6 gsd-roadmapper: claude-opus-4-6 gsd-codebase-mapper: claude-opus-4-6 gsd-debugger: claude-opus-4-6 gsd-integration-checker: claude-opus-4-6 balanced: orchestrator: claude-opus-4-6 gsd-planner: claude-sonnet-4 gsd-executor: claude-sonnet-4 gsd-verifier: claude-sonnet-4 gsd-plan-checker: claude-sonnet-4 gsd-phase-researcher: claude-sonnet-4 gsd-project-researcher: claude-sonnet-4 gsd-research-synthesizer: claude-sonnet-4 gsd-roadmapper: claude-sonnet-4 gsd-codebase-mapper: claude-sonnet-4 gsd-debugger: claude-sonnet-4 gsd-integration-checker: claude-sonnet-4 budget: orchestrator: claude-sonnet-4 gsd-planner: claude-haiku-4 gsd-executor: claude-haiku-4 gsd-verifier: claude-haiku-4 gsd-plan-checker: claude-haiku-4 gsd-phase-researcher: claude-sonnet-4 gsd-project-researcher: claude-haiku-4 gsd-research-synthesizer: claude-haiku-4 gsd-roadmapper: claude-haiku-4 gsd-codebase-mapper: claude-haiku-4 gsd-debugger: claude-sonnet-4 gsd-integration-checker: claude-haiku-4
Note: Budget profile uses Sonnet for research and debugging where quality matters most.
Resolve the model for a specific agent:
resolve(agent: "gsd-executor", profile: "balanced")
-> { model: "claude-sonnet-4", profile: "balanced" }
resolve(agent: "gsd-planner", profile: "quality")
-> { model: "claude-opus-4-6", profile: "quality" }Switch profiles at runtime:
json// Before { "profile": "balanced" } // After set-profile quality { "profile": "quality" }
Profile switches take effect on the next agent spawn. Already-running agents are not affected.
Ensure selected model supports required agent features:
Validate gsd-executor needs:
[PASS] Code generation: all models support
[PASS] Tool use: all models support
[PASS] Long context: all models support 200k
[PASS] Structured output: all models support
Validate gsd-debugger needs:
[PASS] Code analysis: all models support
[PASS] Reasoning: opus-4-6 > sonnet-4 > haiku-4
[WARN] Complex debugging may benefit from quality profileEstimate cost per profile for a workflow:
Workflow: execute-phase (Phase 72, 2 plans, 7 tasks)
Agent spawns: 2 executor + 1 verifier = 3 agents
Estimated tokens per agent: ~50,000 input + ~20,000 output
quality (opus-4-6 for all):
Input: 3 * 50k * $0.015/1k = $2.25
Output: 3 * 20k * $0.075/1k = $4.50
Total: ~$6.75
balanced (sonnet-4 for agents):
Input: 3 * 50k * $0.003/1k = $0.45
Output: 3 * 20k * $0.015/1k = $0.90
Total: ~$1.35
budget (haiku-4 for agents):
Input: 3 * 50k * $0.00025/1k = $0.04
Output: 3 * 20k * $0.00125/1k = $0.08
Total: ~$0.12Note: Cost estimates are approximate and based on typical token usage patterns.
Read to load .planning/config.jsonprofile field (default to balanced if not set)Read to load current configprofile fieldnew-project.js - Resolve models for 4+ parallel researchersplan-phase.js - Resolve model for planner, plan-checkerexecute-phase.js - Resolve model for executor, verifierquick.js - Resolve model for planner, executordebug.js - Resolve model for debuggermap-codebase.js - Resolve model for 4 parallel mappersiterative-convergence.js - Resolve model per iterationjson{ "operation": "resolve|switch|validate|estimate", "status": "success|error", "profile": "balanced", "mapping": { "agent": "gsd-executor", "model": "claude-sonnet-4" }, "costEstimate": { "profile": "balanced", "agentCount": 3, "estimatedCost": "$1.35", "breakdown": { "input": "$0.45", "output": "$0.90" } } }
| Setting | Default | Description | |---------|---------|-------------| | profile | balanced | Active model profile | | customMappings | {} | Override specific agent-model mappings | | costWarningThreshold | 10.00 | Warn if estimated workflow cost exceeds this |
| Error | Cause | Resolution | |-------|-------|------------| | Unknown profile | Profile name not quality/balanced/budget | Use one of the three valid profiles | | Unknown agent | Agent name not in profile mapping | Use profile default model | | Config not found | .planning/config.json missing | Use default profile (balanced) | | Model deprecated | Mapped model no longer available | Update profile mapping to current model |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 4,399 | 4,070 | -7% | 1 | 1 | 0% | 230 | 2,365 | +928% | 0 | 0 | — |
case-02 | fail→fail | 2,335 | 4,557 | +95% | 1 | 1 | 0% | 350 | 2,354 | +573% | 0 | 0 | — |
case-03 | fail→fail | 6,382 | 4,871 | -24% | 1 | 1 | 0% | 1,423 | 2,506 | +76% | 0 | 0 | — |
case-04 | fail→fail | 3,900 | 2,891 | -26% | 1 | 1 | 0% | 784 | 2,674 | +241% | 0 | 0 | — |
case-05 | fail→fail | 3,143 | 2,746 | -13% | 1 | 1 | 0% | 581 | 2,576 | +343% | 0 | 0 | — |
case-06 | fail→fail | 8,810 | 3,470 | -61% | 1 | 1 | 0% | 1,517 | 2,681 | +77% | 0 | 0 | — |
case-07 | fail→pass | 5,694 | 2,275 | -60% | 1 | 1 | 0% | 1,106 | 2,530 | +129% | 0 | 0 | — |
case-08 | fail→pass | 13,000 | 3,035 | -77% | 1 | 1 | 0% | 2,431 | 2,813 | +16% | 0 | 0 | — |
case-09 | fail→pass | 4,693 | 2,771 | -41% | 1 | 1 | 0% | 867 | 2,709 | +212% | 0 | 0 | — |
case-10 | fail→pass | 6,576 | 1,929 | -71% | 1 | 1 | 0% | 1,416 | 2,473 | +75% | 0 | 0 | — |
case-11 | fail→pass | 8,010 | 2,062 | -74% | 1 | 1 | 0% | 1,645 | 2,503 | +52% | 0 | 0 | — |
case-12 | pass→pass | 6,016 | 2,181 | -64% | 1 | 1 | 0% | 1,022 | 2,443 | +139% | 0 | 0 | — |
case-13 | fail→pass | 3,204 | 2,729 | -15% | 1 | 1 | 0% | 623 | 2,617 | +320% | 0 | 0 | — |
case-14 | fail→fail | 5,610 | 3,102 | -45% | 1 | 1 | 0% | 994 | 2,643 | +166% | 0 | 0 | — |
case-15 | fail→pass | 7,885 | 3,214 | -59% | 1 | 1 | 0% | 1,430 | 2,755 | +93% | 0 | 0 | — |
case-16 | fail→fail | 3,456 | 2,550 | -26% | 1 | 1 | 0% | 541 | 2,523 | +366% | 0 | 0 | — |
case-17 | fail→pass | 8,945 | 5,840 | -35% | 1 | 1 | 0% | 2,088 | 3,443 | +65% | 0 | 0 | — |
case-18 | fail→pass | 8,040 | 3,848 | -52% | 1 | 1 | 0% | 2,053 | 2,943 | +43% | 0 | 0 | — |
case-19 | fail→pass | 10,080 | 5,418 | -46% | 1 | 1 | 0% | 2,011 | 3,283 | +63% | 0 | 0 | — |
case-20 | fail→pass | 5,743 | 1,937 | -66% | 1 | 1 | 0% | 768 | 2,429 | +216% | 0 | 0 | — |
case-21 | fail→pass | 5,963 | 2,711 | -55% | 1 | 1 | 0% | 979 | 2,700 | +176% | 0 | 0 | — |
case-22 | fail→pass | 17,319 | 2,367 | -86% | 1 | 1 | 0% | 4,186 | 2,621 | -37% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 19 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +59 percentage points is the difference between those two pass rates over the 19 comparable cases. 3 cases got worse with the skill loaded, and they are included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.