Command Palette

Search for a command to run...

Back to skills
skill № 10599

ark-reqnroll

Writing Gherkin Feature files and the Reqnroll verb bindings steps. Use this skill when adding or reviewing Reqnroll features or Binding/Steps classes for any…

FreeNo executable scripts
ARKlabby ARKlab★ 40 GitHub stars

Install ark-reqnroll in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Reqnroll application scenarios

Use this skill when adding or reviewing Reqnroll features or Binding/Steps classes for any project.

Workflow

  1. Read the feature, bindings, hooks, drivers, and application contracts before adding a verb.
  2. Prefer an existing coarse verb. Add a binding only when the action is reusable across scenarios or features.
  3. Use a scenario-owned domain driver to dispatch application request, query, and command contracts. Keep URLs, status codes, JSON, and generated transport wrappers in focused transport tests.
  4. Store active entities and results in the driver. Subsequent verbs should act on or compare that active state without repeating identifiers.
  5. Use Table values when they improve readability: CreateInstance<T> for one DTO, CreateSet<T> for a collection, CompareToInstance for one result, and CompareToSet for result collections.
  6. Run the affected feature with the project’s intended test profile. Include persistence and messaging infrastructure when the behavior owns it.

Rules

  • Make Gherkin describe a user or QA action, not a handler implementation.
  • Keep bindings coarse and domain-neutral: create, update, retrieve, search, wait, and compare are reusable; do not add one verb per business case.
  • Keep mutable state scenario-owned. Never share an active entity, container, clock, or client between scenarios.
  • Steps classes are not per-Feature file and are supposed to be re-used even across features.
  • Let drivers own domain state and contract dispatch; bindings should only map Gherkin input to driver calls and implement assertions. Drivers should swallow exceptions and track them for assertions to check.
  • Model remote dependencies behind mock drivers. Do not mock application-owned infrastructure such as databases or message buses.
  • For asynchronous workflows, build independent sender and receiver containers. Share only intentional scenario state and the test transport; never share a container or scope.
  • Wait with bounded polling. Timeout messages should include enough queue, in-process, deferred, outbox, and error diagnostics to diagnose a failure.
  • Dispose receivers, drain/reset test transport, clear queued work, and reset scenario data after every scenario.
  • Keep public binding and driver types documented and follow the project’s source style.
  • A Given setup binding may invoke the same operation as a When, but it must assert that the operation succeeded.
  • Every scenario must finish with a Then assertion (or an And continuation of one); never leave the last action as an unchecked When.

Scenario Example

Scenario: Update an active entity
    Given I create an entity with
        | Name |
        | Ada  |
    When I update the current entity with
        | Name        |
        | Ada Lovelace|
    Then the current entity is
        | Name        |
        | Ada Lovelace|


Scenario: Update an active entity with invalid name
    Given I create an entity with
        | Name |
        | Ada  |
    When I try to update the current entity with
        | Name        |
        | <Invalid>  |
    Then I get an error of type 'InvalidName'
public sealed class EntityDriver
{
    private readonly TestContext _ctx;

    public EntityDriver(TestContext ctx)
    {
        _ctx = ctx;
    }

    public Entity Current => _current ?? throw new InvalidOperationException("No current entity is available in this scenario.");

    private Entity? _current;

    public async Task CreateAsync(Entity.V1.Create input, CancellationToken ctk = default)
    {
        _current = await _ctx.DispatchRequestAsync<Entity_CreateRequest, Entity>(
            new Entity_CreateRequest(input), ctk).ConfigureAwait(false);
    }

    public async Task RetrieveCurrentAsync(CancellationToken ctk = default)
    {
        _current = await _ctx.DispatchQueryAsync<Entity_GetQuery, Entity>(
            new Entity_GetQuery(Current.Id),
            ctk).ConfigureAwait(false);
    }

    public async Task UpdateCurrentAsync(Entity.V1.Input input, CancellationToken ctk = default)
    {
        _current = await _ctx.DispatchRequestAsync<Entity_UpdateRequest, Entity>(
            new Entity_UpdateRequest(input, Current.Id),
            ctk).ConfigureAwait(false);
    }
}

[Binding]
public sealed class EntitySteps
{
    private readonly EntityDriver _entity;
    private Exception? _exception = null;

    public EntitySteps(EntityDriver entitys)
    {
        _entity = entitys;
    }

    [Given("I create a Entity with")]
    public async Task GivenCreateEntity(Table table)
    {
        await CreateEntity(table).ConfigureAwait(false);
        _entity.Current.Should().NotBeNull();
    }

    [When("I create a Entity with")]
    public async Task CreateEntity(Table table)
    {
        await _entity.CreateAsync(table.CreateInstance<Entity.V1.Create>()).ConfigureAwait(false);
    }

    [When("I try to create a En
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the ark-reqnroll skill do?

Writing Gherkin Feature files and the Reqnroll verb bindings steps. Use this skill when adding or reviewing Reqnroll features or Binding/Steps classes for any project.

How do I install the ark-reqnroll skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the ark-reqnroll skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare ark-reqnroll with