Tools
What your assistant can do with the server, and what to ask. You don't need to name the tools: describe what you want and your assistant picks the right one.
Tools marked Local only write files on your computer, and only where you say.
create_project Local only
Starts a new site in an empty folder. Your assistant asks for the site's name and main nav items, and offers a tagline, a brand colour and fonts. You get a home page and a page for each nav item, either a basic page or a copy of the article, landing or sidebar layout, with the name, nav and footer filled in.
The starter's showcase, demo layouts and component catalog go in pages/examples/, so your assistant can copy from them. Delete the folder when you're done.
Try asking:
- “Create a new Modern Web Starter project in ~/Sites/bakery.”
- “Start a site called Northside Pottery with About, Classes and Contact pages, in my brand colour #2f6f4f.”
brand_tokens
Turns a brand colour and heading or body fonts into token edits for a project you already have. The accent shades are picked by measuring contrast, so text, links and buttons meet WCAG AA in light and dark mode. If your colour is too light or dark for text, it's kept for decorative accents and the report says why.
Try asking:
- “Use #e4572e as my brand colour.”
- “Set the headings in Fraunces and the body text in Source Sans 3.”
add_gallery Local only
Builds a gallery page from your own images. It copies them into images/gallery/, reads each one's size (including phone photos taken sideways), and links the page from your nav and footer. Your assistant drafts alt text for you to approve, and images without alt text are refused. It never overwrites a file.
Try asking:
- “Add a gallery page with the photos in ~/Pictures/trip.”
- “Make a square-grid Portfolio page from these five images.”
gallery_markup
Gives you the gallery and lightbox HTML for images already in your site, with the same alt-text checks.
Try asking:
- “Give me gallery markup for the images in images/work/.”
check_css
Checks CSS against the starter's rules: styles outside a layer or in the wrong one, !important, hard-coded colours, colour primitives in components, --accent-default used for text, removed focus outlines, specificity hacks, and dark-mode overrides that miss the visitor's system dark mode. Your assistant runs it on its own CSS before showing it to you.
Try asking:
- “Check this CSS against the starter's rules.”
- “Check every file in css/ and fix what you find.”
find_token
Finds the right design token by purpose, by name or by colour. Semantic tokens come first, because components should never use colour primitives directly.
Try asking:
- “Which token should I use for a card's background?”
- “Is there a token for #9a3412?”
read_docs
Reads the starter's conventions (the rulebook for layers, tokens, naming and accessibility) or a docs page on layers, tokens, dark mode or container queries.
Try asking:
- “How does dark mode work in the starter?”
- “When should I use a container query instead of a media query?”
The add-component prompt
Starts a new component with the conventions loaded, and asks your assistant to run check_css before showing you the result. In Claude Code, type / to find it.
Resources
For clients that read MCP resources: modern-web-starter://conventions, modern-web-starter://tokens and modern-web-starter://docs/{page}.