# normalize-agent-for-claude

normalize-agent-for-claude audits AGENT.md files and optimizes them for Claude Code runtime by separating role identity from procedures.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 117 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/normalize-agent-for-claude/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/normalize-agent-for-claude

## What it does

This skill audits an existing `AGENT.md` against real Claude Code runtime mechanics. Because Claude treats the markdown body as the system prompt, keeping step-by-step instructions inside the main prompt wastes context budget. The workflow preserves core identity and decision rules in the body while directing procedural commands into external skills.

Execution starts in `plan` mode by default. The tool inspects frontmatter fields, line count, and tool surface, then writes a DAG migration plan to `.ulpi/plans/agents/` in both markdown and JSON formats. Changes are applied directly only when invoked with `--mode rewrite`.

The routine demands `references/claude-agent-runtime.md` before generating recommendations. It rejects skill headers like `allowed-tools` on agent files and will not process `SKILL.md` targets.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill normalize-agent-for-claude -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/normalize-agent-for-claude/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/normalize-agent-for-claude/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill normalize-agent-for-claude -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/normalize-agent-for-claude/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill normalize-agent-for-claude -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/normalize-agent-for-claude/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills normalize-agent-for-claude
```

2. **Manually: put the files in place**
- File: `.github/skills/normalize-agent-for-claude/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill normalize-agent-for-claude -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path normalize-agent-for-claude
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/normalize-agent-for-claude/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill normalize-agent-for-claude -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/normalize-agent-for-claude/SKILL.md

## When to use it
- audit oversized AGENT.md files against Claude runtime rules
- extract procedural steps into skills without losing role identity
- generate a structured DAG migration plan in markdown and JSON
- strip invalid skill-only frontmatter attributes from agent configs

## Example prompts
- Create a migration plan for an agent: normalize-agent-for-claude ./agents/reviewer
- Rewrite prompt and frontmatter directly: normalize-agent-for-claude ./agents/tester/AGENT.md --mode rewrite

## Similar
- [agent-md-refactor](https://affpapa.org/en/nevibecode/skills/agent-md-refactor.md) — skill · 193 installs
- [normalize](https://affpapa.org/en/nevibecode/skills/normalize.md) — skill · 623 installs
- [baoyu-article-illustrator](https://affpapa.org/en/nevibecode/skills/baoyu-article-illustrator.md) — skill · 32700 installs
- [boost-prompt](https://affpapa.org/en/nevibecode/skills/boost-prompt.md) — skill · 9779 installs
- [instructions](https://affpapa.org/en/nevibecode/rules/instructions.md) — rule · ★ 41430 repo stars
- [plannotator-compound](https://affpapa.org/en/nevibecode/skills/plannotator-compound.md) — skill · 13900 installs

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
