Skip to content

kwakseongjae/oh-my-design / skills/omd-brand-look

omd-brand-look

Verified

Repaint one screen with the measured tokens of verified real-company references (verified_v2 only), render it at 1440·1024·768·390 in a real browser, and report rule-by-rule PASS/FAIL with the cause of each FAIL. Output: per-brand themed copies, a same-screen × N-brands grid, 4:5 Threads cards and report.md. It never invents a value: every slot is a declared frontmatter value, an unfillable slot is omitted (the user's own variable stays), and fonts carry the G3 labels (brand face / substitute — not the brand face / safe default (not the brand face)). It does not edit the user's source, render logos, or bootstrap DESIGN.md (that is omd-init). MVP: the shipped sample screen only. 트리거: "/omd-brand-look", "브랜드 룩으로 칠해 봐", "토스·당근·Linear 룩으로 비교", "같은 화면 다섯 브랜드", "repaint this screen in Toss / Linear / Apple look", "brand look grid".

FileKindSize
SKILL.mdskill md6.8 KB
examples/sample.htmlother13.8 KB
scripts/browser.mjsscript1.6 KB
scripts/check.mjsscript23.7 KB
scripts/look.mjsscript12.8 KB
scripts/target.mjsscript1.9 KB
scripts/tokens.mjsscript29.1 KB

scripts/browser.mjs

View on GitHub
// One place where omd-brand-look finds playwright-core and a Chromium, so look.mjs and check.mjs paint and measure in the
// same engine. PW_CORE=<dir containing node_modules/playwright-core> reuses an existing install (inside the oh-my-design
// repo: web). Order: Playwright's own cached Chromium for this playwright-core version, then the installed Google Chrome.
import { createRequire } from 'node:module';
import { existsSync } from 'node:fs';
import path from 'node:path';

export function loadPlaywright() {
  const bases = [process.env.PW_CORE, process.cwd()].filter(Boolean);
  for (const base of bases) {
    try { return createRequire(path.join(path.resolve(base), 'noop.js'))('playwright-core'); } catch { /* next base */ }
  }
  throw new Error('playwright-core not found: set PW_CORE=<dir containing node_modules/playwright-core> or `npm i -D playwright-core`');
}

export async function launchChromium() {
  const { chromium } = loadPlaywright();
  let cached = null;
  try { cached = chromium.executablePath(); } catch { /* no cache entry for this version */ }
  const tries = [];
  if (cached && existsSync(cached)) tries.push({ opts: {}, executable: cached, mode: 'playwright-cache' });
  tries.push({ opts: { channel: 'chrome' }, executable: 'Google Chrome (channel: chrome)', mode: 'chrome' });
  for (const t of tries) {
    try {
      const browser = await chromium.launch({ headless: true, ...t.opts });
      return { browser, engine: { mode: t.mode, executable: t.executable, version: browser.version() } };
    } catch { /* try the next one */ }
  }
  throw new Error('no Chromium: run `npx playwright-core install chromium` or install Google Chrome');
}
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall