# Templates and design systems

The 3 tools for templates and design systems. Before an agent first makes one, it reads guide topic prototype or website.

## find_templates

What a prototype and a website are designed from, Artifacts' design library (a report does not use it: guide topic "reports"): 25 prototype templates (web and mobile apps, dashboards, onboarding, wireframes), 16 website templates (landing, pricing, waitlist, docs, blog, email), 84 skills (frontend design, taste, redesign, review, copywriting, charts, 3D, motion), 84 finished examples, 152 design systems (DESIGN.md, tokens, components), 11 craft rules, 13 step guides and the rule texts (charter, visual directions, the prototype and website profile). Give kind, and one or two plain words in query ("pricing", "finance", "mobile") to narrow it; the best matches come first. Design systems are listed by category in guide topic "design-systems". A template's own guide: guide with its id as the topic; read_library reads its files.

Parameters:
- `kind` (string): prototype, website (templates), skills, examples, design-systems, craft, atoms (step guides), rules.
- `query` (string)
- `limit` (integer): Default 40.

## read_library

Read one entry by id (from find_templates: prototype/web-prototype, website/saas-landing, design-systems/linear-app, craft/typography, rules/charter, rules/profile-prototype): its main file (SKILL.md, DESIGN.md, the rule text), the list of its files, and any of its files you name in paths ("references/layouts.md", "example.html", "tokens.css"). A template's workflow and checklist come from guide with its id; this reads its seed, layouts, example and other files.

Parameters:
- `id` (string)
- `ids` (string[]): Several entries at once, each one's main file: the rules a template's guide names (rules/design-rules, craft/typography…).
- `paths` (string[]): Files of the entry to read too.
- `main` (boolean): Default true: include the main file. false to read only paths.

## lint_page

Check a working page (a prototype or a website) against Artifacts' anti-slop rules: purple or blue-to-cyan gradients, the default indigo, emoji as icons, sans-serif display type, invented metrics, filler copy, raw hex outside the tokens, an accent used too often, the left-border callout card, hotlinked images, all caps without tracking, sections without an anchor. P0 findings must be fixed; P1 and P2 are advice. Give item_id (a page) or html.

Parameters:
- `item_id` (string)
- `html` (string)
