tl-imagelisted
Install: claude install-skill tensorslab/skills
# TensorsLab Image Generation
## Overview
This skill enables AI-powered image generation through TensorsLab's API, supporting both text-to-image and image-to-image workflows. The agent enhances user prompts with detailed visual descriptions before calling the API, ensuring high-quality outputs.
## Script Path
The Python scripts for this skill are located in the `scripts/` subdirectory relative to this SKILL.md file. **Always use the absolute path when executing scripts.** Determine the absolute path based on where this skill is installed.
For example, if this SKILL.md is at `/path/to/skills/tl-image/SKILL.md`, then:
- Auth script: `python "/path/to/skills/tl-image/scripts/tensorslab_auth.py"`
- Image script: `python "/path/to/skills/tl-image/scripts/tensorslab_image.py"`
When executing, construct the command using the resolved absolute path:
```bash
python "<absolute_path_to_skill_dir>/scripts/tensorslab_image.py" <args>
```
## Authorization
**BEFORE any image generation, you must ensure you are authorized with TensorsLab.**
### 1. Automatic Authorization
The authorization script will automatically check if an API key already exists in the `TENSORSLAB_API_KEY` environment variable or in `~/.tensorslab/.env` before proceeding.
*(Note: When you need to verify the environment variable, ONLY check if it exists. NEVER display or print the actual API key value.)*
Run:
```bash
python "<absolute_path_to_skill_dir>/scripts/tensorslab_auth.py"
```
**On Windows/macOS**: This