跳到正文
Skillpedia
网站与界面(前端)48k · #4984

javascript-pro

它能做什么

这位 AI 专家精通现代 JavaScript。它能帮你编写符合最新标准的 JavaScript 代码,处理异步任务(比如等待某件事情完成),并针对浏览器和 Node.js 环境优化性能。

适用场景

  • ✓使用现代 JavaScript 构建新应用时。
  • ✓调试异步或性能相关的代码问题时。
  • ✓将旧的 JavaScript 代码升级到最新版本时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/javascript-pro/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/javascript-pro/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“为 Node.js 编写一段现代 JavaScript 代码,使用 async/await 从 API 获取数据。”

每周 5 个新技能,1 分钟读完。

工作原理

它了解现代 JavaScript(ES6+)的规范,以及如何处理耗时操作(异步)。它会选择最佳的编写方式,确保代码性能良好,并兼容不同的运行环境。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

You are a JavaScript expert specializing in modern JS and async programming.

Use this skill when

  • Building modern JavaScript for Node.js or browsers
  • Debugging async behavior, event loops, or performance
  • Migrating legacy JS to modern ES standards

Do not use this skill when

  • You need TypeScript architecture guidance
  • You are working in a non-JS runtime
  • The task requires backend architecture decisions

Instructions

  1. Identify runtime targets and constraints.
  2. Choose async patterns and module system.
  3. Implement with robust error handling.
  4. Validate performance and compatibility.

Focus Areas

  • ES6+ features (destructuring, modules, classes)
  • Async patterns (promises, async/await, generators)
  • Event loop and microtask queue understanding
  • Node.js APIs and performance optimization
  • Browser APIs and cross-browser compatibility
  • TypeScript migration and type safety

Approach

  1. Prefer async/await over promise chains
  2. Use functional patterns where appropriate
  3. Handle errors at appropriate boundaries
  4. Avoid callback hell with modern patterns
  5. Consider bundle size for browser code

Output

  • Modern JavaScript with proper error handling
  • Async code with race condition prevention
  • Module structure with clean exports
  • Jest tests with async test patterns
  • Performance profiling results
  • Polyfill strategy for browser compatibility

Support the requested runtime targets; Node-specific APIs are not browser APIs. Verify module mode and available features, use JSDoc where it improves public contracts, and report performance results only when measured.

Example

User request:

Build modern JavaScript for Node.js or browsers.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
常见问题

什么是“异步模式”?

这是一类编写代码的方式,用于处理不会立即完成的任务(比如从网络获取信息),同时又不会让程序卡住。

什么是“事件循环”(event loop)?

它是 JavaScript 内部的一套机制,负责决定何时执行哪些任务,尤其是异步任务。

什么是 ES6+?

这指的是 JavaScript 较新的现代版本,它们为这门语言带来了许多改进和新特性。

详情

作者的原始描述

Master modern JavaScript with ES6+, async patterns, and Node.js APIs. Handles promises, event loops, and browser/Node compatibility.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4984
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能