Starter template for TypeScript / Effect libraries and tools.
| Surface | Examples | Limit |
|---|---|---|
| Evaluator | commitlint.config.ts, .github/workflows/ |
Read-only; never edit the instrument that grades work. |
| Doctrine | subtrees.toml |
Project law; edit only on deliberate direction. |
| Vendored | repos/** |
Read-only; updated via git subtree, never hand-edited. |
| Human approval | Releases, publishing, external credentials | User-confirmed only. |
| Editable | Workspace source, tests, documentation | Edit freely. |
| Doc | Trigger |
|---|---|
repos/constitution/CODING_STANDARDS.md and repos/constitution/REVIEW.md |
you plan, write, review or propose a test |
repos/constitution/GRADERS.md |
you build or change a check (a lint rule, CI job, hook, threshold or rubric) |
| ID | Rule | Gate |
|---|---|---|
START-1 |
Formatting passes dprint with no diffs | pnpm format:check |
START-2 |
Typechecking succeeds workspace-wide with no errors | pnpm typecheck |
START-3 |
All test suites pass | pnpm test |
START-4 |
CI passes on the pushed head; not run locally | CI: pnpm check:ci |
START-5 |
The e2e journeys pass against pnpm dev |
pnpm journeys |
Workspace roots: packages/ holds libraries, apps/ holds publishable
applications — both are workspace globs in pnpm-workspace.yaml. Turbo declares
dist/** as each package's build output; pnpm gate:dist runs that build.
- This repo is a template and holds no credentials; CI proves everything locally. Gate: review of the workflow diff; a job that needs a secret carries
if: ${{ !github.event.repository.is_template }}. - Every job runs on GitHub-hosted runners:
ubuntu-latest, plusubuntu-24.04-armfor the aarch64-linux job. This repository is public, and the org's self-hosted fleet runner group admits only private repositories (fork safety), so a[self-hosted, systemfsoftware-runner, *]job here queues forever. Gate: review of the workflow diff. - Cloudflare credentials enter a sandbox only through
bin/cloud(deploy, destroy, state reads). Gate: review of the workflow diff — wrong:sandbox --pass-env CLOUDFLARE_API_TOKEN -- pnpm --filter @endgame/site exec alchemy deploy; right:./bin/cloud pnpm --filter @endgame/site exec alchemy deploy. - CI is five workflows:
check.yml(onecheckjob:turbo run format:check lint typecheck test --affected(no--affectedon merge-queue drafts,mergify/merge-queue/*, which run the full suite) and the change-intent gate on PRs),commitlint.yml(calls the sharedreusable-commitlint.ymlfrom systemfsoftware/systemfsoftware, pinned by commit SHA; it lints the commits of the pull request itself, and.mergify.ymlrequires it as a queue condition on the PR, never as a merge condition on the queue draft, whose generatedMerge of #<n>commit is not a person's commit; only its success satisfies that condition, except a skip on a Dependabot-authored PR, since the reusable skips Dependabot on purpose and skips everyone else when its dependency job fails),deploy.yml(adeployand acleanupjob, dormant until the repository variableALCHEMY_DEPLOYistrue),nix-cache-push.yml(on a push to main, buildsworkspace-tarballsand everyworkspace-tarballs.membersoutput fromgithub:<repository>/<sha>, never the checkout, and pushes them signed to the nix.systemfsoftware.com binary cache; the job then requires an HTTP 200 narinfo carrying aSig: nix-cache-1:line for every pushed path; it runs in thenix-cache-pushenvironment on x86_64-linux and aarch64-linux GitHub-hosted runners) andrelease.yml(the shared release tooling that versions and tags the four published packages, dispatchingcheck.ymlon the release PR); mutation is an on-demand package script and never gates a deploy. Gate: review of the workflow diff.
Commit changes using conventional commits (<type>(<scope>): <subject>). Ensure the working tree is clean and pushed; CI runs pnpm check:ci, never run it locally.