Error Resolution

Diagnose and resolve PHP test failures, build errors, and validation issues.

Updated Oct 18, 2025
One-click install
npx skills add https://github.com/screenfluent/aicodingforum --skill error-resolution
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Error Resolution
Source: https://github.com/screenfluent/aicodingforum/tree/main/.claude/skills/troubleshooting
Command: npx skills add https://github.com/screenfluent/aicodingforum --skill error-resolution

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a systematic approach to diagnosing and resolving errors encountered during testing, pre-commit hooks, and architecture validations, reducing debugging time and recurring fixes.

Core Features & Use Cases

  • Systematic error categorization: Run tests, identify error classes, and propose fixes.
  • Automated fix flow: Apply style and type fixes, then re-run tests.
  • Guided remediation: Patterns for common issues like naming, forbidden patterns, and architecture violations to prevent regressions.

Quick Start

Run the error resolution workflow on a failing test suite:

  • composer test → categorize errors
  • composer fix:style + composer fix:types (auto-fix)
  • composer test (rerun)
  • manual fixes for remaining (see patterns below)
  • composer test + composer analyze:architecture (verify)

Frequently Asked Questions about Error Resolution

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

FAQPage Schema
How do I diagnose and fix test failures in my PHP project?

Test failures can be diagnosed by running composer test to categorize errors by type—syntax, style, types, or architecture violations. Fix style issues with composer fix:style, type issues with composer fix:types, then re-run tests. Manual fixes address remaining logic or architecture issues, followed by composer test and composer analyze:architecture to verify resolution.

What's the fastest way to resolve pre-commit hook blocks?

Pre-commit blocks are resolved using a structured workflow: run composer test to identify the error class, apply automated fixes via composer fix:style and composer fix:types, then re-run tests. This systematic approach reduces debugging time by categorizing errors before manual intervention on architecture or logic failures.

Can I automatically fix style and type errors before testing?

Yes. Composer provides automated fixes: composer fix:style corrects code style violations and composer fix:types resolves type issues. After applying these fixes, re-run composer test to verify the corrections and surface remaining failures that require manual fixes.

How do I prevent recurring test and build errors?

This workflow includes guided patterns for common issues—naming conventions, forbidden patterns, and architecture violations. After resolving errors with composer test, composer fix:style, and composer fix:types, run composer analyze:architecture to validate your codebase against layer and architecture rules, preventing regressions.

What types of errors does this workflow handle?

The workflow handles syntax errors, style violations, type mismatches, architecture violations, and logic failures. It categorizes errors triggered by test failures or pre-commit hooks, applying deterministic Composer commands to identify root causes and guide remediation through both automated fixes and manual patterns.