WR

write-rust-code

Provides Rust coding guidelines focusing on API clarity and platform stability.

Install

mkdir -p .claude/skills/write-rust-code && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12584" && unzip -o skill.zip -d .claude/skills/write-rust-code && rm skill.zip

Installs to .claude/skills/write-rust-code

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Rust 代码编写指南。Use when creating or modifying Rust crates, modules, tests, async code, terminal/PTY/rendering/agent/policy code, or APIs in Noctrail; enforce minimal, non-redundant code.
183 chars✓ has a “when” trigger
Advanced

Key capabilities

  • →Ensure terminal correctness and cross-platform behavior
  • →Prioritize security boundaries and long-term maintainability
  • →Reduce code by using better data structures and clearer boundaries
  • →Isolate platform differences into clear `cfg` modules
  • →Handle errors with specific types and contextual information
  • →Test pure logic, PTY integration, and UI rendering

How it works

The skill guides Rust development by emphasizing minimal code, explicit error handling, and reliable testing. It provides principles for code structure, error management, and cross-platform considerations.

Inputs & outputs

You give it
Rust code for Noctrail
You get back
Rust code adhering to Noctrail's standards for correctness, maintainability, and security

When to use write-rust-code

  • →Write Rust modules
  • →Implement async code
  • →Create cross-platform Rust APIs

About write-rust-code

Enforces Rust standards for specific system modules. It promotes minimal code, explicit error handling, and robust testing to ensure long-term maintainability.

Rust 代码编写指南。Use when creating or modifying Rust crates, modules, tests, async code, terminal/PTY/rendering/agent/policy code, or APIs in Noctrail; enforce minimal, non-redundant code.

When not to use it

  • →When writing code that does not prioritize terminal correctness or cross-platform behavior
  • →When adding code without first considering existing mechanisms for reuse
  • →When creating abstractions that do not reduce real complexity

Limitations

  • →The guidelines are specific to writing Rust for Noctrail
  • →The skill does not provide guidance for languages other than Rust
  • →The skill does not cover aspects outside of code writing, such as deployment

How it compares

This workflow provides specific guidelines for Rust development within the Noctrail ecosystem, unlike a generic Rust coding approach.

Compared to similar skills

write-rust-code side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
write-rust-code (this skill)06moNo flagsAdvanced
implementing-cards75moReviewAdvanced
write-rust-tests98moNo flagsIntermediate
rust-errors54moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

implementing-cards

bcollazo

Fill out the implementation of effects of different attacks, abilities, and trainer cards in this Pokemon TCG Pocket engine codebase.

790

write-rust-tests

RediSearch

Write Rust tests to verify correctness of Rust code.

922

rust-errors

EpicenterHQ

Rust to TypeScript error handling patterns for Tauri apps. Use when defining Rust errors that will be passed to TypeScript, handling Tauri command errors, or creating discriminated union error types.

521

write-script-rust

windmill-labs

MUST use when writing Rust scripts.

415

rust-pro

vudovn

Master Rust 1.75+ with modern async patterns, advanced type system features, and production-ready systems programming. Expert in the latest Rust ecosystem including Tokio, axum, and cutting-edge crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.

39

rust-router

actionbook

CRITICAL: Use for ALL Rust questions including errors, design, and coding. HIGHEST PRIORITY for: 比较, 对比, compare, vs, versus, 区别, difference, 最佳实践, best practice, tokio vs, async-std vs, 比较 tokio, 比较 async, Triggers on: Rust, cargo, rustc, crate, Cargo.toml, 意图分析, 问题分析, 语义分析, analyze intent, question analysis, compile error, borrow error, lifetime error, ownership error, type error, trait error, value moved, cannot borrow, does not live long enough, mismatched types, not satisfied, E0382, E0597, E0277, E0308, E0499, E0502, E0596, async, await, Send, Sync, tokio, concurrency, error handling, 编译错误, compile error, 所有权, ownership, 借用, borrow, 生命周期, lifetime, 类型错误, type error, 异步, async, 并发, concurrency, 错误处理, error handling, 问题, problem, question, 怎么用, how to use, 如何, how to, 为什么, why, 什么是, what is, 帮我写, help me write, 实现, implement, 解释, explain

36

Search skills

Search the agent skills registry