본문으로 건너뛰기
Skillpedia
API 및 서버 (백엔드)48k · #5920

systems-programming-rust-project

하는 일

이 도구는 강력한 프로그래밍 언어인 Rust 프로젝트의 기본 구조를 만듭니다. 처음 파일과 설정을 체계적으로 정리해, 언어의 모범 사례를 따르면서 더 빠르게 코딩을 시작할 수 있도록 합니다.

사용하는 경우

  • ✓새 Rust 프로젝트를 시작할 때.
  • ✓바로 사용할 수 있는 체계적인 프로젝트 구조가 필요할 때.
  • ✓프로젝트가 Rust의 코딩 규칙을 따르도록 하고 싶을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systems-programming-rust-project/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/systems-programming-rust-project/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“'my_app'이라는 명령줄 도구용 Rust 프로젝트를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 원하는 프로젝트 유형(애플리케이션, 라이브러리 등)을 분석하고, 'cargo new' 같은 Rust 명령을 사용해 필요한 파일과 폴더를 만듭니다. 또한 'Cargo.toml' 같은 중요한 파일에 흔히 쓰는 의존성과 표준 폴더 구조를 설정합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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]

…
자주 묻는 질문

Rust란 무엇인가요?

안전성과 속도로 알려진 현대적인 프로그래밍 언어로, 효율적이고 신뢰할 수 있는 소프트웨어를 만드는 데 이상적입니다.

'cargo'란 무엇인가요?

Cargo는 Rust의 패키지 관리자이자 빌드 시스템입니다. 프로젝트를 만들고, 컴파일하고, 관리하도록 돕습니다.

'크레이트(crates)'란 무엇인가요?

Rust 코드의 기본 단위로, 라이브러리나 실행 파일 같은 것입니다. 하나의 프로젝트에 하나 이상의 크레이트가 있을 수 있습니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5920
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