ยท Jonathan Mondaut

Instructions, skills or subagents? Where each rule belongs

Claude Code and Codex give you three ways to tell an agent how to work: instructions, skills, and subagents. Most setups I see use only the first one, and put everything there.

That works until the file gets long. Then the agent reads a wall of rules at the start of every session, most of which don't apply to the task. Here's how I decide where each piece goes.

Instructions: what's always true

Instructions are the CLAUDE.md and AGENTS.md files. They're loaded at the start of every session, in full.

That makes them the right place for short rules that apply to almost every task:

And the wrong place for anything long or occasional. A deployment checklist you need twice a month doesn't belong in a file the agent reads before fixing a typo.

A good test: if a rule matters in fewer than half your sessions, it probably shouldn't be an instruction.

Skills: procedures loaded when needed

A skill is a folder with a SKILL.md: a name, a description, and the steps. It follows the open Agent Skills format. Claude Code reads skills from .claude/skills/, and Codex from .agents/skills/.

The key difference: until a skill is used, only its name and description are loaded. The agent sees a short list of what's available and loads the full skill when the task calls for it.

That makes skills the right place for procedures:

The description does the routing, so write it carefully. Say what the skill does and when to use it, in one sentence.

Subagents: a separate role with its own context

A subagent is a role the main agent can hand work to, like a code reviewer or a test writer. In Claude Code, subagents live in .claude/agents/ and run with their own context, separate from the main conversation.

That makes them right for work that's self-contained and noisy:

The main session gets the result, not the whole trail of files the subagent read.

A quick way to sort an existing file

Take your current instruction file and go through it line by line:

  1. Short, always true, needed in most sessions: keep it as an instruction.
  2. A procedure with steps, needed sometimes: move it to a skill.
  3. A role or a self-contained job: make it a subagent.
  4. True only for one repo: keep it in that repo's file, not in anything shared.

Most long instruction files shrink by half after this.

Keeping all three in one place

Once you have all three, you have three kinds of files to keep in sync across repos and agents. That's what I built Baudrier for. A harness is one GitHub repo with your instructions, skills and subagents. Baudrier serves it to Claude Code and Codex in every repo you connect, writes skills into each agent's skills folder, and syncs Claude Code subagents into .claude/agents/baudrier/. Codex can read a subagent's text through Baudrier's MCP server and follow it as a role description.

Try it

Baudrier is in closed Alpha. Request an invite and tell me how your current setup splits between the three.