All skills
simota avatar

/radar

@e307415
by shingo imotasimota/agent-skills85 stars
15

Adding edge-case tests, repairing flaky tests, and improving coverage. Use when test gaps need filling or regressions need guarding. Supports JS/TS, Python, Go, Rust, and Java.

Use this Skill: https://skilld.dev/gh/simota/agent-skills/radar

This session only. Nothing lands on disk.

referencetesting-patterns.md

≈458 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TS/JS Testing Delta

Purpose: Radar defaults that remain after removing model-known AAA, naming, and boilerplate examples.

Repository-First Rules

  • Use the repository's runner, helpers, factories, and assertion style before introducing a new test stack.
  • Prefer semantic React Testing Library queries: role or label first; testId only when no user-facing selector exists.
  • Use MSW at HTTP boundaries when the repository already supports it; include error, timeout, and malformed-response paths.
  • Prefer small factories with explicit overrides over large shared fixtures.
  • Use Testcontainers only when engine behavior, migrations, transactions, or queries are part of the claim.

Boundary Decision

Dependency Default Escalate when
Pure/local code no mock nondeterministic collaborator exists
HTTP MSW or existing boundary stub schema drift requires a contract test
Database repository fake/stub real SQL behavior is under test
Time/randomness fake clock / fixed seed never use wall-clock sleeps
Browser journey hand off to Voyager page navigation or browser state matters

Version-Sensitive Notes

  • Vitest 4.x requires Vite 6+ and Node 20+; confirm the installed version before using coverage.changed or tags.
  • Jest 30 changed supported Node/TypeScript/jsdom baselines; use the local lockfile and official docs rather than this file for exact compatibility.

Verification

  • One observable behavior per test unless assertions describe one atomic outcome.
  • No real network, clock, random seed, or shared mutable fixture in deterministic unit tests.
  • Coverage commands come from package scripts or repository config, not invented defaults.
  • Route production seams exposed by test design to Zen; route CI runner/caching constraints to Gear.

Source: SKILL.md on GitHub

1 warning13d5 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The 'radar' skill is a comprehensive testing assistant designed to improve code reliability through various testing methodologies such as unit, integration, and mutation testing. It follows industry best practices and uses standard tooling. A low-severity finding is noted regarding the inherent risk of indirect prompt injection when the agent processes project source code, which is mitigated by strong requirements for test isolation and independent verification.

  • Socket13d

    No alerts

  • Snyk13d

    Risk: LOW · No issues

  • Runlayer6mo

    4/14 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at e307415. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 days ago.

Activeupdated 2 weeks ago

README badge

README badge for simota/agent-skills/radar