auto-fix-bug

Automate bug fixing workflows from reproduction to GitHub PR.

5|Updated Aug 22, 2025
One-click install
npx skills add https://github.com/pekral/cursor-rules --skill auto-fix-bug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-fix-bug
Source: https://github.com/pekral/cursor-rules/tree/main/skills/auto-fix-bug
Command: npx skills add https://github.com/pekral/cursor-rules --skill auto-fix-bug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the end-to-end bug fixing workflow, from reproducing a bug and adding a regression test to implementing the minimal fix and delivering a GitHub Pull Request.

Core Features & Use Cases

  • End-to-end workflow: reproduce bugs, write regression tests, implement fixes, and prepare a PR.
  • Branching and commits: create a dedicated fix branch and commit changes using Conventional Commits.
  • PR automation and fallback: push the branch and open a GitHub PR via gh CLI when available, with clear manual steps if automation is unavailable.

Quick Start

Provide the bug description and reproduction steps; the skill will create a fix branch, commit changes with Conventional Commits, push, and open a GitHub PR.

Frequently Asked Questions about auto-fix-bug

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

FAQPage Schema
How do I automate a bug fix workflow from reproduction to a GitHub pull request?

Automating a bug fix workflow involves reproducing the issue, adding a regression test, creating a dedicated branch, committing with Conventional Commits, and pushing a GitHub PR. This skill orchestrates that end-to-end process using tool-assisted automation and optional gh CLI integration.

What is the best way to structure commits when automating a bug fix branch?

Structuring commits during an automated bug fix requires using Conventional Commits on a dedicated fix branch. This ensures clear, standardized commit history across the workflow, from regression testing through the final code implementation before opening the pull request.

Do I need the gh CLI installed to automate opening a GitHub pull request?

You do not need the gh CLI installed to automate opening a GitHub pull request, though it is used for PR automation when available. If the CLI is absent, the workflow provides clear manual fallback steps to complete the push and PR creation.

How does regression testing fit into an automated git branching workflow?

Regression testing fits into an automated git branching workflow by validating the bug reproduction before the fix is applied. The workflow creates a dedicated branch, adds the regression test, implements the minimal fix, and commits everything using Conventional Commits.

Can I use this automated bug fixing process if my environment cannot access GitHub directly?

You can use this automated bug fixing process even without direct GitHub access. The workflow enforces a minimal process with clear fallback steps for manual branch pushing and PR creation if the gh CLI automation cannot access GitHub.

What steps are required to create a conventional commit bug fix PR with fallback automation?

Creating a conventional commit bug fix PR requires providing bug reproduction steps, creating a fix branch, writing a regression test, and implementing the fix. The workflow then commits using Conventional Commits and opens a PR via gh CLI or manual fallback.