一键导入
node-dev
Specialized skill for managing Node.js development environments, including starting/stopping dev servers, building, testing, and linting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Specialized skill for managing Node.js development environments, including starting/stopping dev servers, building, testing, and linting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Agent-to-User Interface (A2UI) protocol implementation and client renderer scaffolding.
Infrastructure automation, configuration management, and application deployment orchestration using Ansible.
Create and manage unicode braille animations and spinners for CLIs and web apps. Use this skill when the user wants to add loading indicators, progress animations, or custom braille-based art to their terminal or browser-based application.
Agent harness for headlessly deploying Code Scaffold assets.
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds.
Comprehensive cybersecurity arsenal integrating MITRE and NIST framework methodologies, NVIDIA SkillSpector vulnerability scanning, and deep SAST secret detection.
| name | node_dev |
| description | Specialized skill for managing Node.js development environments, including starting/stopping dev servers, building, testing, and linting. |
When the user asks to start, stop, or manage a Node application, follow these instructions exactly:
Detect Package Manager Check for package-lock.json, yarn.lock, or pnpm-lock.yaml to determine the correct package manager ( pm, yarn, or pnpm).
Starting the Dev Server To start the app (e.g., pm run dev or pm start):
Stopping the Dev Server To stop the app:
Behavior constraint for managing local dev servers (e.g., Vite, Next.js, Express): When running a local development server on Windows via a background task, cancelling or killing the parent task is insufficient, as it leaves orphaned Node.js child processes bound to the port.
Anytime you are instructed to shut down the server, test UI changes, or push to production, you MUST explicitly release the port using the following Windows commands:
netstat -ano | findstr :5173taskkill /PID <pid> /FNever assume the server is dead just because the terminal task was closed. Always verify the port is clear.
If the other agent is building a CLI itself and you want it to automate this under the hood using Node.js, you can give the agent this snippet instead:
Task: Implement a robust port-killer utility in the CLI for Windows environments.
When shutting down dev servers spawned by our CLI, standard child_process.kill() leaves orphaned processes. Implement a cross-platform termination hook. For Windows environments (process.platform === 'win32'), execute netstat -ano | findstr :<PORT> to extract the PID, and aggressively terminate it using execSync('taskkill /PID <PID> /F') before allowing the CLI to exit.
Other Dev Commands
NPM Trusted Publishing (OIDC) in GitHub Actions
When configuring or troubleshooting GitHub Actions to publish packages to NPM using OIDC Trusted Publishing (passwordless npm publish --provenance), STRICTLY enforce these invariants:
registry-url is Mandatory: You MUST set registry-url: 'https://registry.npmjs.org' in the actions/setup-node step. Without this, the NPM CLI will fail to initialize the OIDC handshake and will throw a highly misleading ENEEDAUTH error.NODE_AUTH_TOKEN: Remove any references to NODE_AUTH_TOKEN in the publish step's environment variables. OIDC handles the auth implicitly based on the registry-url configuration.npm v10.x versions that have known bugs negotiating OIDC tokens. You MUST explicitly force the runner to use the latest NPM version (e.g., - run: npm install -g npm@latest) or bump the runner to Node 24 before publishing.ENEEDAUTH = The OIDC handshake failed to trigger. Usually means registry-url is missing from setup-node or the npm CLI version is too old.403 Forbidden = The OIDC handshake succeeded, but the registry rejected the payload (often because the package version already exists in the registry, or the account is blocked by 2FA).Safe CI Pipeline Testing Strategies (NPM Publish)
If a CI pipeline is repeatedly failing at the npm publish step, DO NOT recursively bump the project's actual version and push release tags to test fixes. Instead, follow this non-destructive isolation strategy:
workflow_dispatch trigger to the workflow file so it can be tested manually.package.json version to a disposable prerelease tag (e.g., 1.0.9-test.1).main (bypassing tags).npm error You must specify a tag using --tag when publishing a prerelease version, this is an ABSOLUTE PROOF OF SUCCESS. It means the OIDC authentication perfectly bypassed all blocks and only failed because NPM correctly protects the latest tag from alpha/test strings.