**TL;DR**: `/setup-pm` - Detect and configure package manager for the project.

---

## Usage

```bash
/setup-pm                   # Auto-detect and configure
/setup-pm --npm             # Force npm
/setup-pm --pnpm            # Force pnpm
/setup-pm --yarn            # Force yarn
/setup-pm --pip             # Force pip
/setup-pm --poetry          # Force poetry
/setup-pm --uv              # Force uv
```

## Auto-Detection

### JavaScript/TypeScript
Detects based on lockfiles:
- `pnpm-lock.yaml` → pnpm
- `yarn.lock` → yarn
- `package-lock.json` → npm
- `bun.lockb` → bun

### Python
Detects based on config files:
- `poetry.lock` → poetry
- `Pipfile.lock` → pipenv
- `uv.lock` → uv
- `requirements.txt` → pip

## Configuration Output

```bash
$ /setup-pm

Detecting package manager...

Project type: TypeScript/JavaScript
Lockfile found: pnpm-lock.yaml
Package manager: pnpm

Configuration applied:
  ✅ Install command: pnpm install
  ✅ Add command: pnpm add
  ✅ Run command: pnpm run
  ✅ Scripts configured in session

Ready to use:
  pnpm install
  pnpm run build
  pnpm run test
```

## Multi-Language Support

For projects with both:
```bash
$ /setup-pm

Detected multi-language project:

Frontend (TypeScript):
  Package manager: pnpm
  Directory: ./frontend

Backend (Python):
  Package manager: poetry
  Directory: ./backend

Both configured for this session.
```

## Integration

This command:
- Detects project type automatically
- Sets appropriate environment variables
- Configures commands for session
- Works with hooks system
