Skip to content

Leonxlnx/taste-skill / skills/taste-skill

design-taste-frontend

Verified

tasteskill 2.5.1, the anti-slop frontend skill. Builds professional company websites at the level of figma.com and x.ai: plain copy in a voice of its own, one system, one section per screen, equal edges, real photographs and real product UI (licensed stand-in photographs when the client has none; a product render only when the brief asks for 3D), a hero entrance and one or two dealt moments on every page, shader effects and scenes only on tech, gaming and software pages, quiet micro-interactions, and a checker and finish gate that enforce it in a real browser. Use this whenever you build, design, redesign, restyle, polish or review a landing page, company, product, shop, cafe, hotel, studio, SaaS, AI, developer-tool or game site, as static HTML/CSS or inside an existing React, Next.js, Vue, Svelte, Astro or Tailwind project, or when the user says a page looks generic, templated or "AI-made".

FileKindSize
SKILL.mdskill md30.2 KB
assets/backgrounds/backgrounds.cssother41.5 KB
assets/backgrounds/backgrounds.jsscript8.9 KB
assets/backgrounds/check.htmlother4.8 KB
assets/backgrounds/check.mjsscript14.2 KB
assets/backgrounds/demo.htmlother43.3 KB
assets/backgrounds/index.jsonconfig19.6 KB
assets/backgrounds/pick.mjsscript14.0 KB
assets/components/_lab.htmlother6.4 KB
assets/components/base.cssother7.6 KB
assets/components/fx-avatar/component.cssother3.3 KB
assets/components/fx-avatar/component.htmlother1.2 KB
assets/components/fx-avatar/component.jsscript2.7 KB
assets/components/fx-avatar/meta.jsonconfig870 B
assets/components/fx-band/component.cssother1.4 KB
assets/components/fx-band/component.htmlother482 B
assets/components/fx-band/component.jsscript2.7 KB
assets/components/fx-band/meta.jsonconfig1.1 KB
assets/components/fx-bars/component.cssother3.4 KB
assets/components/fx-bars/component.htmlother2.3 KB
assets/components/fx-bars/component.jsscript2.2 KB
assets/components/fx-bars/meta.jsonconfig1.2 KB
assets/components/fx-button/component.cssother1.6 KB
assets/components/fx-button/component.htmlother798 B
assets/components/fx-button/component.jsscript3.0 KB
assets/components/fx-button/meta.jsonconfig1.1 KB
assets/components/fx-chart/component.cssother3.4 KB
assets/components/fx-chart/component.htmlother1.2 KB
assets/components/fx-chart/component.jsscript5.3 KB
assets/components/fx-chart/meta.jsonconfig1.3 KB
assets/components/fx-dither-object/component.cssother452 B
assets/components/fx-dither-object/component.htmlother177 B
assets/components/fx-dither-object/component.jsscript24.1 KB
assets/components/fx-dither-object/meta.jsonconfig2.7 KB
assets/components/fx-feature-card/component.cssother10.7 KB
assets/components/fx-feature-card/component.htmlother8.9 KB
assets/components/fx-feature-card/component.jsscript12.1 KB
assets/components/fx-feature-card/meta.jsonconfig3.0 KB
assets/components/fx-globe/component.cssother2.2 KB
assets/components/fx-globe/component.htmlother1.6 KB
assets/components/fx-globe/component.jsscript1.3 KB
assets/components/fx-globe/meta.jsonconfig819 B
assets/components/fx-headline/component.cssother1.6 KB
assets/components/fx-headline/component.htmlother833 B
assets/components/fx-headline/component.jsscript742 B
assets/components/fx-headline/meta.jsonconfig964 B
assets/components/fx-icon-tiles/component.cssother1.7 KB
assets/components/fx-icon-tiles/component.htmlother2.1 KB
assets/components/fx-icon-tiles/component.jsscript1.4 KB
assets/components/fx-icon-tiles/meta.jsonconfig922 B
assets/components/fx-logos/component.cssother2.0 KB
assets/components/fx-logos/component.htmlother12.4 KB
assets/components/fx-logos/component.jsscript1.2 KB
assets/components/fx-logos/meta.jsonconfig1.0 KB
assets/components/fx-map/bake.mjsscript25.2 KB
assets/components/fx-map/component.cssother10.6 KB
assets/components/fx-map/component.htmlother1.2 KB
assets/components/fx-map/component.jsscript14.4 KB
assets/components/fx-map/meta.jsonconfig2.6 KB
assets/components/fx-map/sample-map.jsonconfig55.7 KB
assets/components/fx-photo/component.cssother2.0 KB
assets/components/fx-photo/component.htmlother553 B
assets/components/fx-photo/component.jsscript1.9 KB
assets/components/fx-photo/meeting-room.jpgbinary198.7 KB
assets/components/fx-photo/meta.jsonconfig1.8 KB
assets/components/fx-pricing/component.cssother3.8 KB
assets/components/fx-pricing/component.htmlother1.8 KB
assets/components/fx-pricing/component.jsscript1.5 KB
assets/components/fx-pricing/meta.jsonconfig971 B
assets/components/fx-progress/component.cssother2.9 KB
assets/components/fx-progress/component.htmlother2.0 KB
assets/components/fx-progress/component.jsscript4.3 KB
assets/components/fx-progress/meta.jsonconfig1.3 KB
assets/components/fx-prompt/component.cssother3.1 KB
assets/components/fx-prompt/component.htmlother1.3 KB
assets/components/fx-prompt/component.jsscript1.1 KB
assets/components/fx-prompt/meta.jsonconfig782 B
assets/components/fx-search/component.cssother2.6 KB
assets/components/fx-search/component.htmlother1.4 KB
assets/components/fx-search/component.jsscript4.9 KB
assets/components/fx-search/meta.jsonconfig953 B
assets/components/fx-spotlight/component.cssother1.8 KB
assets/components/fx-spotlight/component.htmlother1.6 KB
assets/components/fx-spotlight/component.jsscript4.0 KB
assets/components/fx-spotlight/meta.jsonconfig1.1 KB
assets/components/fx-stat/component.cssother1.6 KB
assets/components/fx-stat/component.htmlother694 B
assets/components/fx-stat/component.jsscript1.2 KB
assets/components/fx-stat/meta.jsonconfig1.1 KB
assets/components/fx-tabs/component.cssother5.0 KB
assets/components/fx-tabs/component.htmlother2.9 KB
assets/components/fx-tabs/component.jsscript3.1 KB
assets/components/fx-tabs/meta.jsonconfig1.2 KB
assets/components/index.htmlother18.6 KB
assets/components/shared.jsscript25.9 KB
assets/diagrams/demo.htmlother11.4 KB
assets/diagrams/diagram.cssother25.5 KB
assets/diagrams/diagram.jsscript89.2 KB
assets/diagrams/lab.htmlother11.2 KB
assets/diagrams/mount.jsscript609 B
assets/diagrams/presets.jsonconfig27.8 KB
assets/effects/README.mdmarkdown9.8 KB
assets/effects/ascii-shade/effect.jsscript18.3 KB
assets/effects/ascii-shade/meta.jsonconfig372 B
assets/effects/aurora-curtains/effect.jsscript9.2 KB
assets/effects/aurora-curtains/meta.jsonconfig361 B
assets/effects/bayer-dither/effect.jsscript5.9 KB
assets/effects/bayer-dither/meta.jsonconfig311 B
assets/effects/caustics/effect.jsscript7.3 KB
assets/effects/caustics/meta.jsonconfig357 B
assets/effects/contour-lines/effect.jsscript8.2 KB
assets/effects/contour-lines/meta.jsonconfig358 B
assets/effects/dot-terrain/effect.jsscript9.2 KB
assets/effects/dot-terrain/meta.jsonconfig332 B
assets/effects/dotted-globe/effect.jsscript52.9 KB
assets/effects/dotted-globe/meta.jsonconfig546 B
assets/effects/duotone-grade/effect.jsscript33.7 KB
assets/effects/duotone-grade/meta.jsonconfig395 B
assets/effects/edge-glow/effect.jsscript10.6 KB
assets/effects/edge-glow/meta.jsonconfig427 B
assets/effects/film-light-leak/effect.jsscript12.2 KB
assets/effects/film-light-leak/meta.jsonconfig343 B
assets/effects/fluted-glass/effect.jsscript9.7 KB
assets/effects/fluted-glass/meta.jsonconfig305 B
assets/effects/fx.jsscript40.5 KB
assets/effects/gallery.htmlother37.4 KB
assets/effects/god-rays/effect.jsscript9.1 KB
assets/effects/god-rays/meta.jsonconfig318 B
assets/effects/gradient-mesh/effect.jsscript11.0 KB
assets/effects/gradient-mesh/meta.jsonconfig334 B
assets/effects/grain-gradient/effect.jsscript8.1 KB
assets/effects/grain-gradient/meta.jsonconfig311 B
assets/effects/grid-pulse/effect.jsscript18.6 KB
assets/effects/grid-pulse/meta.jsonconfig343 B
assets/effects/halftone-screen/effect.jsscript12.8 KB
assets/effects/halftone-screen/meta.jsonconfig342 B
assets/effects/index.jsonconfig36.7 KB
assets/effects/lab.htmlother31.0 KB
assets/effects/line-engraving/effect.jsscript12.4 KB
assets/effects/line-engraving/meta.jsonconfig343 B
assets/effects/orb-sphere/effect.jsscript14.2 KB
assets/effects/orb-sphere/meta.jsonconfig366 B
assets/effects/painterly-landscape/effect.jsscript12.8 KB
assets/effects/painterly-landscape/meta.jsonconfig364 B
assets/effects/pick.jsscript10.1 KB
assets/effects/prism-dispersion/effect.jsscript9.6 KB
assets/effects/prism-dispersion/meta.jsonconfig331 B
assets/effects/ridgeline/effect.jsscript19.2 KB
assets/effects/ridgeline/meta.jsonconfig460 B
assets/effects/ruled-grounds/effect.jsscript11.3 KB
assets/effects/ruled-grounds/meta.jsonconfig357 B
assets/effects/silk-folds/effect.jsscript10.4 KB
assets/effects/silk-folds/meta.jsonconfig348 B
assets/effects/soft-light-bars/effect.jsscript21.1 KB
assets/effects/soft-light-bars/meta.jsonconfig391 B
assets/effects/spotlight-cone/effect.jsscript7.3 KB
assets/effects/spotlight-cone/meta.jsonconfig349 B
assets/icons/demo.htmlother475.1 KB
assets/icons/demo/adyen.svgother2.4 KB
assets/icons/demo/after-effects.svgother5.2 KB
assets/icons/demo/ai.svgother795 B
assets/icons/demo/airbnb.svgother5.2 KB
assets/icons/demo/airbyte.svgother3.0 KB
assets/icons/demo/airflow.svgother3.4 KB
assets/icons/demo/airtable.svgother1.8 KB
assets/icons/demo/akamai.svgother5.5 KB
assets/icons/demo/algolia.svgother11.5 KB
assets/icons/demo/alpinejs.svgother343 B
assets/icons/demo/amd.svgother1.5 KB
assets/icons/demo/amex.svgother8.4 KB
assets/icons/demo/amplitude.svgother3.3 KB
assets/icons/demo/android.svgother4.7 KB
assets/icons/demo/angular.svgother1.8 KB
assets/icons/demo/ansible.svgother5.4 KB
assets/icons/demo/anthropic.svgother1.2 KB
assets/icons/demo/app-store.svgother2.9 KB
assets/icons/demo/apple-pay.svgother3.1 KB
assets/icons/demo/apple.svgother1.2 KB
assets/icons/demo/arc.svgother4.6 KB
assets/icons/demo/archlinux.svgother1.0 KB
assets/icons/demo/arduino.svgother6.7 KB
assets/icons/demo/argo.svgother22.7 KB
assets/icons/demo/arm.svgother2.5 KB
assets/icons/demo/asana.svgother1004 B
assets/icons/demo/astro.svgother3.1 KB
assets/icons/demo/audio.svgother516 B
assets/icons/demo/auth0.svgother759 B
assets/icons/demo/aws.svgother7.9 KB
assets/icons/demo/azure.svgother3.2 KB
assets/icons/demo/babel.svgother68.6 KB
assets/icons/demo/basecamp.svgother3.4 KB
assets/icons/demo/baseten.svgother1.3 KB
assets/icons/demo/bash.svgother4.2 KB
assets/icons/demo/battle-net.svgother1.1 KB
assets/icons/demo/behance.svgother12.4 KB
assets/icons/demo/bitbucket.svgother1.5 KB
assets/icons/demo/bitcoin.svgother2.3 KB
assets/icons/demo/blender.svgother3.7 KB
assets/icons/demo/bluesky.svgother1.0 KB
assets/icons/demo/bootstrap.svgother2.0 KB

