Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leo-atienza-advanced-javascript
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
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
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
advanced-javascript- Description
- None
- License
- MIT
- Instructions
- 1,216 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Agent Skills spec issues
- missing YAML frontmatter
- name: missing
- description: missing
- body: 1216 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
<!--
id: SK-045
name: advanced-javascript
description: Advanced JavaScript patterns — TC39 features, V8 optimization, concurrency, TypeScript, performance
keywords: javascript, typescript, tc39, v8, performance, workers, proxy, temporal, signals, branded-types, iterator, weakref, scheduler
version: 1.0.0
-->
# Advanced JavaScript
## When to Use This Skill
Apply when writing performance-critical JS/TS, using modern language features, optimizing for Core Web Vitals, or working with advanced TypeScript patterns.
Auto-activate when code uses: `using`, `Symbol.dispose`, `WeakRef`, `Proxy`, `SharedArrayBuffer`, `scheduler`, branded types, template literal types, `Temporal`, `Iterator.prototype`, `Set.prototype.union`, `AsyncDisposableStack`.
---
## ES2025-2026 Features (Use Now)
### Explicit Resource Management
The `using` and `await using` keywords call `[Symbol.dispose]()` / `[Symbol.asyncDispose]()` automatically on scope exit — no finally blocks needed.
```js
// Synchronous disposal
{
using file = openFileSync('data.txt');
// [Symbol.dispose]() called automatically on scope exit — even on throw
}
// Asynchronous disposal
async function process() {
await using conn = await db.connect();
// [Symbol.asyncDispose]() awaited automatically
}
// DisposableStack — coordinate multiple resources
await using stack = new AsyncDisposableStack();
const conn = stack.use(await db.connect());
const file = stack.use(await openFile());
// Both disposed in LIFO order on scope exit
stack.defer(() => metrics.record('cleanup'));
// Make your own disposables
class TempFile {
constructor(path) { this.path = path; }
[Symbol.dispose]() { fs.unlinkSync(this.path); }
}
```
**Rule**: Replace every try/finally cleanup pattern with `using`. It composes better, handles throws, and is statically analyzable.
---
### Iterator Helpers (Lazy, Chainable)
Generator iterators now have a full method suite. All operations are lazy — nothing executes until consumed.
```js
function* naturals() { let n = 1; while (true) yield n++; }
// Lazy pipeline — only processes what's needed
const first5Evens = naturals()
.filter(n => n % 2 === 0)
.take(5)
.toArray(); // [2, 4, 6, 8, 10]
// Available methods
// .map(fn) — transform each value
// .filter(fn) — keep matching values
// .take(n) — limit to n values
// .drop(n) — skip first n values
// .flatMap(fn) — map + flatten one level
// .reduce(fn, init) — fold to single value
// .forEach(fn) — side-effect iteration
// .some(fn) — short-circuit exists check
// .every(fn) — short-circuit all check
// .find(fn) — short-circuit search
// .toArray() — materialize to array
// Works on any iterator, not just generators
const result = [1, 2, 3, 4, 5].values()
.filter(n => n > 2)
.map(n => n * 10)
.toArray(); // [30, 40, 50]
```
**Rule**: Replace `.filter().map()` chains on arrays with iterator pipelines when the source is large or infinite — single pass, no intermediate arrays.
---
### New Set Methods
```js
const a = new Set([1, 2, 3]);
const b = new Set([2, 3, 4]);
a.union(b); // Set {1, 2, 3, 4}
a.intersection(b); // Set {2, 3}
a.difference(b); // Set {1}
a.symmetricDifference(b); // Set {1, 4}
a.isSubsetOf(b); // false
a.isSupersetOf(b); // false
a.isDisjointFrom(b); // false (shares 2, 3)
```
All methods accept any iterable, not just other Sets. These replace all lodash set-operation helpers.
---
### Other ES2025 Highlights
**`Array.fromAsync(asyncIterable)`** — collect from async generators or readable streams:
```js
async function* pages() { /* yield fetched pages */ }
const allPages = await Array.fromAsync(pages());
```
**`Promise.try(fn)`** — wrap sync-or-async in promise chain for uniform error handling:From Leo-Atienza/atlas-claude, MIT.
More from Leo-Atienza/atlas-claude
- 0.519score
smart-swarm
Leo-Atienza
Automatically organize multi-agent teams for complex tasks.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
codebase-knowledge-graph
Leo-Atienza
Router skill for graph-based codebase/corpus queries.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
self-evolve
Leo-Atienza
Detect capability gaps and autonomously create skills, add free MCP servers, or organize agent teams.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
design-audit
Leo-Atienza
Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
project-init
Leo-Atienza
Auto-generate project-level CLAUDE.md from templates based on detected stack.
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-memory-maintenance
Leo-Atienza
Weekly memory maintenance — prune sessions >30, check INDEX/topics consistency, evolution health
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
monthly-evolution-report
Leo-Atienza
Monthly evolution report — knowledge growth, usage analysis, optimization suggestions
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
skill-usage-audit
Leo-Atienza
Monthly audit of archived skills — auto-unarchive used skills, auto-remove unused ones
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-cleanup-scan
Leo-Atienza
Weekly cleanup scan — hooks, disk usage, stale files, MCP health
SkillCFreshness: C★ 4Claude Code +9 - 0.508score
weekly-dream
Leo-Atienza
Weekly memory consolidation — runs /dream to orient, gather signal, merge, and prune memory files
SkillCFreshness: C★ 4Claude Code +9 - 0.494score
brand-guidelines
Leo-Atienza
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillCFreshness: C★ 4Claude Code +9 - 0.280score
ai-native-ui
Leo-Atienza
No description from the publisher yet.
SkillCFreshness: C★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 5
- Open issues
- 0
- Last commit (this folder)
- Jul 20, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Leo-Atienza/atlas-claude
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Leo-Atienza
- 0.519score
design-audit
Leo-Atienza
Run technical quality checks across accessibility, performance, theming, responsive design, and anti-patterns.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
codebase-knowledge-graph
Leo-Atienza
Router skill for graph-based codebase/corpus queries.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
smart-swarm
Leo-Atienza
Automatically organize multi-agent teams for complex tasks.
SkillCFreshness: C★ 4Claude Code +9 - 0.519score
self-evolve
Leo-Atienza
Detect capability gaps and autonomously create skills, add free MCP servers, or organize agent teams.
SkillCFreshness: C★ 4Claude Code +9 - 0.516score
project-init
Leo-Atienza
Auto-generate project-level CLAUDE.md from templates based on detected stack.
SkillCFreshness: C★ 4Claude Code +9 - 0.513score
weekly-memory-maintenance
Leo-Atienza
Weekly memory maintenance — prune sessions >30, check INDEX/topics consistency, evolution health
SkillCFreshness: C★ 4Claude Code +9
Cite this page
advanced-javascript skill. Agent Mart. https://agentmart.dev/skills/leo-atienza-advanced-javascript (last updated 2026-10-24)