SKILL.md
Rust 工程最佳实践
错误处理
- 业务错误:自定义 error enum(thiserror)
- 边界层:把外部错误映射为可序列化错误
并发/异步
- I/O 用 tokio;避免在 async 中做阻塞操作
- 锁粒度尽量小;注意死锁与持锁 await
代码组织
- 模块边界清晰:commands / runtime / storage
- 类型与协议:单独文件维护(models/types)
测试
- 优先单元测试关键解析/权限逻辑
- 使用 tempfile 做文件系统隔离
smithery.ai
Rust 工程最佳实践:错误处理、并发、模块组织、序列化、测试与可维护性。
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Router for all Remotion skills
515.3K installsPostgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill …
391.6K installs>- Guides Stripe integration decisions across API selection (Checkout Sessions vs PaymentIntent…
82.9K installsCloudflare Workers best practices for production applications. Use when writing, reviewing, or …
73K installsOther skills from smithery.ai · top by installs.
npx skills add https://smithery.ai
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
724 B
SUMMARY.md
133 B