fm — Claude Code skill: model selection and setup
This Claude Code and Codex skill pins a chosen model to a Codex session through Weave Router. Invoke it with $fm <model-id>.
Apache-2.0 ★ 5,622 updated 2026-11-17
npx skills add weave-os/router --skill fm -a claude-codeWhat fm does
The skill passes the model identifier to scripts/emit.sh. That script prints a /force-model command; Weave Router reads it from the output, pins the session to the model, and continues the current turn.
Weave Router and a model identifier are required. The skill runs the script once, then ends the turn without sending a separate user message. Router provides the acknowledgment.
What it helps with
- pin a chosen model to a Codex session
- send a model identifier to Weave Router
- switch the session model with
$fm <model-id>
Example prompts for the agent
- Pin model
o3to this Codex session with$fm o3. - Switch the session to
gpt-4.1using$fm gpt-4.1. - Set
claude-sonnet-4for the current session:$fm claude-sonnet-4.
How to install fm
1Skills CLI (Vercel)
npx skills add weave-os/router --skill fm -a claude-code2Manually: put the files in place
~/.claude/skills/fm/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/fm/
1Skills CLI (Vercel)
npx skills add weave-os/router --skill fm -a codex2Manually: put the files in place
.agents/skills/fm/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add weave-os/router --skill fm -a cursor2Manually: put the files in place
.cursor/skills/fm/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install weave-os/router install/codex-skills/fm2Manually: put the files in place
.github/skills/fm/SKILL.md1Skills CLI (Vercel)
npx skills add weave-os/router --skill fm -a gemini-cli2Platform CLI
gemini skills install https://github.com/weave-os/router --path install/codex-skills/fmManually: put the files in place
.devin/skills/fm/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about fm
How do I install fm in Claude Code?
Run npx skills add weave-os/router --skill fm -a claude-code. The skill file is installed at ~/.claude/skills/fm/SKILL.md.
What does fm do?
It sends a model identifier to a script that prints /force-model. Weave Router uses that command to pin the model to a Codex session.
What does fm need to work?
It needs Weave Router and a model identifier passed as $fm <model-id>.
Source text
SKILL.md · Apache-2.0
--- name: fm description: "Alias for force-model — pin this Codex session to a specific model through the Weave Router." --- <!-- weave-router managed fm skill --> When the user invokes `$fm <model-id>`, run this skill's `scripts/emit.sh` using the absolute path shown in this skill's `<path>` (its directory + `/scripts/emit.sh`). Pass the model id as arguments, quoted as a single argument list. Do not send a user message and do not type a Codex slash command. The script prints a leading-space `/force-model` line. The Weave Router reads that exec output, pins the session, and continues this turn — so run the script once and do not repeat its output as your answer. The router renders its own acknowledgment, so do not restate or reason about it; end the turn.
© weave-os · Apache-2.0 · weave-os/router