fix-rust-fmt
ethereum-optimism/optimism/.claude/skills/fix-rust-fmt/SKILL.md
Fix Rust formatting issues in the optimism monorepo which would cause the rust-fmt CI job to fail. Use this skill when the rust-fmt CI job fails on a PR that touches Rust code. From the repo root (or worktree root): This installs rust, just, and all other tools pinned in mise.toml. Any files that change are the reason the CI job failed. Stage and commit them. - mise exec -- activates the mise environment so cargo, just, and rustup resolve…
What's in it
- fix-rust-fmt
- When to Use
- Trigger Phrases
- Prerequisites
- Workflow
- Step 1: Ensure mise tools are installed
- Step 2: Run the formatter
- Notes
# fix-rust-fmt Fix Rust formatting issues in the optimism monorepo which would cause the `rust-fmt` CI job to fail. ## When to Use Use this skill when the `rust-fmt` CI job fails on a PR that touches Rust code. ### Trigger Phrases - "Fix rust formatting" - "rust-fmt is failing" - "Fix the rust-fmt CI job" ## Prerequisites - `mise` must be trusted and installed for this repo (`mise trust && mise install`) ## Workflow ### Step 1: Ensure mise tools are installed From the repo root (or worktree root): ```bash cd <REPO_ROOT> && mise install ``` This installs `rust`, `just`, and all other tools pinned in `mise.toml`. ### Step 2: Run the formatter ```bash cd <REPO_ROOT>/rust && mise exec -- just fmt-fix ``` Any files that change are the reason the CI job failed. Stage and commit them. ## Notes - `mise exec --` activates the mise environment so `cargo`, `just`, and `rustup` resolve to the versions pinned in `mise.toml`. - The nightly toolchain is required because the workspace uses unstable `rustfmt` options (see `rust/rustfmt.toml`). - There is no need to inspect `rust-fmt` CI errors — if the job failed, running `just fmt-fix` and committing the result is the complete fix.
More agent context in ethereum-optimism/optimism
17 other files this repository gives its agents.
Skill
- create-pr.claude/skills/create-pr/SKILL.md
- dispute-game-investigator.claude/skills/dispute-game-investigator/SKILL.md
- fix-todo.claude/skills/fix-todo/SKILL.md
- release-notes.claude/skills/release-notes/SKILL.md
- run-acceptance-tests.claude/skills/run-acceptance-tests/SKILL.md
- update-reth.claude/skills/update-reth/SKILL.md
- watch-reviews.claude/skills/watch-reviews/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

