rust-implement
Implement material Rust changes under repository-local policy with scoped edits, capability routing, tests, and truthful validation. Use when asked to write, fix, refactor, or extend Rust code. Do not use for review-only requests or trivial syntax answers.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- rust-implement
- description
- Implement material Rust changes under repository-local policy with scoped edits, capability routing, tests, and truthful validation. Use when asked to write, fix, refactor, or extend Rust code. Do not use for review-only requests or trivial syntax answers.
02 资源文件 2
- 参考文档references/style.md6.3 KB
- 其他skill.toml838 B
03 SKILL.md 正文
Implement Rust Changes
Inspect before editing
- Read
$rust-core, local instructions, manifests, nearby code and tests, generated ownership, feature gates, and relevant history. - State the requested behavioral outcome and smallest affected contract.
- Route public API, testing, protocol, DSP, performance, concurrency, unsafe/FFI, dependency/security, and embedded concerns to their owning skills before designing the patch.
Implement
- Preserve existing local conventions unless the task explicitly changes them.
- Keep the diff focused; do not mix unrelated cleanup or dependency churn.
- Prefer clear control flow and domain vocabulary. Read implementation style for non-mechanical choices.
- Update tests, public documentation, examples, generated sources, fixtures, benchmarks, and migration notes when their owning contract changes.
- Discuss a material dependency change before editing manifests unless the user already authorized that exact change.
Validate and self-review
Run the repository-declared required workflow and risk-specific checks selected
by $rust-testing. Review the completed diff for behavioral regression,
accidental public surface, panic, allocation, unsafe, feature, target,
documentation, and scope changes. Never describe an unavailable tool as passed.
Output
Deliver the scoped implementation, tests, exact command results, skipped or unavailable checks, behavior changes, compatibility impact, and remaining risk.
04 同仓库更多 Skills
rust-unsafe-ffi
Design and review unsafe Rust, safe wrappers, manual Send or Sync, ABI boundaries, foreign ownership, callbacks, and FFI build integration. Use whenever unsafe code or a foreign interface is introduced, changed, or relied upon. Do not use unsafe merely to bypass borrow checking or for unmeasured optimization.
rust-testing
Select, implement, and assess Rust unit, integration, documentation, property, fuzz, snapshot, concurrency, unsafe, protocol, benchmark, and verification evidence. Use whenever behavior changes or claims need proof. Do not run every tool mechanically when the repository or risk makes it inapplicable.
rust-skill-maintenance
Maintain this modular Rust skills system, including canonical content, manifests, references, profiles, generated adapters, migrations, examples, evaluations, releases, and compatibility. Use when changing the skills repository itself. Do not hand-edit generated adapters.
rust-review
Review Rust diffs, commits, branches, and designs for actionable correctness, soundness, security, compatibility, concurrency, protocol, performance, testing, and maintainability risks. Use for review or pre-merge assessment. Do not modify code unless separately requested.
rust-repository-onboarding
Inspect, interview, profile, configure, and install the modular Rust engineering skills into a repository. Use when adopting or refreshing these skills, generating repository-specific Rust rules, or creating validation workflows. Never finalize policy before repository inspection and user approval.
rust-protocol
Engineer and review binary protocols, wire formats, builders, encoders, parsers, framing, stateful messages, bit ordering, integrity, correction, malformed input, and conformance. Use for protocol or serializer code. Do not apply protocol rules to unrelated in-memory models.