CtrlK
BlogDocsLog inGet started
Tessl Logo

lint-build-test

How to check code by linting, building, and testing.

73

1.60x
Quality

60%

Does it follow best practices?

Impact

93%

1.60x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./.claude/skills/lint-build-test/SKILL.md
SKILL.md
Quality
Evals
Security

When asked to check, lint, build, or test code, follow these steps:

1. Analyze changed files

First, check which files have changed using git status or git diff --name-only.

Categorize the changes:

  • Source files: .ts, .js, .mts, .mjs, .cjs, .cts, .tsx, .jsx
  • Meta files: .md, .yml, .yaml, .json, .html

2. Determine what to run

Based on the changed files:

  • No files changed: Nothing to do.
  • Only meta files changed: Run only yarn lint:misc --write (or yarn workspace <package-name> lint:misc --write for a specific package).
  • Source files changed: Run the full check (see below).

3. Run the full check (if needed)

For a specific package

If a package name is specified (e.g. @metamask/ocap-kernel):

  1. yarn workspace <package-name> lint:fix
  2. yarn workspace <package-name> build
  3. yarn workspace <package-name> test:dev:quiet

For the entire monorepo

If no package is specified:

  1. yarn lint:fix
  2. yarn build
  3. yarn test:dev:quiet

Report any errors encountered during these steps.

Repository
MetaMask/ocap-kernel
Last updated
Created

Is this your skill?

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.