This skill should be used when the user asks to "configure the Gemini API key", "set up GEMINI_API_KEY", "troubleshoot Gemini authentication", "fix MCP not configured errors", "check Gemini API key status", "the API key isn't working", or otherwise needs API-key setup or auth troubleshooting specifically for the gemini-creative-plugin. Covers the three configuration methods (env var, config file, configure_gemini_token tool), priority order, and diagnostic checks via get_configuration_status.
How this skill is triggered — by the user, by Claude, or both
Slash command
/gemini-creative-plugin:gemini-configureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up the Gemini Creative Plugin from scratch or troubleshoot configuration issues.
Set up the Gemini Creative Plugin from scratch or troubleshoot configuration issues.
Always start here:
get_configuration_status()
Returns one of:
✅ Configured via environment variable — best option, nothing to do✅ Configured via config file — working, but less secure❌ Not configured — follow setup belowThe server checks these in order — highest priority wins:
Most secure. Set once, works across all projects.
# Add to ~/.zshrc or ~/.bashrc
export GEMINI_API_KEY="your-key-here"
# Reload shell
source ~/.zshrc
Then restart Claude Code / the MCP server.
Saved to .gemini-creative-config.json in the MCP directory. Good for project-specific keys.
configure_gemini_token({ apiKey: "your-key-here" })
Note: This file should be in .gitignore — never commit API keys.
Use the same configure_gemini_token tool. Configuration is lost when the MCP server restarts. Only use for temporary testing.
Free tier: Check current pricing — limits vary by model.
"API key not configured"
→ Run get_configuration_status() to confirm the issue, then use one of the 3 methods above.
"No previous image found"
→ continue_editing and get_last_image_info require at least one image generated in the current server session. Generate one first with generate_image.
Images not appearing / generation failing
→ Check that GEMINI_API_KEY is set in the environment Claude Code was launched from (not just your terminal). Restart Claude Code after setting the env var.
"Maximum sessions (5) reached"
→ Run get_session_info() to list active sessions, then end_creative_session({ sessionId: "sess_xxx" }) to free slots.
Wrong output directory
→ Images default to ~/gemini-creative-images/ (macOS/Linux) or ~/Documents/gemini-creative-images/ (Windows). Use outputDirectory in start_creative_session to redirect to a project folder.
Session expired mid-project → Sessions auto-expire after 30 minutes of inactivity. Start a new session and resume — previous images are still on disk.
Calling generate_image, edit_image, or continue_editing without an active session automatically creates a temporary session (isTemporary: true). This session:
start_creative_sessionget_session_info() with its origin notednpx claudepluginhub 2901were/gemini-creative-plugin --plugin gemini-creative-pluginGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.