AGENT SKILL

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
所属仓库
RawSocketLabs/rsl
最近更新
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

03 SKILL.md 正文

Rust Core

Apply precedence

Apply guidance in this order:

  1. explicit user instruction for the current task;
  2. closest directory-specific instructions and decisions;
  3. repository-wide decisions and mechanical configuration;
  4. confirmed component and repository-profile defaults;
  5. organization-wide preferences;
  6. applicable task and capability skills;
  7. official authoritative references;
  8. approved ecosystem guidance;
  9. curated examples;
  10. advisory or historical material;
  11. 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

  1. Read the current request and every applicable AGENTS.md, adopted profile, local decision, manifest, toolchain file, lint configuration, and generated boundary.
  2. Separate verified repository facts, explicit decisions, organization preferences, recommendations, and unresolved questions.
  3. Resolve conflicts with the precedence above.
  4. 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

RawSocketLabs
RawSocketLabs/rsl

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.

★ 2
RawSocketLabs
RawSocketLabs/rsl

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.

★ 2
RawSocketLabs
RawSocketLabs/rsl

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.

★ 2
RawSocketLabs
RawSocketLabs/rsl

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.

★ 2
RawSocketLabs
RawSocketLabs/rsl

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.

★ 2
RawSocketLabs
RawSocketLabs/rsl

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.

★ 2