Skip to content
Back to skills

Lint Build Test

ASecurity

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

  • 9 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
testinggotestinggit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add MetaMask/ocap-kernel --skill lint-build-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lint Build Test?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lint Build Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/metamask-lint-build-test/badge)](https://www.skillsdirectory.com/skills/metamask-lint-build-test)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lint-build-test
description: How to check code by linting, building, and testing.
---

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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…