Field notes post

From raphaeltm/simple-agent-manager · View interactive version

Field notes post is an AI agent skill from the GitHub repository raphaeltm/simple-agent-manager. Generate a set of four on-brand "field notes" social media images (landscape hero, landscape grid, portrait timeline, vertical story) from a batch of user photos plus the day's SAM agent activity. Use when the user uploads photos from a walk/trip/day and wants social post images showing what their a

How to use this skill

Skill file

Field Notes Post Generator

Produce four polished social images that pair the user's photos with a timeline of what SAM agents accomplished, rendered from branded HTML templates via Playwright.

Output

Four PNG images (rendered at 2x device scale):

| Template | Size | Format | Use |

|----------|------|--------|-----|

| format-a.html | 1200x675 | Landscape "grid" — timeline column + 2x2 photo grid + centered map medallion | X / LinkedIn link-style card |

| format-b.html | 1080x1350 | Portrait "timeline" — header + map card, 4 photo+card rows on a connector rail | X / LinkedIn portrait (4:5) |

| format-c.html | 1200x675 | Landscape "hero" — one full-bleed photo, headline, 4 glass cards, map inset | X / LinkedIn hero card |

| format-d.html | 1080x1920 | Vertical "story" — full-bleed photo, headline, map + stats, stop rail (9:16) | Stories / Reels / Shorts covers |

All templates live in templates/ next to this file, plus map.html (Leaflet pin map) and render.cjs (Playwright renderer).

Workflow

Work in a scratch dir: .tmp/field-notes-post/ with an assets/ and out/ subfolder.

1. Gather inputs

2. Pick the story

Choose ~4 photos that span the day and pair each with a concrete agent milestone (kickoff, debugging, parallel work, deploy green). Each stop gets: HH:MM · Place name + one line of copy with a single <b>bold</b> highlight.

Copy rule — never use em dashes. Absolutely no em dashes (—) in any copy across all four images (headlines, subtitles, stats, stop copy). Rewrite the sentence or use a period, comma, or colon instead.

3. Prepare assets into `assets/`

4. Fill the templates

Copy the four format-*.html templates into the scratch dir. Per-run replacements (everything else is fixed brand chrome):

Brand tokens are baked into the templates (from apps/www/src/styles/global.css): bg #070d0b, fg #e6f2ee, muted #9fb7ae, accent #16a34a→#22c55e, Chillax display font, mono uppercase labels, glass cards.

5. Render

Playwright setup (once per environment):

npx playwright install chromium-headless-shell
sudo npx playwright install-deps chromium   # if shared libs are missing

Render (from the scratch dir; NODE_PATH points at the npx playwright cache if playwright isn't installed locally — find it with ls ~/.npm/_npx/*/node_modules/playwright 2>/dev/null):

NODE_PATH=<playwright-node_modules> node render.cjs \
  format-a:1200x675 format-b:1080x1350 format-c:1200x675 format-d:1080x1920

6. Visual audit (mandatory, loop until clean)

Read every rendered PNG and check:

Fix the HTML and re-render until all four pass.

7. Deliver

Upload each PNG via upload_to_library (directory like /marketing/<slug>/, tags marketing, social-post, draft), then show them with display_from_library with a short caption per format. Ask the user which format(s) they want to post.

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.