[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWQY0801YB2X4C43XW1G0R":3,"skill-same:01M6CWQY0801YB2X4C43XW1G0R":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":46,"install":47,"resources":60},"01M6CWQY0801YB2X4C43XW1G0R","JavaScript",null,"Dynamic, prototype-based scripting language that powers interactive web experiences and runs in all major browsers and Node.js environments.","ffsshhttiikk\u002Fopencode-agents-skills","ffsshhttiikk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F226346827?v=4","01M6CWD9RR3Y7VRQX3MXYC8FYH","01M6CWD9WVPYAZW0J82G1VKGHY",3,"MIT","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fcomputer-science\u002Fjavascript\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"javascript","frontend","prototype","web","scripting","js","stack","programming","node","interactive","backend","language","full","2026-11-10 10:12:30",false,"---\nname: JavaScript\ndescription: Dynamic, prototype-based scripting language that powers interactive web experiences and runs in all major browsers and Node.js environments.\nlicense: MIT License\ncompatibility: ECMAScript 2021+ (ES12)\naudience: Frontend developers, full-stack developers, Node.js backend developers\ncategory: Programming Languages\n---\n\n# JavaScript\n\n## What I do\n\nI am a dynamic, prototype-based scripting language created by Brendan Eich in 1995. I started as a simple scripting language for web browsers but have evolved into one of the most popular and versatile programming languages. I power interactive web experiences, server-side applications (Node.js), mobile apps (React Native, Ionic), desktop applications (Electron), and IoT devices. I support multiple programming paradigms including procedural, object-oriented, and functional programming. My event-driven, non-blocking I\u002FO model makes me ideal for building responsive web applications and scalable network services.\n\n## When to use me\n\nUse JavaScript when building interactive web frontends with React\u002FVue\u002FAngular, server-side applications with Node.js\u002FExpress\u002FDeno, real-time applications with WebSockets, cross-platform mobile apps with React Native, desktop applications with Electron, or when building full-stack JavaScript applications.\n\n## Core Concepts\n\n- **Dynamic Typing**: Variables can hold any type and types are determined at runtime.\n- **Prototype-Based Inheritance**: Objects inherit directly from other objects via prototypes rather than classes.\n- **First-Class Functions**: Functions are treated as first-class citizens that can be assigned to variables, passed as arguments, and returned from other functions.\n- **Event Loop and Non-Blocking I\u002FO**: Asynchronous operations don't block the main thread, enabling responsive applications.\n- **Closures**: Functions that capture and remember their lexical environment, enabling powerful patterns like partial application and module patterns.\n- **this Keyword**: Context-dependent reference to the current object, binding varies by how function is called.\n- **Event-Driven Programming**: Applications respond to events like user actions, network requests, and timers.\n- **Modules (ES6+)**: Official module system with import\u002Fexport statements for code organization and dependency management.\n- **Async\u002FAwait**: Syntactic sugar over Promises for writing asynchronous code that looks synchronous.\n- **Destructuring and Spread**: Convenient syntax for extracting values from objects and arrays and creating new instances.\n\n## Code Examples\n\n**Modern ES6+ Syntax:**\n```javascript\nconst greet = (name, greeting = \"Hello\") => `${greeting}, ${name}!`;\n\nconst numbers = [1, 2, 3, 4, 5];\nconst [first, second, ...rest] = numbers;\n\nconst user = { name: \"Alice\", age: 30, city: \"NYC\" };\nconst { name, age } = user;\n\nconst doubled = numbers.map(n => n * 2);\nconst sum = numbers.reduce((acc, n) => acc + n, 0);\n\nconsole.log(greet(\"World\"));\nconsole.log(doubled, sum);\n```\n\n**Asynchronous Programming with Promises and Async\u002FAwait:**\n```javascript\nconst fetchUser = async (userId) => {\n  try {\n    const response = await fetch(`https:\u002F\u002Fapi.example.com\u002Fusers\u002F${userId}`);\n    if (!response.ok) throw new Error('User not found');\n    const user = await response.json();\n    return user;\n  } catch (error) {\n    console.error('Error fetching user:', error);\n    throw error;\n  }\n};\n\nconst fetchMultipleUsers = async (userIds) => {\n  const promises = userIds.map(id => fetchUser(id));\n  const users = await Promise.all(promises);\n  return users;\n};\n\nfetchMultipleUsers([1, 2, 3])\n  .then(users => console.log(users))\n  .catch(err => console.error(err));\n```\n\n**Object-Oriented Patterns:**\n```javascript\nclass Animal {\n  constructor(name) {\n    this.name = name;\n  }\n  \n  speak() {\n    console.log(`${this.name} makes a sound.`);\n  }\n}\n\nclass Dog extends Animal {\n  constructor(name, breed) {\n    super(name);\n    this.breed = breed;\n  }\n  \n  speak() {\n    console.log(`${this.name} barks!`);\n  }\n  \n  static create(name, breed) {\n    return new Dog(name, breed);\n  }\n}\n\nconst buddy = Dog.create(\"Buddy\", \"Golden Retriever\");\nbuddy.speak();\n\nconst animals = [new Dog(\"Rex\", \"Labrador\"), new Cat(\"Whiskers\", \"Siamese\")];\nanimals.forEach(animal => animal.speak());\n```\n\n**Module System:**\n```javascript\n\u002F\u002F math.js\nexport const add = (a, b) => a + b;\nexport const multiply = (a, b) => a * b;\nexport default class Calculator {\n  static divide(a, b) {\n    if (b === 0) throw new Error(\"Division by zero\");\n    return a \u002F b;\n  }\n}\n\n\u002F\u002F main.js\nimport Calculator, { add, multiply } from '.\u002Fmath.js';\n\nconsole.log(add(2, 3)); \u002F\u002F 5\nconsole.log(multiply(4, 5)); \u002F\u002F 20\nconsole.log(Calculator.divide(10, 2)); \u002F\u002F 5\n```\n\n## Best Practices\n\n1. **Use const by Default**: Declare variables with const unless you need to reassign, making intent clear and enabling optimizations.\n2. **Prefer Arrow Functions**: Use arrow functions for callbacks and methods that don't need their own this binding.\n3. **Handle Async Errors**: Always handle Promise rejections with .catch() or try\u002Fcatch with async\u002Fawait to avoid unhandled promise rejections.\n4. **Use Strict Mode**: Enable \"use strict\" at the top of files to catch common mistakes and enable stricter parsing.\n5. **Avoid Global Variables**: Use IIFE, modules, or blocks to encapsulate code and avoid polluting the global namespace.\n6. **Use Descriptive Variable Names**: Avoid single-letter variable names except for loop counters and mathematical variables.\n7. **Leverage Modern Syntax**: Use destructuring, spread operators, template literals, and optional chaining (?.) for cleaner code.\n8. **Handle Null and Undefined Safely**: Use optional chaining (?.) and nullish coalescing (??) operators to avoid TypeErrors.\n9. **Write Pure Functions When Possible**: Functions without side effects are easier to test, reason about, and compose.\n10. **Use Linting Tools**: Configure ESLint with appropriate rules (like Airbnb or Standard) to enforce code quality.\n","# JavaScript\n\n## What I do\n\nI am a dynamic, prototype-based scripting language created by Brendan Eich in 1995. I started as a simple scripting language for web browsers but have evolved into one of the most popular and versatile programming languages. I power interactive web experiences, server-side applications (Node.js), mobile apps (React Native, Ionic), desktop applications (Electron), and IoT devices. I support multiple programming paradigms including procedural, object-oriented, and functional programming. My event-driven, non-blocking I\u002FO model makes me ideal for building responsive web applications and scalable network services.\n\n## When to use me\n\nUse JavaScript when building interactive web frontends with React\u002FVue\u002FAngular, server-side applications with Node.js\u002FExpress\u002FDeno, real-time applications with WebSockets, cross-platform mobile apps with React Native, desktop applications with Electron, or when building full-stack JavaScript applications.\n\n## Core Concepts\n\n- **Dynamic Typing**: Variables can hold any type and types are determined at runtime.\n- **Prototype-Based Inheritance**: Objects inherit directly from other objects via prototypes rather than classes.\n- **First-Class Functions**: Functions are treated as first-class citizens that can be assigned to variables, passed as arguments, and returned from other functions.\n- **Event Loop and Non-Blocking I\u002FO**: Asynchronous operations don't block the main thread, enabling responsive applications.\n- **Closures**: Functions that capture and remember their lexical environment, enabling powerful patterns like partial application and module patterns.\n- **this Keyword**: Context-dependent reference to the current object, binding varies by how function is called.\n- **Event-Driven Programming**: Applications respond to events like user actions, network requests, and timers.\n- **Modules (ES6+)**: Official module system with import\u002Fexport statements for code organization and dependency management.\n- **Async\u002FAwait**: Syntactic sugar over Promises for writing asynchronous code that looks synchronous.\n- **Destructuring and Spread**: Convenient syntax for extracting values from objects and arrays and creating new instances.\n\n## Code Examples\n\n**Modern ES6+ Syntax:**\n```javascript\nconst greet = (name, greeting = \"Hello\") => `${greeting}, ${name}!`;\n\nconst numbers = [1, 2, 3, 4, 5];\nconst [first, second, ...rest] = numbers;\n\nconst user = { name: \"Alice\", age: 30, city: \"NYC\" };\nconst { name, age } = user;\n\nconst doubled = numbers.map(n => n * 2);\nconst sum = numbers.reduce((acc, n) => acc + n, 0);\n\nconsole.log(greet(\"World\"));\nconsole.log(doubled, sum);\n```\n\n**Asynchronous Programming with Promises and Async\u002FAwait:**\n```javascript\nconst fetchUser = async (userId) => {\n  try {\n    const response = await fetch(`https:\u002F\u002Fapi.example.com\u002Fusers\u002F${userId}`);\n    if (!response.ok) throw new Error('User not found');\n    const user = await response.json();\n    return user;\n  } catch (error) {\n    console.error('Error fetching user:', error);\n    throw error;\n  }\n};\n\nconst fetchMultipleUsers = async (userIds) => {\n  const promises = userIds.map(id => fetchUser(id));\n  const users = await Promise.all(promises);\n  return users;\n};\n\nfetchMultipleUsers([1, 2, 3])\n  .then(users => console.log(users))\n  .catch(err => console.error(err));\n```\n\n**Object-Oriented Patterns:**\n```javascript\nclass Animal {\n  constructor(name) {\n    this.name = name;\n  }\n  \n  speak() {\n    console.log(`${this.name} makes a sound.`);\n  }\n}\n\nclass Dog extends Animal {\n  constructor(name, breed) {\n    super(name);\n    this.breed = breed;\n  }\n  \n  speak() {\n    console.log(`${this.name} barks!`);\n  }\n  \n  static create(name, breed) {\n    return new Dog(name, breed);\n  }\n}\n\nconst buddy = Dog.create(\"Buddy\", \"Golden Retriever\");\nbuddy.speak();\n\nconst animals = [new Dog(\"Rex\", \"Labrador\"), new Cat(\"Whiskers\", \"Siamese\")];\nanimals.forEach(animal => animal.speak());\n```\n\n**Module System:**\n```javascript\n\u002F\u002F math.js\nexport const add = (a, b) => a + b;\nexport const multiply = (a, b) => a * b;\nexport default class Calculator {\n  static divide(a, b) {\n    if (b === 0) throw new Error(\"Division by zero\");\n    return a \u002F b;\n  }\n}\n\n\u002F\u002F main.js\nimport Calculator, { add, multiply } from '.\u002Fmath.js';\n\nconsole.log(add(2, 3)); \u002F\u002F 5\nconsole.log(multiply(4, 5)); \u002F\u002F 20\nconsole.log(Calculator.divide(10, 2)); \u002F\u002F 5\n```\n\n## Best Practices\n\n1. **Use const by Default**: Declare variables with const unless you need to reassign, making intent clear and enabling optimizations.\n2. **Prefer Arrow Functions**: Use arrow functions for callbacks and methods that don't need their own this binding.\n3. **Handle Async Errors**: Always handle Promise rejections with .catch() or try\u002Fcatch with async\u002Fawait to avoid unhandled promise rejections.\n4. **Use Strict Mode**: Enable \"use strict\" at the top of files to catch common mistakes and enable stricter parsing.\n5. **Avoid Global Variables**: Use IIFE, modules, or blocks to encapsulate code and avoid polluting the global namespace.\n6. **Use Descriptive Variable Names**: Avoid single-letter variable names except for loop counters and mathematical variables.\n7. **Leverage Modern Syntax**: Use destructuring, spread operators, template literals, and optional chaining (?.) for cleaner code.\n8. **Handle Null and Undefined Safely**: Use optional chaining (?.) and nullish coalescing (??) operators to avoid TypeErrors.\n9. **Write Pure Functions When Possible**: Functions without side effects are easier to test, reason about, and compose.\n10. **Use Linting Tools**: Configure ESLint with appropriate rules (like Airbnb or Standard) to enforce code quality.\n",{"name":5,"license":36,"audience":37,"category":38,"description":7,"compatibility":39},"MIT License","Frontend developers, full-stack developers, Node.js backend developers","Programming Languages","ECMAScript 2021+ (ES12)","main","5f7a3e453c98261f93d19a6a7de44ad8f7b72d41","computer-science\u002Fjavascript",2,"https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk","2026-03-01 06:55:40",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill JavaScript",{"tool":53,"command":54},"bunx","bunx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill JavaScript",{"tool":56,"command":57},"pnpm","pnpm dlx skills add ffsshhttiikk\u002Fopencode-agents-skills --skill JavaScript","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fcomputer-science\u002Fjavascript\u002FSKILL.md",true,[61,67],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"agents\u002Fopenai.yaml","REFERENCE","参考文档",410,"https:\u002F\u002Fgithub.com\u002Fendman100\u002Fskill-router-nexus\u002Fblob\u002Fmain\u002FSecurity-and-Compliance\u002Freverse-skill-router\u002FCTF-Sandbox-Orchestrator\u002Fcompetition-jwt-claim-confusion\u002Fagents\u002Fopenai.yaml",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fjwt-claim-confusion.md",1074,"https:\u002F\u002Fgithub.com\u002Fendman100\u002Fskill-router-nexus\u002Fblob\u002Fmain\u002FSecurity-and-Compliance\u002Freverse-skill-router\u002FCTF-Sandbox-Orchestrator\u002Fcompetition-jwt-claim-confusion\u002Freferences\u002Fjwt-claim-confusion.md",[72,84,94,102,112,121],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":31},"01M6CXT9TXDF79BWJTMQAPB49G","xamarin","Xamarin cross-platform development","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fxamarin\u002FSKILL.md",[],[74,79,80,81,82,83],"platform","cross-platform","mobile","opencode","development",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":31},"01M6CXT8AD04MFYDA32VW3FKAG","wrangling","Data wrangling fundamentals","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwrangling\u002FSKILL.md",[],[86,91,82,92,93],"data wrangling","science","data",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":31},"01M6CXT717GCN7SRRNPBDP4508","windows","Windows operating system administration and scripting","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwindows\u002FSKILL.md",[],[96,101,82,22],"system",{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":31},"01M6CXT54K794NMEM3XAPZZDKT","wide-column","Wide-column data model","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column\u002FSKILL.md",[],[109,110,82,111,93],"wide column","databases","model",{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":31},"01M6CXT28FMT2P4V9GZE67WA8E","wide-column-stores","Wide-column database stores","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwide-column-stores\u002FSKILL.md",[],[119,110,82,120],"wide column stores","database",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":31},"01M6CXT0D0M0Q4T2N7C2RX7DSN","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002Fffsshhttiikk\u002Fopencode-agents-skills\u002Fblob\u002Fmain\u002Fwebsockets\u002FSKILL.md",[],[123,128,129,130,82,131,132],"websocket","real-time","time","best practices","implementation"]