Week 1

Amplifier, not a replacement

How an agent works

Setting up Claude Code

First project and CLAUDE.md

Figma → code via MCP

Practice

Assignment

Back to Track

The agent works with a design not "by eye" but through a connector (MCP) that gives it access to Figma data: components, layout, variables. Here we cover only the practical part; the connector mechanism as a whole (what MCP is, what else it connects) comes in Week 5.

Connect Figma

Two ways, matching the two ways you run Claude Code.

Via the Desktop app (no terminal)

In the Claude app: Settings → Connectors → Browse connectors, find Figma, click Connect, and follow the authentication prompts — a Figma login opens in the browser, click Allow. Done: back in a chat, you can point Claude at a Figma file.

Screenshot 2026-07-31 at 5.00.59 PM.png

Via the CLI (plugin)

The same connection for terminal sessions — the official Figma plugin is installed by command:

claude plugin install figma@claude-plugins-official

Then restart Claude Code, run /plugins, go to the Installed tab, select the figma server and press Enter to authorize — a browser page opens, click Allow access. Run /plugins again: the server should show as connected.

If the install fails ("Plugin not found in marketplace"): first update your CLI — run claude update and retry. If it still fails, connect the remote Figma MCP server directly:

Full official guide: https://help.figma.com/hc/en-us/articles/39888612464151-Claude-Code-and-Figma-Set-up-the-MCP-server

Screenshot 2026-07-31 at 5.35.21 PM.png

Note on Figma plans: some features (like selection-based prompting via Dev Mode) require a paid Figma plan. Link-based prompting works more broadly — start there.

Generate code from a design

Two ways to point the agent at a design:

Start small — one card or one section, not a whole page.

Screenshot 2026-07-31 at 6.06.15 PM.png

Review what comes back

Generated code from a design is a draft, not a final. Check it like any agent output: does the structure make sense, are the styles reasonable, does it follow your CLAUDE.md conventions? Fix at least something by hand — that's how you stay the architect.


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.