aif-fix

Automate bug diagnosis and patch generation for codebases.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/afterwork/arra-aif --skill aif-fix-afterwork
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-fix
Source: https://github.com/afterwork/arra-aif/tree/main/.cursor/skills/aif-fix
Command: npx skills add https://github.com/afterwork/arra-aif --skill aif-fix-afterwork

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix a specific bug or problem in the codebase. Supports two modes - immediate fix or plan-first. Without arguments executes existing FIX_PLAN.md. Always suggests test coverage and adds logging. Use when user says "fix bug", "debug this", "something is broken", or pastes an error message.

Core Features & Use Cases

  • Two-mode workflow: immediate fix or plan-first approach.
  • Load and follow an existing FIX_PLAN.md if present, then delete it after execution.
  • Always log actions and propose test coverage to prevent regressions.

Quick Start

Describe the bug or error message and run the aif-fix skill to begin the fix process.

Frequently Asked Questions about aif-fix

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

FAQPage Schema
How do I automate bug diagnosis and patch generation across multiple code files?

Automated bug diagnosis analyzes described errors or abnormal behavior across files and modules to generate code patches. It supports immediate application or a structured plan-first approach to resolve issues.

What's the best way to fix a code bug using a plan-first workflow?

A plan-first workflow creates a FIX_PLAN.md file outlining the bug fix strategy before applying patches. The system executes this plan, deletes the file afterward, and logs actions to ensure traceable debugging.

Can I immediately patch an error message without creating a debugging plan first?

Immediate patch mode directly applies fixes to codebases when you paste an error message or describe abnormal behavior. It bypasses planning to provide instant bug resolution while still enforcing mandatory logging.

Does automated bug fixing include test coverage suggestions to prevent regressions?

Automated bug fixing always proposes test coverage suggestions alongside generated patches. This ensures that resolved issues include necessary tests and logging to prevent future code regressions.

When should I not use an immediate patch approach for software debugging?

Avoid immediate patches for complex bugs spanning multiple modules where a structured plan is necessary. Use plan-first mode to outline actions, add logging, and propose tests before modifying code.

What inputs do I need to start debugging a broken codebase module?

To start debugging, provide a description of the abnormal behavior or paste the exact error message. The system uses this input to diagnose the issue, generate patches, and suggest appropriate tests.