Config placement is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Where an instruction belongs in AI-assistant config: always-on root file, path-scoped rule, directory context file, skill or agent, and how to review one. Use when adding or reviewing a rule, skill, agent or context file.
Claude Code: save it as .claude/skills/config-placement/SKILL.md
Cursor: save it as .cursor/rules/config-placement.md
Codex: save it as .agents/skills/config-placement/SKILL.md
ChatGPT, Gemini and other assistants: paste it into custom or project instructions
Skill file
Placement order
Always needed and short: the root context file.
Tied to files, stable and under about 50 lines: a path-scoped rule in the deepest directory that covers all its globs.
Knowledge about one directory: that directory's context file.
A procedure or reference: a skill next to its code.
Isolation or restricted tools: an agent.
Rules of thumb
One home per fact. Link to it, do not copy it.
A rule covers one topic and is imperative and checkable.
Check that every glob matches a tracked file and that every path, command and flag the text names exists.
Reviewers that run in CI often do not read path-scoped rules, so repeat a review-critical convention as a short block in the context file of its area.
Never put secrets or customer data in any of these files.
Use this skill with your AI agent:Open on Skill Issue to copy, download, or add to your library.
Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.