aif-fix

Automate bug fixing workflows by planning, applying, and validating fixes.

2|Updated Sep 13, 2022
One-click install
npx skills add https://github.com/horizontalsystems/solana-kit-ios --skill aif-fix-horizontalsystems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-fix
Source: https://github.com/horizontalsystems/solana-kit-ios/tree/main/.claude/skills/aif-fix
Command: npx skills add https://github.com/horizontalsystems/solana-kit-ios --skill aif-fix-horizontalsystems

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Fix a specific bug or problem in a codebase using a structured workflow that supports immediate fixes or plan-first approaches, with automatic logging and test coverage guidance.

Core Features & Use Cases

  • Dual-mode workflow: immediate fix or plan-first, with execution guided by an existing FIX_PLAN.md if present.
  • Interactive problem understanding and decision prompting via AskUserQuestion.
  • Automated patch creation, logging, and post-fix review with patch generation in .ai-factory/patches.
  • Always proposes test coverage and safeguards against regressions.

Quick Start

Describe a bug or error, then run the fix tool to select a mode and begin the workflow.

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 fixing in a codebase with failing tests?

Automating bug fixing requires a plan-driven workflow that applies patches and validates them against failing tests. This Skill supports immediate fixes or plan-first approaches, automatically generating patches and proposing test coverage to prevent regressions.

What is a plan-first approach for code patching and bug resolution?

A plan-first approach for code patching generates a structured FIX_PLAN.md before applying changes, ensuring the bug resolution is validated. This workflow logs activities in a .ai-factory folder and proposes safeguards against regressions through test coverage.

How do I prevent regressions when applying automated code patches?

To prevent regressions when applying automated code patches, the workflow always proposes test coverage and performs post-fix reviews. It generates patches in a designated folder and supports optional verification to validate the applied changes against existing tests.

Do I need a specific folder structure to generate fix plans and logs?

Generating fix plans and logs requires a .ai-factory folder in your project. This directory stores the FIX_PLAN.md, execution logs, and automatically generated code patches required by the structured bug fixing workflow.

Can I execute an immediate bug fix instead of creating a plan first?

Executing an immediate bug fix is supported through a dual-mode workflow that bypasses initial planning. You can select this mode via interactive commands, allowing the system to apply and validate the code patch directly without an existing FIX_PLAN.md.

How does interactive problem understanding work for code bug fixes?

Interactive problem understanding for code bug fixes uses decision prompts to clarify the issue before patching. The workflow interactively asks questions to define the bug, ensuring the generated fix plan and subsequent patch accurately target the reported problem.