# Gh Ruleset

> Manage GitHub repository rulesets via gh CLI.

- Skill: `andersonlimahw/gh-ruleset` (Agent Skill)
- Install (CLI): `npx skillmds@latest add andersonlimahw/gh-ruleset`
- Raw SKILL.md: https://api.skillmd.com/api/skills/andersonlimahw/gh-ruleset/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Andersonlimahw (https://skillmd.com/u/andersonlimahw)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/andersonlimahw/gh-ruleset

---


# GitHub Ruleset Skill

Check, list, and view repository rulesets for branch protection and policies.

## Capabilities
- List rulesets: `gh ruleset list --repo <owner/repo>`
- View ruleset: `gh ruleset view <ruleset-id> --repo <owner/repo>`
- Check ruleset: `gh ruleset check <branch> [--repo <owner/repo>]` (check if branch is affected by any ruleset)

## Usage
Triggered when user says "ruleset", "branch protection", "rules", "check ruleset".
Rulesets are GitHub's modern replacement for branch protection rules.

