feat: update instructions

This commit is contained in:
2026-02-25 12:48:02 +07:00
parent 04848d2921
commit b09c034c99
3 changed files with 78 additions and 0 deletions
+10
View File
@@ -147,6 +147,16 @@ When generating HTML worksheets:
Use the `/gen-image` skill to generate images via the Banatie API. The skill has its own script and full API documentation in `.claude/skills/gen-image/`. Auth via `BANATIE_KEY` in `.env`. Rate limit: 100 requests/hour.
### Reference Policy for This Project
When generating new assets for `assets/items/`, use existing images from the same subfolder as `--ref` to maintain visual consistency across the set. For example, when creating `asteroid2.png`, reference `asteroid1.png` from the same folder. The gen-image skill's default policy is to ask before using refs — this project overrides that: use refs automatically for items in the same asset group.
Style reference chain for themed assets:
- `assets/items/asteroids/` — use any existing asteroid as ref for new ones
- `assets/items/crystals/` — use any existing crystal as ref for new ones
- `assets/icons/` — generate independently (icons have their own pipeline via icon packs)
- `assets/hero-images/`, `assets/footers/`, `assets/backgrounds/` — generate independently, no refs needed
## Background Removal
Script `src/scripts/remove-bg.mjs` removes white backgrounds from PNG icons using flood-fill from edges (like magic wand in Photoshop). Uses sharp. White areas inside objects are preserved.