.claude/skills/lint-build-test/SKILL.md
How to check code by linting, building, and testing.
npx skillsauth add metamask/ocap-kernel lint-build-testInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When asked to check, lint, build, or test code, follow these steps:
First, check which files have changed using git status or git diff --name-only.
Categorize the changes:
.ts, .js, .mts, .mjs, .cjs, .cts, .tsx, .jsx.md, .yml, .yaml, .json, .htmlBased on the changed files:
yarn lint:misc --write (or yarn workspace <package-name> lint:misc --write for a specific package).If a package name is specified (e.g. @metamask/ocap-kernel):
yarn workspace <package-name> lint:fixyarn workspace <package-name> buildyarn workspace <package-name> test:dev:quietIf no package is specified:
yarn lint:fixyarn buildyarn test:dev:quietReport any errors encountered during these steps.
tools
Use the discovery tools to find and use services through a service matcher. Do not rely on prior knowledge of services, providers, or APIs.
tools
Use the wallet tools for all balance, send, and sign operations. Supports both ETH and ERC-20 tokens. The away wallet operates autonomously after setup — the home device does not need to be online.
testing
Updates changelogs for all packages with consumer-facing changes.
tools
Pushes the current branch to the remote repository.