design-lookup
Design Lookup
Search the web for CSS components, SVG icons, animations, and design resources. Return usable code with attribution.
Tools
scripts/fetch-page.py — Playwright browser fetcher
Bypasses Cloudflare protection and renders SPAs. Use this for sites that block WebFetch (CodePen, UIVerse, etc.).
# Extract HTML/CSS/JS code from a CodePen pen (returns clean JSON)
python3 scripts/fetch-page.py "https://codepen.io/user/pen/ID" --codepen-code
# Fetch any protected page as text
python3 scripts/fetch-page.py "https://uiverse.io/user/component-slug"
# Extract specific elements with CSS selector
python3 scripts/fetch-page.py "https://example.com" --selector ".code-block"
# Increase timeout for slow pages
python3 scripts/fetch-page.py "https://example.com" --wait 20
When to use: After WebSearch finds promising URLs on Cloudflare-protected sites (CodePen, UIVerse, etc.), use this script to fetch the actual code.
When NOT to use: For sites where WebFetch works fine (CSS-Tricks, GitHub raw, dev.to, MDN). WebFetch is faster.
Workflow
-
Classify the request — Determine what the user needs:
- CSS component (button, card, loader, toggle, etc.)
- SVG icon (UI icon, brand logo, etc.)
- CSS animation/effect (hover effect, transition, keyframe animation)
- SVG graphic (illustration, wave, blob, background)
- Design inspiration (visual reference, not code)
-
Choose sources — Consult references/sources.md for the best sources and search patterns. Use the "Search Strategy by Request Type" table.
-
Search broadly — Run 2-3 parallel WebSearch queries combining:
site:{source} {query}for targeted source searches- A general
{query} CSS/SVGsearch as fallback - Vary terminology (e.g., "loader" vs "spinner" vs "loading animation")
-
Fetch code — Use the appropriate extraction method per source:
CodePen pens — Use
fetch-page.py --codepen-codeto extract clean HTML/CSS/JS as JSON.UIVerse components — Use
fetch-page.pyto get the page text (includes code with line numbers inline).SVG icons — Fetch raw SVGs directly from GitHub with WebFetch:
- Lucide:
https://raw.githubusercontent.com/lucide-icons/lucide/main/icons/{name}.svg - Heroicons:
https://raw.githubusercontent.com/tailwindlabs/heroicons/master/optimized/24/outline/{name}.svg(alsosolid/,20/solid/) - Tabler:
https://raw.githubusercontent.com/tabler/tabler-icons/main/icons/outline/{name}.svg(alsofilled/) - Feather:
https://raw.githubusercontent.com/feathericons/feather/main/icons/{name}.svg - Simple Icons:
https://raw.githubusercontent.com/simple-icons/simple-icons/develop/icons/{name}.svg
Articles/tutorials — Fetch directly with WebFetch (CSS-Tricks, MDN, dev.to, blogs all work).
- Lucide:
-
Present results — Format output as:
## {Description of component}
Source: {URL}
{code block with HTML/CSS/SVG}
{One-line note on how to customize, if relevant}
Provide 2-4 options when possible so the user or design agent can choose.
Agentic Workflow & Vibe Coding
- Iterative Sourcing: Do not expect the perfect component or icon on the first search. Fetch a candidate, review the extracted code, isolate any framework-specific bloat or conflicting styles, strip or adapt ONE CSS class/rule at a time, and preview the result until the snippet is clean and usable.
- Vibe Coding: Commit the clean, working CSS or SVG snippet locally before attempting to integrate it into complex layout structures or interactive components.
Guidelines
- Clean up extracted code — Remove unnecessary vendor prefixes, framework-specific wrappers, or unrelated styles. Present minimal, self-contained snippets.
- Note licenses — If a source requires attribution (e.g., Flaticon free tier), mention it.
- For SVG icons — Prefer inline SVG code over links to icon fonts. Include
viewBoxand strip unnecessary metadata. - For generators (waves, blobs, gradients) — Suggest the generator URL so the user can tweak parameters, and provide a sample output.
More from baphomet480/claude-skills
kitchen-sink-design-system
Kitchen Sink design system workflow for Next.js and React projects, with secondary support for Astro, SvelteKit, Nuxt, and static HTML. Use when asked for a Kitchen Sink page, Design System, UI Audit, Style Guide, or Component Inventory, or when a project needs a component inventory plus component creation and a sink page implementation. Covers CVA variant architecture, Tailwind v3/v4 token systems, shadcn/ui integration, and TinaCMS content modeling.
40deep-research
Conduct comprehensive, multi-round research that produces rich visual reports. Use when asked for "deep research", "comprehensive analysis", "compare frameworks", "evaluate options", "research the state of X", or any task requiring investigation across 10+ sources. NOT for quick lookups — this is a 5-15 minute deep dive that produces a briefing-quality artifact with screenshots, diagrams, tables, and cited findings.
37nextjs-tinacms
Build Next.js 16 + React 19 + TinaCMS sites with visual editing, blocks-based page builder, and complete SEO. Use this skill whenever the user mentions TinaCMS, Tina CMS, Next.js with a CMS, visual editing with Next.js, click-to-edit, content-managed Next.js site, blocks pattern page builder, or migrating to Next.js + TinaCMS. Also trigger for TinaCMS schema design, self-hosted TinaCMS, TinaCMS media configuration, or any TinaCMS troubleshooting. Covers Day 0-2 setup from scaffolding through production deployment on Vercel.
32cloudflare-pages
Deploy static sites to Cloudflare Pages with custom domains and CI/CD. Use when the user wants to deploy a site to Cloudflare Pages, add a custom domain to a Pages project, set up GitHub Actions CI/CD for Cloudflare Pages, roll back a deployment, or verify deployment status. Triggers on "deploy to Cloudflare", "Cloudflare Pages", "add custom domain", "pages deploy", or any Cloudflare Pages hosting workflow.
31local-ocr
Local OCR pipeline for AI agents featuring auto-rotation, deskew, and searchable PDF generation via ocrmypdf and Tesseract.
23hugo-sveltia-cms
Bootstrap new Hugo sites with Sveltia CMS and Basecoat UI, or convert existing sites (any SSG or CMS) to Hugo + Sveltia CMS. Use this skill whenever the user mentions Hugo, Sveltia CMS, Decap CMS migration, TinaCMS migration, static site CMS setup, headless CMS for Hugo, or wants to add a content management interface to a Hugo site. Also trigger when converting WordPress, Jekyll, Eleventy, TinaCMS, or other sites to Hugo, or when setting up Git-based content management. Covers the full workflow from scaffolding through Cloudflare Pages deployment with GitHub OAuth authentication.
14