rust-simplify
One-file-at-a-time Rust quality pass for Citum, using jcodemunch to target the highest-value cleanup.
от citum★ 36 звёзд на GitHub
Установить rust-simplify в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rust Simplify
Use this skill for bounded Rust cleanup work in the Citum workspace when the task is to improve code quality rather than fix a specific bug.
When .jj is present, use docs/guides/JJ_AI_CHANGE_STACK.md for optional
local change isolation and intent capture before publishing through Git/GitHub.
Read first:
docs/guides/CODING_STANDARDS.mddocs/guides/AGENT_SKILLS.md
Target Selection
- Prefer
jcodemunchsymbol and file analysis before reading large files. - Pick the highest-value Rust file in the affected crate or module.
- If a file path was supplied, confirm it is actually wired into the build.
Quality Pass
- Reduce duplication and nested control flow.
- Prefer idiomatic Rust and explicit error handling.
- Review suspicious string ownership patterns. Prefer borrowed
&strfor lookup and comparison work, and allocateStringvalues at real ownership boundaries. - Do not perform broad allocation churn in hot paths without benchmark evidence.
- Add or update tests when behavior changes.
- When tests change, keep expected values independent of current implementation output and confirm behavior changes would have failed before the fix when practical.
- Keep the scope to one focused file or one tightly related cluster.
Verification
- Run the repo-required Rust checks for any
.rs,Cargo.toml, orCargo.lockchange. - Run
python3 scripts/audit-rust-review-smells.py --changedfor Rust cleanup passes and review the advisory findings. - Regenerate schemas if the touched files require it.
- Report the exact checks you ran and the result.
Self-Improvement
When you hit a recurring Rust smell not already caught by the audit script:
- If it can be expressed as a regex rule, add it to
scripts/audit-rust-review-smells.pyas a newRuleentry in theRULEStuple — the script is the canonical home for automatable patterns. - If it's too contextual for a regex, add a short bullet to the Quality Pass section above instead.
For verification failure modes or jcodemunch quirks, add a bullet to the Verification section above. Include any file updates in the same commit. One concrete rule per observation — keep the scope tight.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- agents/openai.yaml
FAQ
Что делает скилл rust-simplify?
One-file-at-a-time Rust quality pass for Citum, using jcodemunch to target the highest-value cleanup.
Как установить скилл rust-simplify?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rust-simplify запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…