@srobroek/pi-lang-rust
Rust skills: fmt, clippy and test checks, testing with nextest, proptest and insta, crates and workspaces, CI, sqlx persistence, Tauri and profiling.
Package details
Install @srobroek/pi-lang-rust from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@srobroek/pi-lang-rust- Package
@srobroek/pi-lang-rust- Version
0.10.1- Published
- Nov 25, 2026
- Downloads
- 332/mo · 332/wk
- Author
- srobroek
- License
- Apache-2.0
- Types
- skill
- Size
- 157.2 KB
- Dependencies
- 0 dependencies · 0 peers
Pi manifest JSON
{
"skills": [
"./skills"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
lang-rust
Rust guidance for OpenCode as skills: the format, lint and test commands, testing
idioms, crate and workspace layout, CI, sqlx persistence and Tauri defaults, and
profiling. Language-neutral design (error enums and newtypes, generated bindings and
wire casing, plan/approve/apply flows) is in the quality plugin's quality-code-design
skill and its rust.md, contracts.md and safe-mutation.md references.
The plugin ships no hooks.
Replaces the former rust plugin, ported from the omp-plugins rust plugin. The omp
rust_quality tool is not ported: rustfmt runs as OpenCode's built-in formatter
("formatter": true, see docs/formatters.md), and the
lang-rust-quality lists the cargo fmt, cargo clippy and configured test-runner checks;
when the project adopts nextest, it also runs cargo test --doc separately. The cargo install
and RUSTFLAGS linker advice is in lang-rust-ci;
ops-no-global-cargo-target skill covers a global target directory (the advisory's
per-worktree advice contradicted its repository-scoped target). The migration-edit gate is in the
safety plugin.
Install
Install the Pi package from npm:
pi install npm:@srobroek/pi-lang-rust
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/lang-rust/opencode'
Claude Code install the same skills from this repository's marketplace:
claude plugin install lang-rust@harness-plugins
Skills
Only lang-rust is listed to the model in OpenCode: it is a router whose body maps each
situation to the skills below, which set opencode/autoinvoke: false and load by id. One listing
entry instead of one per skill keeps the per-request skills listing short. Claude Code ignores that metadata, so there every skill is listed and triggers directly.
The profiling skill is also reached through the quality plugin's quality-profiling skill.
The plugin registers these skills from skills/, unless a skill with the same id
already exists:
lang-rust: the router.lang-rust-libraries: compare preferred libraries before writing code for common concerns; versioned picks and sources.lang-rust-quality: format, lint and test commands.lang-rust-testing: unit and integration layout, configured test runner (nextest when adopted), doc tests, proptest, insta, tokio paused time;references/practice.mdhas tool choices, bad tests with fixes, and defaults by use case.lang-rust-packaging: crate splits,lib.rsfacades, workspace manifest, lints and dependencies, feature-gated dev code.lang-rust-ci: rust-cache,CARGO_INCREMENTAL, linker placement, prebuilt tools, sccache or mold. Workflow structure is thetoolchainplugin'sci-github-actions.lang-rust-persistence: persistence crate,migrate!andbuild.rsreruns, offline.sqlxdata,rows_affectedCAS,#[sqlx::test].lang-rust-profiling: samply, cargo flamegraph, perf and criterion baselines; the method is thequalityplugin'squality-profilingskill.lang-rust-tauri: Tauri v2 bundles, updater, WebDriver, and the MCP bridge reference.