assets/effects/pick.js

View on GitHub
/*
  pick.js - deals effects at random for one page. One ES module, no dependencies; the same code runs
  in `node scripts/effects.mjs pick` and in the browser (gallery.html).

    import { pick } from './assets/effects/pick.js';
    const index = await fetch('./assets/effects/index.json').then(r => r.json());
    const { picks } = pick(index.effects, { palette: 'dark', slots: ['hero', 'card', 'band'], history: ['caustics'] });
    // picks: [{ slot: 'hero', id: '...' }, ...]

  One effect per slot (hero = the hero or a large split frame, card = a card group, band = a wide band
  or the closing call to action, footer). Only effects made for the palette kind (meta.palettes) and
  for that slot are dealt (without a palette kind the ground is unknown, so only effects made for all
  three kinds are dealt); never the same id twice on one page, nor the last id of the history first;
  an id used in the last 20 picks of the history is less likely, and so is a second effect of a family
  already dealt. Two effects that list each other in meta.avoidWith never share a page (ids passed in
  exclude count as already on it, as in a second pick after the lead).
  Effects that follow the pointer (motion "interactive") are left out unless interactive is true.
  quiet: true leaves out the focal grounds (meta "focal": true, a ground with its own subject such as a
  sphere, a beam or peaks) and the pattern and dither families (rules, grids, contours, dots, halftone, ASCII:
  cards.md bans a pattern behind UI), for a slot that carries a big UI window, a screenshot or text.

  Chosen on purpose: an effect with meta "random": false (a literal subject such as the dotted globe,
  or a grade for the client's own photograph) is never dealt. A page that needs one names it in its
  slot, 'hero:dotted-globe' (or { slot: 'hero', id: 'dotted-globe' }); it is still refused on a
  palette kind or a slot it is not made for, and the page rules hold for it too: never the same id
  named twice, never two named effects that list each other in avoidWith, never one that clashes with
  an id passed in exclude (or is one).
*/

