基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tokio-rs/topcoat --skill style命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | style |
| description | Always use this skill before writing or editing Rust code or documentation in the Topcoat repository |
impl and then its trait impls, before the next struct in the file. Unit tests (#[cfg(test)] mod tests) go at the very bottom of the file.Name a module's file after the module and place it alongside its directory (foo.rs next to foo/), never foo/mod.rs. A barrel file declares all submodules and re-exports each with a glob; only third-party items are re-exported by name.
mod content;
mod error;
mod request;
pub use content::*;
pub use error::*;
pub use request::*;
pub use http::Method;
When a module's submodules are peers that make up a whole (the CLI commands fmt, dev, asset; the macros expr, procedure, shard), put anything shared between them in a common submodule so it does not read as another peer.
Cargo.toml under [workspace.dependencies] with only a version and no features. Crates pull it in with workspace = true and opt into features there.-> instead of unicode arrow or ... instead of ellipsis character.ignore for code snippets to keep them type-checked.Always use this skill to verify a change locally before committing or opening a pull request in the Topcoat repository
Always use this skill before writing procedural macros for Topcoat
Always use this skill before writing long form markdown documentation for Topcoat.