Skip to content
Back to skills

Add Bat Image

ASecurity

Attach or upload bat images for BatDigest by generating a feature image from a long cutout, creating image variants, uploading to R2, and updating data/images.yaml. Use when asked to add/attach/upload bat images, generate bat image variants, or update images.yaml entries for a bat listing.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspythonbashflask

Security analysis

A100/100

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

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill add-bat-image --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Bat Image?

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

Security grade badge for Add Bat Image
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-add-bat-image/badge)](https://www.skillsdirectory.com/skills/david-li0406-add-bat-image)

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
---
name: add-bat-image
description: Attach or upload bat images for BatDigest by generating a feature image from a long cutout, creating image variants, uploading to R2, and updating data/images.yaml. Use when asked to add/attach/upload bat images, generate bat image variants, or update images.yaml entries for a bat listing.
---

# Add Bat Image

## Overview

Generate BatDigest image variants from a provided long cutout, upload them to R2, and register the resulting static paths in `data/images.yaml` for the correct bat id.

## Workflow

1) Confirm the target bat and images
- Verify the bat id in `data/bats.yaml` and capture `year`, `brand`, `model`, and `league`.
- Require a long cutout image in `AGENTS/Content_Creation/BAT_LISTINGS_Agent/Image_Processing/`.
- If a matching feature image is already present, use it; otherwise generate it.

2) Generate a feature image (if missing)
- Run `create_feature_bat.py` and save the output next to the long image.
- Naming rule: if the long filename contains `Long`, replace with `Feature`; otherwise append ` Feature` before the extension.

3) Generate variants and upload to R2
- Run `process_and_upload_bat_images_to_r2.py` using the bat metadata and the feature/long image paths.
- Capture the `static_paths` output from the script (do not hand-write URLs).

4) Update `data/images.yaml`
- Add a new entry under `images: <BAT_ID>:` if missing.
- Set `feature_large`, `feature_carousel`, `feature_thumb`, `long_large`, `long_400`, and `long_300` using the script output.
- Keep `feature_full` and `long_full` blank unless original source paths are provided.
- Do not overwrite existing image entries unless the user explicitly requests it.

## Paths and Commands

Repository defaults:
- Repo root: `~/Coding_Projects/batdigest-flask`
- Images staging: `AGENTS/Content_Creation/BAT_LISTINGS_Agent/Image_Processing/`

Commands:
```bash
python AGENTS/Content_Creation/BAT_LISTINGS_Agent/create_feature_bat.py --input "<LONG_IMAGE_PATH>" --output "<FEATURE_IMAGE_PATH>"
```

```bash
python3 AGENTS/Content_Creation/BAT_LISTINGS_Agent/process_and_upload_bat_images_to_r2.py \
  --year <YEAR> \
  --brand "<BRAND>" \
  --model "<MODEL>" \
  --league <bbcor|usssa|usa|fastpitch> \
  --feature-image "<FEATURE_IMAGE_PATH>" \
  --long-image "<LONG_IMAGE_PATH>"
```

## References

For full details and edge cases, read `references/Bat_Image_Attach_Agent.md`.

Files in this skill

  • SKILL.md2.4 KB
  • references/Bat_Image_Attach_Agent.md3.9 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…