rust-crate-ci

Run pre-push validation for the swarm-sandbox-runner Rust crate.

437|45|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/ZaxbyHub/opencode-swarm --skill rust-crate-ci
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-crate-ci
Source: https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/rust-crate-ci
Command: npx skills add https://github.com/ZaxbyHub/opencode-swarm --skill rust-crate-ci

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the common pain point of Rust crate changes failing CI on Windows due to formatting, linting, or platform-specific correctness issues that are nearly impossible to catch locally without a Windows toolchain, eliminating hours of debugging failed pipeline runs.

Core Features & Use Cases

  • Mandatory pre-push validation steps: Exact, ordered commands to run locally that match the Windows CI job configuration for the swarm-sandbox-runner crate, including format checks, clippy linting, tests, and release builds.
  • Common pitfall documentation: Detailed guidance on frequent rustfmt/clippy errors specific to this codebase, such as windows-rs API changes, HANDLE thread safety rules, and unused import handling for platform-conditional code.
  • Windows-only correctness patterns: Critical guidance on path normalization, temp directory short name handling, and Win32 API return value semantics that cause silent failures on Linux/macOS but break on Windows CI.
  • Use Case: A developer editing the swarm-sandbox-runner Rust crate can use this Skill to resolve CI failures in minutes instead of hours, by following exact reproduction steps and avoiding known platform-specific gotchas.

Quick Start

Use the rust-crate-ci skill to run the mandatory pre-push validation steps for the swarm-sandbox-runner Rust crate before committing your changes to avoid CI failures.

Frequently Asked Questions about rust-crate-ci

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

FAQPage Schema
Why does my Rust crate pass CI locally but fail on Windows GitHub Actions?

Rust crate CI failures on Windows often stem from path normalization, temp directory short names, or Win32 API return value semantics that behave differently than Linux/macOS. Pre-push validation matching the exact Windows CI job configuration catches these platform-specific correctness issues before pushing code.

How do I run clippy and rustfmt checks to match my Rust crate's CI pipeline locally?

Run mandatory ordered commands locally for rustfmt format checks, clippy linting, tests, and release builds. This workflow mirrors the Windows CI job configuration for the swarm-sandbox-runner crate, ensuring format and lint validation passes before committing changes.

What are common clippy errors when using windows-rs API in Rust?

Common clippy errors with windows-rs involve API changes, HANDLE thread safety rules, and unused import handling for platform-conditional code. Documented pitfall guidance helps resolve these specific linting failures quickly without debugging failed pipeline runs.

Do I need a Windows toolchain to validate Rust crate changes for Windows CI?

A Windows toolchain is not required locally if you follow exact pre-push validation steps. The provided workflow matches the Windows CI job configuration, resolving platform-specific edge cases like frozen IPC exit codes and NDJSON event contracts remotely.

How do I fix rustfmt formatting errors in platform-conditional Rust code?

Fix rustfmt formatting errors in platform-conditional Rust code by addressing unused import handling and following the common pitfall documentation. Matching the exact CI job configuration for format checks prevents these frequent formatting failures from blocking the pipeline.

What Windows-specific correctness patterns break Rust crates on CI but not locally?

Windows-only correctness patterns that break Rust crates on CI include path normalization issues, temp directory short name handling, and Win32 API return value semantics. These cause silent failures on Linux/macOS but fail the Windows CI job without specific validation steps.