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
Details
Related Skills
More coding & development skills you might like
Reticle
Coding & DevelopmentAI agents can generate code, but still struggle to understand what they build. Reticle brings Jev-style machine-native runtime perception to web & desktop applications.
π€claudeπuniversal
1.2k
190
View
agentscope-java
Coding & DevelopmentExpert Java developer skill for AgentScope Java framework - a reactive, message-driven multi-agent system built on Project Reactor. Use when working with reactive programming, LLM integration, agent orchestration, multi-agent systems, or when the user mentions AgentScope, ReActAgent, Mono/Flux, Project Reactor, or Java agent development. Specializes in non-blocking code, tool integration, hooks, pipelines, and production-ready agent applications.
πuniversal
6.0k
1.5k
View
ospec
Coding & DevelopmentDocument-driven OSpec workflow for initialization, change/goal routing, validation, archiving, and durable project knowledge.
β¨geminiπ€claudeπ¬gptπuniversal
524
34
View
misakanet-failure-memory
Coding & Developmentπ A zero-dependency, git-backed micro-lesson library for AI Agents to asynchronously share and search verified debugging experience. Python stdlib only. | https://misakanet.org
π€claudeβ¨οΈcursorπuniversal
424
158
View