# Dependency management

> Dependency management is an open-source agent skill for developer tools. Adds, upgrades and removes Expo app npm packages under a written, verified policy. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/zakariaf/ReactNative-Skills/tree/main/skills/dependency-management
- **Repository:** https://github.com/zakariaf/reactnative-skills
- **GitHub stars:** 16
- **License:** MIT
- **Skill name:** dependency-management
- **Collection:** https://github.com/zakariaf/ReactNative-Skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill keeps the npm packages of an Expo app on a recorded set of versions, specifiers and places. It seeds a dependency policy file, plans each add, upgrade or removal, and checks the repository against that policy. The plan step runs a bundled Node script that reports banned packages, held-back majors, release age, deprecation, licence and install scripts before anything is installed.

The workflow asks the agent to install Expo-managed packages with a pinned specifier, pin other packages exactly, and keep one copy of shared companions. It requires install scripts to be read and approved by pinned key before they run, enforces a minimum release age through .npmrc, and ends with checks such as expo install --check, expo-doctor and a policy checker. Native changes also call for development and preview builds on iOS and Android.

The skill expects a Node-based Expo project with a package-lock.json, and it uses the npm and Expo CLIs along with the included TypeScript and JavaScript gate scripts. It defers Expo SDK major upgrades to a separate skill.

## When your agent uses it

> Adds, upgrades and removes npm packages in Expo apps under a written policy - expo install, exact pins, 7-day release age, script review, licences. Use when adding or bumping a package or on ETARGET. Not for SDK majors (expo-sdk-upgrade).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript and TypeScript scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/dependency-management)
- [Network calls found in its scripts](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/dependency-management)
- [License: MIT](https://github.com/zakariaf/ReactNative-Skills/tree/HEAD/skills/dependency-management)

## Features

- **Versioned policy file:** Keeps the approved versions, specifiers, placement and reasons in one contract file that changes with the lockfile.
- **Pre-install plan script:** Prints a plan for one package covering age, deprecation, licence, scripts and companion packages before installing.
- **Install script review:** Requires each install script to be read and approved by its pinned version before it runs.
- **Release age enforcement:** Applies a minimum release age through npm configuration and dated exceptions that expire.
- **Native change verification:** Covers config plugins, Android permissions, Podfile and Gradle dependencies, and builds on both platforms.
- **Policy gate checks:** Runs checker scripts for npm config, banned packages, licences and unused dependencies.

## Good for

- Add a new npm package to an Expo app with the correct pinned version
- Upgrade a dependency while keeping the Expo-approved version
- Remove an unused package and clean up the lockfile
- Review and approve an install script before a package is installed
- Fix a failing dependency gate in an Expo repository

## Install

### Claude Code

This skill ships in the `react-native` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add zakariaf/ReactNative-Skills
/plugin install react-native@react-native-skills
```

Or copy only this skill to `~/.claude/skills/dependency-management`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dependency-management &&
cp -R "$tmp/skills/dependency-management" ~/.claude/skills/dependency-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/dependency-management` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/dependency-management` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dependency-management &&
cp -R "$tmp/skills/dependency-management" ~/.agents/skills/dependency-management &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/dependency-management` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/dependency-management` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dependency-management &&
cp -R "$tmp/skills/dependency-management" ~/.cursor/skills/dependency-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dependency-management` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/zakariaf/ReactNative-Skills.git --path skills/dependency-management
```

Or copy the folder to `~/.gemini/skills/dependency-management` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/dependency-management`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dependency-management &&
cp -R "$tmp/skills/dependency-management" ~/.copilot/skills/dependency-management &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/dependency-management` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zakariaf/ReactNative-Skills.git
```

Then copy `ReactNative-Skills/skills/dependency-management` into your agent's skills folder as `dependency-management`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Dependency management apply?

When adding or bumping a package or when npm reports an ETARGET error. It does not cover Expo SDK major upgrades, which belong to the expo-sdk-upgrade skill.

### What does Dependency management need in the project?

An Expo app with a package-lock.json. If the contracts/dependency-policy.json file is missing, the skill copies a template and asks the agent to remove rows the app will not use.

### Does Dependency management install packages automatically?

It plans each change and asks the developer before packages outside the policy, dated exceptions, licence exceptions or deprecation holds are used.

### Which languages do its scripts use?

The bundled gate scripts are written in JavaScript and TypeScript.

### How do I install Dependency management in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dependency-management to use it in all your projects, or to .claude/skills/dependency-management in one project. Or install the react-native plugin, which includes it: /plugin marketplace add zakariaf/ReactNative-Skills, then /plugin install react-native@react-native-skills.

### Does Dependency management run scripts?

Yes. It runs JavaScript and TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Dependency management?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Dependency management?

The closest alternatives to Dependency management are Expo SDK upgrade, Expo prebuild and config plugins, Expo upgrade, Expo upgrade and Dependency coordinator.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Expo SDK upgrade](https://ai-powered.com/skills/expo-sdk-upgrade): Expo SDK upgrade is an open-source agent skill for developer tools.
- [Expo prebuild and config plugins](https://ai-powered.com/skills/expo-prebuild-and-config-plugins): Expo prebuild and config plugins is an open-source agent skill for developer tools.
- [Expo upgrade](https://ai-powered.com/skills/expo-upgrade-scaledockhq): Expo upgrade is an open-source agent skill for developer tools.
- [Expo upgrade](https://ai-powered.com/skills/expo-upgrade): Expo upgrade is an open-source agent skill for developer tools.
- [Dependency coordinator](https://ai-powered.com/skills/dependency-coordinator): Dependency coordinator is an open-source agent skill for developer tools.
- [Architecture and boundaries](https://ai-powered.com/skills/architecture-and-boundaries): Architecture and boundaries is an open-source agent skill for developer tools.
- [Ci pipeline and gates](https://ai-powered.com/skills/ci-pipeline-and-gates): Ci pipeline and gates is an open-source agent skill for developer tools.
- [Upgrading react native](https://ai-powered.com/skills/upgrading-react-native): Upgrading react native is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/dependency-management
