In the last video, you watched the reference version of the escape room project grow a walking skeleton. It loaded a room file, printed a verdict, and included one passing test. The skeleton also had run, test, and lint commands. Everything was committed before any feature. Along the way, the agent installed ESLint, and 77 other packages came with it.
In this lesson, you’ll ask your own agent for that skeleton. Before it installs anything, you’ll learn to read what an install changes and to check each new package against npm’s registry. Then you’ll run the skeleton, commit it, and replace your instruction file’s planned commands with ones you’ve checked. Start with the file where every install leaves its mark.
Read What an Install Changes
When an agent adds a package, the change lands in files you didn’t write, and reading them tells you what your project now depends on. The first is package.json, the project’s manifest, which lists its name, its scripts, and the packages it needs.
Here’s the reference skeleton’s whole package.json, from the course download. The agent created it, so every line is new:
package.json
{
"name": "escape-room-builder",
"version": "0.1.0",
"private": true,
"type": "module",
"engines": {
"node": "26.x"
},
"scripts": {
"start": "node check-room.js",
"test": "node --test",
"lint": "eslint ."
},
"devDependencies": {
"eslint": "^10.16.0"
}
}
The scripts block holds the three commands from the video, and the last block is the install’s mark. A manifest can have two lists of packages. Dependencies are packages the program needs when it runs. devDependencies are tools for working on the project, such as a linter or a test runner, that the program itself never imports.
ESLint belongs in the second list. It flags suspect lines in your code, but check-room.js never imports it, and a room designer running the checker doesn’t need it. The reference has no dependencies list, since its code uses only Node.js’s built-in modules. The split matters when someone installs the project only to run it, because npm install --omit=dev then skips the devDependencies.
The ^10.16.0 is a version range. It means “10.16.0 or any later 10.x release,” so two installs a month apart could get different versions. That’s what the second file is for.
The install also created package-lock.json, the lockfile. It records the exact version of every package installed, where it was downloaded from, and a hash that lets npm verify the download. Here’s ESLint’s entry in the reference lockfile, shortened:
"node_modules/eslint": {
"version": "10.16.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-10.16.0.tgz",
"integrity": "sha512-Xu3PRLG/wCaZWZ20gkExUcNqL2...",
"dev": true,
...
}
The lockfile lists 78 packages: ESLint and the 77 it depends on, directly or through other packages, each marked "dev": true. You commit the lockfile, and npm ci installs exactly those versions on any machine. A later npm install or npm update can still change it. You don’t edit it by hand or read its 982 lines.
What you read is the manifest, since each name in it is a choice someone made. Checking ESLint tells you that you picked a trusted project. Whether each of the 77 packages it brought is safe is a security topic for later in the path.
Check Each Package Before You Approve It
An install that succeeds only proves that a package with that name exists in the registry. It doesn’t prove the package is the one you meant, that it’s current, or that the project needs it. The agent’s model predicts names, versions, and settings from training data that stops at a cutoff, so check each new name in the manifest before you commit it.
Ask four questions of each package, in this order:
- Is it needed? Could the project do without it, or would a few lines of code do the same job?
- Is it the package you meant? Check who publishes it and where its source code lives, and compare that with the docs you’d trust for the tool.
- Is it widely used? Weekly downloads in the millions mean many projects depend on it. A few hundred mean you should look closer.
- Is it current? Compare the version in the manifest with the latest release, and check the settings the agent wrote against the current docs.
ESLint passes the first question, because Node.js has no built-in linter and a linter isn’t a few lines of code. For the other three, take the facts from npm’s registry. The npm view command asks the registry for a package’s details: