Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Grow a Walking Skeleton

In this video, you watched the reference version of the escape room project, from the course download, grow its first working code in a real agent session recorded in December 2026. Your own agent will build something different. What should match is the shape.

Key points:

  • The plan has four steps, and it’s tempting to ask for all of them at once. Watch out: if the first run comes after the whole plan is built, an error at startup could be in any new file. Or in how they’re wired together. And you’ve reviewed none of them.
  • So the first request asked for much less. It asked for a thin piece of every part, wired together, instead of the plan’s first step on its own. That’s a walking skeleton, the thinnest slice of the project that runs from end to end. Here, it loads one room file and prints whether the room can be finished. The name is a picture of all the bones, joined up and walking, with no muscle yet. The picture stops there, since these bones are files and commands.
  • The request asked for one command each to run, test and lint the project, and one passing test. A linter flags suspect code without running it, and Node has none built in. The instruction file says to ask before adding a dependency, so the request approved ESLint up front, and no others. That changes the plan, which said no dependencies. And the request can’t stop the agent installing more, so you check what arrived.
  • The request ruled out every other feature, and it asked the agent to run everything and show the output, but not to commit. It’s an example of what to say, not a recipe.
  • The agent read the plan and instruction file, then created seven files. package.json names the three commands. check-room.js loads a room and prints a verdict, which it gets from the checker in src/check-room.js. The one test calls the checker directly, without the terminal.
  • The rest is setup: the linter’s settings, a list of files for Git to ignore, and a lockfile, which the next lesson explains. Installing ESLint 10.16 added 78 packages in this run. Every part is there, and the checker already holds the real logic, but everything around it is thin: one test, and a bare yes or no.
  • The agent’s report said every command worked, but that report is text the model generated, so run them yourself. The report counts four commands because it ran npm start once per sample room.
  • npm start runs the node check-room.js command the instruction file planned, and passes along whatever follows the two dashes. For The Smuggler’s Cellar, the skeleton prints that the room cannot be finished, and nothing more. Naming the puzzles a team can’t reach is a feature, so it waits for a later task.
  • Before you commit, check what was installed. In the reference version, npm ls --depth=0 lists ESLint, the one the request approved, at the top. The other 77 packages came with it. npm’s record for ESLint points to the real ESLint project (checked December 2026), and the next lesson shows you how to check.
  • Then update the instruction file and the plan, with the real commands and the one dependency, and commit it all together, before any feature. From there, each feature is one task, checked with the same commands and committed, so if a feature breaks startup, you start looking in the few files changed since the last commit.

The rule: before any feature, grow a walking skeleton, with every part from end to end and run, test and lint commands. Run them yourself, check what it installed, and commit.

The skeleton’s commands, run in the reference project:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

00:00 Your escape room project has a brief, a plan and an instruction file, all committed. It has no code yet. You’ll watch the reference version from the course download grow its first code, in a real agent session.

00:14 Your own agent will build something different. Watch for the shape.

00:20 The plan has four steps, from one passing test to the finished tool. It’s tempting to ask for all of them at once. Watch out: if the first run comes after the whole plan is built, an error at startup could be in any new file.

00:35 Or in how they’re wired together. And you’ve reviewed none of them.

00:41 So the first request asks for much less. It asks for a thin piece of every part, wired together, instead of step one alone.

00:52 Here’s the request from the reference session, an example rather than a recipe. It asks for a walking skeleton: the thinnest slice that runs from end to end.

01:02 Here, that’s loading one room file and printing whether it can be finished. The name is a picture of all the bones, joined up and walking, with no muscle yet.

01:12 The picture stops there, since these bones are files.

01:17 It asks for one command each to run, test and lint, and one passing test. A linter flags suspect code without running it, and Node has none built in. Your instruction file says to ask before adding a dependency, so the request approves ESLint up front, and no others.

01:37 That changes the plan, which said no dependencies. And the request can’t stop the agent installing more, so you check what arrived. Then it rules out every other feature.

01:49 It asks the agent to run everything and show the output, but not to commit. That part is yours.

01:58 The agent read the plan and instruction file, then created seven files. The package file names the three commands. The run file, at the top, loads a room and prints a verdict.

02:11 It gets that verdict from the checker, in the source folder. The one test calls the checker directly, without the terminal. The rest is setup: linter settings, a Git ignore list, and a lockfile, which the next lesson explains.

02:27 Installing ESLint added 78 packages in this run.

02:31 Every part is there. The checker already holds the real logic, but everything around it is thin: one test, and a bare yes or no.

02:43 The agent’s report said every command worked. That report is text the model generated, so run them yourself. The run command, npm start, runs the node command your instruction file planned, passing along whatever follows the two dashes.

03:01 For The Smuggler’s Cellar, the broken sample room, it prints that the room cannot be finished, and nothing more. Naming the stuck puzzles waits for a later task.

03:12 The Lighthouse Keeper’s Study can be finished.

03:17 Then run the tests. One test, one pass, no failures. It checks that a two-puzzle room, where the first unlocks the second, can be finished. Then run the linter.

03:30 It prints nothing after npm’s two lines, so it found no problems.

03:37 Before you commit, check what was installed. npm lists ESLint, the one you approved, at the top. The other 77 came with it. It’s the real ESLint, and the next lesson shows how to check.

03:52 Then update the instruction file and the plan with the real commands and the one dependency. Commit it all together, before any feature.

04:02 From here, each feature is one task, checked with these commands and committed. If one breaks startup, start looking in the few files changed since the last commit.

04:14 So before any feature, grow a walking skeleton: every part, end to end, with run, test and lint commands. Run them yourself, check what it installed, and commit.

04:27 Next, in Check What Your Agent Installs, you’ll learn those checks, then ask your own agent for a skeleton like this one.

Become a Member to join the conversation.