Dorkroom's Open Graph image pipeline — regenerate OG images and metadata after adding or changing a route, page, or API endpoint. Covers ROUTE_TITLES/ROUTE_DESCRIPTIONS, the Lucide icon map in api/og.tsx, dynamic metadata in api/meta.ts, and the local preview script. Use when adding a route, renaming a page, or changing an API endpoint's metadata.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Og Image Routes?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/narrowstacks-og-image-routes)
---
name: og-image-routes
description: Dorkroom's Open Graph image pipeline — regenerate OG images and metadata after adding or changing a route, page, or API endpoint. Covers ROUTE_TITLES/ROUTE_DESCRIPTIONS, the Lucide icon map in api/og.tsx, dynamic metadata in api/meta.ts, and the local preview script. Use when adding a route, renaming a page, or changing an API endpoint's metadata.
---
# Dorkroom OG images
Dorkroom generates OG images **at runtime** from `api/og.tsx`. There are no
committed PNGs and no dedicated page to screenshot.
## When to run this
Adding a new route/page, modifying an existing route, or changing an API
endpoint that has metadata.
## Procedure
1. **Update `ROUTE_TITLES` and `ROUTE_DESCRIPTIONS` in both
`utils/routeMetadata.ts` and `packages/ui/src/lib/navigation.ts`** — they are
verbatim copies, and `tools/__tests__/route-metadata-sync.test.ts` fails if
they diverge.
2. **Update `api/og.tsx`** — add a Lucide icon for the new route in
`getRouteIcon()`. The card's accent is the page's manifest tone: if the
new tool has an `accent` in `TOOL_LIST` (`packages/ui/src/lib/navigation.ts`),
add the same route and tone to `ROUTE_ACCENT_TONES` in
`utils/routeMetadata.ts` (`tools/__tests__/route-accent-sync.test.ts`
fails until you do). Download the SVG from
`unpkg.com/lucide-static@latest/icons/<name>.svg` to get exact element data.
3. **Update `api/meta.ts`** if the route needs dynamic metadata (query params
like `film`, `developer`). Calculator link params need no edit here: both
`meta.ts` and `og.tsx` read them from
`packages/logic/src/constants/calculator-link-params.ts` through
`utils/calculatorShare.ts`. A new calculator link needs an entry in that
module's route map and a builder (title, description, drawing).
4. **Regenerate previews** — run `bun run scripts/preview-og.tsx` and visually
verify the output in `og-previews/` (generated; gitignored).
## Notes
- `ROUTE_TITLES` is also consumed elsewhere in the app — keep it in sync with
the route definitions, not just with the OG output.
- Verify the icon renders: a missing entry in `getRouteIcon()` falls through to
the default icon rather than failing loudly.