โ† All skills
Tencent SkillHub ยท Developer Tools

JavaScript

Write robust JavaScript with async patterns, type coercion handling, and modern ES2023+ features.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Write robust JavaScript with async patterns, type coercion handling, and modern ES2023+ features.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, async.md, coercion.md, collections.md, modern.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.3

Documentation

ClawHub primary doc Primary doc: SKILL.md 11 sections Open source page

When to Use

User needs JavaScript expertise โ€” from core language features to modern patterns. Agent handles async/await, closures, module systems, and ES2023+ features.

Quick Reference

TopicFileAsync patternsasync.mdType coercion rulescoercion.mdArray and object methodscollections.mdModern ES featuresmodern.md

Equality Traps

== coerces: "0" == false is true โ€” use === always NaN !== NaN โ€” use Number.isNaN(), not === NaN typeof null === "object" โ€” check === null explicitly Objects compare by reference โ€” {} === {} is false

this Binding

Regular functions: this depends on call site โ€” lost in callbacks Arrow functions: this from lexical scope โ€” use for callbacks setTimeout(obj.method) loses this โ€” use arrow or .bind() Event handlers: this is element in regular function, undefined in arrow (if no outer this)

Closure Traps

Loop variable captured by reference โ€” let in loop or IIFE to capture value var hoisted to function scope โ€” creates single binding shared across iterations Returning function from loop: all share same variable โ€” use let per iteration

Array Mutation

sort(), reverse(), splice() mutate original โ€” use toSorted(), toReversed(), toSpliced() (ES2023) push(), pop(), shift(), unshift() mutate โ€” spread [...arr, item] for immutable delete arr[i] leaves hole โ€” use splice(i, 1) to remove and reindex Spread and Object.assign are shallow โ€” nested objects still reference original

Async Pitfalls

Forgetting await returns Promise, not value โ€” easy to miss without TypeScript forEach doesn't await โ€” use for...of for sequential async Promise.all fails fast โ€” one rejection rejects all, use Promise.allSettled if need all results Unhandled rejection crashes in Node โ€” always .catch() or try/catch with await

Numbers

0.1 + 0.2 !== 0.3 โ€” floating point, use integer cents or toFixed() for display parseInt("08") works now โ€” but parseInt("0x10") is 16, watch prefixes Number("") is 0, Number(null) is 0 โ€” but Number(undefined) is NaN Large integers lose precision over 2^53 โ€” use BigInt for big numbers

Iteration

for...in iterates keys (including inherited) โ€” use for...of for values for...of on objects fails โ€” objects aren't iterable, use Object.entries() Object.keys() skips non-enumerable โ€” Reflect.ownKeys() gets all including symbols

Implicit Coercion

[] + [] is "" โ€” arrays coerce to strings [] + {} is "[object Object]" โ€” object toString {} + [] is 0 in console โ€” {} parsed as block, not object "5" - 1 is 4, "5" + 1 is "51" โ€” minus coerces, plus concatenates

Strict Mode

"use strict" at top of file or function โ€” catches silent errors Implicit globals throw in strict โ€” x = 5 without declaration fails this is undefined in strict functions โ€” not global object Duplicate parameters and with forbidden

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
5 Docs
  • SKILL.md Primary doc
  • async.md Docs
  • coercion.md Docs
  • collections.md Docs
  • modern.md Docs