Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

javascript-practices

FreeNo executable scriptsNot checked

JS/TS conventions for syntax, modules, and types. Use when writing or reviewing JavaScript/TypeScript code.

eserby eser★ 53 GitHub stars12 installs in other catalogs

About this skill

JavaScript/TypeScript Practices

Conventions for JS/TS syntax, modules, types, and runtime behavior.

Quick Start

import * as path from "@std/path"; // namespace import
import { utils } from "./utils.ts"; // explicit extension

export function buildConfig() {} // direct named export
const port = config.port ?? 8000; // nullish coalescing

Key Principles

Modules: Direct named exports, namespace imports, explicit .ts extensions

Syntax: const over let, always semicolons, === strict equality, ?? over ||

Types: Number() over +, instanceof over typeof, prefer null over undefined

Runtime: import.meta.dirname, globalThis over window, optional projectRoot params

Async: Use return await consistently for better stack traces and correct error handling

Avoid: eval, prototype mutation, truthy/falsy checks on non-booleans

References

See rules.md for complete guidelines with examples.

Install javascript-practices in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/rules.md

FAQ

What does the javascript-practices skill do?

JS/TS conventions for syntax, modules, and types. Use when writing or reviewing JavaScript/TypeScript code.

How do I install the javascript-practices skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the javascript-practices skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare javascript-practices with