/agent-skills:scoped-checksfrom agent-skills
Run tests, lint, format and typecheck on the files a change touches instead of the whole project. Lint and format take the changed file paths, tests run the tests related to them, typecheck and build run on the packages that hold them. A full run is kept for config changes, the final gate on a repo with no CI, or when the user asks. Includes `checks.py --changed`, which builds the scoped commands for npm, pnpm, yarn, bun, Python and Go projects, and an optional hook that blocks full runs. Use this skill whenever about to run tests, a linter, a formatter, a type checker or the project's checks after editing code, verifying a fix or finishing a change, even if the user does not say "scoped".
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A full test suite, typecheck or lint run after a small edit spends minutes and reads files the change never touched. Check what the change touches. Run the full set only when a reason below applies.
python3 <skill>/scripts/checks.py <dir> # list the detected checks
python3 <skill>/scripts/checks.py <dir> --changed <base> # show the scoped commands
python3 <skill>/scripts/checks.py <dir> --run --changed <base> # run them
python3 <skill>/scripts/checks.py <dir> --run --changed --only test # one kind, against the default branch
python3 <skill>/scripts/checks.py <dir> --run [--install] # the full set
--changed reads the files changed since the merge base with <base>, plus uncommitted and untracked files. Without a value it uses the default branch.
After each edit, check only that edit:
pnpm exec oxlint --type-aware src/a.ts or pnpm exec oxfmt --check src/a.ts.pnpm exec vitest run src/a.test.ts. When you do not know which tests cover a file, run vitest related --run src/a.ts or jest --findRelatedTests src/a.ts.Run checks.py <dir> --run --changed <base> once. It scopes each check:
| Check | Scope |
|---|---|
| lint, format | the changed files with an extension the tool reads |
| test | vitest related, jest --findRelatedTests, or the test files named after a changed file (pytest, node --test) |
| typecheck, build | the packages that hold a changed file, and their dependents in a pnpm workspace |
| Go | the packages that hold a changed .go file |
The script falls back to a full run of a check when:
*.config.*, .*rc, pyproject.toml, Cargo.toml, go.mod). A config at the root runs everything. A config in a package runs that package.&&.A check with no related files is skipped.
Say in the report or PR which checks ran scoped and which ran in full.
node --test find tests by file name only. A test with another name that imports the changed file does not run.When one of these matters for the change, run that check in full.
scripts/hook.py is a PreToolUse hook on Bash that stops a full run of tests, lint, format or a workspace-wide typecheck. A run counts as full when it names no file and no single package: pnpm test, vitest run, eslint ., pytest, go test ./..., or checks.py --run without --changed. It is off by default. Turn it on with SCOPED_CHECKS_HOOK=block (or warn). To run a full check on purpose, prefix the command with SCOPED_CHECKS=full.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lxsmnsyc/agent-skills --plugin agent-skills17 skills in this plugin
/changesetsWrite the changeset for a change in a repo that releases with changesets (a `.changeset/` folder exists). The bump level follows one question, whether the thing existed before: patch for changed behavior, minor for something new, major only with the maintainer's approval. Use this skill whenever finishing a change, opening a pull request or reviewing one in such a repo, even when nobody asks for a changeset, and when the user asks about bump levels or changelog entries./docs-siteMethod for planning, writing and maintaining a documentation site for a library, CLI, framework, API or app. Splits the site by what the reader needs (learn, do a task, understand, look up) into getting started, guides, concepts and reference, plus examples, troubleshooting, migration and a glossary. Gives each page type a fixed template, including the feature page (what it is, why, how it works, usage, options, limits, related) and the API reference entry. Covers navigation, code examples that run, keeping docs in step with the code, versioned docs and pages agents can read. Includes page templates, a checker script for page structure, links, orphan pages and code fences, and a review checklist. Use this skill whenever writing, restructuring, auditing or reviewing documentation, a docs site, a docs page, a README that has grown into docs, API reference, a getting started page, a migration guide or the docs part of the website/ folder, even if the user does not say "docs site". Load plain-writing with it.Other plugins' skills for the same job