一键导入
javascript
JavaScript best-practices and rule enforcement — naming conventions, modern syntax idioms, `this`-handling, module structure, array/iteration performance, and nullability. Applies to plain JavaScript and is the foundation TypeScript builds on. TRIGGER when: language (JavaScript, JS, .js, .mjs, .cjs, Node.js, browser JS, ES modules, ESM, CommonJS), syntax (const/let, destructuring, template literals, optional chaining, nullish coalescing, arrow functions), patterns (this binding, callback, detached method, pure function vs method, module imports, barrel file, index.js), performance (array chains, filter().map(), intermediate arrays, hot path, GC pressure), nullability (null vs undefined, absence, sentinel value, == null check), naming (camelCase, PascalCase, kebab-case, boolean prefix), ask (idiomatic JavaScript, JS conventions, JS best practices, JS code review). ALSO APPLIES to TypeScript — it is the foundation TS builds on; load it alongside `typescript` on `.ts`/`.tsx`. For type-specific rules (type assert
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。