A minimal GitHub repository template with formatting enforcement and CI/CD ready to go, for any language or framework.
- Formatting with dprint — supports JSON, Markdown, and YAML out of the box
- Pre-commit hooks with Lefthook — auto-formats files before each commit
- Dependabot — keeps GitHub Actions dependencies up to date automatically
- CI workflow — validates the pre-commit hook on every pull request and push to
main
- Create a new repository from this template, or clone it directly.
- Install Lefthook and run
lefthook installto activate the pre-commit hook. - Replace the
LICENSEfile with your preferred license, or keep it to keep the project unlicensed. - Modify the template files to fit your project.
Each config file is a starting point — modify it to fit your needs:
dprint.jsonc— add or remove dprint plugins for your languagelefthook.yaml— add more pre-commit checks or other Git hooks.github/workflows/ci.yaml— extend or replace the CI workflow.github/dependabot.yaml— adjust update frequency or add more package ecosystemsCLAUDE.md— replace with guidance for your project's structure, tools, and development workflow (for Claude Code)
For a more opinionated starting point in a specific language or framework: