Where To Place AGENTS.md
Recommend high-value locations for scoped Codex instruction files. This skill reports
only; it does not create or edit files.
Placement Model
Codex reads AGENTS.md instruction files as project guidance. Nested files should be
used only when a subtree has meaningful local conventions that the parent file should
not carry.
Use AGENTS.md for shared project guidance. Use AGENTS.override.md only when the user
explicitly wants a local override pattern and the repo already uses that convention.
Scoring Heuristic
Recommend a directory only when it clearly clears the bar.
Positive signals:
- Module boundary: its own
package.json, pyproject.toml, go.mod, Cargo.toml,
*.csproj, pom.xml, build.gradle, or similar manifest.
- Distinct stack or conventions: different language, framework, build tool, formatter,
test runner, deployment target, or safety constraint from the parent.
- Local config: its own lint, format, test, CI, codegen, fixtures, or tooling rules.
- Size/depth: enough source files that context is repeatedly re-derived.
- Architectural boundary:
apps/<x>, packages/<x>, services/<x>, cmd/<x>, or a
bounded domain module in a monorepo.
Negative signals:
- Generated, vendored, dependency, virtualenv, cache, coverage, or git-ignored dirs.
- Tiny leaf dirs, asset-only dirs, fixtures-only dirs, or directories already covered by
a parent instruction file.
- The repo root when it lacks
AGENTS.md; report that as a prerequisite, not a nested
recommendation.
Procedure
1. Orient
- Find existing instruction files:
find . \( -name AGENTS.md -o -name AGENTS.override.md \) -not -path '*/node_modules/*'
- Read root
AGENTS.md, CLAUDE.md if present, and README* to understand what is
already documented.
- Map manifests/configs and respect
.gitignore.
2. Score
- Apply the heuristic to each candidate directory.
- Collapse redundancy: prefer the parent unless the child has genuinely distinct local
context.
- For a large repo, delegate broad directory exploration to a read-only subagent when
available and score from its summary.
3. Report
Return a short ranked list. For each recommendation include:
- directory path;
- recommended file name, usually
AGENTS.md;
- one-line rationale naming the strongest signals;
- whether it should supplement or replace parent guidance.
Add a "Skipped / not worth it" section for notable directories you intentionally left
out and why.
Guardrails
- Report only; never create, edit, or auto-generate instruction files.
- Never recommend a directory already covered well by an existing or parent
AGENTS.md.
- Respect
.gitignore and exclude generated/vendor/dependency directories.
- Keep recommendations few and evidence-based.
Source: ada-ggf25/AI-Tools — distributed by TomeVault.
1---2name: where-agents-md3description: Scan the current repository and recommend which directories deserve their own scoped Codex AGENTS.md or AGENTS.override.md instruction file, as a ranked report with one-line rationales. Does not generate files. Trigger when the user says "where should AGENTS.md go", "which directories need AGENTS.md", "where-agents-md", "scout AGENTS.md placement", "find nested AGENTS.md candidates", or "where should Codex instructions live". Use when this capability is needed.4---56# Where To Place AGENTS.md78Recommend high-value locations for scoped Codex instruction files. This skill reports9only; it does not create or edit files.1011## Placement Model1213Codex reads `AGENTS.md` instruction files as project guidance. Nested files should be14used only when a subtree has meaningful local conventions that the parent file should15not carry.1617Use `AGENTS.md` for shared project guidance. Use `AGENTS.override.md` only when the user18explicitly wants a local override pattern and the repo already uses that convention.1920## Scoring Heuristic2122Recommend a directory only when it clearly clears the bar.2324Positive signals:2526- Module boundary: its own `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`,27 `*.csproj`, `pom.xml`, `build.gradle`, or similar manifest.28- Distinct stack or conventions: different language, framework, build tool, formatter,29 test runner, deployment target, or safety constraint from the parent.30- Local config: its own lint, format, test, CI, codegen, fixtures, or tooling rules.31- Size/depth: enough source files that context is repeatedly re-derived.32- Architectural boundary: `apps/<x>`, `packages/<x>`, `services/<x>`, `cmd/<x>`, or a33 bounded domain module in a monorepo.3435Negative signals:3637- Generated, vendored, dependency, virtualenv, cache, coverage, or git-ignored dirs.38- Tiny leaf dirs, asset-only dirs, fixtures-only dirs, or directories already covered by39 a parent instruction file.40- The repo root when it lacks `AGENTS.md`; report that as a prerequisite, not a nested41 recommendation.4243## Procedure4445### 1. Orient4647- Find existing instruction files:48 `find . \( -name AGENTS.md -o -name AGENTS.override.md \) -not -path '*/node_modules/*'`49- Read root `AGENTS.md`, `CLAUDE.md` if present, and `README*` to understand what is50 already documented.51- Map manifests/configs and respect `.gitignore`.5253### 2. Score5455- Apply the heuristic to each candidate directory.56- Collapse redundancy: prefer the parent unless the child has genuinely distinct local57 context.58- For a large repo, delegate broad directory exploration to a read-only subagent when59 available and score from its summary.6061### 3. Report6263Return a short ranked list. For each recommendation include:6465- directory path;66- recommended file name, usually `AGENTS.md`;67- one-line rationale naming the strongest signals;68- whether it should supplement or replace parent guidance.6970Add a "Skipped / not worth it" section for notable directories you intentionally left71out and why.7273## Guardrails7475- Report only; never create, edit, or auto-generate instruction files.76- Never recommend a directory already covered well by an existing or parent77 `AGENTS.md`.78- Respect `.gitignore` and exclude generated/vendor/dependency directories.79- Keep recommendations few and evidence-based.8081---82> Source: [ada-ggf25/AI-Tools](https://github.com/ada-ggf25/AI-Tools) — distributed by [TomeVault](https://tomevault.io).83<!-- tomevault:4.0:skill_md:2026-06-15 -->