skills/community/es-toolkit/SKILL.md
Use when implementing utility functions, array operations, object manipulation, or string operations. ALWAYS use es-toolkit instead of custom implementations or native methods.
npx skillsauth add pedronauck/skills es-toolkitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides guidelines and best practices for using the es-toolkit utility library in this project.
MANDATORY: Always use es-toolkit instead of custom implementations or native methods.
For detailed patterns, examples, and checklists, see:
| Category | Module | Common Functions |
|----------|--------|------------------|
| Array | es-toolkit/array | compact, head, last, take, drop, uniq, chunk, flatten |
| Object | es-toolkit/object | merge, mergeWith, clone, cloneDeep, pick, omit |
| String | es-toolkit/string | trim, trimStart, trimEnd, kebabCase, camelCase, snakeCase |
| Function | es-toolkit/function | debounce, throttle, memoize, once |
| Util | es-toolkit/util | invariant |
Always import from specific modules for optimal tree-shaking:
// Good: Import from specific modules
import { compact } from "es-toolkit/array";
import { merge } from "es-toolkit/object";
// Bad: Import from root (larger bundle)
import { compact } from "es-toolkit";
testing
Assess DDD fit; discover domains with EventStorming, define language and bounded contexts, and design aggregates, value objects, events, and repositories. Excludes architecture-only audits, product specs, and CQRS/Event Sourcing catalogs.
development
Build terminal UIs with ratatui following 2026 Rust best practices. Use when: (1) Creating new TUI apps, (2) Adding widgets/layouts, (3) Keyboard navigation/state management, (4) Image integration via ratatui-image, (5) Async event handling, (6) Release optimization. Covers v0.30.0+ API, Elm Architecture, StatefulWidget, color-eyre.
development
Find 10x product opportunities and high-leverage improvements. Use when user wants strategic product thinking, mentions '10x', wants to find high-impact features, or says 'what would make this 10x better', 'product strategy', or 'what should we build next'.
development
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.