About javascript
A skill for coding agents that defines idiomatic JavaScript conventions and on-demand ECMAScript history guidance. For TypeScript work, it is intended to be used alongside the `typescript` skill.
Key features
- 01Naming and variable conventions
- 02Prefer explicit parameters over `this`
- 03Avoid barrel files
- 04Reduce intermediate arrays on hot paths
- 05Distinguish `undefined` from `null`
Use cases
- 01Standardize JavaScript code style
- 02Review array chains in hot paths
- 03Check an ECMAScript feature's edition
- 04Apply JavaScript rules alongside TypeScript rules
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ bsene/ skills --skill javascriptAfter installing, type/javascriptin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/ecmascript-history.mdrules/avoid-intermediate-arrays.mdjs-general-conventions.mdno-barrel-files.mdnull-undefined.mdprefer-explicit-context-over-this.mdDetails
From the project READMEJavaScript
Conventions and rules for idiomatic JavaScript. TypeScript builds on these — when working in TS, apply both this skill and typescript.
Rules (always apply)
| Rule | File |
|---|---|
| Use JavaScript general conventions (naming, const/let, destructuring, template literals) | rules/js-general-conventions.md |
Prefer explicit context (params) over implicit this | rules/prefer-explicit-context-over-this.md |
Do not use barrel files (index.js/index.ts re-exports) | rules/no-barrel-files.md |
Avoid intermediate arrays on hot paths (filter().map() chains) | rules/avoid-intermediate-arrays.md |
undefined for absence, null for API/external contracts | rules/null-undefined.md |
Read On Demand
- ECMAScript edition history (ES1 1997 → ES2025): see
references/ecmascript-history.md. Use when judging which edition first shipped a feature, what needs a polyfill on older runtimes, or which syntax is safe for a target environment.
Specialist Skills
| Situation | Skill | Why |
|---|---|---|
TypeScript-specific features (types, generics, as const, readonly) | typescript | Type-system rules on top of JS conventions |
| Function composition, pipe, currying, FP patterns | composing-software | FP-flavored design beyond raw JS idioms |
| OOP / SOLID / design patterns | object-oriented-programming | Class-based architecture |
Comments
Markdown supported