Skip to content
Join free
mcollina

Node skill

Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more.

$npx alyn-cli add node
View this skill on GitHubmcollina/skills/skills/node/SKILL.md
Pack stars
1,981
Pack installs
131k
Alyn Score
66/99
Updated
9 days ago
License
MIT

mcollina

Node

What is the Node skill?

Node is a backend skill by mcollina for Claude Code, Cursor, Codex and other AI coding agents. Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more.

Use this skill whenever you are dealing with Node.js code to obtain domain-specific knowledge for building robust, performant, and maintainable Node.js applications.

When to use it

Use this skill whenever you are dealing with Node.js code to obtain domain-specific knowledge for building robust, performant, and maintainable Node.js applications.

What the SKILL.md covers

  • When to use
  • TypeScript with Type Stripping
  • Common Workflows
  • High-priority activation checklist (streams + caching)
  • Integrated example pattern (CSV/ETL)
  • How to use
Author
mcollina
Pack
mcollina/skills (11 skills)
Category
Backend, #157 of 317
Alyn Score
66 / 99
Files
19, includes scripts, includes references
License
MIT
Last updated
9 days ago
Works with
Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot

Node compared to similar skills

SkillAlyn ScoreGitHub starsUpdated
Node · mcollina662k9 days ago
Fastapi Templates · wshobson8643k31 h ago
Devcontainer Setup · trailofbits778.4k2 days ago
Backend Patterns · affaan-m91310k3 days ago

Install Node

Pick your agent. Every command is ready to paste.

$npx alyn-cli add node

Detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

$npx skills add mcollina/skills --skill node

Or use the open skills CLI directly.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads node when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the node skill”. In Codex, type $node.

The skill itself

SKILL.md

FolderGitHub

When to use

Use this skill whenever you are dealing with Node.js code to obtain domain-specific knowledge for building robust, performant, and maintainable Node.js applications.

TypeScript with Type Stripping

When writing TypeScript for Node.js, use type stripping (Node.js 22.6+) instead of build tools like ts-node or tsx. Type stripping runs TypeScript directly by removing type annotations at runtime without transpilation.

Key requirements for type stripping compatibility:

  • Use import type for type-only imports
  • Use const objects instead of enums
  • Avoid namespaces and parameter properties
  • Use .ts extensions in imports

Minimal example — a valid type-stripped TypeScript file:

// greet.ts
import type { IncomingMessage } from 'node:http';

const greet = (name: string): string => `Hello, ${name}!`;
console.log(greet('world'));

Run directly with:

node greet.ts

See rules/typescript.md for complete configuration and examples.

Common Workflows

For multi-step processes, follow these high-level sequences before consulting the relevant rule file:

Graceful shutdown: Register signal handlers (SIGTERM/SIGINT) → stop accepting new work → drain in-flight requests → close external connections (DB, cache) → exit with appropriate code. See rules/graceful-shutdown.md.

Error handling: Define a shared error base class → classify errors (operational vs programmer) → add async boundary handlers (process.on('unhandledRejection')) → propagate typed errors through the call stack → log with context before responding or crashing. See rules/error-handling.md.

Diagnosing flaky tests: Isolate the test with --test-only → check for shared state or timer dependencies → inspect async teardown order → add retry logic as a temporary diagnostic step → fix root cause. See rules/flaky-tests.md.

Diagnosing stuck processes/tests (node --test hangs, "process did not exit", CI timeout, open handles): isolate file/test → run with explicit timeout/reporter → inspect handles via why-is-node-running (SIGUSR1) → patch deterministic teardown in resource-creation scope → rerun isolated + full suite until stable. See rules/stuck-processes-and-tests.md.

Profiling a slow path: Reproduce under realistic load → capture a CPU profile with --cpu-prof → identify hot functions → check for stream backpressure or unnecessary serialisation → validate improvement with a benchmark. See rules/profiling.md and rules/performance.md.

High-priority activation checklist (streams + caching)

When the task mentions CSV, ETL, ingestion pipelines, large file processing, backpressure, repeated lookups, or deduplicating concurrent async calls, explicitly apply this checklist:

  1. Use await pipeline(...) from node:stream/promises (prefer this over chained .pipe() in guidance/code).
  2. Include at least one explicit async function* transform when data is being transformed in-stream.
  3. Choose a cache strategy when repeated work appears:
    • lru-cache for bounded in-memory reuse in a single process.
    • async-cache-dedupe for async request deduplication / stale-while-revalidate behavior.
  4. Show where backpressure is handled (implicitly via pipeline() or explicitly via drain).

Integrated example pattern (CSV/ETL)

For CSV/ETL-style prompts, prefer an answer structure like:

  • createReadStream(input)
  • async function* parser/transform
  • optional cached enrichment lookup (async-cache-dedupe or lru-cache)
  • await pipeline(...) to a writable destination

Link relevant rules directly in explanations so models can retrieve details:

How to use

Read individual rule files for detailed explanations and code examples:

Tips for Node

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
  • • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
  • • It is part of a pack with 11 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Node

What does the Node skill do?

Provides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more.

How do I install Node?

Run "npx alyn-cli add node" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Node work in Cursor and Codex?

Yes. Node uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

When should I use the Node skill?

Use this skill whenever you are dealing with Node.js code to obtain domain-specific knowledge for building robust, performant, and maintainable Node.js applications.

What is inside the Node skill?

The SKILL.md covers When to use, TypeScript with Type Stripping, Common Workflows, High-priority activation checklist (streams + caching), Integrated example pattern (CSV/ETL), How to use, and the skill folder has 19 files including scripts.

What is a good alternative to Node?

Fastapi Templates by wshobson is the highest-ranked similar skill from another creator, with an Alyn Score of 86 compared to 66 for Node.

Is Node free?

Node is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.

Who made Node?

Node is published by mcollina in the mcollina/skills repository, together with 10 other skills.

Similar skills. From other creators.