This repository is a reusable scaffold for AI-assisted development workflows. It ships template files under scaffold/ and supporting scripts/docs in the root so downstream projects can quickly adopt consistent agent instructions, quality gates, and delivery guardrails.
- Small changes: implement directly.
- Multi-file changes/new patterns: create a short plan first, then implement.
- Always run
pnpm verifybefore finishing.
| Aspect | Value |
|---|---|
| Package manager | pnpm |
| Runtime | Node.js >= 22 |
| Language | Bash + Markdown + template TypeScript config |
| Framework | N/A in this scaffold repo (templates target multiple stacks) |
| Lint | pnpm lint |
| Type check | pnpm typecheck |
| Test | pnpm test |
| Build | pnpm build |
| All checks | pnpm verify |
# Placeholder dev command for this template repository
pnpm dev
# Full verification gate
pnpm verify
# Individual checks
pnpm lint
pnpm typecheck
pnpm test
pnpm buildscaffold/: files copied into downstream repositories.scripts/: validation, scaffold generation, and packaging helpers.docs/: long-form guidance for maintainers of this scaffold.
scaffold/ # installable template files
scripts/ # shell automation for validation/generation
docs/ # maintainer-facing documentation
| Task | Start Here | Why |
|---|---|---|
| Update template behavior | scaffold/ |
Source-of-truth files used by consumers |
| Update generation logic | scripts/generate-init.sh |
Controls generated installer output |
| Update maintainer guidance | docs/AX_UPGRADE_REPORT.md |
Tracks AX upgrade inventory and decisions |
Rule: Keep shell scripts POSIX-safe Bash and syntax-check them. Bug it prevents: Installer failures and broken generation pipelines.
Rule: If template behavior changes, update corresponding docs in docs/.
Bug it prevents: Drift that confuses agents and humans.
- Editing
scaffold/without re-runningscripts/generate-init.sh. - Introducing commands that assume npm/yarn when the standard gate is
pnpm verify.
- Missing official-doc links for Vercel/Neon/Better Auth guidance.
- Documenting env vars without noting server vs client boundaries.
This repository itself has no required runtime environment variables for local maintenance workflows.
When updating Vercel/Neon/Better Auth guidance, also update:
docs/ENV.mddocs/RUNBOOK.mddocs/ARCHITECTURE.mddocs/DECISIONS.mddocs/TROUBLESHOOTING.mddocs/AX_UPGRADE_REPORT.md
- Vercel agent resources: https://vercel.com/docs/agent-resources
- Vercel agent skills: https://vercel.com/docs/agent-resources/skills
- Vercel environment variables: https://vercel.com/docs/environment-variables
- Neon docs: https://neon.tech/docs
- Neon branching: https://neon.tech/docs/introduction/branching
- Better Auth docs: https://www.better-auth.com/docs
- Drizzle ORM: https://orm.drizzle.team/docs/overview