Agent skill

GitHub Rulesets

by AliceJump in AliceJump/ok-end-field

Diagnose or configure GitHub branch/tag rulesets on ok-script repos.

AGPL-3.0Auto-check passedDevelopment

Install GitHub Rulesets

skills CLI
$ npx skills add AliceJump/ok-end-field --skill github-rulesets -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AliceJump/ok-end-field github-rulesets --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AliceJump/ok-end-field.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/github-rulesets .claude/skills/github-rulesets && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
github-rulesets
GitHub stars
556
Token cost
~595 tokens
SKILL.md length
287 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Diagnose or configure GitHub branch/tag rulesets on ok-script repos.

  • Blocked PR merges
  • SKILL.md covers Branch merge blockers, Bypass and tag automation and Workflows targeting protected…
  • Calls gh; needs GITHUB_TOKEN
  • Protected-branch workflows

What it does

GitHub Rulesets is an agent skill from AliceJump/ok-end-field. Diagnose or configure GitHub branch/tag rulesets on ok-script repos. Use for blocked PR merges, bypass actors, protected-branch workflows, or App-token tag creation.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with GitHub. The repository describes itself as: 终末地 End Field Automation 基于ok-script开发的自动化. The licence is AGPL-3.0.

When your agent uses it

  • Blocked PR merges
  • Protected-branch workflows
  • App-token tag creation

Example prompts

  • “/github-rulesets”

Requirements

  • A credential in GITHUB_TOKEN

What it can do on your machine

Read from SKILL.md and the folder at commit a8af4e8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITHUB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitHub Rulesets loads about 595 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 287 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~595

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AliceJump/ok-end-field at commit a8af4e8, republished under its AGPL-3.0 licence (© AliceJump). 287 words, ~595 tokens.

