# es-toolkit

Guides your AI assistant to use es-toolkit utility functions for arrays, objects, and strings instead of custom helpers.

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

## What it does

This skill forces the coding assistant to adopt `es-toolkit` methods whenever handling array transformations, object manipulations, or string formatting. It defines standard helpers across primary categories, such as `chunk`, `compact`, `mergeDeep`, `debounce`, and `invariant`.

Subpath imports like `es-toolkit/array` are mandatory because importing from the root package harms tree-shaking and bloats your bundle. The skill uses `Read`, `Grep`, and `Glob` tools to inspect existing source files and enforce these conventions across your project.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill es-toolkit -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill es-toolkit -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill es-toolkit -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pedronauck/skills skills/curated/es-toolkit
```

2. **Manually: put the files in place**
- File: `.github/skills/es-toolkit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill es-toolkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pedronauck/skills --path skills/curated/es-toolkit
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pedronauck/skills --skill es-toolkit -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/pedronauck/skills/tree/HEAD/skills/curated/es-toolkit/SKILL.md

## When to use it
- replace custom array and string helpers with vetted utility methods
- manage object cloning and merging via `es-toolkit/object`
- enforce subpath imports to preserve clean tree-shaking in builds

## Example prompts
- Refactor our data transformation logic in `src/data.ts` using es-toolkit functions
- Implement search input debouncing with `es-toolkit/function`
- Merge two nested configuration objects using `es-toolkit/object`

## Similar
- [rollup-bundler](https://affpapa.org/en/nevibecode/skills/rollup-bundler.md) — skill · 696 installs
- [guide](https://affpapa.org/en/nevibecode/skills/guide.md) — skill · 550 installs
- [recommend](https://affpapa.org/en/nevibecode/skills/recommend.md) — skill · 741 installs
- [tree-shaking](https://affpapa.org/en/nevibecode/skills/tree-shaking.md) — skill · 1600 installs
- [webpack-bundler](https://affpapa.org/en/nevibecode/skills/webpack-bundler.md) — skill · 848 installs
- [bundle-size-optimization](https://affpapa.org/en/nevibecode/skills/bundle-size-optimization.md) — skill · 569 installs

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