// I want to solve · Developers
📐 Share rules and skills across agents
Reuse one AGENTS.md and one set of skills across Claude Code, Codex, Cursor and Gemini CLI instead of maintaining copies.
4 steps2 alternatives2 stacks · 3 problemschecked 2026-10-22
How to do it
- 01Put one AGENTS.md at the repo root with build/test commands and conventions
- 02Have tool-specific files (CLAUDE.md etc.) point to AGENTS.md instead of duplicating it
- 03Keep skills in the repo per the SKILL.md convention, shared and version-pinned
- 04Scan new skills before enabling them
What it costs
Free start
Rules files and most skills are free
Individual paid
Depends on your coding tool subscription
Team / enterprise
No extra cost beyond maintenance time
Prices change; the vendor’s official page wins. Subscriptions compared · API prices
Alternatives: which to pick
| Option | Choose it when |
|---|---|
| AGENTS.md | Cross-tool rules |
| Anthropic Skills | Official skill examples |
✓ Good fit
- People or teams using several coding agents
✗ Not a good fit
- One tool, no sharing
Ready-made stacks
All stacksSoftware that helps
All software👩💻 Coding agents & AI IDEs📐 Skills & rules
Problems & solutions
All problems- How-toHow to write AGENTS.mdAGENTS.md is a file in your repository written for coding agents, like a README for a new colleague: how to build, how to test, code style and commit rules.
- How-toShare one set of rules across Claude Code, Codex, Cursor and Gemini CLIEach agent reads a different rules file. Keep one main file (AGENTS.md is the usual choice) and point the other tools at it by reference, symlink or configuration.
- How-toWhat Agent Skills (SKILL.md) are and how to reuse themA skill is a folder whose core is a SKILL.md with YAML front matter (name, description), optionally with scripts and references. The agent loads it when the description matches the task, which saves context compared with stuffing everything into a rules file.
Needs in this scenario
-
DEV-11Managing rules, prompts and config files (AGENTS.md)
Developers · People search for: agents.md example; claude.md vs agents.md; cursor rules to agents.md
-
AGT-02Rules and skill files are not portable across agents
Agent products & builders · People search for: share rules across cursor claude code codex; skill.md format
-
AGT-06Platform consistency: Windows/WSL/Linux desktop
Agent products & builders · People search for: codex windows support; claude desktop linux; wsl ai agent
Learn
All tutorials- dair-ai/Prompt-Engineering-Guide
DAIR.AI · Prompt engineering · English
- Anthropic Prompt Engineering Interactive Tutorial
Anthropic · Prompt engineering · English
- Anthropic Courses 仓库
Anthropic · Prompt engineering · English
- OpenAI Prompt engineering 指南
OpenAI · Prompt engineering · English
- OpenAI GPT-5 prompting guide (Cookbook)
OpenAI · Prompt engineering · English
- ChatGPT Prompt Engineering for Developers
DeepLearning.AI / OpenAI · Prompt engineering · English
- Learn Prompting
Learn Prompting · Prompt engineering · English
- Brex Prompt Engineering Guide
Brex · Prompt engineering · English
- AGENTS.md
agents.md 社区 · AI coding tools · English
- Claude Code MCP 文档
Anthropic · MCP · English