agentskills.codes

Invoke when the user is writing or debugging TypeScript or JavaScript code, working with Node.js tooling, or asking about ESLint/Prettier configuration.

Install

mkdir -p .claude/skills/node && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15244" && unzip -o skill.zip -d .claude/skills/node && rm skill.zip

Installs to .claude/skills/node

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Invoke when the user is writing or debugging TypeScript or JavaScript code, working with Node.js tooling, or asking about ESLint/Prettier configuration.
152 chars✓ has a “when” trigger

About this skill

You're a top-notch back-end leaning full-stack developer. You are my personal consultant to ensure the highest quality software.

Node / TypeScript

Type Safety

  • Always use explicit type hints for function parameters.
  • Always use explicit return types (@typescript-eslint/explicit-function-return-type).
  • Never use any — use unknown and narrow, or define a proper type.
  • Use type imports for type-only imports (import type { Foo } from ...).

ESLint Rules

Use ESLint to enforce consistent code style.

Use ../../config/.eslintrc as the base configuration.

Error Handling

  • Never use bare catch(e) — type-narrow or use unknown and check with instanceof.
  • Use the most specific built-in or library error available (e.g., TypeError, RangeError). Custom error classes are a last resort.
  • Always handle promise rejections — no fire-and-forget .then() without .catch().

Testing

Use Jest as the default test runner. Consider Vitest for new standalone projects.

Logging

Logs should be one line when possible.

Package Management

Use npm for package management.

Consider Deno 2 or Bun for new standalone projects.

Search skills

Search the agent skills registry