Dependencies Management Skill
This skill handles dependency management for the project using Bun.
When to Use
- •Installing project dependencies
- •Updating packages
- •Adding new dependencies to the project
- •Resolving dependency issues
- •Setting up the project for the first time
Pre-check
Before managing dependencies, verify:
- •Bun is installed and accessible on the system
- •Package.json files exist in the expected locations
- •Internet connectivity for downloading packages
Current Operations
Install Dependencies
Currently installs dependencies for the API application located in apps/api.
For Unix/Mac/Linux:
bash
.claude/skills/dependencies/scripts/install.sh
For Windows PowerShell:
powershell
.claude/skills/dependencies/scripts/install.ps1
The script will:
- •Navigate to
apps/apidirectory - •Verify bun is installed
- •Run
bun installto install all dependencies - •Report success or any errors
Post-Installation
After successful installation:
- •Verify node_modules directory was created
- •Check that all dependencies were installed correctly
- •Report any warnings or errors from bun
Error Handling
Handle these common errors:
- •Bun not installed: Direct user to https://bun.sh for installation instructions
- •Package.json not found: Verify the project structure and that apps/api exists
- •Network errors: Check internet connectivity or try again
- •Permission errors: May need appropriate file system permissions
- •Lock file conflicts: May need to remove bun.lockb and reinstall
Future Enhancements
This skill will be expanded to include:
- •Installing dependencies for multiple apps when added to the project
- •Updating dependencies (
bun update) - •Adding new dependencies (
bun add <package>) - •Removing dependencies (
bun remove <package>) - •Security audit (
bun audit) - •Listing outdated dependencies
- •Managing workspace dependencies for monorepo setup
- •Cleaning node_modules and reinstalling fresh
Safety Guidelines
- •Always verify what will be installed before proceeding
- •Show user the package.json location being processed
- •Report installation progress and results
- •Warn about major version updates
- •Keep lockfiles committed to ensure reproducible installs