testing--test-writing_skill

This skill helps you write tests by applying the Agent OS standard for test-writing across unit and integration tests.
  • TypeScript

0

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill tlabs-xyz/tbtc-v2-performance --skill testing--test-writing

  • SKILL.md382 B

Overview

This skill applies the Agent OS standard for writing tests and test content. It ensures tests are consistent, maintainable, and aligned with the repository's expectations for test structure and quality. Use it to enforce the project's conventions for test naming, organization, and assertions.

How this skill works

The skill inspects test files and test-writing patterns to verify they conform to the Agent OS test-writing standard. It checks naming conventions, arrangement of arrange/act/assert steps, clarity of test descriptions, and use of fixtures or mocks. It reports issues and suggests concrete fixes that bring tests into compliance.

When to use it

  • When adding new unit or integration tests to the codebase.
  • When reviewing pull requests that include test changes.
  • When refactoring tests to improve clarity or reduce flakiness.
  • When onboarding contributors to ensure their tests match project conventions.
  • When auditing test suites for consistency and maintainability.

Best practices

  • Write descriptive test names that state expected behavior, not implementation details.
  • Structure each test with clear arrange, act, assert sections and keep each test focused on one behavior.
  • Prefer deterministic assertions and avoid brittle timing-based checks; use mocks/stubs where appropriate.
  • Reuse setup code via fixtures or helper functions to minimize duplication while keeping tests independent.
  • Keep test files small and organized by feature or module to simplify navigation and review.

Example use cases

  • Validate that new Jest or Vitest tests follow the project's naming and structure rules before merging.
  • Suggest changes to a flaky integration test, replacing sleeps with explicit event waits or mocks.
  • Refactor a suite of end-to-end tests to use shared fixtures and clearer assertions.
  • Check a contributor's test PR and auto-generate actionable feedback on missing asserts or unclear descriptions.
  • Audit tests to flag anti-patterns like excessive external I/O or hidden dependencies between tests.

FAQ

It suggests concrete fixes and can generate example replacements, but you should review and approve any changes before applying them.

Which testing frameworks are supported?

The skill focuses on common JS/TS frameworks used in the project (unit and integration patterns); adaptions are possible for Jest, Vitest, and similar tools.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational