preventing-github-actions-loops
CommunityStop GitHub Actions infinite trigger loops before they start.
System Documentation
What problem does it solve?
GitHub Actions workflows can accidentally trigger each other in infinite recursive loops when workflow outputs like pushes, pull requests, comments, or tags re-activate other workflows in the same repository. These loops waste CI/CD resources, generate failed runs, and clutter repository activity logs, making it hard to track legitimate pipeline executions.
Core Features & Use Cases
- Pre-write guardrails: Provides a checklist and recommended guard patterns to insert when authoring new workflows to avoid loop-prone trigger configurations.
- Runtime audit workflow: Offers a step-by-step process to scan existing .github/workflows/*.yml files for cyclic trigger paths, including hard-to-detect mutual A→B→A loops.
- Use case: If you maintain a repository with an auto-commit workflow that pushes documentation changes, use this skill to verify the push event won't re-trigger the same workflow and add a [skip ci] guard to eliminate the loop risk.
Quick Start
Use the preventing-github-actions-loops skill to audit all workflows in your repository's .github/workflows directory for potential infinite trigger loops and get prioritized fix recommendations for any high-risk candidates found.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: preventing-github-actions-loops Download link: https://github.com/hicucu/forge/archive/main.zip#preventing-github-actions-loops Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.