es-toolkit — Claude Code skill: what it does, how to install
Guides your AI assistant to use es-toolkit utility functions for arrays, objects, and strings instead of custom helpers.
no license 293 installs ★ 655 updated 2026-10-20
npx skills add pedronauck/skills --skill es-toolkit -a claude-codeWhat es-toolkit 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.
What it helps with
- 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 for the agent
- Refactor our data transformation logic in
src/data.tsusing es-toolkit functions - Implement search input debouncing with
es-toolkit/function - Merge two nested configuration objects using
es-toolkit/object
How to install es-toolkit
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill es-toolkit -a claude-code2Manually: put the files in place
~/.claude/skills/es-toolkit/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/es-toolkit/
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill es-toolkit -a codex2Manually: put the files in place
.agents/skills/es-toolkit/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill es-toolkit -a cursor2Manually: put the files in place
.cursor/skills/es-toolkit/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pedronauck/skills skills/curated/es-toolkit2Manually: put the files in place
.github/skills/es-toolkit/SKILL.md1Skills CLI (Vercel)
npx skills add pedronauck/skills --skill es-toolkit -a gemini-cli2Platform CLI
gemini skills install https://github.com/pedronauck/skills --path skills/curated/es-toolkitManually: put the files in place
.devin/skills/es-toolkit/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pedronauck/skills --skill es-toolkit -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about es-toolkit
How to install es-toolkit in Claude Code?
Run npx skills add pedronauck/skills --skill es-toolkit -a claude-code. You can also place the skill file directly at ~/.claude/skills/es-toolkit/SKILL.md.
What does the es-toolkit skill do?
It instructs coding assistants to use functions from es-toolkit for data transformations, string modifications, and flow control instead of rewriting native or bespoke helpers.
Why does the skill enforce specific subpath imports?
Importing directly from the root package breaks tree-shaking and increases bundle size. The rule mandates paths like es-toolkit/array to keep output lean.