用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/bobcob7/dot-tools --skill npm命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | npm |
| description | npm commands for package management and scripts |
| argument-hint | [command or question] |
| allowed-tools | Bash, Read |
Help with npm based on $ARGUMENTS.
# Initialize project
npm init
npm init -y # Accept defaults
# Install dependencies
npm install # Install from package.json
npm install lodash # Add dependency
npm install -D typescript # Add dev dependency
npm install lodash@4.17.21 # Specific version
# Aliases
npm i # install
npm i -D # install --save-dev
# Remove
npm uninstall lodash
npm rm lodash # Alias
# Update
npm update # Update all
npm update lodash # Update specific
npm outdated # Check for updates
# Run script from package.json
npm run build
npm run test
npm run dev
# Built-in scripts (no "run" needed)
npm test
npm start
npm stop
# Pass arguments
npm run build -- --watch
# View package info
npm view lodash
npm view lodash versions # All versions
# List installed
npm list
npm list --depth=0 # Top-level only
npm list -g # Global packages
# Find package location
npm root
npm root -g
# Bump version
npm version patch # 1.0.0 -> 1.0.1
npm version minor # 1.0.0 -> 1.1.0
npm version major # 1.0.0 -> 2.0.0
npm login
npm publish
npm publish --access public # Scoped packages
npm unpublish pkg@1.0.0
# View config
npm config list
npm config get registry
# Set config
npm config set registry https://registry.npmjs.org/
# npmrc locations
# Project: .npmrc
# User: ~/.npmrc
# Clean install (CI)
npm ci # Exact versions from lock file
# Audit security
npm audit
npm audit fix
# Cache
npm cache clean --force
# Link for local development
npm link # In package dir
npm link package-name # In project dir
{
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"test": "vitest",
"lint": "eslint src/",
"format": "prettier --write src/"
}
}