Build with StyleMoth in Claude Code
Connect MCP or supply a download, then use Claude Code to build and review a page with a consistent system.
Claude Code can change a page quickly. The harder part is keeping those changes connected to a clear design direction. Give it a short brief and a StyleMoth system before asking for a complete website. This guide uses Claude Code in a project folder, not the Claude chat app.
Start in the project you want to change
Open the existing project in Claude Code and make sure it can read the files. Ask it to identify the framework, the styling setup, and the command used to run the site. If you are starting from nothing, say which framework you want and which content you already have.
For the MCP route, you also need StyleMoth Pro and an active access key from Account > MCP. Keep the key out of prompts and source files. For the file route, choose a system you can access and download its bundle. You do not need MCP for Claude to read supplied files.
Add the HTTP connection
Claude Code supports remote HTTP servers with custom headers. The example below uses an environment reference inside single quotes so the shell does not replace it with the secret. Set STYLEMOTH_API_KEY in the environment available to Claude Code before using the connection.
The user scope makes this connection available across your projects. Open /mcp in Claude Code to inspect the server after adding it. This uses a StyleMoth bearer key, not a Google sign-in or an OAuth login to the MCP server.
claude mcp add --transport http --scope user stylemoth https://stylemoth.com/api/mcp \
--header 'Authorization: Bearer ${STYLEMOTH_API_KEY}'
Check that Claude can retrieve a system
Ask for one small search before a build. Claude should return a tool result from StyleMoth, with systems it actually found. If it gives a general description of a website from memory, ask it to use the connected tools and show the selected system identifier.
Then ask it to retrieve the chosen system. Searching and reading are separate steps. A search result is a shortlist, not enough context to choose the final type, color, and spacing rules.
Use the StyleMoth MCP tools to search for a light SaaS website direction. Show three actual results and their identifiers. Compare how each could handle a product screenshot and a detailed feature explanation. Retrieve the selected system only after we choose. Do not write code yet.
Make the selected system part of the brief
After choosing, ask Claude for get_design_system. Have it read DESIGN.md and inspect tokens.json plus the CSS or Tailwind export that matches your project. Ask for a short description of the rules it will use before it edits components.
If you already use a Claude design skill, it can still help with implementation and review. Tell it which system supplies the visual values. You do not need to install another skill, and the skill should not quietly replace the selected palette or font choices with its defaults.
Use get_page_breakdown when you need evidence about a reference’s section order or product-preview layout. Treat the source as reference material. Your own brief still decides what the website says and does.
Use downloaded files instead
Extract the chosen bundle into a folder Claude can read, such as design/reference/. Point it to that folder and ask it to confirm the seven files are present. Keep the guide and exports together; a CSS file alone does not explain every design decision.
Use this route if you do not need live library search or prefer a fixed copy in the project. Do not ask Claude to retrieve a Pro system through a public website URL as a substitute for access. Supply files you can access or use the authenticated MCP connection.
Read design/reference/DESIGN.md, tokens.json, and the relevant stylesheet. This folder is the selected StyleMoth design system. Use it as the visual foundation for our scheduling-tool page. Explain the type, surface, and spacing rules you will apply. Preserve our copy, assets, routes, and working forms.
Build a slice you can inspect
Start with the hero and one feature section. Include the real screenshot and a real action. Ask Claude to keep the rest of the application working and to name any missing asset before filling the space with invented product imagery.
Review the local result before extending it. If the hero is too tall, point to the space that should change. If the product preview is unreadable, ask for a layout that gives it more room. Specific feedback helps preserve the chosen direction.
Build the agreed hero and feature section using the selected system. Keep existing behavior. Run the project checks and start a local preview. Inspect desktop and mobile widths using the tools available in this environment. Report what you tested and what still needs a manual check. Do not deploy.
When the tools do not appear
Check /mcp first. Confirm the endpoint, the environment variable, and the active key. If Claude was started before the variable was set, start a session that inherits the correct environment. Also check that your StyleMoth membership includes MCP.
A request for a missing file is different from a failed connection. Ask Claude to list the files returned by the system instead of guessing a filename. If the tool can search but cannot read protected content, check access rather than repeatedly changing the prompt.
If you cannot resolve the connection immediately, use the downloaded-file route for a system you can access. Keep that limitation explicit so Claude does not claim it researched the live library.
Finish with a visual and functional check
Read the page with the actual content in place. Test navigation, form errors, and keyboard focus. Compare the mobile layout with the desktop version, especially the product image and the primary action.
Keep the selected system and adaptation notes with the project. When you return for another page, ask Claude to reuse those decisions before proposing a different direction.
Use a design skill when it helps the task
If this coding environment supports skills, you can pair an installed design skill with the same StyleMoth context. Name the selected system, project files, and the task you want the skill to handle. Confirm that the agent can read the skill and call MCP before relying on the combination.
Use a skill for a concrete job, such as planning the page, building from an accepted design, checking interface quality, or polishing one section. Keep the chosen system and your product brief available throughout. If you are working only with attached files, ask the agent to read those files instead of claiming it has a live MCP connection.