agentleFS
pvliesdonkpvliesdonk/scholar-mcp/.agents/skills/repository-protection/SKILL.md

repository-protection

Skill2 starsChanged yesterdayMITView on GitHub

Use when changing branch or tag rulesets, required checks, or the bootstrap workflow: how repository protection is applied and kept in sync.

Files
SKILL.md
<!-- ===== TEMPLATE-OWNED — re-rendered on template updates. ===== -->

Repository Protection

Repository protection (rulesets)

.github/rulesets/*.json are the source of truth for this repository's branch and tag rulesets — required PRs + the CI Success check on main, release/* and integration/* (not strict: a PR need not be up to date with its base to merge), deletion/force-push protection for v* tags — and bootstrap.yml applies them (upsert by name) on pushes touching those files and on manual dispatch. Never adjust protection in the GitHub UI: the next bootstrap run resets it to the checked-in state. Change the JSON files instead. The release pipeline's RELEASE_TOKEN (a repository admin's PAT) bypasses these rules by design via the admin-role bypass entry — its remaining jobs are creating the vX.Y.Z tag + GitHub release after a release PR merges (the v* tag ruleset applies) and opening the release/notes/port PRs whose CI must run; direct release-commit and merge-back pushes to protected branches are gone with PSR. Posture and bypass model: docs/contribute/repository-protection.md.

A check that is not a job in ci.yml cannot join the CI Success aggregate — needs: only reaches jobs in the same workflow — so a domain workflow this project adds is advisory until its context is required outright. Declare it in the extra_required_checks answer instead, which renders into the main and release/* rulesets alongside CI Success (integration/* requires CI Success alone), rather than editing ci.yml or the ruleset files by hand. Every context listed there must report on every PR to a protected branch: a paths: filter or a false job-level if: reports nothing, and the merge then waits forever for a check that is not coming. Details and the workflow shape that avoids it: docs/contribute/repository-protection.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.