← All skills
author-vitest-tests
80 / 100 · Low risk
Fine to try. Some of what it can do is expected: a coding skill usually runs build and test commands.
By posit-dev/positron (GitHub) · coding · 4,341 stars · scanned at commit 5d355d4
Use when writing or adding Vitest tests for Positron src/vs/ or extensions/ code, checking a branch/PR for test-coverage gaps, or testing React components with RTL.
Works with any agent that supports SKILL.md skills.
What this skill can do
Downloads and installs other software
The author does not mention this.
Found in 26 places.
Show 17 more
- .claude/skills/author-vitest-tests/SKILL.md, line 155
5. **Check coverage** for React component tests: `npx vitest run --coverage --coverage.include='**/sourceFile.tsx' <path-to-test-file>` - .claude/skills/author-vitest-tests/SKILL.md, line 157
6. **For React tests**, run `npx eslint <file>` before considering it done -- `eslint-plugin-testing-library` enforces most of the RTL conventions. - .claude/skills/author-vitest-tests/SKILL.md, line 188
2. Re-run the affected test: `npx vitest run <path-to-test-file>` - .claude/skills/author-vitest-tests/SKILL.md, line 190
After all fixes are applied, run the full suite exactly once: `npm run test:positron` (equivalent to `npx vitest run` -- pick one, don't run both). This is the - .claude/rules/vitest-rtl.md, line 38
3. Run: `npx vitest run src/vs/path/to/yourTest.vitest.tsx` - .claude/rules/vitest-rtl.md, line 49
The matchers register at runtime via `src/vs/test/vitest/setup.ts` (loaded by Vitest's `setupFiles`), so `npx vitest run` works without any per-file setup. For - .claude/rules/vitest-rtl.md, line 64
RTL rules are enforced by `eslint-plugin-testing-library` (query/action patterns) and `eslint-plugin-jest-dom` (matcher preferences — AST-level detection of `.c - .claude/rules/vitest-tests.md, line 15
Vitest tests for Positron code (`*.vitest.ts` / `*.vitest.tsx`) run directly on your source files -- no build daemons, no compilation step, no waiting. Run `npx - .claude/rules/vitest-tests.md, line 26
4. Run: `npx vitest run src/vs/path/to/yourTest.vitest.ts` - .claude/rules/vitest-tests.md, line 81
npx tsc -p extensions/<name> --listFilesOnly | grep vitest # expect no output - .claude/rules/vitest-tests.md, line 159
**RTL-specific rules** are enforced by `eslint-plugin-testing-library` (see `eslint.config.js` for the list). Run `npx eslint <file>` to see violations; [`vites - .claude/rules/vitest-tests.md, line 163
- `npx vitest run` -- run all - .claude/rules/vitest-tests.md, line 164
- `npx vitest run <file>` -- run one file - .claude/rules/vitest-tests.md, line 165
- `npx vitest --watch <file>` -- watch mode (re-runs on save; press `q` to quit, `h` for keyboard help) - .claude/rules/vitest-tests.md, line 166
- `npx vitest run --coverage --coverage.include='**/sourceFile.tsx' <test-file>` -- scoped coverage - .claude/rules/vitest-tests.md, line 167
- `npx vitest run --update <file>` -- accept new inline snapshots - CLAUDE.md, line 7
**NEVER run direct TypeScript compilation on the main project** (`npx tsc`, `tsc --noEmit`, etc. against `src/tsconfig.json`). This project is too large and it
and 6 more places
Runs commands on your computer
The author does not mention this. Expected for a coding skill.
Found in 1 place.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'author-vitest-tests' ] || [ -L ~/.agents/skills/'author-vitest-tests' ]; then echo 'A skill folder named author-vitest-tests already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/posit-dev/positron' "$d" && git -C "$d" checkout --quiet '5d355d4cbe7e46087286c0d17f277c0d82fd2593' -- '.claude/skills/author-vitest-tests' && mkdir -p ~/.agents/skills && cp -R "$d"/'.claude/skills/author-vitest-tests' ~/.agents/skills/'author-vitest-tests' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'author-vitest-tests' ~/.claude/skills/'author-vitest-tests' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for posit-dev/positron shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/posit-dev/positron/)
Score history
| Date | Version | Score |
|---|
| 2026-11-07 | 5d355d4 | 80 |