rust-fix-discipline

Enforces root-cause fixes for Rust code with build, clippy, and test verification.

27|3|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/forecast-bio/ferray --skill rust-fix-discipline
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-fix-discipline
Source: https://github.com/forecast-bio/ferray/tree/main/.claude/skills/rust-fix-discipline
Command: npx skills add https://github.com/forecast-bio/ferray --skill rust-fix-discipline

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix-mode work in Rust often drifts toward cosmetic conformance or band-aids rather than addressing the underlying architecture. This skill enforces disciplined, verifiable fixes that target root causes and require honest reporting, pairing with rust-quality and rust-gpu-discipline.

Core Features & Use Cases

  • Enforces a three-category model (root-cause, local correctness, annotation) for every finding.
  • Requires explicit category decision, non-deferral, and cross-checks with context, tests, and workspace policy.
  • Demands verification steps (cargo build, clippy, tests) and includes coordination when workspace-level changes are needed.
  • Use cases include applying fixes from audits, code reviews, lint sweeps, and failing-test triage; triggering a fix flow when user commands like "fix the audit findings" are issued.

Quick Start

Follow the discipline-driven protocol to apply a Rust fix, including category selection and verification.

Frequently Asked Questions about rust-fix-discipline

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

FAQPage Schema
How do I fix Rust audit findings without applying cosmetic band-aids?

Disciplined Rust fixes require targeting root causes reported in audits or code reviews rather than cosmetic changes. You must enforce a three-way decision between root-cause fixes, local correctness fixes, and narrow annotations, followed by explicit verification steps like cargo build and clippy.

What is the best way to triage failing Rust tests and lint sweep results?

The best way to triage failing Rust tests and lint sweep results is to apply a three-category model to every finding. This approach forces an explicit category decision and non-deferral, cross-checking each fix against context, tests, and workspace policy before implementation.

How do I manage cross-crate API changes when applying Rust code review fixes?

Managing cross-crate API changes during Rust code review fixes requires workspace-level coordination and mandatory checks. You must run cargo build, cargo clippy, tests, and workspace checks to ensure API changes do not break dependencies across the workspace.

When should I use narrow annotations instead of root-cause fixes in Rust?

Narrow annotations in Rust should be used when a finding does not warrant a root-cause or local correctness fix. The discipline enforces an explicit three-way decision between root-cause fixes, local correctness fixes, and narrow annotations to ensure honest reporting and prevent unnecessary architectural changes.

Does fixing Rust clippy errors require running workspace checks for API changes?

Yes, fixing Rust clippy errors mandates running workspace checks if the fixes involve API changes. The discipline requires explicit verification steps including cargo build, cargo clippy, tests, and workspace checks to ensure cross-crate coordination and maintain correctness.