Skip to content
/ template-repo Public template

Automated GitHub workflow template: community standards, just recipes for PR lifecycle, AI reviews (Copilot/Claude), and template sync system

License

Notifications You must be signed in to change notification settings

fini-net/template-repo

FINI template-repo

GitHub Issues GitHub Pull Requests GitHub License GitHub watchers

template-repo banner

A good template for github repos with best practices adoption.

Template Features

GitHub Community Standards

Modular Justfile Architecture

The justfile imports 8 modules from the .just/ directory for a clean, maintainable workflow:

  • gh-process.just - Complete PR lifecycle automation with smart check polling and AI review integration
  • compliance.just - Repository health checks validating all GitHub community standards and branch protection
  • shellcheck.just - Bash script linting that extracts and validates all scripts in just recipes
  • cue-verify.just - Three-stage validation of .repo.toml structure, flags, and GitHub sync
  • claude.just - Claude Code permission management with canonical sorting and structure validation
  • repo-toml.just - Metadata extraction that generates shell variables from repository configuration
  • template-sync.just - Safe template updates preserving local customizations via multi-version checksums
  • pr-hook.just - Optional pre-PR hooks for project-specific automation

Repository Metadata System

  • .repo.toml - Centralized configuration with description, topics, URLs, and feature flags
  • Cue schema validation - Three-stage verification checks structure, validates flags against actual files, and syncs GitHub metadata
  • ✅ Automatic shell variable generation - The repo_toml_generate recipe exports TOML data as sourceable bash variables
  • ✅ GitHub metadata synchronization - cue-sync-from-github pulls description and topics from GitHub API

GitHub Actions

Seven workflows handle automation and quality:

AI-Enhanced Development

  • ✅ Conditional AI review display - After PR checks complete, shows review comments based on .repo.toml flags
  • ✅ GitHub Copilot review integration - Enable/disable with copilot-review flag
  • ✅ Claude Code review integration - Enable/disable with claude-review flag
  • ✅ Smart polling system - Waits up to 30 seconds for checks to start, then polls every 5 seconds for faster feedback

Additional Features

  • Priority labels - Extra issue labels for better organization
  • Prerequisites installation - Script to install required tools
  • ✅ Release automation - just release <version> creates GitHub releases with auto-generated notes and age monitoring

Usage

  1. To use this template, you can create a new repository by clicking on "Use this template" button.
  2. Remember to replace any chicks-net, fini-net, and template-repo references with the right values for your project. (Github templates do not offer variable substitution, but we still have to call them templates for some reason.)
  3. Ditch the "Template Status", "Usage", and "Kudos" sections in the README.md. just clean_template will give you a clean /README.md, and remove other files that are not required.

Here is a nice checklist of things to consider with a new repo.

Keeping Your Derived Repo Up-to-Date

Pull updates to .just/ modules from template-repo:

just update_from_template

Only unmodified files are updated. Local customizations are preserved.

Preview changes:

just checksums_verify              # Check which files would update
just checksums_diff .just/gh-process.just  # See specific changes

The update system uses multi-version checksum tracking to safely identify which files match known template versions. Files with local modifications are skipped and reported.

Contributing

Support & Security

License

I went with the GPL2 license, but the MIT license is also worth considering.

Other good template repos on github

  • Jose Gracia Berenguer did a great job with their project-template repo. This looks like a student project, but it is one of the best templates I've found on github.
  • Cookiecutter Data Science is cool, but it isn't actually a template repo.
  • gh-best-practices-template is doing great at checking off all of the boxes. They've including funding and citations which I haven't tried yet. I'm not a fan of how all of the Markdown files are in the root directory. I definitely prefer stuffing those under /.github for a cleaner root directory.

Thanks

  • I've really enjoyed building projects with just.
  • The GitHub CLI makes browser-free workflows not only possible, but fun.

About

Automated GitHub workflow template: community standards, just recipes for PR lifecycle, AI reviews (Copilot/Claude), and template sync system

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •