Logo di Test

Test

Community
domengabrovsek
test

Writes tests using a TDD workflow. Use when the user says 'write tests', 'add tests', 'TDD', or 'prove-it pattern'.

Panoramica

Pubblicato dadomengabrovsek
Repositoryagent-config
Nome della skilltest
Stelle
22
Fork
4
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da domengabrovsek su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Test in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/domengabrovsek/agent-config/tree/main/skills/test
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/domengabrovsek/agent-config.git /tmp/agent-config
mkdir -p .claude/skills
cp -r /tmp/agent-config/skills/test .claude/skills/test
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Test in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Test non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Test non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Write tests for: $ARGUMENTS

Choose the Workflow

For New Features: RED-GREEN-REFACTOR

why-no-hook: skill workflow guidance; each step requires understanding the surrounding context (repo, task shape, prior state).

  1. RED: write a failing test that describes the expected behavior (review-time: see section note)
    • Test name reads like a specification: "returns empty array when no users match" (review-time: see section note)
    • Run the test - confirm it fails for the right reason (not a syntax error) (review-time: see section note)
  2. GREEN: write the minimum code to make the test pass (review-time: see section note)
    • Do not optimize, do not handle edge cases yet - just make it green (review-time: see section note)
  3. REFACTOR: improve the code while keeping tests green (review-time: see section note)
    • Extract duplication, improve naming, simplify logic (review-time: see section note)
    • Run tests after each refactor step (review-time: see section note)
  4. Repeat: add the next test for the next behavior. Continue the cycle. (review-time: see section note)

For Bug Fixes: PROVE-IT Pattern

  1. Reproduce: write a test that triggers the exact bug as reported (review-time: see section note)
  2. Confirm RED: run the test - it must fail, proving the bug exists in code (review-time: see section note)
  3. Fix: implement the minimum change to fix the root cause (review-time: see section note)
  4. Confirm GREEN: run the test - it must now pass (review-time: see section note)
  5. Regression: run npm run verify:fast when package.json declares it, otherwise the full test suite. The full suite runs once per PR in npm run verify (review-time: see section note)

If you cannot write a failing test, you do not fully understand the bug. Investigate further.

Seams - where tests go

A seam is the public boundary you test at: the interface where you observe behaviour without reaching inside. Tests live at seams, never against internals.

Test only at pre-agreed seams. Use the seams in the spec's Seams section. With no spec, write down the seams under test and confirm them with the user - no test is written at an unconfirmed seam. (review-time: seam agreement is a conversational step, not pattern-checkable) You can't test everything; agreeing the seams up front lands testing effort on the critical paths and complex logic instead of every edge case.

Test Level Selection

Pick the lowest level that captures the behavior (see ~/.agents/references/testing-patterns.md):

BehaviorTest LevelWhy
Pure logic, calculations, validationUnit testFast, isolated, deterministic
API request/response contractsIntegration testVerifies real boundaries
Database queries, migrationsIntegration testNeeds real database behavior
Critical user journeysE2E testTests the full stack
Visual appearance, layoutVisual regressionScreenshot comparison

Anti-patterns

  • Implementation-coupled - mocks internal collaborators, tests private methods, or verifies through a side channel (querying the database instead of using the interface). The tell: the test breaks when you refactor but behaviour hasn't changed. (review-time: coupling detection requires reading the assertions against the implementation)
  • Tautological - the assertion recomputes the expected value the way the code does (expect(add(a, b)).toBe(a + b), a self-derived snapshot, a constant asserted equal to itself), so it passes by construction and can never disagree with the code. Expected values must come from an independent source of truth - a known-good literal, a worked example, the spec. (review-time: requires comparing the assertion to how the code computes)
  • Horizontal slicing - writing all tests first, then all implementation. Bulk tests verify imagined behaviour and go insensitive to real changes. Work in vertical slices instead: one test, one implementation, repeat - each test a tracer bullet responding to what the last cycle taught you. (review-time: workflow-shape judgment)

Test Quality Gates

Before considering tests complete:

  • Happy path covered (review-time: see section note)
  • Edge cases covered (empty input, boundary values, null/undefined) (review-time: see section note)
  • Error paths covered (invalid input, network failure, timeout) (review-time: see section note)
  • Each test is independent - passes with test.only() (review-time: see section note)
  • No hardcoded test data - using factories or builders (review-time: see section note)
  • Mocks only at module boundaries - not on internal code (review-time: see section note)
  • Test names read like specifications (review-time: see section note)
  • All tests pass, no flaky behavior (review-time: see section note)
  • Regression run done: npm run verify:fast when declared, otherwise the full test suite (review-time: see section note)

Domande frequenti

Cosa fa la skill IA Test?

Writes tests using a TDD workflow. Use when the user says 'write tests', 'add tests', 'TDD', or 'prove-it pattern'.

Perché usare Test su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Test è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Test in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/domengabrovsek/agent-config/tree/main/skills/test. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Test?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Test?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Test: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Test è gratuita?

È pubblicata su GitHub da domengabrovsek. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