write-code

Enforce consistent Rust code style and conventions across Syncpack projects.

2.1k|72|Updated Aug 17, 2017
One-click install
npx skills add https://github.com/JamieMason/syncpack --skill write-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-code
Source: https://github.com/JamieMason/syncpack/tree/main/skills/write-code
Command: npx skills add https://github.com/JamieMason/syncpack --skill write-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces consistent Rust code style and conventions across Syncpack projects to improve readability and maintainability.

Core Features & Use Cases

  • Style guidelines: functional patterns, minimal use of ? chains, descriptive naming, and clear placeholders.
  • Import and module conventions: prefer grouped, crate-scoped imports and alphabetised order across crates.
  • File organisation and quality: discourage small, hard-to-test modules; promote test-friendly, well-structured code.
  • Use case: when writing or updating Rust code in Syncpack, apply these standards to ensure uniformity across contributors.

Quick Start

Follow these conventions whenever you write or modify Rust code in Syncpack.

Frequently Asked Questions about write-code

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

FAQPage Schema
How do I enforce consistent Rust code style across multiple crates?

Standardize Rust code style by applying conventions for functional patterns, import grouping, naming, and file organization across crates. This ensures uniformity and improves readability across all project contributors.

What's the best way to organize Rust imports across crates?

Organize Rust imports by preferring grouped, crate-scoped imports with alphabetised order. This convention maintains clear dependency boundaries and scalable module structure throughout the project.

Why should I avoid small Rust modules when structuring a project?

Avoid small Rust modules because they are hard to test and fragment the codebase. Promote test-friendly, well-structured code with clear organizational guidelines to ensure better maintainability and scalable file organization.

Can I use these Rust conventions for any Syncpack project?

Yes, these Rust conventions apply to any Syncpack project. They are designed for use whenever you write or modify Rust code, ensuring style consistency and uniformity across all contributors.