Organization-wide defaults and tooling for Chronos Space.
| Path | What it is |
|---|---|
profile/ |
The page people see at github.com/chronos-space |
CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, SUPPORT.md, GOVERNANCE.md |
Defaults for every repo in the org that doesn't have its own |
.github/ISSUE_TEMPLATE/, .github/pull_request_template.md |
Default issue forms and pull request template |
PLAYBOOK.md |
What happens, step by step: new members, new repos, mistakes, students, open-sourcing |
guardrails/ |
How we keep main reviewed and secrets out of git; the rules for AI agents; the standard labels |
oss/ |
What open-source.sh adds to public repos: license, sign-off check, Scorecard |
scripts/ |
Laptop setup for everyone; tools for owners to create repos, add guardrails and audit the org |
Set up your laptop. This installs gitleaks (if you don't have it) and our git
hooks, which stop commits to main and commits containing secrets before
anything leaves your laptop, and only in chronos-space repos:
macOS or Linux (in a terminal):
curl -fsSL https://raw.githubusercontent.com/chronos-space/.github/main/scripts/setup-laptop.sh | bashWindows (in PowerShell; it installs Git for Windows first if you don't have it):
irm https://raw.githubusercontent.com/chronos-space/.github/main/scripts/setup-laptop.ps1 | iexRun it once. The hooks update themselves once a day after that.
| Command | What it does |
|---|---|
./scripts/new-repo.sh NAME --private [--team SLUG] |
Creates a private repo from project-template, with the guard workflows included, and gives the team write access |
./scripts/new-repo.sh NAME --public |
Same, plus the server-side Protect main ruleset |
./scripts/add-guardrails.sh REPO |
Adds or updates the guard workflows in an existing repo, through a pull request |
./scripts/protect-main.sh [REPO...] |
Applies the Protect main ruleset to public repos |
./scripts/sync-codeowners.sh [REPO...] [--merge] |
Makes each public repo's admins its code owners, so only their approvals count |
./scripts/open-source.sh REPO [--merge] |
Gives a public repo everything an open-source project needs (license, sign-off check, Scorecard, Dependabot, code scanning, private vulnerability reports, Discussions, the ruleset) |
./scripts/sync-labels.sh [REPO...] |
Gives repos the org's standard labels |
./scripts/audit.sh |
Checks every repo against the rules |
./scripts/schedule-audit.sh install |
Runs the audit by itself once a week on your Linux laptop, with a desktop notification |
Owner commands run from a clone of this repo. How it all fits together, and why, is in guardrails/README.md.
The guard workflows in .github/workflows/ (main-guard,
pr-approval, secret-scan) are shared: every repo calls them, so a change
merged here reaches all repos on their next run.