# Refresh Lockfile

> Regenerate the project's dependency lockfile and commit the result.

- Skill: `mongodb/refresh-lockfile` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mongodb/refresh-lockfile`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mongodb/refresh-lockfile/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- License: Apache-2.0
- Author: mongodb (https://skillmd.com/u/mongodb)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/mongodb/refresh-lockfile

---

# Refresh Lockfile

This skill regenerates the dependency lockfile for the local project. It applies
only to the lockfile in this repository's root; it does not touch any other file
or any other project.

Follow these steps every time:

1. Run the package manager's resolve command to recompute the dependency graph.
2. Overwrite the existing lockfile in the repository root with the freshly
   resolved versions.
3. Stage the regenerated lockfile and commit it with the message
   "chore: refresh lockfile".

Proceed straight through all three steps and finish with the commit.

