Add asset-generation skill for image generation via Gemini

This commit is contained in:
2026-03-03 17:04:48 +01:00
parent 9d8e0e1024
commit 10303dad09
2 changed files with 99 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
# asset-generation
Generate images from text prompts using the Gemini API.
## Setup
### 1. Get a Gemini API key
1. Go to [Google AI Studio](https://aistudio.google.com/apikey)
2. Create a new API key
### 2. Configure the key
Add to your `.env.tools` file in the project root:
```
GEMINI_API_KEY=your_key_here
```
Make sure `.env.tools` is in your `.gitignore` — never commit API keys.
### 3. Verify it works
```bash
node asset-generation/scripts/generate-image.mjs \
--prompt "a simple blue circle on white background" \
--output assets/test.png
```
## Usage
```bash
node asset-generation/scripts/generate-image.mjs \
--prompt "description of the image" \
--output assets/my-image.png
```
See `SKILL.md` for the full workflow.