Logo di Acceptance Criteria

Acceptance Criteria

Community
jdm4pku
acceptance-criteria

Write testable acceptance criteria and acceptance tests for requirements using Given/When/Then, checklist, and rule-based formats. Use when defining the conditions that prove a requirement is correctly implemented.

Panoramica

Pubblicato dajdm4pku
RepositoryRE-Skills
Nome della skillacceptance-criteria
Stelle
27
Fork
1
File inclusi
2
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.

  • File inclusi: 2

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

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

Installazione

Installa la skill IA Acceptance Criteria 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/jdm4pku/RE-Skills/tree/main/skills/acceptance-criteria
  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/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/acceptance-criteria .claude/skills/acceptance-criteria
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Acceptance Criteria 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 Acceptance Criteria 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 Acceptance Criteria 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à.

Purpose

Create acceptance criteria that define the specific, testable conditions under which a requirement is considered satisfied. Use this to close the gap between "what does this requirement mean?" and "how do we prove it works?"

This is not test case writing -- acceptance criteria define what to verify. Test cases define how to verify it. Acceptance criteria live in requirements; test cases live in test plans.

Key Concepts

Acceptance Criteria vs. Acceptance Tests

AspectAcceptance CriteriaAcceptance Tests
WhatConditions for satisfactionProcedures to verify conditions
Who writesBA / Requirements EngineerQA / Test Engineer
WhenDuring requirements specificationDuring test planning
FormatGiven/When/Then, checklistsStep-by-step test procedures with expected results
Lives inSRS, user storiesTest plan, test management tool

Three Formats for Acceptance Criteria

1. Given/When/Then (Gherkin) Best for behavior-driven scenarios with clear preconditions and triggers:

Given [precondition],
When [action],
Then [expected result].

2. Checklist Best for straightforward pass/fail conditions:

- [ ] [Condition that must be true]
- [ ] [Another condition that must be true]

3. Rule-Based Best for business rules with multiple examples:

Rule: [Business rule statement]
Example: [Input] -> [Expected output]
Example: [Different input] -> [Different expected output]

SMART Acceptance Criteria

Every acceptance criterion should be:

  • Specific -- Describes a single, concrete condition
  • Measurable -- Has a pass/fail determination
  • Achievable -- Technically feasible
  • Relevant -- Traces to a requirement or user need
  • Testable -- A tester can verify it without interpretation

Anti-Patterns

  • The Obviously True -- "The system shall function correctly." Every requirement should function correctly.
  • The Subjective -- "The interface shall be attractive." Whose taste?
  • The Implementation Detail -- "The system shall use a 256-bit AES encryption key stored in a hardware security module." That is design, not a requirement.
  • The Infinite Set -- "The system shall handle all possible inputs." Impossible to test.

Application

Step 1: Start with the Requirement

Take your requirement (user story, shall statement, or use case step) and ask:

  • "How will we know this requirement is satisfied?"
  • "What does the user expect to see when this works?"
  • "What does failure look like?"

Step 2: Choose the Right Format

Use This FormatWhen
Given/When/ThenThe behavior depends on preconditions and has clear trigger/response
ChecklistSimple pass/fail conditions without complex preconditions
Rule-BasedA business rule with multiple scenarios or boundary conditions

Step 3: Write the Criteria

Given/When/Then example:

markdown
**Requirement:** CT.ALERT.EXPIRY.1 -- The system shall send an email
alert to the responsible lab technician when a chemical is 30 days
from expiration.

**Acceptance Criteria:**

AC-1: Given a chemical with expiration date exactly 30 days from today,
      and a lab technician is assigned to its storage location,
      When the daily alert job runs,
      Then an email is sent to the assigned technician containing the
      chemical name, CAS number, location, and expiration date.

AC-2: Given a chemical with expiration date exactly 30 days from today,
      and no technician is assigned to its storage location,
      When the daily alert job runs,
      Then an email is sent to the lab manager instead.

AC-3: Given a chemical with status "Disposed,"
      and expiration date is 30 days from today,
      When the daily alert job runs,
      Then no alert is sent for that chemical.

