acceptance-criteria-gwt
Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
от makifbaysal★ 123 звезды на GitHub
Установить acceptance-criteria-gwt в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Acceptance Criteria (Given/When/Then)
Overview
Acceptance criteria are the contract QA tests the product against and the PM verifies at UAT. If a criterion isn't executable, it can't be verified — and unverifiable criteria are where defects hide.
Core principle: Every criterion is an observable behavior QA can execute with a command or a click path. No aspirational adjectives.
The shape
Given [precondition], When [action], Then [measurable result].
Where they go
Criteria live in the board task's own acceptance_criteria field — an array of strings, one criterion per item, passed to create_board_task (or update_board_task to replace the whole list). Each item becomes a checkbox the implementer ticks with set_criterion_completed, and that QA (in ready_for_qa/in_qa) then rules on independently with review_criterion. The tick is the implementer's claim — QA never calls set_criterion_completed; its verdict is review_criterion.
Never write them into description. A criteria block pasted as markdown leaves the task's checklist empty: nothing to tick, nothing the move guard can check, and the prose copy goes stale the moment the real criteria are edited.
Testability gate
For each criterion, before you save it, write down:
- who executes it — QA in in_qa, with browser or mobile tools (or
http_requestagainst the task's own preview when the surface is an API, not a screen); - the action — a click path, a URL, or a request;
- the exact observable — text, a count, an element state, or a file.
If the behaviour is user-facing, the Then must be visible in the UI — not a status code standing in for what the user sees. If nobody outside the code can observe it, it belongs in technical_description, not in a criterion.
Declarative When, concrete Then
Write the When as what happens, not the click-by-click path — the cucumber test: "Will this wording need to change if the implementation changes?" If yes, it's too imperative. One behaviour per criterion. Put exact copy strings in quotes in the Then; "an error appears" is not testable, "'Title must be at most 200 characters' appears under the field" is.
Never a criterion: board actions
A criterion states what the finished WORK is, never what the board does around it. These are not criteria and the tools drop them:
| Not a criterion | Why | Write instead |
|---|---|---|
| "Task moved to ready_for_qa / analiz_review / done" | a column move is workflow; the agent's role already tells it where the card goes | the behaviour that makes the task ready |
| "Implementation tasks are created" | they are opened AFTER this task is approved — a criterion nobody can tick before the hand-off keeps the card out of done forever | what the plan those tasks come from must contain |
| "Spec attached with add_task_document" / "questions asked with add_task_comment" | naming the tool describes the mechanics, and an attached document is not a good one | what the document must say |
| "Presented for human approval" / "assigned to the developer" | hand-offs are the flow's job | nothing — the flow does it |
The test: could a reviewer check it by looking only at the product and the documents, without opening the board's history? If not, it is not a criterion.
Rules
- Observable + measurable. "Then a 422 with message 'title too long'" — not "Then it handles it gracefully."
- At least one negative criterion where the feature accepts input or has permissions: invalid input, unauthorized access, empty state. Not required for a pure copy or styling change.
- 3–7 criteria is typical; the feature decides, not the count. A long list is a reason to check that the task does not bundle two roles, two repositories or two unrelated features — split those. One feature for one role in one repository stays one task even with 10–12 criteria: every extra task is another agent run, review and release. Drop criteria that restate each other before you split anything.
- No 'fast'/'user-friendly'/'robust' — replace with a number or a concrete behavior.
Mid-flight edits
update_board_task(acceptance_criteria=…) replaces the whole array and resets every tick on it — use it only before work starts, or when the human explicitly asked for the change. To drop one criterion from a task already in progress (descoped, superseded, covered elsewhere), use cancel_criterion with a reason instead of rewriting the list.
Worked Example
Feature: reject task titles over 200 chars, in the New Task dialog.
❌ Given a create-task form, When I submit a 201-char title, Then I get 422.
(status code stands in for what the user sees — fine for an API-only task, not for a dialog)
✅ AC1 (happy) Given the New Task dialog,
When I enter a 200-character title and press Create,
Then the dialog closes and a card with that title appears on the board.
✅ AC2 (boundary/negative)
Given the New Tas
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл acceptance-criteria-gwt?
Use when writing acceptance criteria for a task - express each as an observable Given/When/Then that QA can execute, including negative cases
Как установить скилл acceptance-criteria-gwt?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл acceptance-criteria-gwt запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…