← ClaudeAtlas

javascript-patternslisted

JavaScript language patterns, modern syntax, async handling, module systems (ESM/CJS), error handling, and review checklist for JavaScript code without TypeScript. Use whenever the project contains `.js`, `.mjs`, `.cjs`, or `.jsx` files (and no `tsconfig.json`), `package.json` without TypeScript dependencies, OR the user asks about JavaScript, JS, ECMAScript, async/await, promises, modules, ESM, CommonJS, package.json, npm, pnpm, yarn, bun, or any work in JavaScript code without explicit TypeScript usage, even if "JavaScript" is not mentioned by name.
ku5ic/dotfiles · ★ 0 · Data & Documents · score 72
Install: claude install-skill ku5ic/dotfiles
# JavaScript patterns Default assumption: a project running on the current Node.js Active LTS (Node 24, "Krypton") or a modern browser baseline. If the project also uses TypeScript, the type-aware skill applies on top of these language patterns. Adapt advice to the Node version in the project's `.nvmrc`, `.tool-versions`, or `engines` field in `package.json`. ## Severity rubric - `failure`: a concrete defect or violation that should not ship. - `warning`: a smell or pattern that compounds with other findings. - `info`: a hardening opportunity or note, not a defect. ## Reference files | File | Covers | | ---------------------------------------------------------------------- | -------------------------------------------------------------------------------- | | [reference/modules.md](reference/modules.md) | ESM and CJS, `package.json` `"type"`, dynamic `import()`, dual-package hazard | | [reference/syntax.md](reference/syntax.md) | Modern syntax: optional chaining, nullish coalescing, logical assignment, `at()` | | [reference/async.md](reference/async.md) | `async`/`await`, `Promise.*`, `for await...of`, top-level `await` | | [reference/errors.md](reference/errors.md) | Error subclasses, `Error.cause`, unhand