SKILL.md
OneQuery Blog Images
Create OneQuery blog thumbnails and article diagrams that match the existing landing-site image system.
Core Workflow
- Inspect the target post under
apps/landing/src/landing/blog/posts/and the current image references. - Read
references/onequery-blog-image-system.mdbefore generating. - Use the built-in
image_genflow from theimagegenskill for generation. - Inspect the generated image with
view_imagebefore copying it into the repo. - Copy the selected generated image from
$CODEXHOME/generatedimages/...intoapps/landing/public/images/blog/. - Update the consuming post:
- Thumbnail/social image: set imageSrc to /images/blog/<file>.png. - Section diagram: add imageSrc, imageAlt, imagePlacement, images, or inlineImages on the relevant section.
- Validate references with
rg, verify dimensions withfile, and runbunx turbo typecheck --json --filter @onequery/landingafter TypeScript changes.
Hard Rules
- Do not leave project-referenced images only under
$CODEXHOME/generatedimages. - Do not overwrite existing image assets unless the user asked to replace them.
- Keep thumbnail diagrams simple and centered with at least 1/5 canvas width empty on every edge.
- Avoid readable text in thumbnails. Use icons, arrows, dots, tiles, and abstract diagram components instead.
- For article diagrams, allow short uppercase module labels only when they improve clarity.
- Use
assets/diagram-design-system.pngas the visual reference. Do not use the olddiagram-system-reference.pngname. - Do not use the filled app icon or OneQuery wordmark inside generated diagrams. Use the simplified line seal icon style when OneQuery is a diagram node.
Naming
- Thumbnail/social share image:
<post-slug>-icon.png. - In-article diagram:
<post-slug>-<diagram-topic>.png. - Keep paths under
apps/landing/public/images/blog/.