---
title: "GEMINI.md (Gemini CLI): 경로 및 형식 · DotsAgent"
description: "GEMINI.md의 위치와 형식, frontmatter, 전역 및 중첩 파일의 병합 방식, 이 파일을 읽는 도구를 확인하세요. 2026-10-01에 확인했습니다."
url: https://dotsagent.io/ko/instructions/files/gemini-md
---

GEMINI.md

# GEMINI.md (Gemini CLI): 파일 위치와 도구별 읽기 방식

GEMINI.md는 Gemini CLI가 모든 prompt와 함께 보내는 컨텍스트 파일입니다. context.fileName을 설정하면 AGENTS.md나 다른 이름의 파일도 읽을 수 있습니다.

## 파일 위치

- 전역: ~/.gemini/GEMINI.md.
- 워크스페이스 디렉터리와 상위 디렉터리에 있는 GEMINI.md.
- 도구가 접근하는 디렉터리와 신뢰된 루트까지의 상위 디렉터리에서 필요할 때 검색되는 GEMINI.md.

## 형식

frontmatter가 없는 Markdown 형식입니다. Memory Import Processor를 통해 @file.md로 다른 파일을 포함할 수 있으며, 상대 경로와 절대 경로를 모두 사용할 수 있습니다. 파일 이름은 문자열이나 목록으로 context.fileName에서 설정할 수 있습니다.

`GEMINI.md`

```
# Project context

@./docs/architecture.md

## Commands

- Install: `uv sync`
- Test: `uv run pytest`
- Lint: `uv run ruff check .`

## Rules

- Target Python 3.13 with type hints on public functions.
- Keep database code in app/db/.
- Never run migrations against production.
```

## 우선순위 및 병합

파일은 전역 파일, 워크스페이스 및 상위 디렉터리의 파일, 필요할 때 검색되는 파일 순으로 로드됩니다. 모두 이어 붙여 모든 prompt와 함께 보내므로 어떤 파일도 다른 파일을 덮어쓰지 않습니다.

## 이 파일을 읽는 도구

| 도구 | 지원 |
| --- | --- |
| [Gemini CLI](https://geminicli.com/docs/cli/gemini-md/) | 기본 지원합니다. context.fileName으로 이름을 바꾸거나 AGENTS.md를 추가할 수 있으며, /memory show와 /memory reload로 내용을 확인하고 다시 불러올 수 있습니다. |
| [GitHub Copilot](https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions) | 루트의 GEMINI.md를 AGENTS.md의 대안으로 에이전트 지침에 사용합니다. |

## 팁

- .gemini/settings.json에서 context.fileName을 ["AGENTS.md", "GEMINI.md"]로 설정해 다른 에이전트와 파일을 공유하세요.
- 로드된 모든 파일은 모든 prompt와 함께 전달되므로, 매번 모델에 필요하지 않은 내용은 줄이세요.
- /memory show로 Gemini CLI가 실제로 로드한 내용을 확인하고, 파일을 수정한 뒤에는 /memory reload를 실행하세요.

양식 하나로 다섯 가지 도구에 사용할 AGENTS.md와 규칙 파일을 생성하세요. [AGENTS.md 생성기 열기 →](https://dotsagent.io/ko/instructions)

## 기타 지침 파일

[AGENTS.md](https://dotsagent.io/ko/instructions/files/agents-md)

[CLAUDE.md](https://dotsagent.io/ko/instructions/files/claude-md)

[.cursor/rules/*.mdc](https://dotsagent.io/ko/instructions/files/cursor-rules)

[.github/copilot-instructions.md](https://dotsagent.io/ko/instructions/files/github-copilot-instructions)

[.devin/rules/*.md](https://dotsagent.io/ko/instructions/files/windsurf-rules)

[.clinerules/](https://dotsagent.io/ko/instructions/files/cline-rules)

[~/.openclaw/workspace/AGENTS.md](https://dotsagent.io/ko/instructions/files/openclaw-workspace)

## 출처

1. [geminicli.com](https://geminicli.com/docs/cli/gemini-md/)/docs/cli/gemini-md/

AI 에이전트를 만드는 개발자를 위한 독립적인 참고 자료입니다. 여기에 언급된 어떤 업체와도 제휴 관계가 없습니다.

© 2026 DotsAgent · 정보 확인일: 2026년 10월 1일
