Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 3.38 KB

AGENTS.md

File metadata and controls

23 lines (14 loc) · 3.38 KB

Agent guide

CONTRIBUTING.md covers setup, adding a brand, commit conventions and what CI checks. This file holds the rules agents have got wrong in this repository.

The website ships with every change

https://ailogo.yldm.ai is built from apps/site and deployed by .github/workflows/docs.yml on every push to main. A redeploy is not an update: the landing page copy, the marquee, the stats and the gallery filters are written by hand, so a change to the icon set that does not touch apps/site deploys a site that still describes the old set. That is what happened when the first 663 non-AI brands landed — they deployed, but the site still said "Every AI brand", drew only AI marks and filed the new brands under Apps, and read as not updated.

Every change updates the site in the same pull request. There is no docs/ directory — the site is the documentation — so any change to what the package ships or how it is used is not done until the site shows it: brands and variants, categories, components and props, the lookup tables, CDN paths and file formats, install steps and peer dependencies, bundle sizes, licensing. Do not leave the site for a follow-up pull request, and do not wait to be asked. A change that genuinely leaves the site accurate — a test, CI, a refactor with no visible effect — says so in one line of the pull request body ("Site: no change needed, because …"), so the question was asked rather than skipped.

Where a change usually lands:

  • Anything a reader sees: the section of apps/site/src/landing that describes it (Hero, Stats, Variants, Features, Install, Cdn, LookupCard) and the code samples in it.
  • Counts and copy: apps/site/index.html (title, description, Open Graph, Twitter, JSON-LD) and every locale under apps/site/src/i18n/locales — all eleven, not only en.json.
  • A new category: src/types/toc.ts, groups and stats in apps/site/src/registry.ts, FILTERS in apps/site/src/gallery/Gallery.tsx, the filter label and gallery.group.* in every locale, stats.brandsNote, and the README columns in scripts/readmeWorkflow.
  • What the first screen shows: apps/site/src/landing/featured.ts. If a visitor should notice the change, it belongs there. Everything it imports lands on the critical path, which apps/site/treeshake/check.mjs budgets.
  • Before pushing: pnpm --dir apps/site run type-check, pnpm --dir apps/site run test and pnpm --dir apps/site run build.

After the pull request merges, check the deploy rather than assume it: the Docs run for the merge commit succeeded (gh run list --workflow docs.yml), and the live site shows the change — the <title> from curl -s https://ailogo.yldm.ai/, and a new asset such as https://ailogo.yldm.ai/svg/<slug>.svg answering 200. Pages are cached for ten minutes, so a stale page right after the deploy is the cache, not the build.

Staging brand directories

A brand directory is named after the brand, and a machine-wide ignore can swallow it: Rust's target/ in core.excludesFile matched src/Target/ on a case-insensitive filesystem, the directory never reached the commit, and CI failed on the missing index.mdx while every local check passed. After staging a batch of brands, confirm that each one exported from src/icons.ts has its directory in the index (git ls-files src/<Brand>), and add a negation to .gitignore for any that do not.