brand-extraction

brand-extraction is a skill for Claude Code, Codex from juspay/xyne-spaces. It costs 44 tokens per session (1,521 once invoked), scanned B, original, Apache-2.0.

A workflow for reading an existing website or screenshot and extracting its visual design system. It produces design documentation, CSS design tokens, structured brand data, and selected image assets.

In plain words
What is it for?
Use it to inspect a live site or screenshot and create DESIGN.md, tokens.css, brand.json, logos, favicons, and reference screenshots.
Why use it?
It helps reproduce an existing brand consistently without guessing colours, fonts, spacing, or other visual details.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect a live site or screenshot and create DESIGN.md, tokens.css, brand.json, logos, favicons, and reference screenshots.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/juspay/xyne-spaces/brand-extraction
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add juspay/xyne-spaces --skill brand-extraction
Clone the repo
git clone --depth 1 https://github.com/juspay/xyne-spaces

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for brand-extraction

README.md
[![agentmods](https://agentmods.dev/badge/skills/juspay/xyne-spaces/brand-extraction/github.svg)](https://agentmods.dev/skills/juspay/xyne-spaces/brand-extraction)
Your own site
<a href="https://agentmods.dev/skills/juspay/xyne-spaces/brand-extraction"><img src="https://agentmods.dev/badge/skills/juspay/xyne-spaces/brand-extraction/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for brand-extraction

Your own site · 80×15
<a href="https://agentmods.dev/skills/juspay/xyne-spaces/brand-extraction"><img src="https://agentmods.dev/badge/skills/juspay/xyne-spaces/brand-extraction.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,521 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01521
Opus 5.5 $0.00018 $0.00608
Sonnet 5.5 $0.00009 $0.00304
Haiku 4.5 $0.00004 $0.00152

Measured 1mo ago against content hash 1be88c5c8396, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

brand-extraction scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

*you* what to do ("ignore previous instructions", "you are now…", "always

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

apps/xyne-claw/brand-skills/brand-extraction/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Brand extraction

Produce a design system from a source someone already has. You are reading an existing brand, not designing one. Measure what is there; never improve it.

Deliver exactly three files, plus assets:

File Purpose
DESIGN.md The prose contract. Injected verbatim into later /design runs.
tokens.css Custom properties under :root.
brand.json Structured summary. Renders the review card.

Assets: logo.*, favicon.*, screenshot-desktop.png, screenshot-mobile.png.

From a URL

Measure computed styles. Do not read colours off a screenshot — anti-aliasing and image compression shift them, and a hex that is one digit out produces a system that looks subtly wrong everywhere it is used.

  1. sandbox-pw-navigate to the URL. sandbox-pw-wait-for the page to settle so webfonts have swapped — reading before that yields the fallback stack.

  2. sandbox-pw-evaluate to walk the rendered DOM and tally real values:

    // Count every colour actually painted, with the element it came from.
    const tally = new Map();
    const bump = (map, key, el) => {
      const e = map.get(key) ?? { n: 0, tags: new Set() };
      e.n += 1; e.tags.add(el.tagName.toLowerCase()); map.set(key, e);
    };
    for (const el of document.querySelectorAll('body *')) {
      const cs = getComputedStyle(el);
      const rect = el.getBoundingClientRect();
      if (!rect.width || !rect.height) continue;      // skip hidden nodes
      bump(tally, `color|${cs.color}`, el);
      if (cs.backgroundColor !== 'rgba(0, 0, 0, 0)') bump(tally, `bg|${cs.backgroundColor}`, el);
      if (cs.borderTopWidth !== '0px') bump(tally, `border|${cs.borderTopColor}`, el);
    }
    

    Gather the same way: fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, borderRadius, boxShadow, and the margin/padding values that repeat.

  3. Skip invisible nodes (zero-area, display:none, visibility:hidden) — they carry inherited defaults that are not part of the brand and will otherwise dominate the tally.

  4. Assign roles from usage, not from appearance:

    • background — the colour behind the largest painted area
    • text — the color of the most body copy
    • primary — the colour of primary buttons and links
    • border, surface, muted — as measured Leave a role out rather than guessing it.
  5. Derive the type scale from headings actually present (h1…h6) plus body. Record measured px, not a theoretical ratio.

  6. Capture the logo (header img, [class*=logo], or an inline svg in the header) and the favicon from link[rel~=icon]. Capture screenshot-desktop.png at 1440px wide and screenshot-mobile.png at 390px.

  7. Follow redirects and record the URL you actually landed on in sourceUrl.

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 127 lines · 44 tokens per session scan B 1be88c5c8396

Subscribe to this mod's changes

brand-extraction is a skill published in the GitHub repository juspay/xyne-spaces (836 stars, last pushed yesterday), licensed Apache-2.0. It adds 44 tokens to every session and 1,521 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

brand-extraction compared with skills from other repositories

brand-extraction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
brand-extractionjuspay/xyne-spacesSkill836yesterdayApache-2.0B44Claude Code, Codex
omh-accessibility-auditrlaope/oh-my-hermesSkill6.2ktodayMITA20Claude Code
omh-apple-designrlaope/oh-my-hermesSkill6.2ktodayMITA21Claude Code
conversational-uxOwl-Listener/designer-skillsSkill3.6kyesterdayMITA43Claude Code, Codex
platform-conventionsOwl-Listener/designer-skillsSkill3.6kyesterdayMITA55Claude Code, Codex
design-negotiationOwl-Listener/designer-skillsSkill3.6kyesterdayMITA48Claude Code, Codex
form-designOwl-Listener/designer-skillsSkill3.6kyesterdayMITA51Claude Code, Codex