Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyleRef Agent Skill

Agent Skills that teach any AI agent when to fetch a StyleRef style and how to apply it per tool — ChatGPT, Claude, Gemini, Midjourney, FLUX, Stable Diffusion, Figma, or a repo's STYLE.md.

Two skills ship here:

Skill For
styleref Any agent. Fetching a style and applying it per tool, plus the STYLE.md convention for repos.
styleref-figma The Figma agent. Writing a style into a file as real color variables, text styles and effect styles — or reading the style already on the canvas back out.

A StyleRef is a structured, portable style specification — colors, typography, mood, voice, composition, lighting, and more — compiled into a text block that any AI tool follows as a hard constraint. Public gallery styles need no login.

The skill is the instruction layer; the StyleRef MCP server is the data layer. This repository ships both together as a Claude Code plugin, so one install gets you the skill and the MCP server, already wired up.

Install

Claude Code (skill + MCP server)

/plugin marketplace add StyleRef/styleref-skill
/plugin install styleref@styleref

The plugin adds the styleref skill and connects the StyleRef MCP server at https://styleref.io/api/mcp. Reading public styles is anonymous; saving, forking, extracting, and publishing prompt you to connect your account.

Claude Cowork, Claude.ai, Claude Desktop

These surfaces take the skill from the plugin but not the MCP server it bundles, so add StyleRef as a connector in the client's settings, pointing at https://styleref.io/api/mcp. Without it the agent knows how to apply a style and has no way to fetch one.

Any other agent (skill only)

The skill is a plain SKILL.md folder, so it works in any skills-compatible agent — Cursor, Codex, Gemini CLI, Copilot, opencode, Goose, and others. Copy skills/styleref/ into the agent's skills directory:

git clone https://github.com/StyleRef/styleref-skill.git
cp -R styleref-skill/skills/styleref ~/.claude/skills/styleref

Use .claude/skills/ instead of ~/.claude/skills/ to scope it to one project, or the equivalent skills directory for your agent. Then connect the MCP server separately:

claude mcp add --transport http styleref https://styleref.io/api/mcp

The skill also works without MCP — it falls back to the public REST API at https://styleref.io/api/v1, which needs no setup.

Figma

Figma takes a skill as a single Markdown file. In the Figma agent's chat prompt box choose Skills → Add skill → Upload a file, and pick skills/styleref-figma/SKILL.md. Invoke it with /styleref-figma. Creating and using skills needs a paid Figma plan and a Full seat.

Applying and capturing styles need nothing else — the skill reads the public gallery through the agent's own web fetch. Saving, extracting from an image, and publishing need the MCP server added as a custom connector: Add context → Connectors → Manage → Created by you → Create, server URL https://styleref.io/api/mcp.

What's in here

Path What it is
skills/styleref/SKILL.md The general skill — the only file you need for a manual install
skills/styleref-figma/SKILL.md The Figma skill — upload this one file to the Figma agent
.mcp.json The StyleRef MCP server, connected when the plugin is enabled
.claude-plugin/plugin.json Plugin manifest
.claude-plugin/marketplace.json Marketplace catalog, so this repo installs directly

Documentation

License

MIT

About

The StyleRef Agent Skill — teach any AI agent to fetch and apply reusable creative style specs. Installs the StyleRef MCP server with it.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages