Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

full-zio-stack

/full-zio-stack

Generuje nowy projekt aplikacji w stosie Scala 3, ZIO 2, Caliban GraphQL i Scala.js z React i MUI, z wyborem zio-http lub http4s oraz bazy Postgres, MySQL, MariaDB lub SQLite.

Repozytorium
full-zio-stack ↗
Licencja
MIT
Ostatnia zmiana repozytorium
16.09.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 16.09.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Generuje nowy projekt aplikacji w stosie Scala 3, ZIO 2, Caliban GraphQL i Scala.js z React i MUI, z wyborem zio-http lub http4s oraz bazy Postgres, MySQL, MariaDB lub SQLite.

Wyzwalacze z opisu

build a full stack app with this stackcreate a new full-zio-stack projectscaffold a ZIO appstart a new Scala 3 / ZIO / Scala.js projectnew app with my stack
Oryginalny opis (EN)

This skill should be used when the user asks to "build a full stack app with this stack", "create a new full-zio-stack project", "scaffold a ZIO app", "start a new Scala 3 / ZIO / Scala.js project", "new app with my stack", or any request to create a new application on the Scala 3 + ZIO 2 + Caliban GraphQL + Scala.js/React/MUI stack (zio-http or http4s; Quill, doobie or Slick; MariaDB, MySQL, Postgres or SQLite). It generates the project from the full-zio-stack Copier template instead of writing the scaffolding by hand, then verifies it builds and runs. Also use it to update an existing projec

Jak działa

  1. 1. Check the template is available
  2. 2. Work out the answers
  3. 3. Check prerequisites for those answers
  4. 4. Generate
  5. 5. Verify: don't report success until this passes
  6. 6. Build what the user actually asked for
  7. Updating a project generated from the template
Sekcje z nagłówków SKILL.md, w oryginale · 98 linii, 864 słów
Podgląd SKILL.md
---
name: full-zio-stack
description: This skill should be used when the user asks to "build a full stack app with this stack", "create a new full-zio-stack project", "scaffold a ZIO app", "start a new Scala 3 / ZIO / Scala.js project", "new app with my stack", or any request to create a new application on the Scala 3 + ZIO 2 + Caliban GraphQL + Scala.js/React/MUI stack (zio-http or http4s; Quill, doobie or Slick; MariaDB, MySQL, Postgres or SQLite). It generates the project from the full-zio-stack Copier template instead of writing the scaffolding by hand, then verifies it builds and runs. Also use it to update an existing project generated from that template ("update from the template", "copier update").
version: 0.1.0
---

# full-zio-stack: new projects from the Copier template

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.

## 1. Check the template is available

```bash
git ls-remote --tags https://github.com/rleibman/full-zio-stack 'v*'
```

- **Tags listed:** use `gh:rleibman/full-zio-stack` (latest tag), or `--vcs-ref vX.Y.Z` if the user asks for a version.
- **No tags yet:** the template is still under construction. If `~/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.
- **The user names a path or version:** use exactly that.

## 2. Work out the answers

Read `references/answers.md` for every question, its allowed values, its default, and the phrases that map to it.

- Infer as much as possible from the request ("REST backend only" → `components=server-only`,
  "Postgres" → `database=postgres`, "no docker" or "embedded" → `database=sqlite`, "cats" → `http_server=http4s`
  and usually `db_layer=doobie`).
- Take `author_name`/`author_email` from `git config user.name` / `git config user.email`.
- Anything not implied keeps the template default (zio-http, Quill, MariaDB, full-stack, MIT, Docker packaging,
  GitHub Actions).
- `project_name` and `organization` rarely have good defaults. If the user didn't give them, ask.
- **Confirm once, in a single message:** show the resolved answers as a compact list and ask the user to confirm or
  change them. Don't ask about each question separately.

## 3. Check prerequisites for those answers

| 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) |

## 4. Generate

Run non-interactively. Use `COPIER` for whichever form worked in step 3:

```bash
$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
```

- Pass every answer you resolved as `--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.
- The destination must not exist or must be empty. Never generate into an existing project.

## 5. Verify: don't report success until this passes

In the generated directory:

1. Read `AGENTS.md`. It describes this project's modules, commands and conventions for the chosen variants.
2. Full-stack only: `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.
3. If `docker-compose.yml` exists: `docker compose up -d`, then wait until the database is healthy.
4. `sbt --error testFull` (plain `test` is incremental in sbt 2 and may skip tests).
5. Start `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.
6. Full-stack only: `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.

## 6. Build what the user actually asked for

The generated app contains a sample entity, `ModelObject`, wired through every layer.

- For each domain entity the user wants, use the generated project's `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.
- Once the user's first entity works end to end, offer to remove the `ModelObject` sample (also described in that skill).

## Updating a project generated from the template

1. The working tree must be clean (`git status`). If it isn't, ask the user to commit or stash; don't commit for them.
2. `$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`.
3. Resolve any git conflict markers. Copier leaves them inline, and the files show as unmerged.
4. Run the verification steps from section 5 again.

Never edit `.copier-answers.yml` by hand. Change answers with `copier update --data`.
Pliki w paczce (2)
  • SKILL.md 6 KB
  • references/answers.md 5 KB

Wersje

W bazie nie ma innych skilli o nazwie full-zio-stack.

Migawka bazy z 13.11.2026 · wersja paczki f523cbd57546 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100zio-knowledge
    Podpowiada przy ZIO: efekty, fibery, STM, strumienie, testy, ZLayer i obsługę błędów w ekosystemie biblioteki.
  • 100zio-reference
    Pomaga pisać kod ZIO w Scali: serwisy przez ZLayer, błędy typowane i defekty, prymitywy współbieżności i unikanie antywzorców.
  • 90scala-play
    Pomaga budować aplikacje Scala Play: kontrolery MVC, Slick, JSON przez Play JSON, akcje asynchroniczne oraz testy.
  • 100scala-expert
    Wspiera pracę ze Scalą: programowanie funkcyjne, Akka, Cats, ZIO, systemy reaktywne i styl kodu.
  • 90scala-pro
    Pisze kod Scala z programowaniem funkcyjnym, systemami rozproszonymi i przetwarzaniem danych, w tym Pekko, Spark i ZIO.
  • 90zio-blocks-knowledge
    Dostarcza wiedzy o ZIO Blocks: instalacji, Schema z kodekami, zasobach, konfiguracji, HTTP i endpointach w języku Scala.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.