Skip to content
Back to skills

099 Interactive 4336ee42

ASecurity

This interactive flowchart shows the decision tree for generating book cover images using the `generate-cover.sh` script. The workflow adapts based on your available resources: OpenAI API billing, ChatGPT Pro subscription, and operating system. <iframe src="./main.html" width="100%" height="600px" scrolling="no" style="border: none;"></iframe> [View Fullscreen](./main.html){ .md-button .md-button--primary }

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 31, 2026
toolsbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned May 31, 2026

npx -y skills add tools-only/X-Skills --skill 099-interactive_4336ee42 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 099 Interactive 4336ee42?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 099 Interactive 4336ee42
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-099-interactive-4336ee42/badge)](https://www.skillsdirectory.com/skills/tools-only-099-interactive-4336ee42)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Cover Image Generation Workflow

This interactive flowchart shows the decision tree for generating book cover images using the `generate-cover.sh` script. The workflow adapts based on your available resources: OpenAI API billing, ChatGPT Pro subscription, and operating system.

<iframe src="./main.html" width="100%" height="600px" scrolling="no" style="border: none;"></iframe>

[View Fullscreen](./main.html){ .md-button .md-button--primary }

## Overview

The cover image generation script supports three modes of operation:

1. **Full Auto Mode** - Requires OpenAI API with active billing
2. **Local Prompt + Browser Mode** - Requires ChatGPT Pro and macOS
3. **Local Prompt + Manual Mode** - Requires ChatGPT Pro (any OS)

## Decision Points

### HAS_OPENAI_API_KEY

Checks if the `OPENAI_API_KEY` environment variable is set. This is required for any API-based operations.

```bash
export OPENAI_API_KEY='your-key-here'
```

### API Billing Active

Even with a valid API key, your OpenAI account must have active billing enabled. The script tests this by making a simple API call.

- **If billing is active**: Use full auto mode for seamless image generation
- **If billing is not active**: Fall back to ChatGPT Pro workflow

### HAS_CHATGPT_PRO

ChatGPT Pro/Plus subscription ($20/month) allows you to generate images through the ChatGPT interface. This is separate from API billing.

### ON_MACOS

The `--open-browser` flag uses AppleScript to automate browser interaction, which only works on macOS.

## Usage Commands

### Full Auto Mode (API billing required)
```bash
./generate-cover.sh
```

### Local Prompt with Browser Automation (macOS + ChatGPT Pro)
```bash
./generate-cover.sh --open-browser
```

### Local Prompt Only (ChatGPT Pro, any OS)
```bash
./generate-cover.sh --local-prompt
```

## Output

All modes produce a cover image saved to:
```
docs/img/cover.png
```

**Specifications:**
- Size: 1200x630 pixels
- Aspect Ratio: 1.91:1 (Open Graph standard)
- Format: PNG

## Related Resources

- [Image Generation README](https://github.com/dmccreary/claude-skills/tree/main/src/image-generation)
- [OpenAI Billing Setup](https://platform.openai.com/account/billing)
- [ChatGPT Plus](https://openai.com/chatgpt/pricing)

Files in this skill

  • README.md997 B
  • skill.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…