Validate PanCode changes: pick checks from the diff, know what each test tier proves, keep runs isolated, verify behaviour live in a candidate build and report evidence without claiming unrun coverage. Use when developing or diagnosing PanCode itself.
Ships in pancode-test. 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.
Choose checks from the diff and from the code that actually executes. The
lane brief and .pancode/rules/ set host rules (scratch root, locks, which
live model); this skill sets the method. It is usable alone; pancode-dev
covers implementation.
| Command | Runs | Needs dist/ | Proves |
|---|---|---|---|
pnpm run typecheck | src, tests, scripts | no | types |
pnpm run lint | biome, then scripts/check-hygiene.ts (formatting, export hygiene, inventories, packaging, every boundary rule) | no | static contracts |
pnpm run test:file -- <files> | the named files, from the repo root | if the file spawns the CLI | one behaviour |
pnpm run test | every file in tests/contracts/ | no | the default contracts only |
pnpm run test:gui | every top-level file in apps/pancode-gui/tests/, including the OpenAPI contract | no | GUI API and models |
pnpm run test:package | four files against the packed build | yes, current | the installed artifact |
pnpm run test:full | every file in tests/contracts/, tests/extended/ and tests/smoke/ | yes, built from HEAD | everything, slowly |
pnpm run check:gui | GUI types and lint | no | GUI static |
pnpm run ci is the whole gate CI runs: a release build, the test tiers
against it and an install of the built bundle, on this machine's Node. It
rebuilds dist/ and is not a routine check. Suites, builds and browser checks are
heavy: run one at a time and follow the brief's lock rule.
pnpm run typecheck and pnpm run lint.grep -rl "<module stem>" tests apps/pancode-gui/tests. Run them with
test:file. Most regressions live in tests/extended/, which the core
tier never runs.dist/cli/index.js sees the last build, not your edit.
Build first. No test command rebuilds a stale dist/.test:gui's openapi test green.unref, event-loop lifetime, streams, child processes or
signals. Node 22.19 is the supported floor and the gate runs both.tests/contracts/ is core,
tests/extended/ and tests/smoke/ run only in test:full.
pnpm run test:list shows what is omitted.For a bug, reproduce it first or say why you could not. Assert state a user or caller can observe: provider payload, persisted record, filesystem outcome, event order, exit code. Do not write tests that match prose.
Run tests only through the pnpm scripts; they preload
tests/harness/tmp-root.ts. A bare node --test writes the operator's real
home. Export TMPDIR to your lane's scratch directory before tests, builds
or mktemp; the harness nests its root under it. Never write system /tmp.
Under git bisect run or any git-driven runner, unset GIT_DIR,
GIT_WORK_TREE, GIT_INDEX_FILE, GIT_COMMON_DIR and GIT_PREFIX for the
test command. Afterwards confirm the shared config:
git config --get core.bare is false and user.name is the operator's.
Use references/harness.md for scratch homes, fixtures and process drivers, references/test-map.md to find test files, and references/lifecycle-validation.md for compaction, replay, memory, tools and dispatch.
Tests passing is not the behaviour working. Before READY, exercise what a user would see, in a candidate built from your workspace:
pnpm run build in the workspace.node <workspace>/dist/cli/index.js, never the installed
pancode, with a fresh home: set PANCODE_HOME,
PANCODE_CONFIG_DIR, PANCODE_DATA_DIR, PANCODE_STATE_DIR,
PANCODE_CACHE_DIR to directories under your scratch root and
PANCODE_INTEROP_HOME=none.run --json ... -- "<task>"; check the exit code and the
final frame;run --agent <id>;tests/smoke/acp-boundary.test.ts;pnpm run check:gui, then the page in a browser whose profile and
temp directory are under your scratch root;gh: the real program against a disposable
target, or say it was not exercised.List each command with its outcome and counts (pass, fail, skipped), the Node version, the commit tested, and whether the evidence is source, built process, installed package or live model. Name every check you did not run and why. Passing checks authorize no extra commit, push or release step.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/pancode-test:pancode-testfrom pancode-test
npx claudepluginhub panstudio/pancode --plugin pancode-test