- Skills — progressively disclosed on-demand via the
activate_skilltool - AGENTS.md — eagerly loaded into the system prompt at init time
Skills Example
Progressive skill disclosure in action
AGENTS.md Example
Project instructions in action
Skills
Skills let you package reusable instructions that agents load only when they need them. Instead of stuffing everything into the system prompt, skills keep the prompt small and focused — the agent sees a short menu of available skills and activates the ones relevant to the current task.How skills work
- You point the agent at one or more skill directories
- At init time, only each skill’s name and description appear in the system prompt
- When the agent decides it needs a skill, it calls the
activate_skilltool - The skill root path and full instructions from
SKILL.mdare returned to the agent as a tool result
Creating a skill
A skill is a directory containing aSKILL.md file. The file has YAML frontmatter (name + description) followed by markdown instructions:
SKILL.md:
Frontmatter requirements
Using skills with an agent
activate_skill with the skill name and receive the full instructions.
Using skills with config files
AGENTS.md
AGENTS.md files provide project-level instructions that are eagerly loaded into the agent’s system prompt at init time. Unlike skills (which are progressively disclosed), AGENTS.md content is always present — making it ideal for coding standards, API conventions, and other rules that should always apply.How it works
- Auto-discovery is enabled by default, or you point the agent at one or more
AGENTS.mdfiles - At init time, the file contents are loaded and placed in a
<project_instructions>block in the system prompt - The agent sees these instructions on every interaction
Creating an AGENTS.md file
Create anAGENTS.md file in your project root (or any directory). No special frontmatter or formatting is required — it’s just markdown:
Using AGENTS.md with an agent
Default auto-discovery
By default, Tyler discoversAGENTS.md files by walking upward from the current working directory:
Explicit path
Auto-discovery
You can also setagents_md=True explicitly. Agent.from_config() starts discovery from the config file directory when agents_md is omitted or set to true:
Disable loading
Multiple files
--- separators.
Using AGENTS.md with config files
Size limits
AGENTS.md content is guarded against oversized files:- Individual files larger than 100,000 characters are skipped with a warning
- Combined content from multiple files is truncated at 100,000 characters
When to use which
Use AGENTS.md for short, universal project rules that should always be in context. Use skills for detailed, task-specific instructions that only matter sometimes. You can use both together.
Next steps
Adding Tools
Give your agents more capabilities
MCP Integration
Connect to external tool servers