export const SLOTS = ['hero', 'card', 'band', 'footer'];
export const KINDS = ['light', 'dark', 'colour'];
/** the families a quiet slot (UI, a screenshot or text on top) never gets */
const QUIET_OUT = ['pattern', 'dither'];

const kindOf = k => (k === 'color' ? 'colour' : k);
/** true when the effect may be dealt at random (meta "random": false marks one chosen on purpose) */
export const dealable = e => e.random !== false;
/** true when the effect is made for this palette kind (meta.palettes); no kind fits every effect */
export const fitsKind = (e, kind) => !kind || (Array.isArray(e.palettes) && e.palettes.includes(kindOf(kind)));
/** true when a and b must not share a page (either lists the other in meta.avoidWith) */
export const clashes = (a, b) => !!(a && b) && ((a.avoidWith || []).includes(b.id) || (b.avoidWith || []).includes(a.id));

/** the effects that match the filters (on, palette, motion, family, cost, exclude, noInteractive, dealable, quiet) */
export function filterEffects(list, a = {}) {
  let out = list;
  if (a.dealable) out = out.filter(dealable);
  if (a.noInteractive) out = out.filter(e => e.motion !== 'interactive');
  if (a.quiet) out = out.filter(e => !e.focal && !QUIET_OUT.includes(e.family));
  if (a.on) out = out.filter(e => (e.bestOn || []).includes(a.on));
  if (a.palette) out = out.filter(e => fitsKind(e, a.palette));
  if (a.motion) out = out.filter(e => e.motion === a.motion);
  if (a.family) out = out.filter(e => e.family === a.family);
  if (a.cost) out = out.filter(e => e.cost === a.cost);
  if (a.exclude) { const ex = Array.isArray(a.exclude) ? a.exclude : String(a.exclude).split(','); out = out.filter(e => !ex.includes(e.id)); }
  return out;
}

