Windows-compatible fork of buildatscale-tv/claude-code-plugins
Generate images directly in Claude Code using Google Gemini models:
- Flash model - Fast generation (1024px)
- Pro model - Professional quality (up to 4K)
# Example: Generate a hero image
uv run "${SKILL_DIR}/scripts/image.py" --prompt "Modern tech landing page hero" --output "./hero.png"This fork resolves the Windows compatibility issue where bash hooks fail with:
Error: Could not fork child process: There are no available terminals (-1).
| Feature | Original | This Fork |
|---|---|---|
| Hooks | Bash scripts with python3/jq |
Node.js scripts (cross-platform) |
| Dependencies | python3, jq, sed |
Only Node.js (already required by Claude Code) |
| Windows Support | ❌ Broken | ✅ Works |
| macOS/Linux | ✅ Works | ✅ Works |
/plugin marketplace add https://github.com/r1di/claude-code-plugins-windowsCore features (slash commands and hooks):
/plugin install buildatscale@buildatscale-claude-code-windowsImage generation skill:
/plugin install nano-banana-pro@buildatscale-claude-code-windows- Node.js - Already installed if you're using Claude Code ✅
-
Install uv - Python package manager:
PowerShell (as Administrator):
irm https://astral.sh/uv/install.ps1 | iex
Or with pip:
pip install uv
-
Set
GEMINI_API_KEYenvironment variable:PowerShell (temporary - current session only):
$env:GEMINI_API_KEY = "your-api-key-here"
PowerShell (permanent - persists after restart):
[Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "your-api-key-here", "User")
Or via Windows GUI:
- Press
Win + S, search "Environment Variables" - Click "Edit environment variables for your account"
- Click "New" under User variables
- Variable name:
GEMINI_API_KEY - Variable value: Your Google AI API key
- Click OK and restart Claude Code
Get your API key: Google AI Studio
- Press
Slash Commands:
/buildatscale:commit- Create commit message(s) for staged/unstaged changes/buildatscale:pr- Create pull request with GitHub CLI/buildatscale:ceo- Create executive summary of recent work
Hooks (Windows-compatible):
block-force-git- Prevents dangerous git force operationsfile-write-cleanup- Cleans up trailing whitespace after file edits
Generate images using Google's Gemini models.
Available Models:
| Model | Best For | Max Resolution |
|---|---|---|
| Flash (default) | Speed, high-volume | 1024px |
| Pro | Professional quality | Up to 4K |
Usage:
uv run "${SKILL_DIR}/scripts/image.py" \
--prompt "Your image description" \
--output "C:\path\to\output.png"If you previously installed the original buildatscale plugin:
- Close Claude Code completely
- Delete the plugin cache:
Remove-Item -Recurse -Force "$env:USERPROFILE\.claude\plugins\cache\buildatscale-claude-code"
- Restart Claude Code
- Install this Windows fork instead
Make sure you:
- Set the environment variable with the permanent method (not temporary)
- Restarted Claude Code after setting the variable
- The key has no extra spaces or quotes
Restart your terminal/PowerShell after installing uv, or add it to PATH manually:
$env:PATH += ";$env:USERPROFILE\.local\bin".
├── .claude-plugin/
│ └── marketplace.json # Plugin registry (Windows fork metadata)
├── plugins/
│ ├── buildatscale/
│ │ ├── commands/
│ │ │ ├── ceo.md
│ │ │ ├── commit.md
│ │ │ └── pr.md
│ │ └── hooks/
│ │ ├── block-force-git.sh # Bash wrapper
│ │ ├── block-force-git.js # Node.js implementation
│ │ ├── block-force-git.ps1 # PowerShell alternative
│ │ ├── file-write-cleanup.sh
│ │ ├── file-write-cleanup.js
│ │ └── file-write-cleanup.ps1
│ └── nano-banana-pro/
│ └── skills/
│ └── generate/
│ ├── SKILL.md
│ └── scripts/
│ └── image.py
└── README.md
- Original Plugin: BuildAtScale
- Windows Fork: r1di
MIT (same as original)