Earn 14 free days when your bug report or suggestion is accepted — how it works
Reporting & history

codeloop_generate_spec

Generate a design specification from Figma design tokens (colors, typography, spacing) so the agent can match them in code.

When to use codeloop_generate_spec

Use `codeloop_generate_spec` when your AI agent needs to generate a design specification from figma design tokens (colors, typography, spacing) so the agent can match them in code.

Parameters

NameTypeRequiredDescription
figma_file_idstringnoFigma file ID. Falls back to .codeloop/figma.json.
project_dirstringnoProject root.

What you get back

Path to generated spec markdown + token JSON.

FAQ

What does codeloop_generate_spec do?

Generate a design specification from Figma design tokens (colors, typography, spacing) so the agent can match them in code.

When should an AI agent call codeloop_generate_spec?

Use `codeloop_generate_spec` when your AI agent needs to generate a design specification from figma design tokens (colors, typography, spacing) so the agent can match them in code.

What does codeloop_generate_spec return?

Path to generated spec markdown + token JSON.

Is codeloop_generate_spec part of the CodeLoop MCP server?

Yes. CodeLoop ships as an MCP server installed via `npx codeloop init`. Cursor and Claude Code call it automatically once the User Rule (Cursor) or CLAUDE.md (Claude Code) is in place.

Related