agentleFS
romanveselovskiromanveselovski/ru-agents-frontend-rules/AGENTS.md

ru-agents-frontend-rules

AGENTS.md0 starsChanged 58 days agoMITView on GitHub

Правила: .cursor/rules/ или web-ai-rules/rules/. Запрос пользователя важнее файла. Язык чата — как у пользователя в задаче. Код и тексты сайта — язык продукта. Код — karpathy-guidelines.mdc. React/Next уже в репо — можно skills/frontend-developer/SKILL.md. Стек не выдумывай. Сборка UI — пустой репо: 01-greenfield.mdc. Визуал: 14-design.mdc + frontend-design. Поведение: 16-ux.mdc (как у Google/Material по взаимодействию, не обязательно их скин). Motion: antigravity-design-expert, если нет плоского макета. Компоненты важнее декора. prefers-reduced-motion гасит сцены. Текст — 52-copy.mdc + avoid-ai-writing.mdc (и tsx/html). Статьи — 53-content.mdc, skills/blog-author/SKILL.md,…

The file

Files
AGENTS.md

Агенту: фронтенд этого сайта

Правила: .cursor/rules/ или web-ai-rules/rules/. Запрос пользователя важнее файла.

Язык чата — как у пользователя в задаче. Код и тексты сайта — язык продукта.

Код — karpathy-guidelines.mdc. React/Next уже в репо — можно skills/frontend-developer/SKILL.md. Стек не выдумывай.

Сборка UI — пустой репо: 01-greenfield.mdc. Визуал: 14-design.mdc + frontend-design. Поведение: 16-ux.mdc (как у Google/Material по взаимодействию, не обязательно их скин). Motion: antigravity-design-expert, если нет плоского макета. Компоненты важнее декора. prefers-reduced-motion гасит сцены.

Текст — 52-copy.mdc + avoid-ai-writing.mdc (и tsx/html).

Статьи — 53-content.mdc, skills/blog-author/SKILL.md, факты из project-facts.md. Schema — skills/seo-aeo-schema-generator/SKILL.md. GEO — skills/seo-geo/SKILL.md.

Замеры — CWV на production. Гейт CI — skills/frontend-lighthouse/SKILL.md, только если просили CI.

UI

  1. Сначала существующие компоненты и сквозной header/footer.
  2. Один toast, tooltip, form, modal, button на проект.
  3. На главной лого без ссылки. Кликабельное: hover + pointer + pressed. На мобилке обязательно состояние нажатия, не только hover. Лого: только pointer.
  4. Формы: label, сводка ошибок, значения не сбрасывать. Toast не для ошибок форм.
  5. У данных: loading / empty / error / success.
  6. WCAG 2.2 AA. Клавиатура = мышь. Светлая и тёмная тема с первого каркаса.
  7. Кастомная 404 + HTTP 404 с каркаса.
  8. Не сырой HTML извне. Не секреты в клиент.

Перед сдачей: фокус; нет self-link лого; нет пустого экрана; LCP не lazy; noopener; Esc закрывает overlay; скроллбар не дёргает фон; выделение не закрывает модалку; битый URL — кастомная 404; обе темы; тексты без AI-канцелярита.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.