agentic-loop-github

Structure iterative GitHub repository tasks into an observe-decide-execute-verify loop.

4|Updated May 20, 2026
One-click install
npx skills add https://github.com/valorisa/Claude-Skills --skill agentic-loop-github
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-loop-github
Source: https://github.com/valorisa/Claude-Skills/tree/main/skills/agentic-loop-github
Command: npx skills add https://github.com/valorisa/Claude-Skills --skill agentic-loop-github

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Iterative GitHub tasks like fixing failing CI, resolving lint errors, or iterating on pull requests often lead to infinite loops, stacked broken fixes, and unclear completion criteria when handled without structured guardrails.

Core Features & Use Cases

  • Structured iterative loop: Organizes multi-step GitHub tasks into a 6-step observe-decide-execute-verify loop with explicit stop conditions.
  • Verification guardrails: Distinguishes objective verifiable criteria (CI green, tests passing) from subjective criteria (doc quality, tone) to determine when autonomous looping is appropriate.
  • Safety guardrails: Includes maximum attempt limits, stagnation detection to stop repeated failed fixes, and rollback functionality to revert to a known-good state before retrying.
  • Use case example: Resolve failing markdownlint CI errors on a PR by reading the exact error, applying a minimal fix, pushing, and re-checking CI until all checks pass or a stagnation threshold is hit.

Quick Start

Use the agentic-loop-github skill to fix the failing CI checks on your current GitHub PR by following the structured iterative loop with explicit stop conditions and safety guardrails.

Frequently Asked Questions about agentic-loop-github

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

FAQPage Schema
How do I automate fixing failing GitHub Actions CI pipelines without causing infinite loops?

Automate fixing failing GitHub Actions CI pipelines by structuring the workflow into a controlled observe-decide-execute-verify loop with explicit stop conditions. This prevents infinite loops by enforcing maximum attempt limits and stagnation detection during iterative fixes.

What is the best way to automatically resolve repeated lint violations on a pull request?

The best way to resolve repeated lint violations on a pull request is using an iterative loop that applies minimal fixes, pushes changes, and re-checks CI. It distinguishes objective verifiable criteria like tests passing from subjective criteria like doc quality.

How do structured guardrails prevent stacked broken fixes when iterating on PR feedback?

Structured guardrails prevent stacked broken fixes by implementing rollback functionality to revert to a known-good state before retrying. They also detect stagnation to stop repeated failed fixes and enforce maximum attempt limits for safe autonomous looping.

Can I use an iterative workflow to debug failing GitHub Actions checks until all tests pass?

Yes, you can use an iterative workflow to debug failing GitHub Actions checks. The structured loop reads exact errors, applies fixes, and verifies CI status until all checks pass or a stagnation threshold is hit, ensuring safe bounded execution.

Why does autonomous CI fixing stop before resolving all pull request check failures?

Autonomous CI fixing stops before resolving all pull request check failures when stagnation detection identifies repeated failed fixes, maximum attempt limits are reached, or ambiguous completion criteria prevent objective verification of the final state.