Download SKILL.mdSave it as .claude/skills/github-rulesets/SKILL.md (or your agent's skills folder).
name
github-rulesets
description
Diagnose or configure GitHub branch/tag rulesets on ok-script repos. Use for blocked PR merges, bypass actors, protected-branch workflows, or App-token tag creation.

GitHub Rulesets

Branch merge blockers

An update restriction combined with pull_request on the default branch blocked squash/rebase merges for non-bypassed users even with green checks and zero required approvals. The verified ok-end-field combination that permits PR merges while blocking direct pushes is deletion + non_fast_forward + required_linear_history + pull_request, without update. Inspect the current ruleset before changing it:

powershell
gh api repos/<owner>/<repo>/rulesets
gh api repos/<owner>/<repo>/rulesets/<id>

A mergeStateStatus: BLOCKED result may also come from a pending commit status such as CodeRabbit; inspect checks and reviews before blaming rulesets.

Bypass and tag automation

  • The built-in github-actions[bot] integration cannot be added as this repository's bypass actor. Use a custom GitHub App or authorized PAT user when a workflow must bypass a ruleset. A tag ruleset uses bypass_mode: always; pull_request bypass mode applies only to branch rulesets.
  • For App-based tags, grant repository Contents read/write, install the App, and add its Integration ID to tag-ruleset bypass. Store the public App ID in a repository variable and the full PEM private key in a Secret. Never commit the key.
  • GITHUB_TOKEN pushes do not trigger another workflow's push event; an App installation token or PAT can. Remove redundant repository_dispatch triggers only after confirming the new token's behavior.
  • Set persist-credentials: false on actions/checkout when later Git pushes must use the App token instead of checkout's stored token.

Workflows targeting protected branches

Convert direct pushes to a feature branch and PR. A workflow that creates the branch and PR needs contents: write and pull-requests: write. For a reused fixed branch, guard concurrent runs before force-pushing, or use a unique run-specific branch. Check the resulting PR's CI/approval state; PRs opened by GITHUB_TOKEN may require approval before workflows run.

For API edits, inspect bypass_actors and existing rules before a POST/PUT. Keep branch protection and tag creation rules separate.

© AliceJump, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/github-rulesets of AliceJump/ok-end-field.

Open the folder on GitHubat commit a8af4e8

Compare with similar skills

GitHub Rulesets next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitHub Rulesets compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitHub Rulesets this skillAliceJump/ok-end-field556—~595Automated safety check: PassAGPL-3.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Greplooponyx-dot-app/onyx32k4 repos~3.3kAutomated safety check: PassMIT
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Setup Matt Pocock Skillsbestofjs/bestofjs3.1k20 repos~1.7kAutomated safety check: PassMIT
Summarise Ecosystem Resultsastral-sh/ruff50k1 repos~2.2kAutomated safety check: PassMIT

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Setup Matt Pocock Skills

    bestofjs/bestofjs

    Configure this repo for the engineering skills — set up its issue tracker, triage label vocabulary, and domain doc layout.

    3.1k GitHub starsUsed in 20 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Official

    A skill your agent uses when a user says "summarise ecosystem results", "summarize this ty ecosystem report", "what changed in this ecosystem run?", or asks to summarise or summarize ty ecosystem…

    50k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed

More from AliceJump/ok-end-field

All 14 skills in this repo
  • Ok Script I18n

    AliceJump/ok-end-field

    Maintain gettext translations for ok-script task UI and runtime messages.

    556 GitHub stars~828 tokensUpdated today
    Auto-check passed
  • Deploy

    AliceJump/ok-end-field

    Commit validated changes, calculate an annotated stable/beta/alpha version tag, and push the release to the publishing remote.

    556 GitHub stars~625 tokensUpdated today
    Auto-check passed
  • Use Local Venv

    AliceJump/ok-end-field

    Prefer the repository-local Python virtual environment for coding-agent work.

    556 GitHub stars~688 tokensUpdated today
    Auto-check passed
  • Ok Script PR Review

    AliceJump/ok-end-field

    Triage CodeRabbit reviews on ok-script pull requests. An agent skill from AliceJump/ok-end-field.

    556 GitHub stars~904 tokensUpdated today
    Auto-check passed
  • Ok Script Tasks

    AliceJump/ok-end-field

    Create, modify, register, or review ok-script BaseTask and TriggerTask classes.

    556 GitHub stars~619 tokensUpdated today
    Auto-check passed
  • Wiki Skill Sync

    AliceJump/ok-end-field

    Compare Endfield operator skills with official wiki data and update assets/data/characterskills/.json.

    556 GitHub stars~453 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about GitHub Rulesets

What does GitHub Rulesets do?

Diagnose or configure GitHub branch/tag rulesets on ok-script repos. GitHub Rulesets is an agent skill from AliceJump/ok-end-field. Diagnose or configure GitHub branch/tag rulesets on ok-script repos.

When should I use GitHub Rulesets?

GitHub Rulesets fits situations like: blocked PR merges; protected-branch workflows; app-token tag creation.

How do I install GitHub Rulesets in Claude Code?

Run `npx skills add AliceJump/ok-end-field --skill github-rulesets -a claude-code`. Or copy the skill folder (.agents/skills/github-rulesets in AliceJump/ok-end-field) into .claude/skills/github-rulesets in your project. Claude Code loads it when a task matches its description.

How do I install GitHub Rulesets in Codex?

Run `npx skills add AliceJump/ok-end-field --skill github-rulesets -a codex`. Or copy the skill folder (.agents/skills/github-rulesets in AliceJump/ok-end-field) into .agents/skills/github-rulesets in your project. Codex loads it when a task matches its description.

Can I use GitHub Rulesets in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AliceJump/ok-end-field --skill github-rulesets -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/github-rulesets, .gemini/skills/github-rulesets, .github/skills/github-rulesets and .opencode/skills/github-rulesets in your project.

What does GitHub Rulesets need to run?

Going by SKILL.md and its folder, GitHub Rulesets needs the command-line tools its instructions call (gh) and credentials named GITHUB_TOKEN. Our summary lists: A credential in GITHUB_TOKEN.

Does GitHub Rulesets access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is GitHub Rulesets safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitHub Rulesets use?

GitHub Rulesets is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitHub Rulesets use?

About 595 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitHub Rulesets?

Skills that share tags, products or a category with GitHub Rulesets: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Greploop (onyx-dot-app/onyx, 32k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Setup Matt Pocock Skills (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitHub Rulesets?

AliceJump (a GitHub user) maintains it in AliceJump/ok-end-field, which has 556 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 8, 2026.

Source: AliceJump/ok-end-field on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.