gabrielebolognese

PinterestPoster — Development skill for Claude Code

Development community

Personal Pinterest autoposter: drop images in a folder and a nightly Node.js scan converts them with sharp, writes title, description and alt text with the Claude CLI and schedules one Pin every two d.

How to install PinterestPoster

This entry records only its repository, not the path inside it, so there is no exact command to give. Open gabrielebolognese/pinterestPoster and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What PinterestPoster does

Personal Pinterest autoposter: drop images in a folder and a nightly Node.js scan converts them with sharp, writes title, description and alt text with the Claude CLI and schedules one Pin every two days. A GitHub Actions workflow then publishes each Pin through the Pinterest API v5.

Alternatives in Development

README

pinterest-autopost

A personal automation that turns a folder of images into scheduled Pinterest Pins. You drop images into the project folder; a runner that lives in the background on a Windows PC scans the folder every night, converts each new image to a light JPEG, has the `claude` CLI write its title, description and alt text, and gives it a date in a posting calendar. The same runner publishes each Pin through the official Pinterest API (v5) when its time comes.

Everything runs on the PC. The PC has to be on (or asleep with wake timers allowed) for a Pin to go out at its time; a Pin whose time passed while the PC was off is posted when the PC is back, up to 24 hours late.

It is built for a single account owner who posts image Pins to one board. The caption prompt is written for a calisthenics and handstand training account (see `lib/caption.mjs`).

Features

**Runner (`runner.mjs`)**

  • One background process, started at login with no window. Only one can run at a time (lock file in logs/).
  • Once a night, from 02:00 on, it runs the scan. If the PC was off at 02:00, the scan runs as soon as the runner starts.
  • Every minute it posts the Pins whose time has come.
  • Until the Pinterest login exists it only waits: nothing is scheduled or posted.
  • Writes every action to logs/runner.log.

**Night scan (`scan.mjs`)**

  • Picks up .png, .jpg, .jpeg and .webp files in the project root, oldest first. Files changed in the last 5 minutes wait for the next scan.
  • Detects duplicates by SHA-256 of the file content against everything in queue/ and posted/, and moves them to duplicates/.
  • Converts each image with sharp to an auto-rotated JPEG (1440 px wide at most, quality 88 by default).
  • Runs the claude CLI on the JPEG to write a title (max 100 characters), description (max 500) and alt text (max 400), checked against a JSON schema. Titles already used on other Pins are passed in so new ones differ.
  • Assigns each image a slot: everyDays aft