cg-devplan
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Set up an open source repository for healthy long-term maintenance — branch protection, commit signing, tag immutability, issue and PR templates, CODEOWNERS, CONTRIBUTING.md, SECURITY.md, Dependabot, stale bot, and triage workflow. Use when the user is publishing an open source
How it fires
How this command gets triggered: by you, by Claude, or both.
/cg-oss-git-hygieneContext preview
What this command does when you run it.
Set up an open source repository for healthy long-term maintenance — branch protection, commit signing, tag immutability, issue and PR templates, CODEOWNERS, CONTRIBUTING.md, SECURITY.md, Dependabot, stale bot, and triage workflow. Use when the user is publishing an open source
name: cg-oss-git-hygiene description: Set up an open source repository for healthy long-term maintenance — branch protection, commit signing, tag immutability, issue and PR templates, CODEOWNERS, CONTRIBUTING.md, SECURITY.md, Dependabot, stale bot, and triage workflow. Use when the user is publishing an open source project, mentions branch protection, rulesets, signed commits, tag protection, issue templates, PR templates, CODEOWNERS, CONTRIBUTING, code of conduct, SECURITY.md, vulnerability disclosure, Dependabot, stale issues, triage, "how do I prevent my repo from being hijacked", or "how do I manage contributors". NOT for code-level security (use cg-security-hardening), CI/CD pipeline construction, or paid GitHub Enterprise features.
Set up a public repository so it can survive its own success: protected from accidental damage, accidental compromise, and contributor chaos. Targets indie developers and small teams shipping open source projects who do not want to wake up to a hijacked main branch, a thousand spam issues, or a year-old stale PR backlog.
**This skill covers:**
**This skill does NOT cover:**
If the user runs a hosted Git platform other than GitHub.com, the underlying principles still apply but commands and screenshots will differ.
MUST have answers to these before producing files or settings. Ask the user directly if unclear.
1. **Solo maintainer or small team?** — affects review requirements:
2. **Public or private repo?**
3. **Will the project accept external contributions?**
4. **Does the project have releases?**
5. **Is there sensitive code (security tools, crypto, auth libraries)?**
6. **Does the user already have an existing repo with damage?** — affects approach:
Ordered by impact-to-effort ratio. Start from pillar 1.
**Why first**: This is the single setting that prevents the worst outcomes (force-push erasing history, accidental direct commits to main, hijacked main branch via leaked credentials). Set this up before the project gets its first star.
**Use Rulesets, not the legacy "Branch protection rules"** — Rulesets are GitHub's current recommendation, more powerful and composable. Legacy rules still work but are being phased out for new repos.
**Essential ruleset for the default branch (`main` / `master`)**:
| Setting | Recommended value | Why | |---|---|---| | Restrict deletions | ✅ enabled | Nobody accidentally deletes main | | Block force pushes | ✅ enabled | Prevent history rewriting attacks | | Require linear history | ✅ enabled (optional) | Cleaner history, easier to audit | | Require pull request before merging | ✅ enabled | Even solo maintainers benefit from PR audit trail | | Required approvals | 1 (small team), 0 (solo with bypass) | Forces review checkpoint | | Dismiss stale approvals on new commits | ✅ enabled | Prevents approval-then-rewrite attack | | Require review from CODEOWNERS | ✅ enabled (if CODEOWNERS exists) | Subject matter experts review their areas | | Require conversation resolution | ✅ enabled | Forces actual discussion completion before merge | | Require status checks to pass | ✅ enabled (list specific checks) | CI must pass, no broken main | | Require branches to be up to date before merging | ✅ enabled | Catches integration bugs before merge | | Require signed commits | ✅ enabled | See pillar 3 | | Require deployments to succeed | ⚠️ only if you have a staging deploy | Prevents broken prod releases | | Lock branch | ❌ disabled (only for archived branches) | Read-only branches can't be merged into | | Restrict who can push | Solo: bypass list of yourself; Team: empty (PRs only) | Avoids d
A minimal rule system for Claude Code. Gives Claude the structural discipline it lacks by default — phase tracking, decision logging, honest pushback, debug discipline, language-specific best practices, and reusable skills.
Generate a structured development plan (devplan) for software projects. Use this skill whenever the user wants to plan a new app,…
Deploy an application to a single VPS with reverse proxy, automatic TLS, systemd process supervision, firewall, and basic health…
Set up production observability for indie-scale apps — structured logging, uptime monitoring, error tracking, and basic metrics.…
Build, sign, notarize, and publish a macOS app as a GitHub release with a professional DMG
Harden an indie-scale production app against common attacks — rate limiting, CORS, security headers, input validation, secrets…
Perform deep, findings-first senior engineering code reviews of any change in any language or stack. Use when reviewing a phase,…