Checklist example:

markdown
**Requirement:** CT.CATALOG.SEARCH.1 -- Search for chemicals by name,
CAS number, location, or expiration date range.

**Acceptance Criteria:**
- [ ] Search by partial chemical name returns all matching records
- [ ] Search by exact CAS number returns the specific record
- [ ] Search by storage location returns all chemicals in that location
- [ ] Search by date range returns chemicals expiring within that range
- [ ] Combining multiple criteria narrows results (AND logic)
- [ ] Empty search results display "No chemicals found" message
- [ ] Search results display within 2 seconds for 50,000 records

Rule-based example:

markdown
**Requirement:** BR-002 -- Volume discount calculation

**Acceptance Criteria:**

Rule: Discount is calculated on per-SKU order quantity, not total order.
  Example: 50 units of SKU-A -> 0% discount (below 100 threshold)
  Example: 150 units of SKU-A -> 5% discount on all 150 units
  Example: 50 units SKU-A + 100 units SKU-B -> 0% on A, 5% on B
  
Rule: Discount applies to pre-tax unit price.
  Example: SKU-A at $10/unit, 200 units -> $10 * 0.95 * 200 = $1,900

Step 4: Validate Criteria Quality

For each acceptance criterion, verify:

  • A tester can determine pass/fail without asking the BA for clarification
  • The criterion tests one specific condition (not multiple combined)
  • Boundary conditions are covered (what about 29 days? 31 days? exactly 30?)
  • Negative cases are included (what should NOT happen)
  • The criterion traces to the parent requirement

Step 5: Review with Stakeholders

Walk through acceptance criteria with:

  • Developer -- "Is this clear enough to implement?"
  • Tester -- "Can you write test cases from these?"
  • User -- "Does this match what you expect the system to do?"

Examples

See examples/sample.md for complete acceptance criteria sets.

Common Pitfalls

Pitfall 1: No Negative Test Cases

Symptom: All acceptance criteria describe what the system should do. None describe what it should not do.

Consequence: Error paths, edge cases, and security concerns are not tested.

Fix: For every positive criterion, ask "What should NOT happen?" Add at least one negative criterion per requirement.


Pitfall 2: Criteria Too Vague to Test

Symptom: "System responds quickly" or "Data is displayed correctly."

Consequence: Tester cannot determine pass/fail. "Quickly" to whom? "Correctly" by what standard?

Fix: Quantify: "Response within 2 seconds" and "Displays all 6 fields in the specified order."


Pitfall 3: Criteria Test Implementation, Not Behavior

Symptom: "The system uses PostgreSQL to store the record" or "The API returns a 200 status code."

Consequence: Criteria are coupled to implementation. If the database changes, the criteria break even though behavior is the same.

Fix: Test behavior: "The record is retrievable after save" and "The system confirms successful submission."

References

Related Skills

  • skills/user-story-re/SKILL.md -- Acceptance criteria are part of every user story
  • skills/use-case/SKILL.md -- Acceptance criteria can be derived from use case flows
  • skills/business-rule/SKILL.md -- Rule-based criteria often implement business rules
  • skills/requirements-validation-process/SKILL.md -- Acceptance criteria are validated during review

External Frameworks

  • Dan North, "Introducing BDD" (2006) -- Given/When/Then format
  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 17: Validating the Requirements
  • Gojko Adzic, Specification by Example (2011) -- Rule-based acceptance criteria

Skill type: Component Dependencies: None Used by: skills/user-story-re/SKILL.md, skills/requirements-validation-process/SKILL.md

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Acceptance Criteria?

Write testable acceptance criteria and acceptance tests for requirements using Given/When/Then, checklist, and rule-based formats. Use when defining the conditions that prove a requirement is correctly implemented.

Perché usare Acceptance Criteria su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Acceptance Criteria è 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 Acceptance Criteria in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/jdm4pku/RE-Skills/tree/main/skills/acceptance-criteria. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Acceptance Criteria?

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 Acceptance Criteria?

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

La skill IA Acceptance Criteria è gratuita?

È pubblicata su GitHub da jdm4pku. 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 👇