/ark-csharp:ark-reqnrollfrom ark-csharp
Writes Gherkin Feature files and Reqnroll verb bindings for .NET BDD tests. Guides binding reuse, driver patterns, scenario state management, and async infrastructure.
Ships in ark-csharp. 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.
None: SKILL.md is the whole skill.
Use this skill when adding or reviewing Reqnroll features or Binding/Steps classes for any project.
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.Given setup binding may invoke the same operation as a When, but it must
assert that the operation succeeded.Then assertion (or an And continuation
of one); never leave the last action as an unchecked When.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 Entity with")]
public async Task TryCreateEntity(Table table)
{
await _try(() => CreateEntity(table)).ConfigureAwait(false);
}
[When("I retrieve the current Entity")]
public async Task RetrieveCurrentEntity()
{
await _entity.RetrieveCurrentAsync().ConfigureAwait(false);
}
[When("I update the current Entity with")]
public async Task UpdateCurrentEntity(Table table)
{
var merged = table.MergeInstance(_entity.Current);
await _entity.UpdateCurrentAsync(new Entity.V1.Input
{
Title = merged.Title,
Author = merged.Author,
Genre = merged.Genre,
}).ConfigureAwait(false);
}
[Then("I get an error of type '(.*)'")]
public void CheckException(string type)
{
_exception.Should().BeOfType<BusinessRuleViolationException>()
.Which.BusinessRuleViolation.Type.Should().Be(type);
}
private async Task _try(Func<Task> action)
{
try
{
await action();
}
catch (Exception e)
{
_exception = e;
}
}
}
The create binding maps input to a contract, dispatches it through the scenario driver, and activates the response. Update and assertion bindings use that active response instead of repeating its identifier or transport details.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arklab/ark.tools --plugin ark-csharp4 skills in this plugin
/ark-complianceUse when a .NET build reports an ARKPII* MSBuild or analyzer diagnostic, or when reviewing Ark.Tools.Compliance data-classification, redaction, SQL-policy, or sensitive-value-object behavior./ark-mediator-frameworkUse when consuming Ark.Tools.MediatorFramework from NuGet to design, add, change or review a contract (query, request, command, event or message) — its fields, routes, gRPC methods, validators, business rules, authorization, versioning, enums or personal data — or its handler, participant or endpoint./roslyn-incremental-generator-specialistUse when designing, reviewing, or refactoring Roslyn incremental source generators with strict pipeline discipline, parser/emitter separation, deterministic output, and cache-safe models.Other plugins' skills for the same job