返回技能目录
人工审校软件开发

技能研究档案

rust-engineer

来源声明

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or borrowing issues, designing trait-based APIs, implementing async/await concurrency, creating FFI bindings, or optimizing for performance and memory safety. Invoke for Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming.

保留作者的英文原始描述。它表达设计意图,不代表已验证的实际效果。

Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or borrowing issues, designing trait-based APIs, implementing async/await concurrency, creating FFI bindings, or optimizing for performance and memory safety. Invoke for Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming.

developmentreferences

研究摘要

人工审校

Skill Atlas editorial review · editorial-preview-1.0.0

编写并审阅地道的 Rust 代码,涵盖所有权、trait、基于 thiserror 的错误处理和 tokio 异步,并用 clippy、fmt 与测试校验。

审阅范围

对所收集的 SKILL.md 及辅助文本/代码进行确定性静态分析。机器辅助候选和发现等待人工编辑复核;不评估动态行为或效果。

可观察能力

  • 设计生命周期与借用关系,推断不足时显式标注生命周期。
  • 用泛型和关联类型构建 trait 层次。
  • 尽量减少 unsafe,并为每个 unsafe 块记录安全不变量。
  • 运行 cargo clippy、cargo fmt --check 和 cargo test,并修复警告。

限制与范围

  • 针对 Rust 2021 edition 编写。
  • 生产代码避免 unwrap 的建议在测试和示例中需要自行判断。
  • 本次审阅未编译或 lint 示例代码。

适用读者

  • 与借用检查器较劲的 Rust 开发者
  • 设计基于 trait 的 API 的团队
  • 构建 tokio 服务的工程师

技能包含哪些内容

文件清单来自记录提交中的采集源码。路径与大小属于结构观察,不代表质量评价。

个文件
6
Markdown 文件
6
个脚本
0
个引用
5
大小
47.6 KB
结构复杂度
低

文件清单

路径类型字节
skills/rust-engineer/references/async.md引用10.4 KB
skills/rust-engineer/references/error-handling.md引用7.9 KB
skills/rust-engineer/references/ownership.md引用5.9 KB
skills/rust-engineer/references/testing.md引用9.6 KB
skills/rust-engineer/references/traits.md引用7.6 KB
skills/rust-engineer/SKILL.md指令6 KB

SKILL.md 前置元数据

{
  "name": "rust-engineer",
  "description": "Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions. Implements ownership patterns, manages lifetimes, designs trait hierarchies, builds async applications with tokio, and structures error handling with Result/Option. Use when building Rust applications, solving ownership or borrowing issues, designing trait-based APIs, implementing async/await concurrency, creating FFI bindings, or optimizing for performance and memory safety. Invoke for Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming.",
  "license": "MIT",
  "metadata": {
    "author": "https://github.com/Jeffallan",
    "company": "https://synergetic.solutions",
    "version": "1.1.0",
    "domain": "language",
    "triggers": "Rust, Cargo, ownership, borrowing, lifetimes, async Rust, tokio, zero-cost abstractions, memory safety, systems programming",
    "role": "specialist",
    "scope": "implementation",
    "output-format": "code",
    "related-skills": "test-master"
  }
}

对运行顺序的一种解读

此工作流根据源码材料重建表面顺序。除非明确记录受控评估,否则它属于暂定解读,而非真实运行轨迹。

  1. 01
    输入

    分析所有权

    为任务设计生命周期关系和借用模式。

  2. 02
    操作

    安全实现

    编写地道的 Rust,尽量少用 unsafe 并记录安全不变量。

  3. 03
    判断

    校验并修复

    运行 clippy、fmt 检查和测试;定稿前修复所有警告。

  4. 04
    输出

    交付 Rust 代码

    提供类型定义、实现、错误处理、测试和简短设计说明。

潜在风险面

静态发现用于提示安装前需要检查的位置,不能证明一项技能安全、恶意或有效。

有需要复核的项目

收集的文本中有 166 项确定性词法发现需要复核。发现可能仅位于文档中,不证明已执行或可被利用;仅含二进制的文件未扫描。

网络访问已观察到
文件写入已观察到
凭据使用未观察到
中

文本提及网络访问

10 次命中

此源文件行包含 URL 或网络客户端。应检查目标地址、发送的数据和信任边界;静态文本无法证明实际发生了网络活动。 该规则在收集文本中命中 10 处;此处列出 3 个代表位置。命中文本可能只是文档,分析器没有执行它。

编辑安全提示

检查它生成的 unsafe 块或 FFI 绑定,Skill 本身也要求为其记录安全不变量。

上下文可能消耗在哪里

发现、激活与资源层具有不同含义。只有使用指定官方方法并记录模型的运行时,才显示精确数值。

精确 token 计数不可用

在管线使用明确模型执行官方精确计数之前,包括文件清单在内的所有 token 值均为 null。

未使用要求的官方方法记录 token 测量。本档案不会用字符数、文件大小或估计值替代。

受控评估

没有受控评估

该技能仅具备以上标明的证据。不声称任何任务成功率、token 效率、延迟或质量优势。

尚未测试

在源码可见的情况下使用

安装命令
git clone https://github.com/Jeffallan/claude-skills.git cd claude-skills # 将该 Skill 目录复制到以下任一位置: # ~/.claude/skills/rust-engineer # .claude/skills/rust-engineer
  1. 打开固定版本源码:https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/rust-engineer/SKILL.md。
  2. 审阅许可证、前置条件和所有捆绑资源。
  3. 将 Skill 安装到个人或项目级 Claude Code skills 目录。
  4. 重启或刷新 Claude Code,使该 Skill 可被发现。
验证安装

确认目标位置能够发现 rust-engineer 的 SKILL.md,然后让 Claude Code 在一个小型测试任务中使用它。

前置条件

  • 针对 Rust 2021 edition 编写。
  • 生产代码避免 unwrap 的建议在测试和示例中需要自行判断。
  • 本次审阅未编译或 lint 示例代码。

示例提示词

代表性任务

Use the rust-engineer skill to add a thiserror-based AppError to this crate, replace unwrap calls with proper error handling, then run cargo clippy --all-targets --all-features and cargo test.

使用前检查

Read the rust-engineer skill files at https://github.com/Jeffallan/claude-skills/blob/67c1961b180dc92cf08983344627109e983e8f51/skills/rust-engineer/SKILL.md. Explain its workflow, required tools, permissions and the main risks before I decide whether to install it.

附上限制条件的判断

优势

  • 给出 lint、格式和测试的具体校验命令。
  • 要求为 unsafe 记录安全不变量。

注意事项

  • Skill 自带的 Summary 示例按字节索引切片字符串,可能 panic。
  • cargo bench 仅在存在时才建议运行。
研究结论

一套带有真实校验命令的可靠 Rust 流程;复制其示例代码前请先验证。

从结构上保持可追溯

档案是对公开工件的限时阅读,而非背书。请通过来源链接检查确切的上游材料。

Jeffallanclaude-skillsskills/rust-engineer
来源类型
社区
提交
67c1961b180dc92cf08983344627109e983e8f51
采集时间
2026年11月20日
最近核查
2026年11月20日
上游许可证
MIT
仓库星标
12,464
内容依据

仅对提供的文件进行确定性词法解析、YAML frontmatter 校验、文件清单、来源描述的工作流程提取和启发式暂定分类。由机器生成;无 LLM、执行、动态测试或人工编辑批准。