harness-testing

harness-testing is a skill for Claude Code, Codex from thaifurforo/ai-toolkit. It costs 53 tokens per session (800 once invoked), scanned A, original, MIT.

A testing workflow for generating or reviewing automated tests for a feature or task. It can use test-driven development, which means writing tests before the implementation.

In plain words
What is it for?
Use it to create unit, integration, structural, and contract tests, and to place checks at stages such as pre-commit, pre-push, and continuous integration.
Why use it?
It helps teams check expected behavior, failures, and edge cases before changes are treated as complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create unit, integration, structural, and contract tests, and to…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thaifurforo/ai-toolkit/harness-testing
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.

Any agent
npx skills add thaifurforo/ai-toolkit --skill harness-testing
Clone the repo
git clone --depth 1 https://github.com/thaifurforo/ai-toolkit

Made for: Claude Code, Codex.

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 harness-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/thaifurforo/ai-toolkit/harness-testing.svg)](https://agentmods.dev/skills/thaifurforo/ai-toolkit/harness-testing)
Your own site
<a href="https://agentmods.dev/skills/thaifurforo/ai-toolkit/harness-testing"><img src="https://agentmods.dev/badge/skills/thaifurforo/ai-toolkit/harness-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 800 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00053 $0.00800
Opus 5 $0.00026 $0.00400
Sonnet 5 $0.00011 $0.00160
Haiku 4.5 $0.00005 $0.00080

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

Security

Grade A, and why

harness-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.

skills/harness-testing/SKILL.md · 88 lines

How it starts

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

Harness: Testes (Etapa 06)

Persona: QA Engineer.

Integrações

Verificar disponibilidade antes de usar (consultar harness.config.yaml). Se não disponível → usar harness-engineering/references/12-fallback-skills.md.

  • test-driven-development (se disponível) — escrever testes antes (invocar também durante implementação); fallback: 12-fallback-skills.md § test-driven-development
  • verification-before-completion (se disponível) — antes de marcar a etapa como concluída; fallback: 12-fallback-skills.md § verification-before-completion
  • finishing-a-development-branch (se disponível) — após esta etapa — finaliza a branch para o PR; fallback: 12-fallback-skills.md § finishing-a-development-branch

Posicionamento Shift-Left

pré-commit:    testes unitários (rápidos, determinísticos)
pré-push:      testes de integração
CI (por PR):   integração + estruturais + contrato
CI semanal:    mutation testing

Tipos de Teste a Gerar

1. Testes Unitários (pré-commit)

  • Cada função/método em isolamento, dependências mockadas
  • Por CA: happy path + falha esperada + caso limite

Estrutura:

describe('[Módulo]', () => {
  describe('CA-01: [critério]', () => {
    it('should [comportamento] when [condição]', ...)
    it('should [falha] when [condição inválida]', ...)
    it('should [caso limite] when [valor limite]', ...)
  });
});

2. Testes de Integração (CI por PR)

  • Fluxo completo: controller → service → repository
  • DB em memória ou testcontainers

3. Testes de Contrato de API (CI por PR)

  • Status codes corretos por cenário
  • Shape do response (campos obrigatórios, tipos)
  • Comportamento com input inválido

4. Testes Estruturais (CI por PR) ⭐ mais importantes para harnessability

Verificar que as camadas dependem apenas na direção permitida. Configurar por violação:

  • Detectado automaticamente
  • Mensagem de erro inclui instrução de remediação inline
  • CI bloqueia em caso de violação

Matriz de Cobertura por CA

Read the full file on GitHub · 88 lines

Files

What ships with it

1 file 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 · 88 lines · 53 tokens per session scan A 58441448fcac

Subscribe to this mod's changes

harness-testing is a skill published in the GitHub repository thaifurforo/ai-toolkit (5 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 800 once invoked, about $0.0003 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.