| name | package |
| description | Cross-repo dependency audit and upgrade coordination |
| when_to_use | Use when auditing or upgrading dependencies across the databayt repos — version consistency, coordinated upgrades, breaking-change sweeps by the package agent; cross-repo scope, unlike a single repo's deps/outdated check. Triggers on: package audit, upgrade deps across repos, version consistency, dependency sweep. |
| argument-hint | [audit|upgrade <dep>] [repo] |
Package Management Command
Audit, update, and align dependencies across all databayt repositories.
Usage
/package - Full audit: scan all 7 repos, compare against latest npm versions, report gaps
/package audit - Quick consistency check across repos (no npm lookups)
/package update <repo> - Update all deps in one repo (e.g., /package update hogwarts)
/package update <package> - Update one package across all repos (e.g., /package update next)
/package sync - Align all shared packages to target versions across all repos
/package align <package> - Align one package to highest version across repos
Argument: $ARGUMENTS
Instructions
Repository Paths
- kun:
/Users/abdout/kun
- hogwarts:
/Users/abdout/hogwarts
- souq:
/Users/abdout/souq
- mkan:
/Users/abdout/mkan
- shifa:
/Users/abdout/shifa
- codebase:
/Users/abdout/codebase
- marketing:
/Users/abdout/marketing
If argument is empty — Full Audit
- Scan — Read
package.json from all 7 repos in parallel using Agent tool
- Lookup — Check latest versions via
npm view <pkg> version for all shared packages
- Compare — Build cross-repo version matrix
- Classify gaps:
- Critical: Major version behind (e.g., Next 15 vs 16, Zod 3 vs 4)
- Inconsistent: Same package at different versions across repos
- Risky:
latest tags, stale betas, misplaced deps, duplicates
- Outdated: Minor/patch versions behind
- Report — Structured table with priority actions
If argument is "audit" — Quick Check
- Read all
package.json files in parallel
- Compare shared packages across repos (no npm lookups)
- Report inconsistencies and risks only
If argument starts with "update" — Update Mode
Single repo (e.g., update hogwarts):
cd /Users/abdout/<repo>
pnpm outdated — see what's behind
pnpm update — apply safe updates (minor/patch)
pnpm build — verify nothing broke
- Report what changed
Single package (e.g., update lucide-react):
- Find all repos using that package
npm view <package> version — get latest
- For each repo: update package.json, run
pnpm install
- For each repo:
pnpm build — verify
- Report results per repo
If argument is "sync" — Full Alignment
- Build target version map for all shared packages
- Update each repo to target versions
- Build-verify each repo
- Report successes and failures
If argument starts with "align" — Single Package Alignment
- Find highest version of that package across all repos
- Update all repos to that version
- Build-verify each repo
Shared Packages (MUST be aligned)
Exact alignment required:
- next, react, react-dom, typescript, tailwindcss
- @prisma/client, prisma, zod
- next-auth, @auth/prisma-adapter
Minor alignment required (same major.minor):
- lucide-react, class-variance-authority, clsx, tailwind-merge
- framer-motion, sonner, cmdk, vaul, embla-carousel-react
- date-fns, bcryptjs, uuid, react-hook-form, @hookform/resolvers
- resend, geist, next-themes, react-day-picker
- vitest, @playwright/test, @testing-library/react
Safety Rules
- Always build after updating —
pnpm build must pass
- Never force major upgrades — Propose a plan, get approval
- Never update one repo and leave others behind on shared packages
- Never use
latest tag in package.json
- Pin framework packages — next, react, react-dom should use exact versions (no ^)
- Run
prisma generate after any Prisma update
- Check peer dependencies before updating Radix/shadcn packages
Output Format
## Package Health — YYYY-MM-DD
### Critical (Action Required)
| Package | Repo | Current | Latest | Migration |
|---------|------|---------|--------|-----------|
### Inconsistencies
| Package | Versions Found | Target |
|---------|---------------|--------|
### Risks
| Issue | Repo | Fix |
|-------|------|-----|
### Available Updates
| Package | From → To | Repos | Safe? |
|---------|----------|-------|-------|
### Recommended Actions
1. ...