rust-core
Apply universal Rust engineering priorities, repository precedence, evidence discipline, and proportional design judgment. Use for material Rust work before selecting task, domain, or technique skills. Do not use alone when a specialized Rust skill owns the affected contract.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- rust-core
- description
- Apply universal Rust engineering priorities, repository precedence, evidence discipline, and proportional design judgment. Use for material Rust work before selecting task, domain, or technique skills. Do not use alone when a specialized Rust skill owns the affected contract.
02 资源文件 3
- 参考文档references/observability.md3.5 KB
- 参考文档references/principles.md5.8 KB
- 其他skill.toml1010 B
03 SKILL.md 正文
Rust Core
Apply precedence
Apply guidance in this order:
- explicit user instruction for the current task;
- closest directory-specific instructions and decisions;
- repository-wide decisions and mechanical configuration;
- confirmed component and repository-profile defaults;
- organization-wide preferences;
- applicable task and capability skills;
- official authoritative references;
- approved ecosystem guidance;
- curated examples;
- advisory or historical material;
- general model knowledge.
A higher layer may override a lower one. Never replace a verified repository fact with a portable preference. Surface an apparent override of correctness, soundness, security, or an explicit compatibility guarantee instead of silently applying it.
Establish the contract
- Read the current request and every applicable
AGENTS.md, adopted profile, local decision, manifest, toolchain file, lint configuration, and generated boundary. - Separate verified repository facts, explicit decisions, organization preferences, recommendations, and unresolved questions.
- Resolve conflicts with the precedence above.
- Identify the affected behavior, trust boundary, ownership, lifecycle, platform, hot path, and evidence before choosing an implementation.
Route ownership
Activate $rust-implement for changes and $rust-review for reviews. Route
public APIs to $rust-api-design, evidence to $rust-testing, and domain or
risk work to $rust-protocol, $rust-dsp, $rust-performance,
$rust-async-concurrency, $rust-unsafe-ffi, $rust-dependencies-security, or
$rust-embedded. Do not copy their rules into the current response.
Read principles for repository-profile tradeoffs, abstraction decisions, and universal priorities. Read observability when operational events, logging, metrics, tracing, or telemetry are implicated.
Preserve universal boundaries
- Prefer the smallest design that preserves the real contract.
- Keep normal use clear and difficult to misuse; make consequential escape hatches explicit.
- Do not introduce production panics for ordinary operational failures.
- Deny unsafe by default and route permitted unsafe work to
$rust-unsafe-ffi. - Do not claim performance, command success, or platform behavior without observed evidence.
- Keep repository facts local; shared skills provide judgment and workflows.
Output
Report the contract applied, skills activated, exact verification observed, unavailable or skipped evidence, material tradeoffs, and unresolved risks.
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.