How you give an agent persistent, team-specific context — so it stops repeating mistakes and starts acting like it knows your repo.
The clearest way to know which mechanism to reach for. Each layer answers a different question.
Skills are folders with a SKILL.md file (name + description in YAML) plus optional scripts. They use progressive disclosure: only the name and description load at startup; the full body loads only when the model judges the skill relevant — saving context.
Code review, deploy checklists, DB conventions — repeatable team knowledge without re-prompting every session.
Published by Anthropic on Dec 18, 2025 (agentskills.io) — portable across Claude apps, Claude Code, and the API.
Anthropic warns a malicious skill can direct an agent to exfiltrate data. Note: Skills are not ZDR-eligible.
Cursor reads persistent rules from .cursor/rules/*.mdc, with frontmatter for glob-scoped, apply-intelligently, or manual activation. Precedence is Team → Project → User. Rules pin framework versions and guardrails so the agent stops repeating mistakes.
CLAUDE.md is read at the start of every Claude Code session. AGENTS.md (OpenAI, Aug 2025) became the cross-tool standard — adopted by 60,000+ open-source projects by Dec 2025 and contributed to the Linux Foundation. Keep it short (~200 lines), imperative, and version-controlled.
The distinction governs what's visible and versioned versus what's private.
| System prompts | Rules files | |
|---|---|---|
| Sets | Persona & constraints | Repo conventions & guardrails |
| Visibility | Usually invisible | Visible repo artifacts |
| Shared with team | Often per-user | Version-controlled, shared |