betterlife-image-generation
/betterlife-image-generation
Generuje codzienne obrazy do mediów społecznościowych przez API kie.ai na podstawie zdjęć referencyjnych z Dysku Google.
- Autor
- JPeetz ↗
- Repozytorium
- agent-skills ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 2
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Generuje codzienne obrazy do mediów społecznościowych przez API kie.ai na podstawie zdjęć referencyjnych z Dysku Google.
Oryginalny opis (EN)
Use this skill when an agent needs to generate BetterLife daily social media images via kie.ai's grok-imagine/image-to-image model, conditioned on Mira reference photos from Google Drive. Activates for the morning social post generation pipeline. Includes the full API payload, reference selection rules, character anchor, prompt composition, anti-repetition system, and fallback model. Authorized use only — never hardcode credentials.
Jak działa
- Architecture
- Credentials
- Reference images (Supabase S3 storage)
- Character anchor
- Prompt composition
- kie.ai API call
- Key parameters
- Post-generation
Podgląd SKILL.md
---
name: betterlife-image-generation
description: >
Use this skill when an agent needs to generate BetterLife daily social media
images via kie.ai's grok-imagine/image-to-image model, conditioned on Mira
reference photos from Google Drive. Activates for the morning social post
generation pipeline. Includes the full API payload, reference selection rules,
character anchor, prompt composition, anti-repetition system, and fallback
model. Authorized use only — never hardcode credentials.
version: 1.0.0
author: Hermes Agent
license: MIT
compatibility: >
Cross-platform: Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Windsurf,
Gemini CLI, OpenClaw, Hermes Agent, and any SKILL.md-compatible agent.
tags:
- betterlife
- image-generation
- kie-ai
- social-media
- mira
- character-consistency
- image-to-image
platforms:
- claude-code
- codex
- cursor
- gemini-cli
- openclaw
- hermes-agent
---
# BetterLife Daily Social Image Generation (kie.ai image-to-image)
Generate the daily BetterLife social media image using **kie.ai's grok-imagine/image-to-image**
model, conditioned on Mira reference photos from Google Drive. This is **image-to-image**,
not text-to-image — the model generates from reference images, not from a prompt alone.
## Architecture
```
Compose Prompt (scene + attire + mood + angle)
→ Select 8 Mira reference images (5 for grok) from 20 GDrive photos
→ Send to kie.ai grok-imagine/image-to-image (strength 0.85)
→ Fallback: flux-2/flex-image-to-image on failure
→ Save to ~/workspace/tool-image-generation/
```
## Credentials
- **KIE_API_KEY** — for the kie.ai API
- Read from credential source by label — never hardcode.
## Reference images (Supabase S3 storage)
Reference images are stored in Supabase storage at:
`https://dbbppsbtpsahdkmevxgm.supabase.co/storage/v1/object/public/instagram_images/`
File naming: `{character}_reference_{nn}_{pose}.jpg`
### Reference selection
- **Face anchors (MANDATORY):** front + 3/4 angle references. Always in the first 2 slots.
- **Pose refs (3-6 remaining):** scored by tag overlap with scene keywords, randomly sampled
from top 14. Grok caps at 5 total refs, flux at 8.
## Character anchor
```
Mira, a wellness coach with natural beauty, shoulder-length dark hair,
warm olive skin, kind eyes, minimal makeup
```
## Prompt composition
Format: `{anchor}, {scene}. {attire}. {detail}. {mood} {accent}. Premium editorial wellness photography, {angle}, no text, no watermarks.`
Components picked combinatorially to avoid repeats: 36 scenes, 8 attires, 10 details, 6 moods, 8 angles, 4 accents.
## kie.ai API call
```json
POST https://api.kie.ai/api/v1/jobs/createTask
{
"model": "grok-imagine/image-to-image",
"input": {
"prompt": "<composed prompt>",
"image_urls": ["<5 ref URLs>"],
"strength": 0.85,
"aspect_ratio": "1:1", "resolution": "1K", "output_format": "jpg"
}
}
```
Poll GET /api/v1/jobs/recordInfo?taskId={id} every 2s until state=="success".
**Fallback:** flux-2/flex-image-to-image (uses `input_urls`, allows 8 refs).
## Key parameters
- **strength 0.85** — higher = more Mira-likeness, lower = more prompt-driven scene
- **Known limitation:** at strength 0.85 with the same 20 refs, output is structurally dominated
by the refs. Scene words shift background but not composition. For genuine variety, lower
strength or add shot-size/framing contrast per variant.
## Post-generation
1. Image saved to `~/workspace/tool-image-generation/betterlife-{theme}-{date}-v{n}.jpg`
2. Review JSON at `/tmp/bl-social-review.json`
3. Posted via `bl_social_post.py` on approval
Pliki w paczce (3)
- CHANGELOG.md 1 KB
- SKILL.md 4 KB
- evals/evals.json 2 KB
Wersje
W bazie nie ma innych skilli o nazwie betterlife-image-generation.
Migawka bazy z 13.11.2026 · wersja paczki fc6d4f8094af (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100image-generation
Generuje obrazy postaci, scen, produktów i innych treści wizualnych na podstawie ustrukturyzowanych promptów oraz obrazów referencyjnych. - 100kie-skills
Uruchamia modele KIE do obrazów, muzyki i mowy, podaje koszty i saldo kredytów oraz zapisuje media w projekcie. - 96gpt-image-2
Tworzy i edytuje obrazy przez Pilio GPT Image 2: generowanie z tekstu, edycja na podstawie promptu, zmiana stylu, przekształcanie zdjęć produktowych i kompozycja z lokalnych obrazów referencyjnych. - 95xai-grok-imagine-image
Generuje i edytuje obrazy produkcyjne przez API xAI Grok Imagine, z wyborem modelu, referencjami i kontrolą kosztów. - 90kie-image
Generuje obrazy, wideo, muzykę, mowę i czat modelami KIE.ai, optymalizuje prompt i pokazuje wynik w rozmowie. - 100image-generation
Generuje i edytuje obrazy przez API Google Gemini, OpenAI GPT Image, xAI Grok Image i OpenRouter za pomocą skryptów powłoki.