modern-javascript
Skill60 starsChanged 2 months agoMITView on GitHub
Implement or debug JavaScript language behavior, including promise completion, async iteration, mutation, and runtime compatibility. Use for ECMAScript semantics or polyfill/transform choices; not unrelated framework or TypeScript type design.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cmnemoi/skillstheir own version, first seen Apr 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- cmnemoi/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- bazelSkill
- clean-ddd-hexagonalSkill
- feature-slicingSkill
- mermaid-diagramsSkill
- modern-cssSkill
- postgres-drizzleSkill
- slack-block-kitSkill
- slack-mrkdwnSkill
- teams-adaptive-cardsSkill
- teams-message-formattingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Keep specification status, runtime support, and toolchain support separate.
- Very specific: line 12
Use the relevant JavaScript, required behavior, and declared runtime as input.
- Distinctive: line 14
Prefer a supported standardized feature.
- Distinctive: line 18
Keep mutation, property access, iterator consumption, evaluation order, error propagation, and concurrency behavior intact when modernizing.
- Very specific: line 20
Treat iterator helpers as lazy and single-pass.
- Very specific: line 21
Do not use forEach(async ...) when completion must be awaited.
- Distinctive: line 23
Do not introduce withdrawn Records & Tuples syntax or silently switch between legacy and standard-style decorator semantics.
- Distinctive: line 45
Use frozen ECMA-262 editions for edition membership, TC39 proposals for proposal status, and official runtime/toolchain documentation for …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Modern JavaScript
Keep specification status, runtime support, and toolchain support separate. The user's explicit instructions take precedence over this skill's guidelines.
Work against the target
Use the relevant JavaScript, required behavior, and declared runtime as input. Inspect engines, browser targets, lockfiles, and build configuration as needed for the feature. Do not invent a baseline or upgrade runtimes merely to use newer syntax.
Prefer a supported standardized feature. A proposal can fit when the user/project chooses it and a maintained transform or polyfill implements the required revision. Bundled edition and support tables are dated snapshots; verify changing status against the sources below.
Preserve semantics
- Keep mutation, property access, iterator consumption, evaluation order, error propagation, and concurrency behavior intact when modernizing.
- Distinguish syntax transforms from runtime polyfills. TypeScript declarations do not supply missing runtime APIs.
- Treat iterator helpers as lazy and single-pass;
Array.fromAsyncconsumes sequentially, whilePromise.allobserves already-started work concurrently. - Do not use
forEach(async ...)when completion must be awaited. Rejection and timeouts do not cancel underlying work by themselves. - Distinguish host APIs such as
fetchandstructuredClonefrom ECMA-262 features, andIntlfrom the separate ECMA-402 standard. - Do not introduce withdrawn Records & Tuples syntax or silently switch between legacy and standard-style decorator semantics.
Deliver the requested code or explanation, noting a required compatibility path when relevant. Verify changed behavior and any fallback that ships; select checks proportional to the change rather than requiring every project check for a syntax answer.
References
Load the semantic or compatibility topic needed, not every edition.
| Task | Reference |
| Runtime targets, Babel, TypeScript, polyfills | COMPATIBILITY.md |
| Async functions and early annual additions | ES2016-ES2017.md |
| Object spread, async iteration, RegExp, flattening | ES2018-ES2019.md |
| Classes, property checks, change-by-copy | ES2022-ES2023.md |
| Grouping, promise resolvers, buffers, Unicode sets | ES2024.md |
| Set/iterator helpers, import attributes, RegExp | ES2025.md |
ES2026 additions such as Array.fromAsync | ES2026.md |
| Temporal, resource management, proposals, withdrawn syntax | UPCOMING.md |
| Promise combinators and error behavior | PROMISES.md |
| Pools, retries, cancellation, async iteration | CONCURRENCY.md |
| Compact syntax lookup | CHEATSHEET.md |
Use frozen ECMA-262 editions for edition membership, TC39 proposals for proposal status, and official runtime/toolchain documentation for availability.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

