Provides 31 numbered rules for writing, reviewing, and refactoring Gherkin scenarios and feature files with webshop examples. Useful when working with .feature files or discussing BDD practices.
Ships in chillicream-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write Gherkin scenarios that a business reader understands without reading the test code. The examples use a webshop with customers, products, carts and orders. Apply the same principles to the vocabulary and observable outcomes of the project you are working on.
references/. Cite the rule by its number, for example "breaks rule 13".Each rule links to its explanation and bad and good examples. Read the relevant page when a rule needs clarification. The example steps illustrate wording; they have no bindings. Follow the project's conventions for fixtures, authentication and runner configuration.
Rewrite setup as an existing fact (rule 9).
Before:
Feature: Cart management
Rule: A customer can add an in-stock product to the cart
Scenario: A customer adds an in-stock product
Given a visitor opens the registration page
And the visitor registers as a customer
And the customer creates an empty cart
And product "Travel mug" is in stock
When the customer adds "Travel mug" to the cart
Then the customer sees "Travel mug" in the cart
After:
Feature: Cart management
Rule: A customer can add an in-stock product to the cart
Scenario: A customer adds an in-stock product
Given a customer has an empty cart
And product "Travel mug" is in stock
When the customer adds "Travel mug" to the cart
Then the customer sees "Travel mug" in the cart
The scenario needs a customer with a cart; their creation belongs in the setup implementation.
Given when another scenario only needs its result as a prerequisite.Given steps or remove them. If an action is the behaviour under test, establish its expected result.Given steps, then one When, then the Then steps.Given says what is already there, not how it got there.When is one act, written the way the business names it.Then checks the outcome itself, not a sign of it.Rule when the runner supports it and the grouping makes the business rule clearer.Background holds only the Given steps that every scenario in its scope needs.Examples table tests a different case. Give the table a title that says what changes.Given, When or Then. Keep unrelated details and hidden actions out.BRIEF is an optional reminder of writing principles covered by the rules above:
references/01_one_behaviour.md (opens in a new tab)references/02_split_by_rule.md (opens in a new tab)references/03_different_starting_state.md (opens in a new tab)references/04_own_state.md (opens in a new tab)references/05_repeat_becomes_seeded_given.md (opens in a new tab)references/06_action_without_result_is_setup.md (opens in a new tab)references/07_owning_role_acts.md (opens in a new tab)references/08_given_when_then_order.md (opens in a new tab)references/09_given_states_a_fact.md (opens in a new tab)references/10_one_business_act.md (opens in a new tab)references/11_then_where_observed.md (opens in a new tab)references/12_then_proves_the_outcome.md (opens in a new tab)references/13_one_fact_per_step.md (opens in a new tab)references/14_keep_it_brief.md (opens in a new tab)references/15_what_not_how.md (opens in a new tab)references/16_no_sign_in.md (opens in a new tab)references/17_third_person_present.md (opens in a new tab)references/18_actor_first.md (opens in a new tab)references/19_business_words.md (opens in a new tab)references/20_meaningful_names.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/chillicream-skills:bdd-best-practicesfrom chillicream-skills
npx claudepluginhub chillicream/agent-skills --plugin chillicream-skills14 skills in this plugin
/graphql-schema-designGraphQL schema design and review. Use when designing new GraphQL schema changes (types, mutations, queries, connections, enums, errors), reviewing schema diffs, planning schema evolution, or auditing nullability and naming. Triggers on 'graphql schema design', 'design a mutation', 'design a query', 'design a type', 'new type', 'new mutation', 'review schema', 'review schema diff', 'schema review', 'schema evolution', 'audit the schema', '/graphql-schema-design'./hotchocolate-best-practicesHotChocolate 16.6+ server implementation best practices for .NET GraphQL services. Use when writing or reviewing C# in a HotChocolate project — resolvers, classes with [QueryType], [MutationType], [ObjectType], or [DataLoader], Green Donut DataLoaders, EF Core data access inside resolvers, pagination, or GraphQL performance work in .NET. Triggers on 'HotChocolate', 'Green Donut', 'DataLoader', 'resolver', 'AddGraphQLServer', or any edit to a file that uses HotChocolate attributes or types. Applies to standalone servers and to source schemas (subgraphs) in a composite setup./hotchocolate-fix-bugUse when the user wants a reported HotChocolate bug triaged, reproduced, and fixed from a GitHub issue, working in the ChilliCream graphql-platform repository. N stands for an issue number throughout. Triggers on: 'fix bug', 'fix this bug', 'fix issue #N', 'fix #N', 'is issue #N a bug', 'triage issue #N', 'reproduce and fix', 'look into this issue', pasted issue URL or report asking whether it is a real bug. Do NOT use for feature requests, plain code review, or questions about how an API works that reference no reported defect./mocha-best-practicesMocha messaging best practices for .NET services - message contracts, handlers and consumers, routing and endpoints, outbox/inbox reliability, exception policies, sagas, scheduling, the in-process mediator, and testing. Use when writing or reviewing C# that uses Mocha, including classes implementing IEventHandler, IEventRequestHandler, IBatchEventHandler, IConsumer or Saga<TState>, mediator handlers (ICommandHandler, IQueryHandler, INotificationHandler), and any AddMessageBus / AddMediator builder chain. Triggers on "Mocha", "message bus", "IMessageBus", "PublishAsync", "SendAsync", "RequestAsync", "outbox", "inbox", "saga", "dead letter", "transport", "RabbitMQ", on an MO0001-MO0020 build diagnostic, and on questions about whether something should be an event, a command or a request./nitro-mailSend and receive mail between coding agents with `nitro agent mail`: local-first, per-workspace messaging for multi-agent coordination. Use when messaging or replying to another agent, draining an inbox, or waiting for new mail./nitro-memorySave and recall shared, durable agent memory with `nitro agent memory`: knowledge that must outlive the session -- preferences, decisions, domain facts, references -- readable by every agent in the workspace. Use when the user says "remember this", when a session should start from what the workspace already knows, or when knowledge worth keeping surfaces mid-task.Other plugins' skills for the same job