write-script-rust

Community

Write Rust scripts with deterministic results.

Authoradamkingsbury
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Standardizes Rust script development by enforcing a consistent main signature and a serializable return type.

Core Features & Use Cases

  • Enforces a main function named main with a signature that uses owned parameter types and returns a serializable type wrapped in anyhow::Result.
  • Provides a canonical ReturnType struct annotated with #[derive(Serialize)] to ensure JSON-serializable output.
  • Documents and demonstrates how to declare dependencies at the top of the script and how to handle asynchronous code by creating a Tokio runtime inside main when needed.

Quick Start

Create a Rust script with a main function that takes owned parameters and returns an anyhow::Result<T> where T is a serializable type.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: write-script-rust
Download link: https://github.com/adamkingsbury/unified-data-model/archive/main.zip#write-script-rust

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.