A technology-agnostic repository template for starting maintainable, publishable, AI-friendly projects.
Use this template when creating a new project that should have consistent contribution rules, agent instructions, review expectations, and repository hygiene from day one.
-
Create a new repository from this template.
-
Replace this README with the new project's name, purpose, and quick start.
-
Fill in the project-specific validation commands in
AGENTS.mdandCONTRIBUTING.md. -
Choose the actual implementation stack and add the source layout.
-
Install the shared checks and the local Git hooks:
gh extension install PerfectPan/gh-repo-checks ./scripts/install-git-hooks.sh
-
Replace
.github/workflows/ci.yml.examplewith a real.github/workflows/ci.ymlfor the project stack; the repository check accepts either file. -
Keep
.github/workflows/review.ymlenabled for generic review checks. -
Configure GitHub repository protection after the new repository is created:
gh repo-checks protect --repo OWNER/REPO --apply
-
Choose a release tool (changesets or Rush change files) before the first release; it generates package changelogs. See
CONTRIBUTING.mdRelease Notes. -
Pick the license by project type: tools and libraries keep the MIT
LICENSE; applications switch to GPL-3.0-only. SeeCONTRIBUTING.mdLicense.
AGENTS.mdfor agent workflow rules. Claude Code, Codex and other agents read it directly, so there is no separateCLAUDE.md.CONTRIBUTING.mdfor human contribution flow.SECURITY.mdfor vulnerability and sensitive data reporting.docs/README.mdfor architecture, development, operations, and reference documentation standards..github/pull_request_template.mdfor PR summaries and validation..github/ISSUE_TEMPLATE/for bug reports, feature requests, and tasks; each sets a[Bug]:,[Feature]:, or[Task]:title prefix and the matching label..github/workflows/review.ymlfor the repository, PR title, and PR description checks fromPerfectPan/gh-repo-checks..githooks/pre-commitfor local commit-time repository checks..gitlab/merge_request_templates/default.mdfor GitLab-style MR summaries.docs/specs/0000-template.mdfor active product behavior.docs/plans/0000-template.mdfor active technical decisions and detailed execution plans..github/repo-checks.conffor this repository's additions to the shared repository check.scripts/install-git-hooks.shfor installing local Git hooks..editorconfigfor consistent text formatting.
MIT. See LICENSE. Projects created from this template choose their own license; see step 10 above.
Keep this repository generic. Do not add language-specific package files, framework defaults, generated output, or project-specific business logic.
Keep collaboration policy in AGENTS.md and CONTRIBUTING.md, active behavior in docs/specs/, active technical decisions and execution plans in docs/plans/, and current product or engineering knowledge in docs/.