
AI代理最轻的共享标准
概览
一个轻量级标准,用于在所有AI编码助手之间共享代理配置,使用单一 AGENTS.md 文件。 Claude Code 有时会忽略其 CLAUDE.md 文件,且不支持 AGENTS.md 协议。使用用户内存提示来强制加载: 在 Claude 中,通过 /memory 命令将它钉住,这样它就会留在用户内存中。 不同的AI编码助手使用不同的规范来组织配置文件。例如: - Claude Code 将技能存储在 .claude/skills/ /SKILL.md- Cursor 将规则存储在 .cursor/rules/ 文件夹中 这种碎片化将配置锁定在单一平台。团队无法在工具间共享上下文和工作流定义。 通用代理提供共享标准:AGENTS.md + .agents/文件夹。任何代理——无论运行时如何——都能读取该清单以启动规则和技能。 通用代理使用单一入口点——AGENTS.md——来描述适用于任何任务的技能和规则。所有技能和规则都存在于。
概述(AI 翻译)
一个轻量级标准,用于通过单一 AGENTS.md 文件在所有 AI 编码助手之间共享代理配置。
快速启动
通过npx运行CLI:
在克劳德代码中应用通用代理
Claude Code 有时会忽略其 CLAUDE.md 文件,且不支持 AGENTS.md 协议。使用用户内存提示来强制加载:
在 Claude 中,通过 /memory 命令钉住此项,使其保持在用户内存中。
为什么是宇宙特工?
不同的AI编码助手使用不同的规范来组织配置文件。例如:
- Claude Code 在[[T4]中存储技能
- 光标将规则存储在
.cursor/rules/文件夹中
这种碎片化将配置锁定在单一平台。团队无法在工具间共享上下文和工作流定义。
解决方案
通用代理提供了最轻量、最简单的共享标准:AGENTS.md + .agents/ 文件夹。任何代理——无论运行时如何——都能读取此显现以启动规则和技能。
它是如何运作的
通用代理使用单一入口点——AGENTS.md——来描述适用于任何任务的技能和规则。所有技能和规则都存在于“。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Universal Agents
A lightweight standard for sharing agent configurations across all AI coding assistants using a single AGENTS.md file.
Quick Start
Run the CLI via npx:
npx universal-agents init # copy AGENTS.md into your project
npx universal-agents create skill # scaffold .agents/skills//SKILL.md
npx universal-agents create rule # scaffold .agents/rules/.md
Apply Universal Agents in Claude Code
Claude Code sometimes ignores its CLAUDE.md file and doesn’t support the AGENTS.md protocol. Use a user memory prompt to force loading:
ALWAYS read AGENTS.md file first
In Claude, pin this via the /memory command so it stays in user memory.
Why Universal Agents?
Different AI coding assistants use different conventions to organize their configuration files. For example:
- Claude Code stores skills in
.claude/skills//SKILL.md - Cursor stores rules in the
.cursor/rules/folder
This fragmentation locks configurations into single platforms. Teams cannot share context and workflow definitions across tools.
The Solution
Universal Agents provides the lightest, simplest shared standard: AGENTS.md + .agents/ folder. Any agent—regardless of runtime—reads this one manifest to bootstrap rules and skills.
How it works
Universal Agents uses a single entry point—AGENTS.md—to describe which skills and rules apply to any task. All skills and rules live in .agents/ for version control and easy sharing.
| File/Folder | Purpose |
|---|---|
AGENTS.md |
Control manifest listing all available skills and rules, with trigger conditions and loading instructions. |
.agents/skills/ |
Reusable task workflows (e.g., code review, testing) — each skill is self-contained and production-ready. |
.agents/rules/ |
Domain guidelines (e.g., API design, React conventions) — long-lived constraints that enforce team standards. |
Key advantages
- One source of truth:
AGENTS.mdworks across Claude Code, Cursor, Codex, and any future AI assistant. - Zero boilerplate: No tool-specific file structure. Just read
AGENTS.md, follow its protocol. - Minimal footprint: Lightweight Markdown—no DSLs, config files, or complex tooling required.
- Immediate adoption: Agents that understand the
AGENTS.mdprotocol can bootstrap any project instantly.
Execution protocol
- Read
AGENTS.mdfirst to discover available skills and rules, plus their trigger conditions. - Load skills on demand: when a task matches a skill’s trigger, read the skill file and follow its workflow.
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add leochiu-a/universal-agents