P2

Product at stage 2, Build. One of 8 moves on this square. See the square

Moves Stage 2: Build

Keep dependencies few and pinned

Use few third-party packages and pin their versions, so updates happen on your schedule and each addition is a deliberate choice.

Effort
Time
2 to 8 hours
Cost
Free
Result in
Months
Needs timeNeeds skillEases time

What AI changes

Assistants readily add packages to solve small problems, so a written rule and a review step are needed to counter that habit. They can also check whether a package is maintained and suggest a standard-library alternative where one exists.

Where it helps less

Assistants may suggest packages that are abandoned, renamed or do not exist at all, which invites supply-chain risk. They do not know your appetite for upgrades, so the pinning policy has to come from you.

Risks

Pinning can leave you on versions with known security flaws if you never update. Each dependency also carries a licence you must check.

Steps

  1. Write a rule that every new package needs a clear reason and a named owner.
  2. Prefer the platform or standard library where it does the job.
  3. Pin exact versions in the lock file and commit it to the repository.
  4. Ask the assistant to confirm that a suggested package exists and is maintained.
  5. Schedule a monthly update window and read the changelog before upgrading.
  6. Remove any package that no longer earns its place.

Tools people use for this

Seen in these cases

  • Eleventy, Solo, since 2018, community
  • Hugo, Solo, since 2013, community

Next moves to read