Skip to content
Back to skills

Focused Tests

ASecurity

Run only the Vitest files that cover changed behavior and leave the full suite to pull-request CI. Use when tempted to run bun test, the complete suite, or when AGENTS.md says not to run the full suite locally.

  • 30 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 4, 2026
ai-agentstypescript

Works with

  • cli

Security analysis

A100/100

Scanned October 4, 2026

npx -y skills add threadnote/threadnote --skill focused-tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Focused Tests?

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

Security grade badge for Focused Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/threadnote-focused-tests/badge)](https://www.skillsdirectory.com/skills/threadnote-focused-tests)

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: focused-tests
description: Run only the Vitest files that cover changed behavior and leave the full suite to pull-request CI. Use when tempted to run bun test, the complete suite, or when AGENTS.md says not to run the full suite locally.
---

# Focused tests, not the full suite

Do not run `bun test` / `bun run test` locally. PR CI is the authoritative full-suite run.

## What to run

- The specific `test/unit/...` or `test/integration/...` files for the behavior you changed.
- `bun run lint` and `bun run typecheck` when the change is TypeScript or script logic.
- Effect tests use `@effect/vitest`: import `it` as `effectIt` and use `effectIt.effect` for Effect examples (it already scopes the test), `effectIt.effect.prop` for Effect properties, and `Effect.scoped` inside the returned Effect only when an intentional nested sub-scope is needed. Convert a touched `runEffect(Effect...)` async test unless it is a Promise/OS/CLI boundary.

## After the PR opens

Investigate and fix CI failures on that PR. Do not compensate by running the complete local suite unless CI is unreachable and the user asked.
---

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.