# Package Manager

> pnpm workspace rules for Liftera. Trigger: When adding dependencies, modifying workspace configuration, or troubleshooting installs/lockfile issues.

- Skill: `majiayu000/package-manager` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/package-manager`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/package-manager/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: Apache-2.0
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/package-manager

---


## Workspace Rules (REQUIRED)

- **ALWAYS** keep workspace boundaries defined by `pnpm-workspace.yaml`.
- **ALWAYS** add dependencies to the narrowest scope that needs them:
  - app deps in `apps/*/package.json`
  - package deps in `packages/*/package.json`
  - tooling-only deps in root `package.json`

## Installing Dependencies (REQUIRED)

- **ALWAYS** use `pnpm` (repo is configured with `packageManager: pnpm@9.0.0`).
- **NEVER** use `npm install` or `yarn` in this repository.

## Lockfile & Consistency

- **ALWAYS** commit `pnpm-lock.yaml` when dependencies change.
- **NEVER** hand-edit the lockfile.

## Filtering & Commands

- **ALWAYS** use pnpm filters for app-specific work.
- Prefer:
  - `pnpm dev --filter=web`
  - `pnpm dev --filter=mobile`

