Trello Set Thumbnail Skill
Add or update a thumbnail frontmatter field in imported Trello card notes, using the first image found in each file.
When to Use
- After running
trello-import(and optionallytrello-media-download) - When card notes should have a
thumbnailfield pointing to their first image
Bundled Script
The thumbnail setter script is bundled at scripts/set_thumbnail_frontmatter.py. Run from the repository root:
python3 .claude/skills/trello-set-thumbnail/scripts/set_thumbnail_frontmatter.py
Options
| Flag | Description |
|---|---|
--root PATH |
Directory to scan (default: TRELLO_IMPORT) |
--pattern GLOB |
File pattern under root (default: **/index.md) |
--field NAME |
Frontmatter field name to set (default: thumbnail) |
Behavior
- Scan each Markdown file for the first
image link in the body (below frontmatter) - Add or update the
thumbnailfield in YAML frontmatter with that image target - Remove any legacy
thumnbnail(typo) field if present - Skip files without frontmatter or without images
Recommended Workflow
- Run
trello-importto generate card notes. - Run
trello-media-downloadto localize images. - Run
trello-set-thumbnailto populate frontmatter thumbnails.