Package scripts

From Esposter/Esposter · View interactive version

Package scripts is an AI agent skill from the GitHub repository Esposter/Esposter. Apply when running or recommending any pnpm script. Esposter's pnpm scripts — which script runs each check, build, bench and the release, and from where, and how a pnpm invocation fails without saying so — plus the ai:* catalogue an agent runs.

How to use this skill

Skill file

Package Scripts

apps/web scripts run from apps/web/; root scripts run from the repo root. Always pnpm — never npm or npx.

Settled — do not re-propose

`apps/web`

apps/web's pnpm typecheck is the only typecheck, and root vp run lint the only lint — why a root check aggregates its leaves and what the binaries under them miss is references/app-scripts.md.

Root Scripts — `references/root-scripts.md`

pnpm i after a manifest change, pnpm test with the paths a change touched, never the whole suite locally (the ban is the testing skill's, references/running-the-suite.md), vp run build:packages for the libraries as a set, pnpm release for a manual release (the nightly runs its halves, release:gate and release:version), and vp run lint:unused for knip; the ai:<domain>:<verb> scripts no human types are references/ai-scripts.md.

A `.ts` script runs under `node` — `references/typescript-scripts.md`

Node strips types natively, every source file is erasable and every package reaches its source through its manifest's subpath imports, so no script needs another loader.

`"scriptsComments"` — `references/scripts-comments.md`

A script that records something to undo later carries one @TODO: string in a sibling top-level "scriptsComments" object — never a "// …" key inside scripts, which pnpm lists as runnable (scripts/src/workspace/packages/packageScripts.test.ts).

Check Suite (after edits)

Once, after all the edits going out together: the tests of what the change touched, as package-relative paths — never the whole suite. Typecheck and lint are CI's (references/check-suite.md, the running-checks skill).

Key Rules

Reference pages

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.