rust-policy

Enforce hack-ink Rust conventions for formatting, error handling, and module layout.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/hack-ink/codexlab --skill rust-policy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-policy
Source: https://github.com/hack-ink/codexlab/tree/main/.codex/skills/rust-policy
Command: npx skills add https://github.com/hack-ink/codexlab --skill rust-policy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This policy provides clear Rust development and review guidelines to ensure code adheres to hack-ink standards, including formatting, error handling, TLS usage, and repository conventions.

Core Features & Use Cases

  • Enforces rustfmt-based formatting, module layout, and consistent error handling.
  • Guides dependency choices, TLS configuration, and crate organization during implementation or review.
  • Use Case: Before starting a Rust feature, apply this policy to align with project-wide conventions and reduce rework.

Quick Start

Review your Rust crate against this policy before starting implementation or review.

Frequently Asked Questions about rust-policy

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

FAQPage Schema
How do I enforce Rust coding standards and formatting conventions in my project?

To enforce Rust coding standards, apply this policy to guide safe, consistent code by checking rustfmt formatting, module layout, and error handling before implementation or review.

What should I check during a Rust code review for security and consistency?

During a Rust code review, check formatting, error handling, TLS configuration, and crate organization to verify they meet project-wide conventions and policy compliance.

How do I set up Rust toolchain constraints and dependencies for a new crate?

Setting up Rust toolchain constraints involves defining required toolchain versions and guiding dependency choices, ensuring your crate aligns with required formatting and repository conventions.

Does this Rust policy cover TLS configuration and time library choices?

Yes, this Rust policy covers TLS configuration and time choices, along with formatting standards and error handling, to ensure comprehensive code compliance.

When do I need to apply Rust lint and formatting policies?

You need to apply Rust lint and formatting policies before starting any Rust feature implementation, ensuring your code aligns with project-wide conventions and reducing rework.

Why does my Rust code fail policy compliance checks for module layout?

Rust code fails policy compliance checks when module layout, rustfmt formatting, or error handling do not adhere to the defined repository conventions and review practices.