rust-engineer
Build and Review Idiomatic Rust
Ownership errors, complex traits, and asynchronous workflows can make Rust development difficult. This skill provides implementation guidance and focused references for safer code and targeted validation.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "rust-engineer" from https://skillstore.io/skills/jeffallan-rust-engineer.md and its manifest at https://skillstore.io/api/skills/jeffallan-rust-engineer/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“rust-engineer”。 Explain why returning a reference to a local String fails.
预期结果:
- The local String is dropped when the function returns, so the returned reference would outlive its value.
- Return an owned String or borrow data supplied by the caller.
- A lifetime annotation cannot extend the lifetime of a local value.
正在使用“rust-engineer”。 Review an async worker that holds a shared lock while awaiting a network request.
预期结果:
- Read the needed state inside a short lock scope, then release the lock before awaiting network I/O.
- Apply a timeout and propagate network failures through a structured error type.
- Add cancellation and shutdown tests. Run the project checks before claiming the change is validated.
正在使用“rust-engineer”。 Suggest a testing strategy for a Rust text parser.
预期结果:
- Cover empty input, malformed text, multibyte characters, and boundary lengths with unit tests.
- Use property tests for invariants and fuzzing for unexpected input.
- Keep filesystem fixtures isolated with uniquely created temporary directories.
安全审计
中风险All 65 static findings are false positives involving Rust APIs, Markdown formatting, illustrative requests, and documentation links. No evidence found of prompt injection, credential exfiltration, or malicious command execution. Two semantic findings identify data-loss risks from predictable temporary paths and availability risks from unchecked string slicing in examples.
已确认安全问题 (2)
风险因素
⚙️ 外部命令 (44)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/jeffallan-rust-engineer/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/jeffallan-rust-engineer?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/jeffallan-rust-engineer?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/jeffallan-rust-engineer/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/jeffallan-rust-engineer.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
jeffallan. (2026). rust-engineer security audit report (audit version 1) [Author version 1.1.0]. Skillstore. https://skillstore.io/skills/jeffallan-rust-engineer/audits/1BibTeX 引用
@techreport{jeffallan-jeffallan-rust-engineer-2026,
author = {jeffallan},
title = {rust-engineer security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/jeffallan-rust-engineer/audits/1},
note = {Author version 1.1.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "rust-engineer security audit report (audit version 1)"
version: "1.1.0"
type: report
authors:
- name: "jeffallan"
date-released: "2026-11-15"
url: "https://skillstore.io/skills/jeffallan-rust-engineer/audits/1"
identifiers:
- type: other
value: "skillstore:jeffallan-rust-engineer:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Resolve Borrowing Errors
Explain ownership transfers and lifetime relationships, then propose focused changes to a failing Rust function.
Structure an Async Service
Review task communication, error propagation, timeouts, and shutdown behavior in a Tokio service.
Strengthen Library APIs and Tests
Review trait boundaries, structured errors, documentation examples, and property tests before a library release.
试试这些提示
Explain the ownership error in [Rust snippet] using [compiler diagnostic]. Suggest the smallest correction and explain why it works.
Refactor [Rust function] to propagate recoverable errors with Result and thiserror. Preserve behavior and add tests for failure cases.
Review [Rust API] for ownership, trait bounds, and associated types. Compare static and dynamic dispatch, then propose tests and documentation examples.
Review [Tokio service] for blocking work, task growth, shared locks, cancellation, timeouts, and shutdown. Propose changes and tests; distinguish verified results from recommendations.
最佳实践
- Provide a minimal reproducer, compiler diagnostics, dependency versions, and the intended behavior.
- Request explicit ownership decisions, recoverable error handling, and tests for boundary conditions.
- Review examples before reuse and validate changes with formatting, Clippy, and relevant project tests.
避免
- Adding clones or broad lifetime annotations without understanding the ownership problem.
- Treating example snippets as production-ready or claiming success without running checks.
- Running unfamiliar project tests or build scripts with sensitive credentials or elevated privileges.
常见问题
Which assistants can use this skill?
Does this skill compile or test code itself?
Can it help with borrowing and lifetime errors?
Does it cover asynchronous Rust?
Are all examples ready for production?
Does it require nightly Rust?
开发者详情
作者
jeffallan许可证
MIT
作者版本
v1.1.0
Skillstore 修订
r1
引用
037f5f1068f852b9ee3d90ed4164ecf77ea3b484
维护新鲜度
2026/11/15
使用量
0 次下载 · 0 次浏览
文件结构