Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

GitHub Repo Hardening

Locks down a GitHub repo with rulesets, scanning and safe tokens, without breaking a bot that pushes to main.

Claude's review

7/10 Tiered GitHub hardening with exact gh commands and the bot-bypass gotchas.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Apply GitHub repository security protections tier by tier — rulesets, read-only Actions token, secret scanning + push protection, Dependabot, and (gated) required status checks / required PR with a GitHub App bypass for a CI auto-commit bot. Mutating and confirmation-gated: always assess first, apply the no-regret baseline, then decide required checks separately. Use when hardening a public user-owned repo after an audit, when a repo has no branch protection, when adding required checks without breaking a bot that pushes to the default branch, or when provisioning a GitHub App bypass actor for trusted automation.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: harden-github-repo-security
description: >
  Apply GitHub repository security protections tier by tier — rulesets,
  read-only Actions token, secret scanning + push protection, Dependabot,
  and (gated) required status checks / required PR with a GitHub App bypass
  for a CI auto-commit bot. Mutating and confirmation-gated: always assess
  first, apply the no-regret baseline, then decide required checks
  separately. Use when hardening a public user-owned repo after an audit,
  when a repo has no branch protection, when adding required checks without
  breaking a bot that pushes to the default branch, or when provisioning a
  GitHub App bypass actor for trusted automation.
license: MIT
allowed-tools: Read Write Edit Bash
metadata:
  author: Philipp Thoss
  version: "1.0"
  domain: git
  complexity: advanced
  language: multi
  tags: github, security, rulesets, branch-protection, github-actions, hardening
---

# Harden GitHub Repository Security

Apply GitHub protections in order of blast radius: assess, then a no-regret
baseline that breaks no CI, then a gated decision on required checks / PR.
No-regret means every item is either a control you will not want to undo or a
decision you will not want to have skipped — not that the tier is decision-free.
Every mutating step is confirmation-gated. Running example: a **public,
user-owned** repo whose CI auto-commits to the default branch via
`stefanzweifel/git-auto-commit-action` with the default `GITHUB_TOKEN`.

Throughout, `R` = `OWNER/REPO` (e.g. `pjt222/agent-almanac`). Set it once:
`R=OWNER/REPO`. All `gh api` writes require repo admin.

## When to Use

- Hardening a public user-owned repo after `assess-github-repo-security`
- A repo has no ruleset / branch protection and you want a safe baseline
...

From pjt222's repository, MIT licence.

Related skills

  • Checked

    Incident postmortem writer

    Writes blameless incident postmortems with fishbone and five whys analysis, so the team fixes root causes.

    by github 42k
    7/101 credit
  • Checked

    Elastic SLOs and Alerts

    Sets realistic reliability targets in Elastic with alerts that fire when it matters, not at every small blip.

    by elastic 615
    7/101 credit
  • Checked

    AWS Lambda web apps

    Builds and deploys Express, Fastify or Hono apps on AWS Lambda web functions, so your site runs serverless.

    by aws 3.7k
    7/101 credit
  • Checked

    Grafana synthetic checks

    Writes Grafana Cloud synthetic checks in k6 with assertions that really fail, so outages get caught early.

    by grafana 326
    8/101 credit
  • Checked

    OpenTofu Infrastructure Setup

    Sets up OpenTofu infrastructure code with encrypted state, remote locking, tests and a clean move from Terraform.

    by TerminalSkills 221
    7/101 credit
  • Checked

    Synthetic Monitoring Probes

    Sets up scheduled checks that test your live site's key journeys around the clock and alert only on real outages.

    by petrkindlmann 317
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added