function strHash(s) {
  let h = 2166136261 >>> 0;
  for (const ch of String(s)) { h ^= ch.codePointAt(0); h = Math.imul(h, 16777619); }
  return h >>> 0;
}
/** seeded random 0..1 (mulberry32 over a string hash of the seed) */
export function random(seed) {
  let a = strHash(seed) || 1;
  return () => {
    a = (a + 0x6d2b79f5) >>> 0;
    let t = a;
    t = Math.imul(t ^ (t >>> 15), t | 1);
    t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
    return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
  };
}

// 'hero' | 'hero:dotted-globe' | { slot, id } -> { slot, id | null }
function parseSlot(s) {
  if (s && typeof s === 'object') return { slot: s.slot, id: s.id || null };
  const [slot, id] = String(s).split(':').map(x => x.trim());
  return { slot, id: id || null };
}

/**
  effects: index.json's effects. opts: { palette, slots: [...] | count + on, seed, history: [ids, oldest
  first], interactive, quiet, exclude, motion, family, cost }. A slot may name its effect ('hero:dotted-globe').
  Returns { seed, slots, picks: [{ slot, id, named? }], notes }. Throws an Error with a plain message
  when nothing fits.
*/
export function pick(effects, opts = {}) {
  const palette = kindOf(opts.palette);
  if (palette && !KINDS.includes(palette)) throw new Error(`pick: unknown palette "${opts.palette}" (light, dark, colour)`);
  const parsed = opts.slots && opts.slots.length ? opts.slots.map(parseSlot) : null;
  const slots = parsed ? parsed.map(s => s.slot) : null;
  if (slots) for (const s of slots) if (!SLOTS.includes(s)) throw new Error(`pick: slot "${s}" (use ${SLOTS.join(', ')})`);
  const byId = new Map(effects.map(e => [e.id, e]));
  // effects named on purpose: they must exist and be made for this palette kind and slot
  const named = parsed ? parsed.map(({ slot, id }) => {
    if (!id) return null;
    const e = byId.get(id);
    if (!e) throw new Error(`pick: no effect "${id}"`);
    if (!fitsKind(e, palette)) throw new Error(`pick: "${id}" is made for ${e.palettes.join(', ')} pages, not ${palette}`);
    if (!(e.bestOn || []).includes(slot)) throw new Error(`pick: "${id}" is made for ${e.bestOn.join(', ')}, not ${slot}`);
    return e;
  }) : null;
  const exIds = (opts.exclude ? (Array.isArray(opts.exclude) ? opts.exclude : String(opts.exclude).split(',')) : []).map(id => String(id).trim()).filter(Boolean);
  if (named) {
    // the page rules hold for named effects too: once per page, no avoidWith pair, none excluded
    const given = named.filter(Boolean);
    given.forEach((e, i) => {
      if (given.findIndex(o => o.id === e.id) !== i) throw new Error(`pick: "${e.id}" is named twice; a page shows each effect once`);
      if (exIds.includes(e.id)) throw new Error(`pick: "${e.id}" is named and also excluded`);
      for (const o of given.slice(i + 1)) if (clashes(e, o)) throw new Error(`pick: "${e.id}" and "${o.id}" never share a page (avoidWith)`);
      for (const id of exIds) { const o = byId.get(id); if (clashes(e, o)) throw new Error(`pick: "${e.id}" never shares a page with "${id}", which is already on it (avoidWith)`); }
    });
  }
  const count = slots ? slots.length : Math.max(1, parseInt(opts.count ?? 1, 10) || 1);
  const base = { ...opts, palette, on: undefined, noInteractive: !opts.interactive, dealable: true };
  let pool = filterEffects(effects, slots ? base : { ...base, on: opts.on });
  // no palette kind: the ground is unknown, so only an effect made for every kind may be dealt
  if (!palette) pool = pool.filter(e => KINDS.every(k => fitsKind(e, k)));
  const allNamed = named && named.every(Boolean);
  if (!pool.length && !allNamed) throw new Error('pick: no effects match these filters');
  const fitsSlot = n => e => !slots || e.bestOn.includes(slots[n]);
  const seed = opts.seed != null && opts.seed !== '' ? String(opts.seed) : `${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
  const rand = random(seed);
  const history = (opts.history || []).map(p => (typeof p === 'string' ? p : p && p.id)).filter(Boolean);
  const recent = history.slice(-20);
  const fixed = named ? named.filter(Boolean) : [];
  // excluded ids are the ones an earlier pick already put on the page (or banned): their avoidWith holds too
  const earlier = exIds.map(id => byId.get(id)).filter(Boolean);
  const out = [];
  const notes = [];
  // the effects already on the page: dealt so far plus every named one
  const onPage = () => [...out.map(id => byId.get(id)), ...fixed.filter(e => !out.includes(e.id))];
  for (let n = 0; n < count; n++) {
    if (named && named[n]) { out.push(named[n].id); continue; }
    const prev = out.length ? out[out.length - 1] : history[history.length - 1];
    const slotPool = pool.filter(fitsSlot(n));
    if (!slotPool.length) throw new Error(`pick: no effect fits slot "${slots[n]}"${palette ? ` on a ${palette} page` : ''}`);
    const page = onPage();
    const ok = e => !page.some(p => clashes(p, e)) && !earlier.some(p => clashes(p, e));
    const taken = new Set(page.map(e => e.id));
    const fits = slotPool.filter(ok);
    if (!fits.length) throw new Error(`pick: every effect for slot "${slots ? slots[n] : opts.on || n + 1}" clashes with one already on the page (avoidWith)`);
    let cands = fits.filter(e => e.id !== prev && !taken.has(e.id));
    if (!cands.length) {
      // every effect for this slot is on the page already: one repeats with its own seed, and says so
      cands = fits.filter(e => e.id !== prev);
      if (cands.length) notes.push(`pick: every effect for slot ${n + 1} (${slots ? slots[n] : opts.on || 'any'}) is on the page already, so one repeats`);
    }
    if (!cands.length) { notes.push(`pick: only "${fits[0].id}" fits slot ${n + 1}, so it repeats`); cands = fits; }
    const weights = cands.map(e => {
      const uses = recent.filter(id => id === e.id).length;
      let wt = Math.pow(0.35, uses);
      const at = recent.lastIndexOf(e.id);
      if (at >= 0 && at >= recent.length - 5) wt *= 0.5;
      const famUses = page.filter(p => p.family === e.family).length;
      wt *= Math.pow(0.3, famUses);
      return wt;
    });
    const total = weights.reduce((s, x) => s + x, 0);
    let r = rand() * total, i = 0;
    while (i < weights.length - 1 && (r -= weights[i]) > 0) i++;
    out.push(cands[i].id);
  }
  return {
    seed, slots,
    picks: out.map((id, i) => ({ slot: slots ? slots[i] : opts.on || null, id, ...(named && named[i] ? { named: true } : {}) })),
    notes,
  };
}

export default { pick, filterEffects, random, dealable, fitsKind, clashes, SLOTS, KINDS };
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: 322kUpdated 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