CLAUDE.md · toss/es-toolkit
CLAUDE.md from toss/es-toolkit: 55 lines covering Language, Quick Reference, Structure, Design Principles and more.
Template by toss
Chalk Labs
Need help deploying CLAUDE.md · toss/es-toolkit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/toss/es-toolkit/main/CLAUDE.md -o CLAUDE.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A CLAUDE.md file: project memory Claude Code loads at the start of every session.
- For
- Claude Code
- Length
- 55 lines
- File
CLAUDE.md
Sections
- Language
- Quick Reference
- Structure
- Design Principles
- Coding Conventions
- New Function Checklist
First lines (shown under the repo's MIT license)
# CLAUDE.md
Instructions for AI assistants working on es-toolkit.
## Language
This is a global project with users speaking various languages. When producing non-code output (explanations, reviews, reports), respond in the user's preferred language.
## Quick Reference
```bash
corepack enable && yarn install # Setup
yarn vitest run # Tests
yarn vitest run src/array/chunk # Test specific function
yarn lint # ESLint
tsc --noEmit # Typecheck
```
## Structure
```
src/{category}/{fn}.ts # Implementation (array, bigint, function, math, object, predicate, promise, set, string, util, error, map)
src/{category}/{fn}.spec.ts # Tests (vitest)
src/compat/{category}/{fn}.ts # Lodash-compatible variant
tests/types/compat.spec-d.ts # Type tests against @types/lodash (yarn workspace type-tests test)
docs/reference/{category}/{fn}.md # English
docs/ko/reference/{category}/{fn}.md # Korean
docs/ja/reference/{category}/{fn}.md # Japanese
docs/zh_hans/reference/{category}/{fn}.md # Chinese
```
## Design Principles
- **Performance**: Must match or beat lodash.
- **Simplicity**: Simplest interface for the 85% use case. No complex options.
- **Don't implement**: Functions replaceable by modern JS (`Array.isArray`, `Number.isNaN`, `Math.min`), or TC39 Stage 3+ proposals.
- **es-toolkit vs compat**: `es-toolkit` is the strict, opinionated API. `es-toolkit/compat` matches lodash behavior exactly for migration. Compat is feature-complete — no new functions are being added. Only behavior inconsistency fixes against lodash are accepted.
- **compat runs on Node.js 6**: `es-toolkit/compat` is published for Node.js 6+ (no transpilation or polyfills needed by users), so `src/compat/**` is limited to ES2015 built-ins and ES2015 syntax, plus `?.` and `??`, which the build lowers (enforced by ESLint). Do not change main-library files for compat: if a main-library file compat imports needs a newer built-in, add an ES2015 copy under `src/compat` instead. The `compat-node6` CI job runs the built package on a real Node.js 6.
- **What we accept**: New functions need an accepted [discussion](https://github.com/toss/es-toolkit/discussions/new?category=ideas) first, performance work needs benchmark results, and refactoring-only changes are not accepted. See [`.github/CONTRIBUTING.md`](./.github/CONTRIBUTING.md#41-what-we-accept).
## Coding Conventions
- `for` loops over `reduce` (local mutation is fine)
- Built-in JS over custom helpers (`Array.isArray()`, not `isArray()`)
- Type params: `T` elements, `K` keys, `E` errors
- `readonly T[]` for array params that aren't mutated
- Detailed JSDoc with `@template`, `@param`, `@returns`, `@throws`, `@example`
## New Function Checklist
1. `src/{category}/{fn}.ts` — Implementation
2. `src/{category}/{fn}.spec.ts` — Tests
3. Re-export in `src/{category}/index.ts` and `src/index.ts`
4. Docs in all 4 languages (see `docs/CLAUDE.md` for templates)Signals
- Stars
- 11,379
- Forks
- 631
- Open issues
- 40
- Last commit (this folder)
- Oct 23, 2026 (8 days ago)
- Last release
- Oct 24, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/toss/es-toolkit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from toss
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get CLAUDE.md · toss/es-toolkit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
CLAUDE.md · toss/es-toolkit. Agent Mart. https://agentmart.dev/templates/toss-es-toolkit-claude-md (last updated 2026-10-24)