Skip to content
English

Codex design system: connect LayQ's MCP server and skill

Paste this into Codex once

Set up LayQ in Codex: connect its MCP server and install the LayQ skill.

1. Connect the MCP server. Run once in a terminal:
   codex mcp add layq --url https://layq.dev/mcp
2. Install the LayQ skill: download https://layq.dev/skill/SKILL.md and show it to me before saving. On its "LayQ origin:" line, replace ORIGIN with https://layq.dev.
   Save it as ~/.agents/skills/layq/SKILL.md (or .agents/skills/layq/SKILL.md for this project only). Installing runs nothing and installs no package.
   The skill tells you the order of work and keeps itself current (https://layq.dev/skill/version.json); the LayQ MCP tools give the content.
3. Ask me to restart Codex (it loads MCP servers at start), then call the LayQ `account` tool to check. The first call opens the browser to sign in.

Then ask me what I am building.

Paste this to your agent once. It connects the MCP server and installs the LayQ skill; both stay current.

The MCP server on its own

codex mcp add layq --url https://layq.dev/mcp

The skill is saved to

~/.agents/skills/layq/SKILL.md

codex mcp login layq opens the browser to sign in; --no-browser prints the address instead.

What Codex does then

  1. Plan options · plan

    Proposes the kind of product, layout, palette, interaction and motion at once.

  2. Specs plan

    Writes specs/design.md, interaction.md, motion.md, tech.md and design-tokens.css.

  3. Start starter

    Sets up the Next.js template for that kind of product, checked in a clean project.

  4. Build search · component

    Finds components and blocks and installs them as source.

  5. Check rules

    Checks the screens against the design rules and fixes what fails.

Its tools

guide
The order of work, for an agent without the skill
options
Every choice with its values and defaults
plan
The spec files and design tokens of a plan
starter
Install steps for a Next.js template or a module
search
Components and blocks by words, category or tier
component
A component’s or block’s source and usage
rules
The design rules for the plan, to check against
account
Who is signed in, the plan and today’s use

Then just say

  • Plan a booking app for a yoga studio, calm and rounded.
  • Start the project from my LayQ plan.
  • Add a date picker to the booking form.
  • Check this page against the design rules and fix what fails.

Questions

Do I need a LayQ account?
Yes: the tools work for a signed-in account, and signing in happens once, in the browser. Free has daily limits (1 plan, 1 template and 1 design check a day).
Does it replace shadcn/ui or my own components?
No. Components install as source into src/components/layq-<id>/ and import only React, so an existing app keeps its own. The specs tell Codex how everything should look.
Why an MCP server and a skill?
The skill gives the order of work; the MCP server gives the content, always current. Without MCP, the skill runs its tool file instead.
Is my code sent to LayQ?
No. The tools are read-only and take only choices and names, such as a palette or a component id. Your code stays on your machine.