/core-skills:lockfile-auditfrom core-skills
Scans the repository for package.json files that lack a committed lockfile, then cross-references against deployment configs (wrangler.toml, Cloudflare Pages, Dockerfile, CI workflow install steps) to identify which missing lockfiles will break a production build. Reports severity: BLOCKING (deploy target uses `npm ci` / `clean-install`) vs WARNING (local-only package). Use when: (1) a CI/CD build fails with "npm ci requires package-lock.json" or similar; (2) before deploying a new subpackage or Worker; (3) after adding a new package.json to check it has a lockfile committed; (4) when suspecting a lockfile is present locally but excluded by .gitignore. Not useful for lockfile version conflicts — use `npm audit` for those instead.
Ships in core-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scans the repository for package.json files that lack a committed lockfile, then
cross-references against deployment configs to classify severity: BLOCKING (a
deploy pipeline runs npm ci and will hard-fail without the lockfile) vs
WARNING (package exists but has no known deploy reference). For BLOCKING items,
offers to generate the missing lockfile without writing node_modules.
npm ci can only install packages when your package.json and package-lock.json are in sync or Missing: package-lock.jsonpackage.json/lockfile-audit [scope]Auto-invoke when user says:
If shell.exec is available:
find . -name "package.json" \
-not -path "*/node_modules/*" \
-not -path "*/.git/*" \
| sort
If fs.read is available: walk the directory tree from scope, listing
package.json files, skipping node_modules/.
If neither: ask the user to paste the output of the find command above.
For each package.json found, check whether any of these exist in the same directory:
package-lock.json (npm)yarn.lock (Yarn)pnpm-lock.yaml (pnpm)bun.lockb (Bun)Record packages with no lockfile for the next step.
For each package missing a lockfile, search for deploy references:
Wrangler / Cloudflare Workers:
grep -r "package.json\|npm\|yarn\|pnpm" wrangler.toml */wrangler.toml 2>/dev/null
Look for [build] sections with command = "npm ..." or directory references.
GitHub Actions workflows (.github/workflows/*.yml):
cd into the package directory and run npm ci, npm clean-install,
or yarn install --frozen-lockfile?Dockerfile / docker-compose:
COPY include the package directory?RUN call npm ci inside it?Cloudflare Pages config (pages.json, wrangler.toml with [pages]):
| Severity | Condition |
|---|---|
| BLOCKING | A deploy config runs npm ci, npm clean-install, or yarn install --frozen-lockfile in this package's directory. Will hard-fail without a lockfile. |
| WARNING | Package exists but no deploy config references it. May be local tooling, a script, or an orphaned directory. Won't break a deploy now, but could if added later. |
One block per package missing a lockfile:
Package: <relative/path/to/package.json>
Missing: package-lock.json (or yarn.lock / pnpm-lock.yaml)
Severity: BLOCKING | WARNING
Deploy ref: <wrangler.toml line N> | <.github/workflows/deploy.yml step "Install">
Why: <one sentence — what fails and when>
Fix: cd <dir> && npm install --package-lock-only
git add package-lock.json && git commit -m "chore: add lockfile for <dir>"
For WARNING items with no deploy reference:
Fix: Review whether this package needs a lockfile. If it will ever be
deployed, generate one now: cd <dir> && npm install --package-lock-only
| Package | Lockfile | Severity | Deploy ref |
|----------------------------|----------|----------|--------------------|
| worker/package.json | MISSING | BLOCKING | wrangler.toml:12 |
| worker/executor/package.json | MISSING | BLOCKING | workflows/deploy.yml:34 |
| scripts/local/package.json | MISSING | WARNING | none |
For each BLOCKING item, offer:
Run the following to generate the lockfile without installing node_modules:
cd <dir> && npm install --package-lock-only
git add package-lock.json
git commit -m "chore: add missing lockfile for <dir>"
--package-lock-only writes only the lockfile; it does not write node_modules/ and
requires no network access for packages already in the registry.
package.json uses workspaces, sub-packages
may inherit the root lockfile. Check if the deploy step uses --workspace or
references the sub-package path separately.npm install vs npm ci — only npm ci hard-requires a lockfile. A deploy
using plain npm install will auto-generate one, but at a non-deterministic
version. Flag these as WARNING with a note.npm ci by default for Worker builds.
Wrangler 2 may use npm install. Check wrangler.toml's [build] command..gitignore — check that package-lock.json is not listed in .gitignore for
the package directory. If it is, the lockfile exists locally but is not committed.Input: Audit lockfiles across the repo
Output:
FINDINGS
Package: worker/package.json
Missing: package-lock.json
Severity: BLOCKING
Deploy ref: worker/wrangler.toml — [build] command = "npm ci && npm run build"
Why: Cloudflare Worker deploy runs `npm ci` which hard-requires a committed
lockfile; without it the deploy fails immediately.
Fix: cd worker && npm install --package-lock-only
git add package-lock.json && git commit -m "chore: add lockfile for worker"
Package: worker/executor/package.json
Missing: package-lock.json
Severity: BLOCKING
Deploy ref: worker/executor/wrangler.toml — [build] command = "npm ci"
Why: Same as above — executor Worker deploy will fail without a lockfile.
Fix: cd worker/executor && npm install --package-lock-only
git add package-lock.json && git commit -m "chore: add lockfile for worker/executor"
SUMMARY
| Package | Lockfile | Severity | Deploy ref |
|-------------------------------|----------|----------|-------------------------|
| worker/package.json | MISSING | BLOCKING | worker/wrangler.toml:3 |
| worker/executor/package.json | MISSING | BLOCKING | executor/wrangler.toml:3|
Output:
SUMMARY
Packages scanned: 4 | Missing lockfiles: 0
All packages have committed lockfiles.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub internet-dot/ai-config-os --plugin core-skills35 skills in this plugin
/autoresearchAutonomously optimise any skill by running it repeatedly, scoring outputs against
binary evals, mutating the prompt, and keeping improvements. Based on Karpathy's
autoresearch methodology.
Use when: "optimise this skill", "improve this skill", "run autoresearch on",
"make this skill better", "self-improve skill", "benchmark skill", "eval my skill",
"run evals on". Outputs: an improved SKILL.md copy, a results log, and a changelog
of every mutation tried.
/changelogWhen to useGenerate structured changelog entries from git history, grouping commits by conventional prefix and flagging breaking changes./Other plugins' skills for the same job