/full-zio-stack:full-zio-stackfrom full-zio-stack
Scaffolds new Scala 3 + ZIO 2 + Caliban GraphQL + Scala.js/React/MUI projects from the full-zio-stack Copier template, infers answers, confirms once, checks prerequisites, and verifies the build.
Ships in full-zio-stack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The template at gh:rleibman/full-zio-stack generates a complete, tested project: Scala 3 + ZIO 2, a Caliban
GraphQL API, Flyway migrations, a database layer, and (optionally) a Scala.js + React + Material UI client with a
working CRUD screen. Never hand-write this scaffolding. Generate it, verify it, then build the user's features on top.
git ls-remote --tags https://github.com/rleibman/full-zio-stack 'v*'
gh:rleibman/full-zio-stack (latest tag), or --vcs-ref vX.Y.Z if the user asks for a version.~/projects/full-zio-stack/copier.yml exists, the
user can opt into the development version: source ~/projects/full-zio-stack with --vcs-ref HEAD.
Otherwise, tell the user the template isn't released yet and stop.Read references/answers.md for every question, its allowed values, its default, and the phrases that map to it.
components=server-only,
"Postgres" → database=postgres, "no docker" or "embedded" → database=sqlite, "cats" → http_server=http4s
and usually db_layer=doobie).author_name/author_email from git config user.name / git config user.email.project_name and organization rarely have good defaults. If the user didn't give them, ask.| Needed for | Check | If missing |
|---|---|---|
| always | copier --version, else uvx copier --version, else pipx run --spec copier copier --version | ask the user to install one (pipx install copier or uv tool install copier) |
| always | sbt --version, java -version (17+) | stop and tell the user |
components=full-stack | node --version, npm --version | stop, or offer server-only |
components=full-stack | ls ~/.ivy2/local/org.scalablytyped.converter/sbt-converter_sbt2_3/ shows the version pinned in the generated stLib/project/plugins.sbt | the ScalablyTyped converter isn't available on this machine yet (it's a locally published fork); offer server-only |
dev_compose=true | docker compose version | set dev_compose=false and tell the user they need their own database |
auth=zio-auth | [ -n "$GITHUB_TOKEN" ] | zio-auth is on GitHub Packages, so nothing will resolve without it: ask the user to export a token with read:packages, or offer auth=none. Also note auth=zio-auth forces http_server=zio-http (copier rejects it with http4s) |
Run non-interactively. Use COPIER for whichever form worked in step 3:
$COPIER copy --trust --defaults \
--data project_name="Acme Orders" \
--data organization=com.acme \
--data author_name="…" --data author_email="…" \
--data http_server=zio-http --data database=mariadb --data db_layer=quill \
gh:rleibman/full-zio-stack ./acme-orders
--data key=value. --defaults fills in the rest without prompting.--trust is required because the template runs post-generation tasks (e.g. git init). It's fine here because
this is the user's own template. Never pass --trust for other templates without asking.In the generated directory:
AGENTS.md. It describes this project's modules, commands and conventions for the chosen variants.cd stLib && npm install && sbt --error publishLocal. The first run takes about 5–6 minutes and
up to 6 GB of memory, so run it in the background.docker-compose.yml exists: docker compose up -d, then wait until the database is healthy.sbt --error testFull (plain test is incremental in sbt 2 and may skip tests).sbt server/run in the background, then check curl -fsS localhost:<http_port>/health and one GraphQL
query (curl -fsS -H 'Content-Type: application/json' -d '{"query":"{ __typename }"}' localhost:<http_port>/api/graphql).
Stop the server afterwards.sbt --error client/webDist.If a step fails, fix it and say what you fixed. If the failure is a template bug (it would affect every generated project), tell the user so it can be fixed in the template.
The generated app contains a sample entity, ModelObject, wired through every layer.
add-entity skill
(.claude/skills/add-entity/SKILL.md). It lists the exact files that make up ModelObject for this variant and
how to mirror them.ModelObject sample (also described in that skill).git status). If it isn't, ask the user to commit or stash; don't commit for them.$COPIER update --trust --defaults (add --vcs-ref vX.Y.Z to target a version). To switch a variant, e.g. the
HTTP server, add --data http_server=http4s.Never edit .copier-answers.yml by hand. Change answers with copier update --data.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rleibman/full-zio-stack --plugin full-zio-stackOther plugins' skills for the same job