# ens-primary-name

Sets an ENS primary name for an address on Base, Arbitrum, Optimism, or Ethereum. Useful for configuring forward and reverse resolution.

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

## What it does

This skill links an ENS name and an address in both directions. It checks forward resolution, encodes a `setName(string)` call, submits a transaction to the ENS Reverse Registrar, then verifies the resulting primary name.

It supports Base, Arbitrum, Optimism, and Ethereum mainnet. You need a registered ENS name, forward resolution to your address, and native tokens for gas. The scripts rely on Bankr CLI to sign transactions, plus Node.js and `viem` for namehash calculation and ABI encoding. Transactions cannot be submitted without Bankr CLI.

The package includes `set-primary.sh`, `verify-primary.sh`, and `set-avatar.sh`. The avatar script writes an Ethereum mainnet text record and accepts HTTPS, IPFS, or NFT identifiers.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill ens-primary-name -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill ens-primary-name -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/ens-primary-name/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill ens-primary-name -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install BankrBot/skills ens-primary-name
```

2. **Manually: put the files in place**
- File: `.github/skills/ens-primary-name/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill ens-primary-name -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/BankrBot/skills --path ens-primary-name
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/ens-primary-name/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add BankrBot/skills --skill ens-primary-name -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/BankrBot/skills/tree/HEAD/ens-primary-name/SKILL.md

## When to use it
- set an ENS primary name for an address
- configure reverse resolution on a chain
- verify an address-to-name link
- assign an ENS avatar on Ethereum mainnet

## Example prompts
- Set `myname.eth` as my primary name on Base.
- Set `myname.eth` on Arbitrum, then verify it with `./scripts/verify-primary.sh 0x1234... arbitrum`.
- Assign this avatar to `myname.eth` with `./scripts/set-avatar.sh myname.eth https://example.com/avatar.png`.

## Similar
- [ENS Resolver — Name ↔ Address + Avatar](https://affpapa.org/en/nevibecode/mcp/ens-resolver-name-address-avatar.md) — MCP server · 4623 installs
- [dart-use-primary-constructors](https://affpapa.org/en/nevibecode/skills/dart-use-primary-constructors.md) — skill · 17000 installs
- [wandb-primary](https://affpapa.org/en/nevibecode/skills/wandb-primary.md) — skill · 1800 installs
- [researchers-primary-source](https://affpapa.org/en/nevibecode/skills/researchers-primary-source.md) — skill · 246 installs
- [product-name](https://affpapa.org/en/nevibecode/skills/product-name.md) — skill · 3400 installs
- [domain-name-brainstormer](https://affpapa.org/en/nevibecode/skills/nexu-io-domain-name-brainstormer.md) — skill · 2900 installs

From the same set: [bankrbot/skills](https://affpapa.org/en/nevibecode/by/bankrbot/skills.md) — 12 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
