Template repository for bootstrapping new projects with standardized tooling and GitHub configuration.
-
Create a new repo from this template (click "Use this template" on GitHub, or
gh repo create --template). -
Run the setup script to configure GitHub settings:
./scripts/setup-repo.sh
-
Install the git hooks with prek:
prek install
-
Customize for your project:
- Edit
CLAUDE.mdwith your project's build/test/lint commands. - Edit
.publish.yaml: add your test command to the gate. - Edit
cog.toml: setrepository,owner, andauthors, and optionally ascopesallowlist. - Add language-specific entries to
.gitignore. - Add language-specific hooks to
.pre-commit-config.yaml. - Replace placeholder jobs in
.github/workflows/ci.yml. - Update
LICENSEwith your name and year. - Replace this README with your project's documentation.
- Edit
Pull requests are squash merged; merge commits and rebase
merges are disabled. Branches are rebased onto main locally,
and the PR title becomes the one conventional commit on main.
See CONTRIBUTING.md.
- GitHub Actions (
ci.yml): placeholder lint/test jobs, markdown lint (rumdl), ShellCheck, and anAll Checksgate job. - GitHub Actions (
pr-title.yml): checks the PR title is a conventional commit, since it becomes the squash commit. - GitHub Actions (
release.yml): Automated semver release powered by cocogitto. On push tomain, analyzes conventional commits, creates a version tag, generates a changelog, and publishes a GitHub Release. - Cocogitto (
cog.toml): Semantic versioning config with commit type mapping (feat → minor, fix/perf → patch). - Renovate (
renovate.json): Automated dependency updates with automerge, a 7-day minimum release age, digest-pinned actions and conventional commit titles.
Run by prek:
- Conventional commits: Enforced at commit-msg stage.
- Secret detection: Gitleaks runs on every commit.
- Markdown lint: rumdl, configured in
.rumdl.toml. - ShellCheck: on every shell script.
.publish.yaml: declares the gate thepublishagent skill runs before it pushes and opens a pull request. Install the skill globally rather than vendoring it into the project.
scripts/setup-repo.sh: Configures GitHub repo viaghCLI:- Squash-only merges, commit title from the PR title and message from the PR body
- Auto-merge and "Update branch" enabled
- Delete branch on merge
- Branch ruleset: linear history, PR with resolved threads,
required
All ChecksandPR Titlechecks
- gh CLI (authenticated)
- prek (
prek install) - Claude Code