.ai/README.md
This directory contains modular AI agent instruction files for the GitLab
project. These files are referenced from AGENTS.md (and its identical copy
CLAUDE.md) at the repository root via .ai/... paths.
AGENTS.md and CLAUDE.md at the repo root (and optionally at
subdirectory levels) are the entry points. They are identical in content —
AGENTS.md is the source of truth..ai/ via .ai/<module>.md..ai/* pattern is gitignored, so you can add personal instruction files
here without them being committed. Committed modules were added with
git add --force. Files already tracked by git (force-added) will continue
to be tracked despite the gitignore pattern — only new untracked files you
create in .ai/ are automatically ignored.Create any .md file in .ai/ — it will be gitignored automatically:
# Example: add personal testing preferences
echo "# My Testing Notes" > .ai/my-testing.md
If you wish, you can create these files in a separate source-controlled project, and symlink them into this repo.
To add a new shared module that all contributors benefit from:
.ai/ (e.g., .ai/new-module.md)git add --force .ai/new-module.mdAGENTS.md and CLAUDE.md (keep them identical)Create AGENTS.local.md at any directory level for personal customizations.
This file is explicitly referenced via @AGENTS.local.md in both CLAUDE.md
and AGENTS.md. CLAUDE.local.md is also supported — Claude Code loads it
natively by convention, not via an explicit reference in the instruction files.
Both files can reference any additional gitignored files you have in .ai/ or
elsewhere.
The AGENTS.local.md is gitignored and will not be committed.
It may also be symlinked from a local source-controlled repo.
See also: https://gitlab.com/gitlab-org/gitlab/-/work_items/594821