AGENT SKILL

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.

License 许可
Apache-2.0
所属仓库
RawSocketLabs/rsl
最近更新
2026-11-15
Stars
★ 2
Forks
0

01 前言 Front Matter

name
rust-repository-onboarding
description
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.

02 资源文件 10

03 SKILL.md 正文

Onboard a Rust Repository

Preserve the approval gate

Do not copy skills and stop. Do not write repository policy before inspection, an adaptive interview, a proposed profile and convention summary, and user approval. Steps 1-4 complete before anything is written.

Inspect and propose

  1. Read $rust-core, all existing instructions, and the inspection contract. Run scripts/inspect_repository.py from the target root when available.
  2. Classify the repository and propose exactly one base plus applicable capabilities. Mixed workspaces may add confirmed component overlays.
  3. Work through the adaptive interview: present inferred facts for correction, then ask what remains one decision at a time with a recommended default. Skip facts already proven; ask follow-ups when answers conflict with source or materially change the design.
  4. Separate facts, user decisions, organization preferences, recommendations, and unresolved items. Present the complete proposal and obtain approval.

Generate and install

  1. Generate the outputs in the adoption contract, preserving mature local rules as canonical rather than duplicating them.
  2. Install only the confirmed skill set and adapter family. Record exact standards version, source revision, hashes, profiles, components, and migration state.

Verify

  1. Generate scripts/validate-rust.py from the packaged template. When the repository already declares a gate (a just, make, or xtask entry point that CI runs), configure that entry point as the required check instead of restating its steps, so one command remains the definition of done. Otherwise configure required and optional checks using the validation catalog, run safe available checks, and report each as passed, failed, skipped, unavailable, or inapplicable.

Output

  1. Present the generated diff, accept corrections, obtain final confirmation, and record deliberately deferred decisions.

Boundaries

Never overwrite existing instructions, generated files, or adapter directories without explicit approval. Never claim a tool passed when it was absent. Local decisions override profiles and external references except that a serious correctness or safety conflict must be surfaced.

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