# AGENTS.md Guide for AI agents and tools working with this repository. Humans: see [README.md](README.md). ## What this repo is A design reference library: **5,627 designs** (1,147 images, 4,480 videos) across 6 sections and 136 categories, plus **192 apps** with **66,846 captioned screens**. Every design has a title, description, tags, creator and, usually, a link to the original post. All media files are in the repo. Use it to find visual references for UI work, such as "dark-mode fintech dashboards", "onboarding flows on mobile" or "hover effects on cards". Search the data and read the descriptions, captions and tags first, then open only the media you need. ## Where to look | Need | Read | |---|---| | Counts and section sizes | [data/stats.json](data/stats.json) (tiny) | | Sections and categories | [data/taxonomy.json](data/taxonomy.json) | | Search designs | [data/designs.jsonl](data/designs.jsonl), one JSON object per line | | Search app screens by caption | [data/screens.jsonl](data/screens.jsonl) | | Apps and their screens | [data/apps.jsonl](data/apps.jsonl) | | Designs by tag | [data/tags.json](data/tags.json), tag → design IDs | | Designs by creator | [data/creators.json](data/creators.json), creator → design IDs | | One item, given its media folder | `media/designs//meta.json` or `media/apps//meta.json` | | Field definitions | [data/README.md](data/README.md) | | Human-readable browsing | [catalogue/](catalogue/README.md), [tags/](tags/README.md), [creators/](creators/README.md) | | Analysis: per-category profiles, exemplar IDs, style recipes, screen patterns, app labels, palettes | [index/README.md](index/README.md) | | Design knowledge for building UIs (AI skills) | [skills/](skills/README.md): start with `skills/ui-catalogue/SKILL.md` | | Search / look CLI | `python3 scripts/uic.py --help` (`search`, `sheet`, `strip`, `screensheet`, `appsheet`...) | `output/` holds the raw crawl. Prefer `data/`, which is cleaned and has stable field names. ## Working efficiently - `data/designs.jsonl` is about 5.5 MB. Don't read it whole: filter with `grep`, `jq` or a short script, then read the matching lines. - Every design has a 26-character `id` that is also its folder name under `media/designs/`. Every app's `id` is its folder under `media/apps/`. - `media.file` is the main file. For videos, `media.poster` is a still WebP frame, which is much cheaper to look at than the video. - Tags mix colors (`Black`, `Blue`), themes (`Dark mode`, `Light mode`), platforms (`Web`, `iOS`), layout (`Centered`, `Card layout`), components (`Buttons`, `Modal`), motion (`Hover effect`, `Scroll animation`) and industries (`Fintech`, `Saas`). They are case-sensitive and use the spelling found in the data (for example `Saas`, not `SaaS`). - Paths in the data are relative to the repo root. ## Recipes ```bash # Dark-mode fintech designs: title and poster/image path jq -c 'select((.tags|index("Dark mode")) and (.tags|index("Fintech"))) | {title, file: (.media.poster // .media.file)}' data/designs.jsonl # Everything in one category jq -c 'select(.section=="UI Elements" and .category=="Modals and Dialogs") | {id, title}' data/designs.jsonl # Free-text search over titles and descriptions grep -i 'onboarding' data/designs.jsonl | jq -c '{id, title, section, category}' # App screens whose caption mentions checkout grep -i 'checkout' data/screens.jsonl | jq -c '{app, caption, file}' # Most used tags jq -r 'to_entries[:30][] | "\(.value.count)\t\(.key)"' data/tags.json # Everything by one creator jq -r '."Maxim Kuznetsov".ids[]' data/creators.json ``` ```python import json designs = [json.loads(l) for l in open("data/designs.jsonl")] hits = [d for d in designs if d["type"] == "image" and "Cards" in d["tags"] and d["section"] == "Sites"] ``` ## Attribution None of the work here belongs to this repo. When you use or cite a design, credit `creator.name` and link `source_url` (or `creator.url`). App screens belong to the company that makes the app. ## Skills `skills/` holds eight AI skills distilled from a visual study of the whole catalogue (patterns, build recipes, measured timings and palettes, cited exemplar IDs): `ui-catalogue` (search), `-workflow` (brief to build), `-web`, `-components`, `-motion`, `-app-flows`, `-brand-ads`, `-style`. Install for Claude Code/omp with `python3 scripts/install_skills.py`. Validate citations with `python3 scripts/check_skill_refs.py`. ## Keeping the indexes in sync Generated files must not be edited by hand. Rebuild them with the scripts instead (see [scripts/README.md](scripts/README.md)): ```bash python3 scripts/build_index.py . # gallery/data.json python3 scripts/build_ai_index.py # data/, meta.json files, tags/, creators/ python3 scripts/build_catalogue.py # catalogue/ and wiki/ python3 scripts/build_skill_index.py # index/ (analysis; app labels in index/app-labels/ are curated input) ```