testing

A set of general guidelines for designing and running automated software tests, from small unit tests to integration and browser end-to-end checks.

In plain words
What is it for?
Use it for test planning, regression protection, integration checks, external-interface contracts, user journeys, forms, authentication flows, browser interactions, and responsive behavior.
Why use it?
It helps choose the smallest test scope that gives useful confidence and focuses tests on observable behavior rather than implementation details.

Skill for Claude CodeCodex

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/soden46/engineer-flow/testing
Any agent
npx skills add soden46/engineer-flow --skill testing
Clone the repo
git clone --depth 1 https://github.com/soden46/engineer-flow

Made for: Claude Code, Codex.

Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 867 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 $0.00028 $0.00867
Opus 5 $0.00014 $0.00434
Sonnet 5 $0.00006 $0.00173
Haiku 4.5 $0.00003 $0.00087

Measured 2d ago against content hash 969f62190e7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

skills/engineer-flow/core/testing/SKILL.md · 164 lines

How it starts

The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing

Use this skill when work requires automated verification, regression protection, test design, or test maintenance.

This skill is language and framework agnostic.

Principles

Test observable behavior rather than internal implementation details whenever practical.

Prefer the smallest test scope that gives useful confidence.

Use:

  • unit tests for isolated logic
  • integration tests for boundaries between components
  • contract tests for external interfaces
  • end-to-end tests only where broader system behavior must be proven

Do not require every behavior to be tested at every layer.

Browser E2E Playwright Regression

Use browser or end-to-end regression tests when important behavior can only be proven through the rendered application, real navigation, browser state, client-side interactions, or frontend/backend wiring.

Browser regression coverage may be appropriate for:

  • critical user journeys
  • form validation and submission behavior
  • authentication-dependent navigation
  • frontend/backend contract wiring
  • client-side state transitions
  • browser-only rendering failures
  • responsive behavior that has broken before
  • accessibility-critical interaction paths

Use the project's existing browser test tool when available. Playwright is a good default when the project already uses it or when the user asks for it, but do not introduce it solely because a browser was useful for manual inspection.

Prefer resilient user-facing locators, deterministic setup, web-first assertions, and scoped traces or screenshots that help diagnose failures.

Visual Responsive Checks

Visual and responsive verification can be manual, scripted, or snapshot-based depending on project risk and existing tooling.

Verify relevant viewports, states, and interactions without creating brittle snapshot tests for every cosmetic detail.

Use visual snapshots only when the project already supports them or when the changed surface justifies the maintenance cost.

When a UI is reconstructed from a reference, convert only stable accepted behavior into durable tests. Do not encode third-party branding, exact marketing text, or incidental reference-site content as regression requirements unless the user explicitly owns or requires it.

Read the full file on GitHub · 164 lines

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. 2d ago First seen · 164 lines · 28 tokens per session scan A 969f62190e7c

Subscribe to this mod's changes

testing is a skill published in the GitHub repository soden46/engineer-flow (3 stars, last pushed 5d ago), licensed MIT. It adds 28 tokens to every session and 867 once invoked, about $0.0001 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-31.

Related

Other skills, from other repositories

todos

This chat has a shared, live TODO plan — your tasks for the conversation, which the user also edits. Read this skill and reach for the todo tools whenever a request takes more than a couple of steps. It covers the plan model (group = task, items = its steps; loose items are the user's lane), how to work it: propose…

JetBrains/thinkrail · 127 tokens

writing-workflow-skills

Use when adding a new workflow skill to pi-thinkrail-workflow, changing an existing workflow skill's role, trigger, handoff, or structure, or checking a workflow skill against the workflow system's rules. Not for authoring general-purpose skills outside this package.

JetBrains/thinkrail · 60 tokens

brainstorming

Use this BEFORE any creative or feature work: building a new feature, adding functionality, changing behavior, or making a nontrivial design decision. Turns the user's request into a validated design — recorded as a spec-graph task-spec — before any implementation. Do not skip this because a change looks small.

JetBrains/thinkrail · 65 tokens

writing-specs

Use when a workflow step drafts or revises a spec artifact — a goal-and-requirements, an architecture, or a module SPEC — or when a workflow skill names it at such a step. The shared quality bar for specs — not a workflow, nothing to execute.

JetBrains/thinkrail · 59 tokens

clarify

Adaptive requirements clarification with auto-depth routing. Shallow (Q&A) for simple tasks, Deep (exploration + DRAFT + PLAN) for complex ones. Escalates automatically when ambiguity persists.

mag123c/toktrack · 43 tokens

review

Multi-agent code review for Rust CLI/TUI. UX Review inactive (terminal UI — no web frontend). Code Review only. Includes Rust/clippy-specific checklist.

mag123c/toktrack · 34 tokens