From ai_dev
Applies clippy-aligned Rust style and idioms including error handling, borrowing, iteration, and string building for cleaner code.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai_dev:format_rustThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use clear, procedural flow with small, single‑purpose functions and explicit data flow; keep names concrete so intent is obvious at a glance.
Use clear, procedural flow with small, single‑purpose functions and explicit data flow; keep names concrete so intent is obvious at a glance.
Write code that naturally satisfies clippy by choosing the simplest correct form, and treat clippy warnings as signals to improve clarity, safety, and maintainability.
Use only necessary imports and prefer direct module paths; remove unused imports promptly to keep warnings clean.
Return results directly and keep control flow simple, using the minimal wrapping needed for clear error propagation.
Use the project-standard error type and Result flow for fallible builder APIs; convert builder failures into the error type used in this codebase and return them instead of panicking.
Use idiomatic Option helpers such as is_some_and to express predicates clearly and keep intent obvious.
Use strip_prefix or strip_suffix to handle fixed prefixes and suffixes for safe, readable string handling.
Return or pass references directly so lifetimes remain clear and borrow scopes stay minimal.
Use loop forms that match iterator intent and keep borrow scopes minimal, choosing the form that supports safe consumption.
Use push for single characters and push_str for multi-character segments to keep string construction clear.
Group related parameters into structs or configuration types to keep function signatures concise and maintainable.
Provides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub theafh/ai-modules --plugin ai_dev