How this skill is triggered — by the user, by Claude, or both
Slash command
/jack-tar-cloud:google-imageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate an image via Google Gemini/Imagen API.
Generate an image via Google Gemini/Imagen API.
PLUGIN_ROOT=$(python3 -c "
from pathlib import Path
import sys, os
if os.environ.get('JACK_TAR_CLOUD_ROOT'):
print(os.environ['JACK_TAR_CLOUD_ROOT']); sys.exit()
home = Path.home()
for base in [home / '.claude' / 'plugins' / 'cache']:
for p in base.rglob('jack-tar-cloud/.claude-plugin/plugin.json'):
print(str(p.parent.parent)); sys.exit()
dev = Path.cwd() / 'plugins' / 'jack-tar-cloud'
if dev.exists():
print(str(dev)); sys.exit()
print('NOT_FOUND')
" 2>/dev/null)
if [ -z "$PLUGIN_ROOT" ] || [ "$PLUGIN_ROOT" = "NOT_FOUND" ]; then echo "ERROR: jack-tar-cloud not found" && exit 1; fi
Parse $ARGUMENTS for:
output/google-YYYYMMDD-HHMMSS.png)1536x1024)draft → imagen-4.0-fast-generate-001 ($0.02)standard → gemini-3.1-flash-image-preview ($0.067) — defaultpremium → gemini-3-pro-image-preview ($0.134)If both --model and --tier are provided, --model takes precedence.
If neither is provided, defaults to standard tier (Nanobanana Flash).
PYTHONPATH="$PLUGIN_ROOT" python3 -c "
import os
configured = bool(os.environ.get('GOOGLE_CLOUD_PROJECT') or os.environ.get('GOOGLE_API_KEY'))
print('available' if configured else 'not_configured')
"
If not_configured, tell the user to set GOOGLE_API_KEY (or GOOGLE_CLOUD_PROJECT) and stop.
PYTHONPATH="$PLUGIN_ROOT" python3 -c "
import json
from src.generate_cloud_image import generate_cloud_image
result = generate_cloud_image(
prompt='$PROMPT',
provider='google',
output_path='$OUTPUT_PATH',
model='$MODEL',
)
print(json.dumps(result, indent=2))
"
If successful, report the file path, model used, and cost. If failed, report the error.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub stevegjones/jack-tar-deckhand --plugin jack-tar-cloud