gh-sweep

Automate discovery, fixing, and pull request creation for trivial GitHub issues.

2|Updated Feb 17, 2017
One-click install
npx skills add https://github.com/John2143/dotfiles --skill gh-sweep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-sweep
Source: https://github.com/John2143/dotfiles/tree/main/.claude/skills/gh-sweep
Command: npx skills add https://github.com/John2143/dotfiles --skill gh-sweep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of discovering, fixing, and creating pull requests for trivial GitHub issues, streamlining the workflow for quick resolution.

Core Features & Use Cases

  • Automated Issue Discovery: Automatically identifies and selects the first open issue without an 'in-progress' label that meets the triviality checklist.
  • Trivial Issue Resolution: Executes fixes that change ≤ 2 files and ≤ 5 lines of code, without creating new functions or types.
  • PR Creation: Automatically creates a pull request with the fix, labeled as 'in-progress', and linked to the issue.
  • Use Case: Use this Skill to quickly resolve typos, one-liners, dependency bumps, and obvious fixes in your GitHub repository.

Quick Start

Run the /skill:gh-sweep command to auto-discover and fix the next eligible trivial issue, or specify an issue number to fix a specific issue.

Frequently Asked Questions about gh-sweep

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

FAQPage Schema
How do I automate pull request creation for trivial GitHub issues?

To automate pull request creation for trivial GitHub issues, use a tool that discovers eligible issues, applies fixes, and opens PRs automatically. This Skill resolves issues changing up to 2 files and 5 lines without adding new functions.

How can I automatically fix typos and one-liner issues in my GitHub repository?

You can automatically fix typos and one-liner issues by running a single command that discovers eligible issues, applies the fix, and creates a linked pull request. It targets changes that do not introduce new functions or types.

Do I need the gh CLI tool to automate issue resolution and PR creation?

Yes, you need the gh CLI tool installed to automate issue resolution and PR creation. This Skill requires the gh command-line interface to perform GitHub operations like discovering issues and opening pull requests.

What are the limitations of automated trivial issue resolution for GitHub repositories?

Automated trivial issue resolution is limited to changes affecting 2 files or fewer and 5 lines of code or less. It will not handle fixes that require introducing new functions or types, focusing only on obvious corrections.

How does automated issue discovery work for GitHub pull requests?

Automated issue discovery works by finding the first open GitHub issue without an 'in-progress' label that meets a triviality checklist. Once found, the fix is applied and a pull request is created and labeled 'in-progress'.

Can I target a specific GitHub issue for automated fixing instead of auto-discovery?

Yes, you can target a specific GitHub issue for automated fixing by specifying the issue number. This bypasses the auto-discovery process and directly attempts to resolve the selected issue if it meets the triviality constraints.