tsq-testing

tsq-testing is a skill for Claude Code from sonature-lab/timsquad. It costs 85 tokens per session (630 once invoked), scanned A, original, MIT.

A guide to planning and writing software tests, including unit tests, integration tests, end-to-end tests, test coverage, and the Given-When-Then format. TDD means writing a failing test, making it pass with the smallest change, then cleaning up the code.

In plain words
What is it for?
Use it when adding or changing tests, designing a test structure, checking coverage, or deciding which kinds of tests a feature needs.
Why use it?
It gives a consistent way to check normal, boundary, and error cases while setting stated coverage targets.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sonature-lab/timsquad/tsq-testing
Any agent
npx skills add sonature-lab/timsquad --skill tsq-testing
Clone the repo
git clone --depth 1 https://github.com/sonature-lab/timsquad

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tsq-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-testing.svg)](https://agentmods.dev/skills/sonature-lab/timsquad/tsq-testing)
Your own site
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-testing"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.00630
Opus 5 $0.00043 $0.00315
Sonnet 5 $0.00017 $0.00126
Haiku 4.5 $0.00009 $0.00063

Measured 6d ago against content hash 70b98751459b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tsq-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

templates/base/skills/tsq-testing/SKILL.md · 70 lines

What it actually says

Testing

품질 보장을 위한 테스트 작성 가이드라인.

Philosophy

  • Red-Green-Refactor (TDD 사이클) 준수
  • 테스트 피라미드: Unit(다수) > Integration(중간) > E2E(소수)
  • 행동(behavior) 테스트 — 구현 디테일이 아닌 결과 검증

Contract

  • Trigger: 테스트 작성/수정 태스크, 코드 변경 후 테스트 필요 시
  • Input: 테스트 대상 코드 + 요구사항
  • Output: Given-When-Then 패턴 테스트 + 커버리지 기준 충족
  • Error: 커버리지 미달 시 추가 테스트 작성
  • Dependencies: 없음

Protocol

  1. Red: 실패하는 테스트 작성
  2. Green: 테스트를 통과하는 최소 코드 작성
  3. Refactor: 코드 정리 (테스트는 계속 통과)
  4. Coverage 확인: 기준 충족 여부 점검

Verification

Check Command Pass Criteria
테스트 실행 npm test exit code 0
라인 커버리지 coverage report >= 80%
브랜치 커버리지 coverage report >= 70%
3카테고리 수동 검증 Happy/Edge/Error 포함

Resources

Priority Type Resource Description
HIGH ref testing-patterns Given-When-Then, Mock 가이드
HIGH ref e2e-stability E2E Viewport, Wait, Retry 가이드

Quick Rules

Test Naming

  • 형식: should {expected behavior} when {condition}
  • Bad: test getUser, works correctly

Test Categories

  • Happy Path — 정상 흐름
  • Edge Cases — 경계 조건 (빈 문자열, 0, null, 최대값)
  • Error Cases — 오류 상황

Coverage Standards

Metric Min Recommended
Line 80% 90%
Branch 70% 80%
Function 80% 90%
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 70 lines · 85 tokens per session scan A 70b98751459b

Subscribe to this mod's changes

tsq-testing is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 6d ago), licensed MIT. It adds 85 tokens to every session and 630 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.