> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor Rules, AGENTS.md и .cursorignore

> Разберите Cursor Rules, AGENTS.md и .cursorignore для project context, rule inheritance и index control.

## Короткий ответ

Cursor Rules говорят Cursor, как работать в проекте. `AGENTS.md` — repository instruction file, который могут читать разные coding agents. `.cursorignore` управляет тем, какие files или directories Cursor не должен индексировать или читать.

Все они связаны с project context, но решают разные задачи: Rules направляют behavior, `AGENTS.md` дает cross-agent instructions, `.cursorignore` исключает content.

## Сравнение

| File / feature     | Основная роль                                             |
| ------------------ | --------------------------------------------------------- |
| Cursor Rules       | Project, team или user-level rules для Cursor             |
| `AGENTS.md`        | Cross-agent repository instructions и collaboration norms |
| `.cursorignore`    | Files или directories, которые Cursor должен игнорировать |
| API Key / Base URL | Model request setup, не project rules                     |

## Что хорошо писать в Rules

* Project coding style
* Framework conventions
* Component и directory rules
* Test и validation requirements
* Cursor editing behavior

## Что хорошо писать в .cursorignore

* Large build artifacts
* Dependency directories
* Generated files
* Sensitive directories, которые не должны индексироваться
* Large files, не связанные с текущей разработкой

## Частые ошибки

* Записывать API Keys в Rules или `AGENTS.md`.
* Считать `.cursorignore` полной security system.
* Хранить outdated rules, которые вводят AI в заблуждение.
* Думать, что Base URL configuration заменяет project rules.
* Смешивать Cursor Rules с Claude Code `CLAUDE.md`.

## О LLMEasy

LLMEasy отвечает за model API access и usage visibility. Cursor Rules, `AGENTS.md` и `.cursorignore` отвечают за project context и editing behavior.

API access — только первый шаг. Долгосрочное качество результата сильно зависит от ясных rules и controlled context.

## Связанные материалы

* [Как настроить custom OpenAI API в Cursor](/faq/cursor/custom-openai-api)
* [Как настроить MCP в Cursor](/faq/cursor/mcp)
* [Что такое AGENTS.md в Codex CLI?](/faq/codex/agents-md)
* [Что такое CLAUDE.md в Claude Code?](/faq/claude-code/claude-md)

## References

* [Cursor Rules](https://cursor.com/docs/rules)
* [Cursor ignore file](https://cursor.com/docs/reference/ignore-file)
