How to check code by linting, building, and testing.
Install with Tessl CLI
npx tessl i github:MetaMask/ocap-kernel --skill lint-build-test72
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
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.
5e60e4a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.