GenAI Mesh Gradient skill
Turn a visual brief into editable Figma gradients, layered SVG artwork or a parameterized browser rendering.
Community · Yanice Yang (9929y)| Author | Yanice Yang (9929y) |
|---|---|
| Licence | MIT |
| Source | 9929y/genai-mesh-gradient · SKILL.md on GitHub |
| Works in | Claude Code · Codex, Gemini CLI, Cursor, Copilot |
| Read from the source on |
The genai-mesh-gradient skill converts a visual brief into a recipe for colour masses, composition, softness and a protected text zone.
It chooses native Figma layers, layered SVG or browser code. The package contains procedural helpers, not trained diffusion models or model weights.
From the skill's SKILL.md: Build the still first
What it does
- Chooses a rendering route, builds a still, inspects the full image and a crop, then adjusts the dominant mismatch.
What you get
- Editable Figma layers, layered SVG, browser rendering code or flattened exports, depending on the chosen route.
When to use it
- You need a gradient cover or hero with a deliberate palette and readable foreground text.
When not to use it
- You need a diffusion model or a guaranteed pixel-identical reconstruction.
What it needs
- Figma write access for native layers; an SVG-capable route otherwise. The bundled SVG renderer uses Python 3 standard library only. External image tools have separate costs.
Files in the skill
| File or folder | What it is for |
|---|---|
SKILL.md | Recipe, rendering route and inspection workflow. |
references/ | Art direction, Figma recipes, effects and motion notes. |
scripts/figma_native.js | Native Figma construction helper, requiring a write-capable connector. |
Licence as found in the repository on 2026-11-15: MIT.
Example prompts
Type one of these after installing; naming the skill makes sure it is used.
- Make a blue and apricot gradient with a quiet title area.
- Compare three palettes using the same geometry and seed.
- Rebuild this gradient as editable SVG; describe approximations.
How to install genai-mesh-gradient
Check the rendering route
Keep scripts, references and design assets with the root SKILL.md. A skill install does not establish a Figma connection or grant write permissions.
A skill is a folder with a SKILL.md file. You install it once; the agent reads its short description at the start of each session and loads the full instructions only when a request matches. Pick the place you use:
Claude Code: copy the folder into your skills folder
Put the skill's folder in ~/.claude/skills/ to use it in every project on this computer, or in .claude/skills/ inside a repository to share it with everyone who works there (commit it).
git clone --depth 1 https://github.com/9929y/genai-mesh-gradient.git
mkdir -p ~/.claude/skills/genai-mesh-gradient
git -C genai-mesh-gradient archive HEAD | tar -x -C ~/.claude/skills/genai-mesh-gradientClaude Code notices new or changed skills in these folders during the session. If the skills folder did not exist when the session started, run /reload-skills once. Then type /genai-mesh-gradient or just describe the task.
On Windows, run the commands in Git Bash or WSL, or copy the folder into the same place with File Explorer.
Codex, Gemini CLI, Cursor and GitHub Copilot
These agents read the same SKILL.md folders. The one folder all four accept inside a project is .agents/skills/, so this copies the skill there:
git clone --depth 1 https://github.com/9929y/genai-mesh-gradient.git
mkdir -p .agents/skills/genai-mesh-gradient
git -C genai-mesh-gradient archive HEAD | tar -x -C .agents/skills/genai-mesh-gradient| Agent | Project folder | Your user folder | Notes |
|---|---|---|---|
| OpenAI Codex | .agents/skills/ | ~/.agents/skills/ | Type $ or run /skills to pick a skill; Codex also chooses one when your task matches. |
| Gemini CLI | .agents/skills/.gemini/skills/ | ~/.agents/skills/~/.gemini/skills/ | Or install from Git with gemini skills install <git URL> --path <folder> --consent. Google replaced Gemini CLI with Antigravity CLI for free-tier and Google One users on 18 June 2026; Antigravity uses .agents/skills/ in a project and ~/.gemini/config/skills/ for you. |
| Cursor | .agents/skills/.cursor/skills/ | ~/.agents/skills/~/.cursor/skills/ | Type / in Agent chat to pick a skill. Cursor also reads Claude Code's .claude/skills/ folders. |
| GitHub Copilot | .github/skills/.agents/skills/.claude/skills/ | ~/.copilot/skills/~/.agents/skills/ | Works in Copilot CLI, the cloud agent, and agent mode in VS Code, Visual Studio and JetBrains (IDE support depends on the version). Or run gh skill install OWNER/REPOSITORY SKILL (public preview, GitHub CLI 2.90.0 or later). |
Sources for these steps
Checked against each vendor's documentation on 2026-11-14:
Control composition before texture
Keep geometry fixed when comparing palettes so colour is the only changing variable. Inspect visible coverage after compositing.
Recompose masses and the text zone for a new aspect ratio instead of stretching the original.
State what remains editable
Native layers retain transforms and fills; a bitmap does not. Deliver the route, dimensions, alpha status and adjustable parameters with the artifact.
Questions about genai-mesh-gradient
Does it include a trained AI model?
No. It supplies procedural helpers and a research-informed workflow.
Is Figma mandatory?
No. Layered SVG and browser code are alternative routes.
Are exported PNGs editable?
They are flattened. Keep the native layers, SVG or source code for later edits.
Does it animate every gradient?
No. The workflow builds a still first and adds ambient motion or reveal only when requested.
More AI skills
Related skills
Color Expert skill
Community · meodaiA colour knowledge library for OKLCH palettes, accessible ramps, pigment mixing and colour naming.Algorithmic Art skill
Official · AnthropicGenerative art in p5.js: flow fields, particles and noise, delivered as one HTML file with seed controls, sliders and PNG download.Web Asset Generator skill
Community · Alon WolenitzGenerate favicon, PWA icon and Open Graph image files from a logo, text or emoji with Python.D3 Visualization skill
Community · chrisvoncsefalvayBuild bespoke D3 charts and interactions with explicit scales, responsive sizing and cleanup.Thumbnail Design skill
Community · Frank HeijdenrijkBrief honest, mobile-readable video thumbnails and plan a native comparison test.Design and Templates skill
Community · Frank HeijdenrijkSpecify a reusable brand kit, template family and production workflow for recurring social graphics.