{
  "schemaVersion": "1.0",
  "item": {
    "slug": "javascript",
    "name": "JavaScript",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/ivangdavila/javascript",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/javascript",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/javascript",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=javascript",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "async.md",
      "coercion.md",
      "collections.md",
      "modern.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "javascript",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T11:56:32.824Z",
      "expiresAt": "2026-05-11T11:56:32.824Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=javascript",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=javascript",
        "contentDisposition": "attachment; filename=\"javascript-1.0.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "javascript"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/javascript"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/javascript",
    "agentPageUrl": "https://openagent3.xyz/skills/javascript/agent",
    "manifestUrl": "https://openagent3.xyz/skills/javascript/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/javascript/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "When to Use",
        "body": "User needs JavaScript expertise — from core language features to modern patterns. Agent handles async/await, closures, module systems, and ES2023+ features."
      },
      {
        "title": "Quick Reference",
        "body": "TopicFileAsync patternsasync.mdType coercion rulescoercion.mdArray and object methodscollections.mdModern ES featuresmodern.md"
      },
      {
        "title": "Equality Traps",
        "body": "== coerces: \"0\" == false is true — use === always\nNaN !== NaN — use Number.isNaN(), not === NaN\ntypeof null === \"object\" — check === null explicitly\nObjects compare by reference — {} === {} is false"
      },
      {
        "title": "this Binding",
        "body": "Regular functions: this depends on call site — lost in callbacks\nArrow functions: this from lexical scope — use for callbacks\nsetTimeout(obj.method) loses this — use arrow or .bind()\nEvent handlers: this is element in regular function, undefined in arrow (if no outer this)"
      },
      {
        "title": "Closure Traps",
        "body": "Loop variable captured by reference — let in loop or IIFE to capture value\nvar hoisted to function scope — creates single binding shared across iterations\nReturning function from loop: all share same variable — use let per iteration"
      },
      {
        "title": "Array Mutation",
        "body": "sort(), reverse(), splice() mutate original — use toSorted(), toReversed(), toSpliced() (ES2023)\npush(), pop(), shift(), unshift() mutate — spread [...arr, item] for immutable\ndelete arr[i] leaves hole — use splice(i, 1) to remove and reindex\nSpread and Object.assign are shallow — nested objects still reference original"
      },
      {
        "title": "Async Pitfalls",
        "body": "Forgetting await returns Promise, not value — easy to miss without TypeScript\nforEach doesn't await — use for...of for sequential async\nPromise.all fails fast — one rejection rejects all, use Promise.allSettled if need all results\nUnhandled rejection crashes in Node — always .catch() or try/catch with await"
      },
      {
        "title": "Numbers",
        "body": "0.1 + 0.2 !== 0.3 — floating point, use integer cents or toFixed() for display\nparseInt(\"08\") works now — but parseInt(\"0x10\") is 16, watch prefixes\nNumber(\"\") is 0, Number(null) is 0 — but Number(undefined) is NaN\nLarge integers lose precision over 2^53 — use BigInt for big numbers"
      },
      {
        "title": "Iteration",
        "body": "for...in iterates keys (including inherited) — use for...of for values\nfor...of on objects fails — objects aren't iterable, use Object.entries()\nObject.keys() skips non-enumerable — Reflect.ownKeys() gets all including symbols"
      },
      {
        "title": "Implicit Coercion",
        "body": "[] + [] is \"\" — arrays coerce to strings\n[] + {} is \"[object Object]\" — object toString\n{} + [] is 0 in console — {} parsed as block, not object\n\"5\" - 1 is 4, \"5\" + 1 is \"51\" — minus coerces, plus concatenates"
      },
      {
        "title": "Strict Mode",
        "body": "\"use strict\" at top of file or function — catches silent errors\nImplicit globals throw in strict — x = 5 without declaration fails\nthis is undefined in strict functions — not global object\nDuplicate parameters and with forbidden"
      }
    ],
    "body": "When to Use\n\nUser needs JavaScript expertise — from core language features to modern patterns. Agent handles async/await, closures, module systems, and ES2023+ features.\n\nQuick Reference\nTopic\tFile\nAsync patterns\tasync.md\nType coercion rules\tcoercion.md\nArray and object methods\tcollections.md\nModern ES features\tmodern.md\nEquality Traps\n== coerces: \"0\" == false is true — use === always\nNaN !== NaN — use Number.isNaN(), not === NaN\ntypeof null === \"object\" — check === null explicitly\nObjects compare by reference — {} === {} is false\nthis Binding\nRegular functions: this depends on call site — lost in callbacks\nArrow functions: this from lexical scope — use for callbacks\nsetTimeout(obj.method) loses this — use arrow or .bind()\nEvent handlers: this is element in regular function, undefined in arrow (if no outer this)\nClosure Traps\nLoop variable captured by reference — let in loop or IIFE to capture value\nvar hoisted to function scope — creates single binding shared across iterations\nReturning function from loop: all share same variable — use let per iteration\nArray Mutation\nsort(), reverse(), splice() mutate original — use toSorted(), toReversed(), toSpliced() (ES2023)\npush(), pop(), shift(), unshift() mutate — spread [...arr, item] for immutable\ndelete arr[i] leaves hole — use splice(i, 1) to remove and reindex\nSpread and Object.assign are shallow — nested objects still reference original\nAsync Pitfalls\nForgetting await returns Promise, not value — easy to miss without TypeScript\nforEach doesn't await — use for...of for sequential async\nPromise.all fails fast — one rejection rejects all, use Promise.allSettled if need all results\nUnhandled rejection crashes in Node — always .catch() or try/catch with await\nNumbers\n0.1 + 0.2 !== 0.3 — floating point, use integer cents or toFixed() for display\nparseInt(\"08\") works now — but parseInt(\"0x10\") is 16, watch prefixes\nNumber(\"\") is 0, Number(null) is 0 — but Number(undefined) is NaN\nLarge integers lose precision over 2^53 — use BigInt for big numbers\nIteration\nfor...in iterates keys (including inherited) — use for...of for values\nfor...of on objects fails — objects aren't iterable, use Object.entries()\nObject.keys() skips non-enumerable — Reflect.ownKeys() gets all including symbols\nImplicit Coercion\n[] + [] is \"\" — arrays coerce to strings\n[] + {} is \"[object Object]\" — object toString\n{} + [] is 0 in console — {} parsed as block, not object\n\"5\" - 1 is 4, \"5\" + 1 is \"51\" — minus coerces, plus concatenates\nStrict Mode\n\"use strict\" at top of file or function — catches silent errors\nImplicit globals throw in strict — x = 5 without declaration fails\nthis is undefined in strict functions — not global object\nDuplicate parameters and with forbidden"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/ivangdavila/javascript",
    "publisherUrl": "https://clawhub.ai/ivangdavila/javascript",
    "owner": "ivangdavila",
    "version": "1.0.3",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/javascript",
    "downloadUrl": "https://openagent3.xyz/downloads/javascript",
    "agentUrl": "https://openagent3.xyz/skills/javascript/agent",
    "manifestUrl": "https://openagent3.xyz/skills/javascript/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/javascript/agent.md"
  }
}