omh-rust
하는 일
이 스킬은 Rust 코드 변경을 안내하며, 소유권, 오류 처리, unsafe 코드에 특히 주의합니다. Rust 프로그램을 작성하거나 고치는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Rust 빌림 검사기나 수명 오류를 만나 명확한 수정이 필요할 때.
- ✓Rust로 코드를 다시 작성하면서 소유권과 오류 처리 계획이 필요할 때.
- ✓Rust 코드가 unsafe 또는 외부 함수 코드를 사용해 신중한 검토가 필요할 때.
스킬 링크
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-rust/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 파서를 Rust로 다시 작성하고, 수명을 깨지 않으면서 빌림 검사기 오류를 고쳐 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 소유권과 오류 처리를 계획하고, 변경을 준비한 뒤 실행할 확인 항목을 나열합니다. unsafe나 외부 코드는 안전하다고 보기 전에 더 엄격한 검토를 거칩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Rust
This is an OMH rust workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
rust closes OMH's zero-coverage Rust domain and makes the escalation from ordinary Rust work to undefined-behavior discipline a deterministic routing rule rather than something a model is trusted to notice.
Do Not Use When
- The request is a server, API, or schema design that happens to mention a Rust stack; use
omh-backendfor the contract and name Rust as the stack. - The request is debugging a stripped or source-less native binary; use
omh-native-debugging. - The request is a general code review of finished Rust; use
omh-code-review. - The request is a Rust vocabulary or concept question with no change to prepare; answer it directly.
Examples
Good example:
- Prompt: Rewrite this parser in Rust and fix the borrow checker errors.
- Expected behavior: Prepare rust_change_contract/v1 with the escalation verdict, ownership_shape/v1 for the parser's borrows, error_and_api_contract/v1, and rust_gate_list/v1.
- Why: The request is a Rust change whose difficulty is ownership shape, which is exactly what the contract has to settle before code.
Bad example:
- Prompt: It compiles and the unsafe block looks fine, so call the FFI wrapper safe.
- Expected behavior: Escalate on the
unsafe/FFI trigger, mark Miri and sanitizer evidence as not_observed, and name them as blocking items. - Why: Compilation proves nothing about the invariant an
unsafeblock asserts, and the escalation is not optional.
Completion Checklist
- The escalation verdict is stated with the trigger that decided it.
- The ownership shape names owners, borrows across boundaries, and every deliberate clone.
- The error type, its conversion boundary, and every surviving
unwrap/expect/panic!are named. - The gate list names the exact commands the executor must run and pass, covering every target, the feature extremes, doc tests, and the declared MSRV.
- An escalated change carries the Miri, sanitizer, and concurrency-testing requirements as blocking items.
- Compiler, clippy, test, Miri, sanitizer, and loom results stay observed-only.
Recovery Notes
- If the crate cannot be inspected, escalate by default and say the verdict is conservative rather than measured.
- If the toolchain cannot run Miri or a sanitizer for the escalated change, keep the change blocked and name the smallest substitute proof instead of downgrading the verdict.
When to Use
Use when Hermes should prepare a Rust change: ownership and lifetime shape, error and API types, cargo/clippy gates, and the mandatory UB escalation when the change touches unsafe, raw pointers, FFI, MaybeUninit, or lock-free primitives.
Strong routing signals: `rust`, `rust code`, `rust skill`, `rustlang`, `borrow checker`, `lifetime error`, `ownership error`, `trait bound`, `cargo build`, `cargo clippy`, `clippy lint`, `unsafe rust`, `unsafe block`, `raw pointer`, `maybeuninit`, `rust ffi`, `extern c`, `undefined behavior`, `miri`, `loom`, `ボローチェッカー`, `所有権エラー`, `ライフタイムエラー`, `トレイト境界`, `러스트`, `러스트 코드`, `빌림 검사기`, `소유권 에러`, `라이프타임 에러`, `언세이프`, `미정의 동작`, `借用检查器`, `所有权错误`, `生命周期错误`, `特征约束`, `bantu atasi error borrow checker`, `perbaiki masalah ownership Rust`, `jelaskan error lifetime Rust`, `tolong beresin error cargo clippy`, `tinjau blok unsafe Rust ini`, `giúp xử lý lỗi borrow checker`, `sửa vấn đề ownership trong Rust`, `giải thích lỗi lifetime trong Rust`, `hãy sửa lỗi cargo clippy`, `rà soát khối unsafe Rust này`
Catalog Metadata
Category: planning
Phase: rust-development
Quality tier: rust-safety-gated
Reasoning demand: standard
Quality bar:
- Run the escalation check before anything else and state the verdict; a change whose
unsafe/FFI status is unknown is escalated by default. - Load
references/rust-discipline.mdfor the ownership, error, API, binary-interface, and dependency rules, and name the gate commands from it rather than assumingcargo buildis the whole bar. - When the escalation triggers, load
references/ub-escalation.mdand carry its Miri, sanitizer, and loom-style concurrency requirements into the handoff as blocking items. - Name the ownership decision behind every clone,
Arc, interior-mutability wrapper, and lifetime annotation the change introduces. - Name the error type and its conversion boundary; a surviving
unwrapneeds a written reason, not silence. - Keep compilation, c
자주 묻는 질문
Rust 컴파일러를 대신 실행하나요?
변경과 확인 항목을 준비합니다. 빌드와 테스트는 사용자나 도구가 실행합니다.
컴파일이 되면 unsafe 코드도 안전한가요?
아닙니다. unsafe 코드는 별도의 확인이 필요하며, 스킬이 이를 분명히 밝힙니다.
완성된 Rust 코드를 검토할 수 있나요?
완성된 코드는 코드 검토 스킬이 더 적합합니다.
상세 정보
작성자의 원본 설명
[omh] Rust ownership, lifetime, or unsafe trouble: prepare Rust changes with ownership, error, and API discipline, and escalate any unsafe, FFI, or lock-free change to the UB checklist. Use when the user says: rust, rust code, rust skill, rustlang, borrow checker, lifetime error, ownership error, trait bound.
repo: rlaope/oh-my-hermes
인기도
- GitHub 스타
- 5.1k
- 순위
- #15159
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
omh-accessibility-audit
5.1k에이전트가 화면이나 흐름을 키보드 사용, 스크린 리더 레이블, 명암비, 터치 대상 크기 측면에서 접근성 부족이 없는지 점검하도록 돕습니다.
omh-adversarial-consensus
5.1k에이전트가 기술 제안을 독립된 여러 관점에서 공격하고, 결정 전에 살아남는 내용을 요약하도록 돕습니다.
omh-agent-debug
5.1k다른 AI 에이전트가 왜 멈추거나, 반복하거나, 방향을 잃는지 알아내고, 가장 작고 안전한 복구 방법을 제안하도록 돕습니다.
omh-agent-instructions
5.1kAI 도구가 프로젝트에서 어떻게 작업할지 알려 주는 지침 파일, 예를 들어 AGENTS.md나 CLAUDE.md를 작성하거나 업데이트하도록 돕습니다.
비슷한 스킬
api-connector-builder
280k에이전트가 기존 패턴을 따라 새로운 API 연결을 만들도록 합니다. 새로운 방식을 도입하지 않고 연동을 하나 더 추가할 때 씁니다.
api-design
280k에이전트가 모범 사례에 따라 REST API를 설계하도록 돕습니다. API가 통신하는 방식, 오류를 보여 주는 방식, 데이터를 정리하는 방식을 정하는 데 유용합니다.
backend-patterns
280k에이전트가 서버 쪽 아키텍처 패턴과 데이터베이스 최적화를 다루도록 돕습니다. 서버에서 실행되는 코드를 만들거나 검토할 때 유용합니다.