nodejs-javascript-vitest
Guidelines for writing Node.js and JavaScript code with Vitest testing Triggers on: **/*.js, **/*.mjs, **/*.cjs
Best use case
nodejs-javascript-vitest is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Guidelines for writing Node.js and JavaScript code with Vitest testing Triggers on: **/*.js, **/*.mjs, **/*.cjs
Teams using nodejs-javascript-vitest should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/nodejs-javascript-vitest/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How nodejs-javascript-vitest Compares
| Feature / Agent | nodejs-javascript-vitest | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Guidelines for writing Node.js and JavaScript code with Vitest testing Triggers on: **/*.js, **/*.mjs, **/*.cjs
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Code Generation Guidelines ## Coding standards - Use JavaScript with ES2022 features and Node.js (20+) ESM modules - Use Node.js built-in modules and avoid external dependencies where possible - Ask the user if you require any additional dependencies before adding them - Always use async/await for asynchronous code, and use 'node:util' promisify function to avoid callbacks - Keep the code simple and maintainable - Use descriptive variable and function names - Do not add comments unless absolutely necessary, the code should be self-explanatory - Never use `null`, always use `undefined` for optional values - Prefer functions over classes ## Testing - Use Vitest for testing - Write tests for all new features and bug fixes - Ensure tests cover edge cases and error handling - NEVER change the original code to make it easier to test, instead, write tests that cover the original code as it is ## Documentation - When adding new features or making significant changes, update the README.md file where necessary ## User interactions - Ask questions if you are unsure about the implementation details, design choices, or need clarification on the requirements - Always answer in the same language as the question, but use english for the generated content like code, comments or docs
Related Skills
nodejs-best-practices
Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.
nodejs-backend-typescript
Node.js backend development with TypeScript, Express/Fastify servers, routing, middleware, and database integration
nodejs-backend-patterns
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.
modern-javascript-patterns
Master ES6+ features including async/await, destructuring, spread operators, arrow functions, promises, modules, iterators, generators, and functional programming patterns for writing clean, effici...
javascript
Best practices for JavaScript/TypeScript development including modern ES6+ patterns, error handling, and performance optimization.
javascript-typescript-typescript-scaffold
You are a TypeScript project architecture expert specializing in scaffolding production-ready Node.js and frontend applications. Generate complete project structures with modern tooling (pnpm, Vite, N
javascript-testing-patterns
Implement comprehensive testing strategies using Jest, Vitest, and Testing Library for unit tests, integration tests, and end-to-end testing with mocking, fixtures, and test-driven development. Use...
javascript-pro
Master modern JavaScript with ES6+, async patterns, and Node.js APIs. Handles promises, event loops, and browser/Node compatibility.
backend-nodejs
Node.js/TypeScript backend expert. Handles Express/Fastify API routes, TypeScript strict mode, Prisma ORM, Zod validation, error handling, configuration management. Use when project is Node.js backend (package.json + TypeScript server).
agent-javascript-pro
Expert JavaScript developer specializing in modern ES2023+ features, asynchronous programming, and full-stack development. Masters both browser APIs and Node.js ecosystem with emphasis on performance and clean code patterns.
javascript-mastery
Comprehensive JavaScript reference covering 33+ essential concepts every developer should know. From fundamentals like primitives and closures to advanced patterns like async/await and functional p...
nodejs
Node.js server development patterns including async patterns, error handling, and security best practices.