check-error-handling

Validate Rust error handling with AppResult/AppError and ErrorCode patterns.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/Async-IO/pierre_mcp_server --skill check-error-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-error-handling
Source: https://github.com/Async-IO/pierre_mcp_server/tree/main/.claude/skills/check-error-handling
Command: npx skills add https://github.com/Async-IO/pierre_mcp_server --skill check-error-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures that Rust code adheres to a strict error handling pattern, preventing regressions and promoting consistent, robust error management across the codebase.

Core Features & Use Cases

  • Detects anyhow Regression: Prevents the reintroduction of the anyhow crate for error handling.
  • Validates AppResult/AppError: Ensures the use of the project's unified error types.
  • Checks ErrorCode Usage: Verifies that specific error codes are utilized appropriately.
  • Use Case: Before merging a pull request that modifies error handling logic, run this skill to guarantee compliance with established standards and prevent common pitfalls.

Quick Start

Run the comprehensive error handling check in the project's root directory.

Frequently Asked Questions about check-error-handling

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

FAQPage Schema
How do I enforce Rust error handling standards and prevent anyhow regressions?

You can enforce Rust error handling by validating the AppResult/AppError pattern and detecting regressions in anyhow usage. This ensures specific ErrorCode enums are utilized appropriately across the codebase.

What is the best way to check for anyhow crate usage in a Rust codebase?

The best way to check for anyhow usage is running pattern matching with ripgrep in source files. This detects regressions and prevents the reintroduction of the anyhow crate for error handling.

How do I validate AppResult and AppError types before merging a pull request?

To validate AppResult and AppError types before merging, run a comprehensive error handling check in the project root directory. This guarantees compliance with established error handling standards and prevents common pitfalls.

Does Rust error handling validation require any specific tools or dependencies?

Yes, Rust error handling validation requires ripgrep for pattern matching within source files. This dependency is necessary to enforce the AppResult/AppError pattern and check ErrorCode enum utilization.

Why should I use AppResult instead of anyhow for Rust error management?

You should use AppResult instead of anyhow to ensure consistent, robust error management across your codebase. Validating this pattern prevents regressions and enforces strict error handling standards with ErrorCode enums.

When do I need to check ErrorCode enum utilization in my Rust project?

You need to check ErrorCode enum utilization when modifying error handling logic before a pull request. This verifies that specific error codes are used appropriately and maintains unified AppError types.