Ray's Knowledge Base
Unlock

Personal agent rules live in one user-level file linked from the skills repo, not in a repo's AGENTS.md

DecisionVerified 1 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

A repo AGENTS.md that is pushed is read by other people. A line such as "Load working-style, code-style, rgit and commits skills first" names skills they do not have. Personal rules (never push, no AI attribution, no emoji) also do not belong to the repo.

Decision#

Keep personal rules in ~/Code/ray/skills/user/instructions.md. ./install.sh links it to ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.pi/agent/AGENTS.md, ~/.omp/agent/AGENTS.md and ~/.config/opencode/AGENTS.md, and skips a path that holds a real file. The file says when to load each skill and holds the git rules. Repo AGENTS.md files hold repo facts only.

Why#

User-level files load in every repo together with the project file, so one source covers all harnesses and nothing personal is pushed. The Claude Code memory docs say instruction files are context, not enforcement: a rule that must hold needs permissions.deny or a PreToolUse hook. The docs also give a target of under 200 lines, and say Cowork desktop sessions skip a symlinked ~/.claude/CLAUDE.md.

Rejected options#

Skill names in the pushed repo AGENTS.md: fails for other users. A gitignored CLAUDE.local.md per repo: it stops Claude Code from reading AGENTS.md unless Project instructions is set to claude-md-and-agents-md, and it must be repeated per repo. Naming the source user/AGENTS.md: the global git ignore lists AGENTS.md, so git would skip it.

Also found by searching

  • how do I load my personal skills without naming them in the repo AGENTS.md
  • where to put never push rule for all repos
  • global CLAUDE.md for codex pi and claude from one file
  • other users cannot use skills named in AGENTS.md