rust-style
Agent IX Rust conventions for every Rust coding and review task.
Skill by agent-ix
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/agent-ix-rust-style
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, testing, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/rust-style
What's inside
- Skill name
rust-style- Description
- Agent IX Rust conventions for every Rust coding and review task. Load this baseline even when the repository has additional Rust guidance; read the linked API, implementation, safety, boundary, testing, and Tokio references for the work at hand.
- License
- MIT
- Instructions
- 63 lines in SKILL.md · view on GitHub
Files (7)
- SKILL.md
- api-design.md · references/
- implementation.md · references/
- safety-concurrency.md · references/
- testing.md · references/
- tokio.md · references/
- wire-and-persistence.md · references/
SKILL.md (first lines)
# Rust Style If this plugin is not initialized or an Agent IX command fails, read [the dev-tools setup guide](https://github.com/agent-ix/dev-tools/blob/main/setup.md) for its prerequisites and local diagnosis. Load this skill before designing, writing, or reviewing Rust. These are Agent IX defaults for Rust code, not instructions for a particular repository. Read `AGENTS.md`, `CLAUDE.md`, a repository Rust skill, and its lint and formatter configuration too. More specific repository instructions take precedence. A documented rule remains authoritative even if existing code violates it. Treat the rule as superseded only when a newer explicit project authority changes it; report the conflict when those authorities disagree. ## Core rules to keep in context - Borrow immutable inputs as `&str`, `&Path`, `&[T]`, or `&T` where possible. Prefer unique ownership and borrowing over unnecessary deep clones or shared ownership. Use identity newtypes when two IDs could be confused. - Use `Option` for genuine absence, `Result` for recoverable failures, and a distinct typed condition for each failure a caller must distinguish. Each crate that surfaces errors uses a stable `Copy` code enum and a `thiserror` envelope; never branch on human-readable error text. - Keep public APIs deliberate: document every `pub` item, avoid accidental visibility, use standard traits when they fit, and consider compatibility before exposing enum variants, struct fields, or a `const fn`. - Prefer direct, auditable control flow. Match closed enums exhaustively; do not map an unknown variant to a valid but wrong value. Use an iterator operation or a `for` loop according to which makes the behavior clearer. - Return an error for bad caller-controlled data. Do not let malformed input trigger `unwrap`, indexing, slicing, or arithmetic panics. An invariant panic is only appropriate when the repository permits it and the invariant is explicit. Prefer pattern matching to check-then-`unwrap`. - Default to `#![forbid(unsafe_code)]` and workspace safety lints. An allowed unsafe operation requires a `SAFETY:` comment, an explanation of why safe code is insufficient, and an audit of the surrounding abstraction. - Use typed wire payloads and reject unknown fields on every deserialized payload. Keep secrets out of input types. At wire and persistence boundaries, use checked integer conversions rather than a bare narrowing `as` cast. - Write deterministic tests that exercise real behavior. In a repository that traces tests to requirements, bind each new test with `/// Trace:` or its declared trace attribute; do not hand-edit a Test Matrix. Use the repository's required gates and license header. ## Read the applicable detailed rules - [API design](references/api-design.md): public or cross-crate APIs, types, constructors, traits, ownership, and documentation. - [Implementation](references/implementation.md): modules, imports, naming, control flow, formatting, macros, and ordinary Rust code. - [Safety and concurrency](references/safety-concurrency.md): panic paths, unsafe, locks, cancellation, resource bounds, and concurrent state. - [Wire and persistence](references/wire-and-persistence.md): errors, deserialization, IPC, external input, persisted values, and conversions. - [Testing](references/testing.md): unit and integration tests, doubles, trace tags, external services, and deterministic assertions. - [Tokio](references/tokio.md): Tokio tasks, blocking work, runtime context, and sync-over-async bridges. Read this only when Tokio is used. These rules describe code and review decisions. Enforceable gates such as Clippy, cargo-deny, and unsafe audits belong in the repository's CI and lint configuration; follow that configuration when it is stricter.
From agent-ix/dev-tools, MIT.
More from agent-ix/dev-tools
- 0.570score
rust-review
agent-ix
Review Rust changes against Agent IX Rust style, repository conventions, behavior, test evidence, safety and concurrency, wire contracts, resource bounds, and…
SkillAFreshness: AClaude Code +9 - 0.570score
security-deepsec
agent-ix
Run a generic DeepSec-backed security review and remediation burndown for one or more target repositories.
SkillAFreshness: AClaude Code +9 - 0.570score
docs-figures
agent-ix
Draw diagrams, charts and CSS animations for GitHub READMEs and documentation as transparent light and dark SVG pairs, with text drawn as glyph outlines so…
SkillAFreshness: AClaude Code +9 - 0.567score
new-project
agent-ix
Scaffold a new repository from an Agent IX template, verify it locally, establish AGPL and content-rights controls, and create its GitHub repository privately.
SkillAFreshness: AClaude Code +9 - 0.560score
writing-tests-react
agent-ix
Index to React component testing guides.
SkillAFreshness: AClaude Code +9 - 0.558score
backport-code
agent-ix
A skill for systematically backporting bug fixes and features across specs, templates, and downstream repositories.
SkillAFreshness: AClaude Code +9 - 0.558score
review-react
agent-ix
Review React components for test coverage, including unit tests and Storybook stories with requirement traceability.
SkillAFreshness: AClaude Code +9 - 0.558score
writing-tests-pg-data
agent-ix
Instructions for writing tests for PG Data services, likely involving database fixtures and integration tests.
SkillAFreshness: AClaude Code +9 - 0.558score
writing-tests-python
agent-ix
Instructions for writing Python tests (pytest), including mocking, fixtures, and golden path standards.
SkillAFreshness: AClaude Code +9 - 0.558score
writing-tests-typescript
agent-ix
Instructions for writing TypeScript tests (Jest), including typed mocks and testing patterns.
SkillAFreshness: AClaude Code +9 - 0.553score
code-review
agent-ix
Review code for Agent-IX Golden Path compliance, focusing on test style, mock boundaries, implementation gaps, and code-test alignment.
SkillAFreshness: AClaude Code +9 - 0.550score
assurance-onboarding
agent-ix
Capture a generic handoff in the fixture host.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 22, 2026 (7 days ago)
- Last release
- Oct 22, 2026 (7 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/agent-ix/dev-tools
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from agent-ix
- 0.570score
rust-review
agent-ix
Review Rust changes against Agent IX Rust style, repository conventions, behavior, test evidence, safety and concurrency, wire contracts, resource bounds, and…
SkillAFreshness: AClaude Code +9 - 0.570score
security-deepsec
agent-ix
Run a generic DeepSec-backed security review and remediation burndown for one or more target repositories.
SkillAFreshness: AClaude Code +9 - 0.570score
docs-figures
agent-ix
Draw diagrams, charts and CSS animations for GitHub READMEs and documentation as transparent light and dark SVG pairs, with text drawn as glyph outlines so…
SkillAFreshness: AClaude Code +9 - 0.567score
new-project
agent-ix
Scaffold a new repository from an Agent IX template, verify it locally, establish AGPL and content-rights controls, and create its GitHub repository privately.
SkillAFreshness: AClaude Code +9 - 0.560score
writing-tests-react
agent-ix
Index to React component testing guides.
SkillAFreshness: AClaude Code +9 - 0.558score
backport-code
agent-ix
A skill for systematically backporting bug fixes and features across specs, templates, and downstream repositories.
SkillAFreshness: AClaude Code +9
Cite this page
rust-style skill. Agent Mart. https://agentmart.dev/skills/agent-ix-rust-style (last updated 2026-10-24)