rust-crate-creator

Create a new Rust crate with workspace dependency pinning and standard documentation.

1|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/wcygan/sql-database --skill rust-crate-creator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-crate-creator
Source: https://github.com/wcygan/sql-database/tree/main/.claude/skills/rust-crate-creator
Command: npx skills add https://github.com/wcygan/sql-database --skill rust-crate-creator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Manually setting up new Rust crates in a workspace is error-prone and time-consuming, often leading to inconsistent project structures, dependency management issues, and non-standardized documentation or testing. This Skill automates the entire process, ensuring every new crate adheres to established best practices.

Core Features & Use Cases

  • Standardized Crate Structure: Automatically generates the correct directory layout, Cargo.toml, CLAUDE.md, and AGENTS.md files.
  • Workspace Dependency Management: Ensures all dependencies are correctly pinned at the workspace level, preventing version conflicts and promoting consistency.
  • Convention Enforcement: Guides on documentation, testing patterns (unit, property, integration), error handling, and serialization, aligning with project standards.
  • Use Case: When starting a new feature that requires a dedicated Rust module, use this Skill to instantly scaffold the new crate, pre-configured with all workspace conventions, allowing you to focus immediately on business logic.

Quick Start

Create a new Rust crate named 'query-optimizer' in the workspace, including standard documentation and testing setup.

Frequently Asked Questions about rust-crate-creator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up a new Rust crate in a workspace with consistent dependencies?

Automate crate creation to generate standardized directory layouts, Cargo.toml files, and enforce workspace-level dependency pinning. This ensures all new crates follow project conventions and eliminates manual configuration errors across modules.

What's the best way to structure a Rust crate with documentation and testing templates?

Generate complete crate scaffolding including CLAUDE.md, AGENTS.md, src/lib.rs, and pre-configured unit, property, and integration test patterns. This enforces standards for documentation, error handling, and serialization aligned with workspace guidelines.

Can I avoid dependency version conflicts when adding new Rust modules to my workspace?

Centralize dependency management at the workspace level with path-based references and pinned versions. New crates automatically reference workspace dependencies, preventing conflicts and ensuring consistency across all members.

How do I quickly scaffold a Rust feature module without manual setup overhead?

Create a new crate instantly with all workspace conventions pre-applied—correct directory structure, dependency configuration, and testing layout included. This eliminates setup time and lets you focus on business logic immediately.

What should I include when creating a new crate to meet production standards?

Crate creation automatically produces workspace-compliant artifacts: documented modules, test infrastructure, standardized error handling, serialization patterns, and build output targeting—ensuring production-ready structure from inception.

Does Rust crate generation handle workspace-wide dependency updates?

Yes. New crates integrate with root workspace dependencies and maintain centralized version pinning. Updates at workspace level cascade to all members, keeping dependencies synchronized without per-crate configuration.