# References

Extract design tokens (colours, fonts, spacing, radius, heading sizes) from 1 to 3 approved URLs without copying text, images, logos, or code.

**Canonical URL:** https://skillshunter.net/skills/discovered-1a5ced907ca18edb1c5a878d77288f2cbc1616ee5dbfd28f

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-1a5ced907ca18edb1c5a878d77288f2cbc1616ee5dbfd28f

**Markdown URL:** https://skillshunter.net/skills/discovered-1a5ced907ca18edb1c5a878d77288f2cbc1616ee5dbfd28f.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-1a5ced907ca18edb1c5a878d77288f2cbc1616ee5dbfd28f/download

**Category:** Product & Design

**Source URL:** https://github.com/DevPatel128/lilac-plugin/blob/7e77aadbd31442412fba6856e43e4a2d8b781a6d/skills/references/SKILL.md

**Source commit:** 7e77aadbd31442412fba6856e43e4a2d8b781a6d

**Listing approved at:** 2026-11-29

**Created at:** 2026-11-28T18:58:33.000000Z

**Updated at:** 2026-11-29T10:54:05.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/references.mjs" plan "${CLAUDE_PROJECT_DIR}" --urls <u1,u2,u3>` to print the list of URLs. Consent is required for each URL, and approval must be given before fetching data. Logs are saved to `.lilac/network.log`.

### When to use it

- Extracting design tokens for a new website project
- Gathering design inspiration from multiple sources
- Creating a consistent design system based on reference sites

## Skill instructions

---
name: references
description: Take colours, fonts and spacing from sites you like, with your approval of each URL. Tokens only, never their words or images.
disable-model-invocation: true
---
# /lilac:references

Takes design tokens (colours, fonts, spacing, radius, heading sizes) from sites the user likes. It never copies text, images, logos or code.

1. Ask the user for 1 to 3 reference URLs (http/https). Run `node "${CLAUDE_PLUGIN_ROOT}/scripts/references.mjs" plan "${CLAUDE_PROJECT_DIR}" --urls <u1,u2,u3>` to print the list.
2. Consent: show every URL and ask with AskUserQuestion: Approve / Change something / Stop. Say it makes one web request per URL and logs it to `.lilac/network.log`. No approval, no fetch.
3. On Approve only: `node "${CLAUDE_PLUGIN_ROOT}/scripts/references.mjs" fetch "${CLAUDE_PROJECT_DIR}" --urls <u1,u2,u3> --consent`.
4. `node "${CLAUDE_PLUGIN_ROOT}/scripts/references.mjs" extract "${CLAUDE_PROJECT_DIR}"` (offline). It writes `design/DESIGN.md`, `design/tokens.json` and `design/NOTES.md` (take / do not take per site).
5. Show the tokens. Roles (background, accent) are guesses from frequency; ask the user to confirm or change them with AskUserQuestion before building with them.
6. Pattern library: `references.mjs load "${CLAUDE_PROJECT_DIR}" <pattern-name>` reads `library/<name>.md` if present, else prints "no library entry".

Do not paste anything from the reference pages into the site.

