Claude-skill-registry lint-build-test
How to check code by linting, building, and testing.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/lint-build-test" ~/.claude/skills/majiayu000-claude-skill-registry-lint-build-test && rm -rf "$T"
manifest:
skills/data/lint-build-test/SKILL.mdsource content
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
(oryarn lint:misc --write
for a specific package).yarn workspace <package-name> lint:misc --write - 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):
yarn workspace <package-name> lint:fixyarn workspace <package-name> buildyarn workspace <package-name> test:dev:quiet
For the entire monorepo
If no package is specified:
yarn lint:fixyarn buildyarn test:dev:quiet
Report any errors encountered during these steps.