Consensys-Incorporated/ocap-kernel / .claude/skills/lint-build-test
lint-build-test
VerifiedHow to check code by linting, building, and testing.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.1 KB |
SKILL.md
View on GitHub---
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 oxfmt` (or `yarn workspace <package-name> oxfmt .` 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.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |