/vitest-cache:vitest-cachefrom vitest-cache
Configure and troubleshoot @goodfoot/vitest-cache: input contracts, reuse/invalidation and test diagnostics. Use for Vitest result caching and output policy.
Ships in vitest-cache. 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.
flock, a C11 compiler, enabled install scripts, Node 24+, manifest-compatible Vitest/Vite peers, and Yarn node-modules with root node_modules/.yarn-state.yml.workspace:* locally). Build before workspace checks; published exports are ESM. Resolve peer warnings; rebuild affected artifacts. Wrap config once, preserving projects/factories.import { defineConfig } from 'vitest/config';
import { loadCacheContract, withTestOutput } from '@goodfoot/vitest-cache/policy';
export default withTestOutput(
defineConfig({ test: { include: ['test/**/*.test.ts'] } }),
loadCacheContract(new URL('./vitest.cache.json', import.meta.url))
);
Use Git-root-relative paths in vitest.cache.json. For partial adoption declare reviewed files without fallback; allow fallback: [] after auditing all unlisted files. Use { uncached: 'reason' } for uncontrolled suites; verify full execution. Await asynchronous loaders/object configs before reading fields.
Set workdir per exec or use yarn workspace <name>. Typecheck tests/config/UI; preserve build roots. Fix types without casts; review unsafe lint fixes. Check generated ignores from package cwd; yarn exec <tool> bypasses script aliases.
Read Output policy; assert diagnostics exactly. Keep timing/CPU/RSS stress in explicit uncached smoke suites. Bound correctness subprocess sequences below outer deadlines; terminate owned groups, await direct-child close and distinguish transport failures from application exits. Verify stable selection, environment (TMPDIR included) and installation:
An all-hit run can print No test files found, exiting with code 0; require positive reuse counts. Report executed plus reused coverage.
GOODFOOT_VITEST_FORCE=1 executes and may publish; DISABLE_TEST_CACHE=true neither reuses nor publishes. GOODFOOT_TEST_VERBOSE=1 exposes logs and disables reuse/publication/native capture; only unset, empty, 0, 1 are accepted. Exclude watch, coverage, snapshot updates, inspector, browser/UI, typecheck and custom reporters from reuse expectations.
new, unrecorded, forced: absent pass, revoked record, requested execution.invocation, execution, inputs, packages, executables: compare config/CLI/environment, selection/pool/isolation/resolved worker env, graphs/declarations, installed bytes/root+member modes/edges, executable bytes.TMPDIR and new misses; preserve warm env. Alternate matched runs; compare main/worker/total CPU, timer gaps, startup, queue/service time and CPU pressure. Collect stats after phase release; backend zero bytes excludes graph/record reads. FORCE leaves digests warm.setupNeeded(project, predicate?) from @goodfoot/vitest-cache/plan; unknown plans require setup.loadTestSequence(new URL('./vitest.sequence.json', import.meta.url)) declares repository-relative paths, heaviest first; scheduling only.Preserve the shared module-cache directory keyed by installation state. Fix disagreeing install metadata; never split it by checkout or process.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub goodfoot-io/marketplace --plugin vitest-cache