@alex-taxiera/stacks
v0.3.0
Published
Scaffold pnpm workspaces of Chakra UI apps and npm CLIs, with agent setup, TanStack Intent skills and known-good versions.
Maintainers
Readme
stacks
Scaffolds pnpm workspaces of Chakra UI apps and npm CLIs, with the tooling and agent setup already in place:
- oxlint and oxfmt
- Storybook stories run as Vitest browser tests
- husky and lint-staged, CI and Dependabot
- an
AGENTS.mdplus.agents/that sync to Claude Code, Cursor and VS Code - TanStack Intent, so agents can load the skills packages ship
The full docs are at stacks.taxiera.net.
pnpm dlx @alex-taxiera/stacks new my-repo --stack spa
cd my-repo
pnpm stacks add spa docs --deploy gh-pages
pnpm stacks add cli tool --package-name @me/tool
pnpm stacks update # AGENTS.md blocks and MCP servers, as this version writes themWhat a generated repo looks like
package.json tooling only; pnpm is required (packageManager + devEngines)
pnpm-workspace.yaml apps/*, packages/*, and a catalog: with every shared version
apps/<name> apps that deploy
packages/<name> packages that publish, such as a CLI
packages/ui the Chakra snippets, theme, provider and shared Storybook preview, made with
the first app that needs it
AGENTS.md, .agents/ agent instructions, skills and MCP servers (Chakra, one Storybook per package)
.stacks.json what `stacks add` builds onStacks
| Stack | What | Deploys to |
| ------- | ------------------------------------------------------------------------ | ---------------------------------- |
| spa | Vite, TanStack Router, every page prerendered to static HTML | Cloudflare Workers, GH Pages |
| cli | A Node CLI that ships an agent skill through TanStack Intent | npm, with provenance |
| start | TanStack Start on Nitro, TanStack Query, better-auth, Drizzle + Postgres | Docker Compose, Cloudflare Workers |
| tauri | Tauri 2 desktop app: a Vite, React and Chakra window over a Rust core | GitHub Releases |
| astro | Astro: Markdown posts, Chakra through React islands, static HTML | Cloudflare Workers, GH Pages |
stacks list shows what this version has, with its deploy targets and add-ons. Apps with a UI
take add-ons with --with:
e2e(spa, start): Playwright tests of whole flows, with a CI job; astartapp's brings Postgres.zustand(spa, start, tauri): a store for state components share.sentry(spa, start): errors and performance from the browser, and from astartapp's server under Docker.backups(start; Docker only): production Postgres archives its WAL and backs up to an S3 bucket with pgBackRest, so it can be restored to any moment;scripts/restore.shrestores, and arestore-<app>skill says how.updater(tauri): in-app updates from the app's own GitHub release, signed with a key thatpnpm --filter <app> updater:keysmakes in~/.tauri;--secretsgives it to GitHub.titlebar(tauri): a title bar of the app's own, with the window's buttons, on Windows and Linux; macOS keeps its traffic lights over the header. Dialogs open below it.screenshots(tauri):pnpm --filter <app> screenshotsshoots every story taggedscreenshotfrom the app's Storybook, in light and dark, intodocs/screenshots/<app>, with a skill that says when and how to retake them.worker(spa, astro; Cloudflare only): a Worker in front of the static site for/api/*routes of your own, with tests and its own types.downloads(astro): a download page for the repo's first desktop app, sorting its latest release's installers by system; the site redeploys when the app publishes a release.
A spa or astro app on Cloudflare also gets a preview of each pull request: a version of its Worker uploaded but not deployed, linked from the run's summary.
Skills that ship with a CLI
A cli package publishes skills/<bin>/SKILL.md beside its code. Any project that installs it and
uses TanStack Intent can list and load the skill:
pnpm exec intent list
pnpm exec intent load @me/tool#toolThe generated repo's root depends on its own CLI with workspace:*, so agents working there get
the skill too. skills:check (in CI and the release workflow) validates it and flags it when it
falls behind the package's version. stacks does the same: it ships the stacks skill, for agents
working in a repo it made.
Every tauri and cli app also gets a release skill in the repo, .agents/skills/release-<name>.
It walks an agent through a release: what's changed since the last one, the version, notes written
for users, the workflow run, checking what went out, and recovering from a run that failed partway.
Keeping versions current
Templates never name a version. Layers list package names, and workflows say
__ACTION[actions/checkout]__, Docker files __IMAGE[postgres]__ and Cargo files
__CRATE[tauri]__; versions.json fills them in. It's a
known-good snapshot: every version in it has been scaffolded, linted, typechecked, tested and
built together.
stacks newreads the snapshot from this repo'strunk, so an installed CLI gets new versions without a release, and falls back to the copy it ships with when offline.--versions latestresolves everything live instead (untested together);--versions bundlednever touches the network.- The canary refreshes it nightly. It resolves the newest
version of each package, skipping releases under three days old, and groups the changes
(storybook, tanstack, chakra…). Each group is tested on its own against every scaffold case:
- Passing minor and patch groups are committed to
trunk. - Passing groups with a major bump go into one
canary/majorsPR for review. - Failing groups open an issue. One broken release never holds the others back.
- Passing minor and patch groups are committed to
versions.policy.jsonholds the exceptions: the Node major (24 until machines move to 26),@types/nodetracking it, arangefor anything that has to wait, and atagfor anything that runs ahead (TypeScript followsbetauntil 7.1 is stable, for.astrotypechecking).- Generated repos stay current on their own, with grouped Dependabot PRs and pnpm's
minimumReleaseAge. The catalog asks for^<version>, or the exact version for a prerelease.addnever upgrades an existing catalog entry; it warns when the repo's is a major behind.
pnpm stacks versions # summarise the snapshot
pnpm stacks versions refresh # what's newer, without writing
pnpm stacks versions refresh --write # update versions.jsonDeveloping
From the repo root:
pnpm install
pnpm test # unit tests
pnpm --filter @alex-taxiera/stacks e2e --case cli # scaffold a case, run its checks
pnpm stacks new ../tmp-repo --stack spa # the CLI from sourceSee AGENTS.md and the stacks skill's
layer reference for how the layers and templates fit together.
