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
- 最近更新
- 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
- 参考文档agents/openai.yaml282 B
- 资产文件assets/approved-answers.example.json2.5 KB
- 脚本assets/validate-rust.py7.0 KB
- 参考文档references/inspection.md3.3 KB
- 参考文档references/interview.md4.3 KB
- 参考文档references/outputs.md3.5 KB
- 参考文档references/validation-catalog.md3.7 KB
- 脚本scripts/inspect_repository.py10.4 KB
- 脚本scripts/render_adoption.py18.5 KB
- 其他skill.toml1.4 KB
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
- Read
$rust-core, all existing instructions, and the inspection contract. Runscripts/inspect_repository.pyfrom the target root when available. - Classify the repository and propose exactly one base plus applicable capabilities. Mixed workspaces may add confirmed component overlays.
- 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.
- Separate facts, user decisions, organization preferences, recommendations, and unresolved items. Present the complete proposal and obtain approval.
Generate and install
- Generate the outputs in the adoption contract, preserving mature local rules as canonical rather than duplicating them.
- Install only the confirmed skill set and adapter family. Record exact standards version, source revision, hashes, profiles, components, and migration state.
Verify
- Generate
scripts/validate-rust.pyfrom the packaged template. When the repository already declares a gate (ajust,make, orxtaskentry 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
- 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
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.