Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Konwersja i formaty

avatar-sheet

/avatar-sheet

Tnie wygenerowaną siatkę awatarów na pojedyncze pliki i rejestruje je w aplikacji jako nowe opcje awatarów.

Repozytorium
OpenPaw ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.08.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
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

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

Licencja

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

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: cut-sheet.sh

Co robi i kiedy

Tnie wygenerowaną siatkę awatarów na pojedyncze pliki i rejestruje je w aplikacji jako nowe opcje awatarów.

Wyzwalacze z opisu

cut these upadd these avatarsslice this sheet
Oryginalny opis (EN)

Slice a generated grid/contact sheet of avatar images into individual avatar files and register them in the app. Use when the user supplies a sheet of avatars (a 3x4 grid of character tiles, etc.) and wants them added as new avatar options, or says "cut these up", "add these avatars", "slice this sheet".

Jak działa

  1. When to Use
  2. Where things live
  3. Steps
  4. Why the script detects geometry instead of dividing the canvas
  5. Notes
Sekcje z nagłówków SKILL.md, w oryginale · 88 linii, 580 słów
Podgląd SKILL.md
---
name: avatar-sheet
description: Slice a generated grid/contact sheet of avatar images into individual avatar files and register them in the app. Use when the user supplies a sheet of avatars (a 3x4 grid of character tiles, etc.) and wants them added as new avatar options, or says "cut these up", "add these avatars", "slice this sheet".
allowed-tools: Bash, Read, Edit, Glob, Grep
---

# Avatar Sheet Skill

Turns an AI-generated grid of avatar tiles into numbered avatar files the app can
offer, then wires them into the preset lists.

## When to Use
- The user drops one or more image sheets (grids of character tiles) and wants
  them available as agent avatars.
- Adding to the existing `/avatars/avatar-N.webp` set.

## Where things live

| Thing | Path |
|---|---|
| Avatar files | `web/frontend/public/avatars/avatar-<N>.webp` |
| Format | 256x256 WebP, full-bleed square |
| Preset list (agent edit) | `web/frontend/src/pages/AgentEdit.tsx` — `PRESET_AVATARS` |
| Preset list (first-run setup) | `web/frontend/src/pages/Setup.tsx` — `PRESET_AVATARS` |
| Quick-pick list (create modal) | `web/frontend/src/pages/Agents.tsx` — hardcoded first few |

Both `PRESET_AVATARS` are `Array.from({ length: N }, ...)` — adding avatars means
bumping that single `N` in **both** files, not editing a list.

## Steps

1. **Inspect the sheet.** Read the image to count columns/rows and note the
   subject order. Do not assume 3x4.

2. **Find the next free index:**
   ```bash
   ls web/frontend/public/avatars/ | sed 's/[^0-9]//g' | sort -n | tail -1
   ```

3. **Cut**, one invocation per sheet, continuing the numbering:
   ```bash
   bash .claude/skills/avatar-sheet/cut-sheet.sh <sheet.png> <cols> <rows> \
     web/frontend/public/avatars <start-index>
   ```
   Cut to a scratch directory first if you want to eyeball before installing.

4. **Verify visually — do not skip this.** Montage the output and Read it:
   ```bash
   magick montage <dir>/avatar-{46..57}.webp -tile 3x4 -geometry 160x160+3+3 \
     -background '#0a0a0a' /tmp/check.png
   ```
   Confirm the order matches the source sheet and nothing is clipped. To catch
   gutter slivers, montage on `-background '#00ff00'` — any green bleeding into a
   tile means the crop ran past the card edge.

5. **Register**: bump `length: N` in `AgentEdit.tsx` and `Setup.tsx` to the new
   highest index.

6. **Build**: `cd web/frontend && npx tsc -b && npm run build` (avatars are
   served from `public/`, but the frontend must be rebuilt for the embedded
   binary to see them).

## Why the script detects geometry instead of dividing the canvas

**These sheets are not perfect grids.** Generated sheets vary in outer margin and
gutter width, and individual tiles differ by a pixel or two in size and position.
Slicing by `width/cols` puts a sliver of the neighbouring card in every crop and
drifts further across the sheet. The script instead thresholds the image, finds
each card with connected-component analysis, and crops from each card's own
measured origin.

Two traps that produced visibly wrong output, both now handled:

- **`area-threshold` MERGES, it does not filter.** Components below the threshold
  are absorbed into their surroundings, so a value near one cell's area collapses
  the entire grid into a single blob. Keep it well under a cell (the script uses
  cell/8 and sweeps cell/16, cell/4).

- **Rows need a tolerance, not an exact sort.** Tiles in one visual row can sit
  at y=37 and y=38. Sorting by `(y, x)` then puts the y=38 middle tile *after*
  the y=37 right-hand tile and the row comes out shuffled — subtly wrong output
  that compiles and looks plausible. The script buckets y into rows with a
  half-tile tolerance before ordering by `(row, x)`.

The script refuses to write anything unless it detects exactly `cols*rows` tiles,
so a bad threshold fails loudly instead of producing misaligned avatars.

## Notes
- Tiles keep their rounded-corner artwork; the corners are dark and the UI
  renders avatars inside a rounded container, so they read as full-bleed.
- `-resize NxN!` forces the square: source tiles are near-square but not exact,
  and avatars must all match at 256x256.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • cut-sheet.sh 4 KB

Wersje

W bazie nie ma innych skilli o nazwie avatar-sheet.

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

Pobrania w ostatnich 30 dniach: 3 · ranking

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

Podobne skille

  • 100awesome-agent-avatars
    Dodaje animowanego, interaktywnego awatara agenta AI do aplikacji webowej lub desktopowej, reagującego na aktywność agenta.
  • 95bot-guide-avatars
    Pomaga zdecydować, czy bot ma być osobnym projektem, trwałym awatarem czy efemerycznym demonem i wskazuje właściciela tworzenia awatarów.
  • 90Face
    Przygotowuje krótkie listy awatarów dla agenta lub profilu, z wyborem płci, przejrzystymi opcjami i linkami do profili.
  • 100roblox-avatar-creator
    Działa jako specjalista od awatarów Roblox: tworzy przedmioty UGC, rigguje akcesoria i przygotowuje zgłoszenia do Creator Marketplace.
  • 100avatar-render
    Renderuje awatara three.ws w czacie, tworzy gotowy kod osadzenia i pobiera jego metadane przez narzędzia MCP.
  • 90text-to-avatar
    Generuje trójwymiarowy awatar GLB z opisu tekstowego albo zdjęcia, np. postaci lub osoby, w płatnej ścieżce rozliczanej w USDC.

Uwagi i zgłoszenia

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