imagegen-frontend

imagegen-frontend is a cursor rule for Cursor from GktuOktay/ai-skills. It costs 0 tokens per session (1,878 once invoked), scanned A, original, MIT.

A guide for creating and using AI-generated images in web and mobile projects, including hero images, illustrations, icons, and marketing graphics.

In plain words
What is it for?
Use it to write image prompts, create web or mobile visuals, prepare UI assets, and integrate generated images into frontend projects.
Why use it?
It helps turn image ideas into consistent visual assets and fit them into a frontend asset workflow.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx sharp-cli --input ./src/images/*.png --output ./public/images/ --format webp --quality 80.

Good fit Use it to write image prompts, create web or mobile visuals, prepare UI assets, and integrate generated images into frontend projects.

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/GktuOktay/ai-skills
agentmods
npx agentmods add rules/gktuoktay/ai-skills/imagegen-frontend

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imagegen-frontend

README.md
[![agentmods](https://agentmods.dev/badge/rules/gktuoktay/ai-skills/imagegen-frontend/github.svg)](https://agentmods.dev/rules/gktuoktay/ai-skills/imagegen-frontend)
Your own site
<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/imagegen-frontend"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/imagegen-frontend/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for imagegen-frontend

Your own site · 80×15
<a href="https://agentmods.dev/rules/gktuoktay/ai-skills/imagegen-frontend"><img src="https://agentmods.dev/badge/rules/gktuoktay/ai-skills/imagegen-frontend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,878 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01878
Opus 5 $0.00000 $0.00939
Sonnet 5 $0.00000 $0.00376
Haiku 4.5 $0.00000 $0.00188

Measured 8d ago against content hash a3a1a3834e68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

imagegen-frontend scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/cursor/rules/imagegen-frontend.mdc · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Image Generation for Frontend — Web & Mobile

A unified guide for generating, integrating, and optimizing AI-created images across web and mobile frontend projects. Covers prompt engineering, asset pipeline, and platform-specific best practices.


1. Prompt Engineering for Frontend Assets

Prompt Structure Formula

[Subject] + [Style] + [Composition] + [Lighting] + [Color Palette] + [Technical Specs]

Style Presets by Use Case

Hero / Landing Page Backgrounds
Prompt pattern:
"Abstract [theme] background, smooth gradient, soft bokeh lights,
[brand color] and [accent color] palette, 16:9 aspect ratio,
high resolution, minimal, modern, clean negative space"

Example:
"Abstract geometric mesh background, smooth gradient transitions,
soft purple and indigo tones with subtle pink accents,
16:9 aspect ratio, 4K resolution, dark theme, minimal and premium feel"
App UI Illustrations (Onboarding, Empty States, Features)
Prompt pattern:
"Flat illustration of [scene/concept], [art style] style,
[2-3 colors] color scheme, clean vector look, white/transparent background,
centered composition, suitable for mobile app UI"

Example:
"Flat illustration of a person organizing tasks on a digital board,
minimal geometric style, blue and coral color scheme,
clean vector look, white background, centered, friendly and modern"
Product Mockups & Screenshots
Prompt pattern:
"[Device type] mockup displaying [UI description],
[environment/setting], professional product photography style,
soft studio lighting, shallow depth of field, [angle]"

Example:
"iPhone 15 Pro mockup displaying a fitness tracking dashboard,
on a minimal white desk with soft shadows,
professional product photography, 45-degree angle, studio lighting"
Icons & Small Assets
Prompt pattern:
"Single [object] icon, [style] style, [color] on [background],
simple, centered, 1:1 aspect ratio, suitable for app icon / UI icon"

Example:
"Single rocket icon, line art with gradient fill, purple to blue,
on transparent background, simple, centered, 1:1, modern SaaS style"

Read the full file on GitHub · 209 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 209 lines · 1,878 tokens per session scan A a3a1a3834e68

Subscribe to this mod's changes

imagegen-frontend is a cursor rule published in the GitHub repository GktuOktay/ai-skills (2 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,878 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.