Coding & Development✨geminiπŸ€–claude⌨️cursor🌐universal

Universal Agents

A "polyfill" that standardizes and centralizes AGENTS.md configuration and Agent Skills support within your repository.

Quick Start

Install this Skill

npx skills add nevir/universal-agents
# Universal Agents

A "polyfill" that standardizes and centralizes [AGENTS.md](https://agents.md) configuration and [Agent Skills](https://agentskills.io) support within your repository.

## Installation

```sh
curl -fsSL https://raw.githubusercontent.com/agentsmd/universal-agents/main/install.sh | sh
```

## What This Does

Brings standardized and centralized support for [AGENTS.md](https://agents.md) and [Agent Skills](https://agentskills.io) to major AI coding agents. Most agents have incomplete or broken support natively - this fixes that.

**AGENTS.md features:**

πŸ“„ **Basic support**: Agents automatically read AGENTS.md files instead of (or in addition to) their proprietary formats

πŸͺΊ **Nested**: Nested AGENTS.md files apply with proper precedence (closer = higher priority)

🎯 **Selective**: Only loads relevant AGENTS.md files, not all of them (essential for large monorepos)

**Skills features:**

πŸ”§ **Shared skills**: Store skills once in `.agents/skills/`, use across all agents

♻️ **Native integration**: Skills symlink to each agent's native directory for hot reload and discovery

## Philosophy

AI coding agents shouldn't fragment your configuration. This project enables:

- **Universal format** - Write AGENTS.md once, use it across major AI agents (Claude Code, Gemini CLI)
- **Standard locations** - `.agents/` and `AGENTS.md` files in predictable places, not scattered proprietary formats
- **No rebuild step** - Edit AGENTS.md files, they just work. No commands to run after changes.
- **Native behavior** - Leverage each agent's built-in features (hot reload, skill discovery, etc.)
- **Simple and portable** - Shell scripts only. Works everywhere with no dependencies.

## Native Support

Out of the box, most agents have incomplete or missing AGENTS.md support:

| Agent | πŸ“„ Basic | πŸͺΊ Nested | 🎯 Selective | πŸ”§ Skills |
|-------|----------|-----------|--------------|-----------|
| **Claude Code** | ❌ | ❌ | ❌ | βœ… [Native](https://agentskills.io) |
| **Gemini CLI** | ⚠️ [Configurable](https://google-gemini.github.io/gemini-cli/docs/cli/gemini-md.html) | βœ… | ❌ | ⚠️ [Experimental](https://geminicli.com/docs/cli/skills/) |
| **Cursor IDE** | βœ… | ❌ | βœ… | βœ… [Native](https://cursor.com/docs/context/skills) |

## How It Works

**Claude Code:** A [SessionStart hook](https://docs.anthropic.com/en/docs/agents-and-tools/claude-code/hooks) discovers all AGENTS.md files in the project and injects them into context with precedence instructions. The root AGENTS.md is pre-loaded; nested files are loaded on-demand as Claude works in specific directories. Skills are symlinked from `.agents/skills/` to `.claude/skills/` for native discovery and hot reloading.

**Gemini CLI:** Gemini's [`context.fileName`](https://google-gemini.github.io/gemini-cli/docs/cli/gemini-md.html) setting is configured to load `AGENTS.md` alongside `GEMINI.md` - Gemini natively walks the directory tree and applies them with proper precedence, so no polyfill is needed for AGENTS.md loading. Skills are symlinked from `.agents/skills/` to `.gemini/skills/` for native discovery.

## Usage

Create AGENTS.md files anywhere in your project. They'll be loaded automatically with proper scoping:

```
project/
β”œβ”€β”€ AGENTS.md              # Applies project-wide
└── src/
    └── api/
        └── AGENTS.md      # Applies to API work (overrides project-wide)
```

When working in `src/api/`, both AGENTS.md files apply - with the API-specific one taking precedence for conflicts (πŸͺΊ **nested**).

Agents load context only for the directories you're working in, keeping token usage efficient even in large projects (🎯 **selective**).

## Skills

Store skills in `.agents/skills/` and they'll be available to all configured agents:

```
.agents/
└── skills/
    └── my-skill/
        └── SKILL.md
```

Skills are symlinked to each agent's native skills directory (e.g., `.claude/skills/`), enabling:
- Native skill discovery
- Hot reloading
- Cross-agent compatibility

See [Agent Skills Specification](https://agentskills.io/specification) for SKILL.md format.

## Troubleshooting

**Skills not showing up?**
- Check that the symlink exists (e.g., `.claude/skills` -> `../.agents/skills`)
- Try restarting the agent session
- Note: Claude Code's `/skills` command has a [display bug](https://github.com/anthropics/claude-code/issues/14836) with symlinked directories - skills still work

**"Warning: directory exists" during install?**
- Move existing skills from `.claude/skills/` to `.agents/skills/`
- Re-run the install script

**Global install first run?**
- After installing globally, restart your agent session for hooks to take effect

## License

This project is licensed under the [Blue Oak Model License, Version 1.0.0](LICENSE.md), but you may also license it under [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) if youβ€”or your legal teamβ€”prefer.
Repository
10stars
1forks
View on GitHub
Details
DiscoveredFeb 7, 2026
Last UpdatedFeb 7, 2026
Author@nevir
Quality Score
45/100