When to Use
ใช้เมื่อพัฒนา CLI tools ด้วย Rust
Quick Start
- •สร้าง project ใหม่ด้วย
cargo new my-cli --bin - •เพิ่ม clap และ dependencies ที่จำเป็นใน Cargo.toml
- •ตั้งค่า CLI arguments ด้วย clap derive macros
- •เขียน business logic ด้วย proper error handling
- •ทดสอบด้วย integration tests และ build
Rules
Knowledge
Key Dependencies
- •clap: Command line argument parsing (v4.x)
- •anyhow: Error handling with context
- •thiserror: Custom error types
- •tokio: Async runtime (optional)
Common Workflows
- •learn-from-web-and-write-skills - สำหรับเรียนรู้และเขียน skills ใหม่
- •follow-typescript - สำหรับ TypeScript integration
- •refactor-code - สำหรับ refactoring CLI code