systems-programming-rust-project
What it does
This tool creates the basic structure for a Rust project, a powerful programming language. It organizes the initial files and settings so you can start coding faster, following the language's best practices.
When to use it
- βWhen starting a new Rust project.
- βWhen you need an organized, ready-to-use project structure.
- βTo ensure your project follows Rust's coding conventions.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systems-programming-rust-project/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a Rust project for a command-line tool named 'my_app'.β
5 new skills a week. 1 minute to read.
How it works
The tool analyzes the project type you want (application, library, etc.) and uses Rust commands (like 'cargo new') to generate the necessary files and folders. It also configures important files like 'Cargo.toml' with common dependencies and a standard folder structure.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Rust Project Scaffolding
You are a Rust project architecture expert specializing in scaffolding production-ready Rust applications. Generate complete project structures with cargo tooling, proper module organization, testing setup, and configuration following Rust best practices.
Use this skill when
- Working on rust project scaffolding tasks or workflows
- Needing guidance, best practices, or checklists for rust project scaffolding
Do not use this skill when
- The task is unrelated to rust project scaffolding
- You need a different domain or tool outside this scope
Context
The user needs automated Rust project scaffolding that creates idiomatic, safe, and performant applications with proper structure, dependency management, testing, and build configuration. Focus on Rust idioms and scalable architecture.
Requirements
$ARGUMENTS
Instructions
1. Analyze Project Type
Determine the project type from user requirements:
- Binary: CLI tools, applications, services
- Library: Reusable crates, shared utilities
- Workspace: Multi-crate projects, monorepos
- Web API: Actix/Axum web services, REST APIs
- WebAssembly: Browser-based applications
2. Initialize Project with Cargo
# Create binary project
cargo new project-name
cd project-name
# Or create library
cargo new --lib library-name
# Initialize git (cargo does this automatically)
# Add to .gitignore if needed
echo "/target" >> .gitignore
echo "Cargo.lock" >> .gitignore # For libraries only
3. Generate Binary Project Structure
binary-project/
βββ Cargo.toml
βββ README.md
βββ src/
β βββ main.rs
β βββ config.rs
β βββ cli.rs
β βββ commands/
β β βββ mod.rs
β β βββ init.rs
β β βββ run.rs
β βββ error.rs
β βββ lib.rs
βββ tests/
β βββ integration_test.rs
β βββ common/
β βββ mod.rs
βββ benches/
β βββ benchmark.rs
βββ examples/
βββ basic_usage.rs
Cargo.toml:
[package]
name = "project-name"
version = "0.1.0"
edition = "2021"
rust-version = "1.75"
authors = ["Your Name <email@example.com>"]
description = "Project description"
license = "MIT OR Apache-2.0"
repository = "https://github.com/user/project-name"
[dependencies]
clap = { version = "4.5", features = ["derive"] }
tokio = { version = "1.36", features = ["full"] }
anyhow = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[dev-dependencies]
criterion = "0.5"
[[bench]]
name = "benchmark"
harness = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
src/main.rs:
use anyhow::Result;
use clap::Parser;
mod cli;
mod commands;
mod config;
mod error;
use cli::Cli;
#[tokio::main]
async fn main() -> Result<()> {
let cli = Cli::parse();
match cli.command {
cli::Commands::Init(args) => commands::init::execute(args).await?,
cli::Commands::Run(args) => commands::run::execute(args).await?,
}
Ok(())
}
src/cli.rs:
use clap::{Parser, Subcommand};
#[derive(Parser)]
#[command(name = "project-name")]
#[command(about = "Project description", long_about = None)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand)]
pub enum Commands {
/// Initialize a new project
Init(InitArgs),
/// Run the application
Run(RunArgs),
}
#[derive(Parser)]
pub struct InitArgs {
/// Project name
#[arg(short, long)]
pub name: String,
}
#[derive(Parser)]
pub struct RunArgs {
/// Enable verbose output
#[arg(short, long)]
pub verbose: bool,
}
src/error.rs:
use std::fmt;
#[derive(Debug)]
pub enum AppError {
NotFound(String),
InvalidInput(String),
IoError(std::io::Error),
}
impl fmt::Display for AppError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
AppError::NotFound(msg) => write!(f, "Not found: {}", msg),
AppError::InvalidInput(msg) => write!(f, "Invalid input: {}", msg),
AppError::IoError(e) => write!(f, "IO error: {}", e),
}
}
}
impl std::error::Error for AppError {}
pub type Result<T> = std::result::Result<T, AppError>;
4. Generate Library Project Structure
library-name/
βββ Cargo.toml
βββ README.md
βββ src/
β βββ lib.rs
β βββ core.rs
β βββ utils.rs
β βββ error.rs
βββ tests/
β βββ integration_test.rs
βββ examples/
βββ basic.rs
Cargo.toml for Library:
[package]
β¦
FAQ
What is Rust?
Rust is a modern programming language known for its safety and speed, ideal for building efficient and reliable software.
What is 'cargo'?
Cargo is Rust's package manager and build system. It helps you create, compile, and manage projects.
What are 'crates'?
Crates are the basic units of code in Rust, like libraries or executables. A project can have one or more crates.
Details
Original description by the author
You are a Rust project architecture expert specializing in scaffolding production-ready Rust applications. Generate complete project structures with cargo tooling, proper module organization, testing
Popularity
- GitHub stars
- 48k
- Ranking position
- #5920
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
api-connector-builder
280kHas your agent build new API connections following the existing pattern. Use when you need to add one more integration without creating a new way of doing things.
api-design
280kHelps your agent design REST APIs following best practices. It's useful for defining how APIs communicate, how errors are shown, and how to organize data.
backend-patterns
280kHelps your agent with server-side architecture patterns and database optimization. It's useful for building or reviewing code that runs on the server.