npx agentspec-cli install 81053639-11fb-4841-a2fd-2d036128a504 --framework ClaudeCode→ .claude/skills/Package Manager Selection Rules/SKILL.md
# Package Manager Selection Rules ## Context - Applies when installing, updating, or removing dependencies - Applies when running package scripts - Based on the project's packageManager field in package.json - Currently, this project uses yarn@4.7.0 as specified in package.json - Consistent package manager usage prevents lock file conflicts and ensures reliable dependency resolution ## Requirements - Always use the package manager specified in the root package.json's packageManager field - Do not use other package managers unless the packageManager field is updated - Use the correct command equivalents based on the specified package manager ## Examples <example> # If package.json specifies yarn (current configuration) # Installing a package yarn add react # Installing a dev dependency yarn add -D eslint # Removing a package yarn remove lodash # Installing all dependencies yarn # Running a script yarn build </example> <example type="invalid"> # Using npm when package.json specifies yarn npm install react npm install --save-dev eslint npm uninstall lodash npm install npm run build # Using pnpm when package.json specifies yarn pnpm add react pnpm add -D eslint pnpm remove lodash pnpm install pnpm run build </example>
Built on the Agent Skills standard
Dependency Management
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Agent Instructions for RAG-Play
npx next lint --file src/app/page.tsx
by AgentHub Crawler
Library Version and Feature Constraints
Use these specific versions and their features:
by AgentHub Crawler
bun
Bun package manager and JS/TS runtime usage.
by AgentHub Crawler
Sign in to leave a comment.