Agent Skills
A new Gherkin spec might have only a few scenarios. As the suite grows, more work goes into spotting missing cases and repeated rules, keeping each spec focused, and finding every spec that a change affects. Moving a spec can also mean moving the spec's test class and updating the code that refers to that class.
The steps in each spec need work too. SpecBinder generates JUnit tests and step method signatures from Gherkin, but to run those tests against the application, each step method still needs an implementation that uses the right entry points and fixtures. A coding agent can help with that work by following the patterns already in the suite.
The SpecBinder skills give Claude Code and Codex a workflow for the specs and the steps alike: reviewing .specb and .feature files, dividing specs that have grown too broad, implementing the steps, and keeping specs and tests together and organized as the suite grows.
The skills, spec review guidelines, and installation instructions live in a separate repository. SpecBinder skills on GitHub
Skills overview
| Skill | When to use | What it does |
|---|---|---|
| Review a Spec | A spec is new or has changed | Checks the spec against the team's review guidelines for missing cases, duplicated rules and other problems, shows each finding beside the spec in IntelliJ IDEA with the reason, and proposes fixes to apply or dismiss |
| Move Under a New Rule | A rule's scenarios show more than one criterion | Moves the scenarios you pick under a new rule in the same spec, titled with the criterion they show, narrows the rule they leave, and trims each rule's background to the steps its scenarios rely on |
| Move Under a New Spec | One Feature covers several subjects | Moves the rules and scenarios you pick under a new Feature in the same file, writes its title and user story, narrows the original's, and links the two with out-of-scope lines |
| Separate Out Specs | One file holds several Features | Moves Features into separate files, rewrites links between specs to point at the new files, and in a Java project moves the step implementations to the matching test classes |
| Automate a Spec | A spec has steps with no implementation | Writes the missing step implementations, reusing the project's fixtures and existing steps, then runs the test class and reports a result for each scenario |
| Reorganize Spec Folders | Specs are grouped by layer, such as api/ and ui/, or the folders have become untidy | Proposes a folder tree grouped by what the system does, then, once the tree is approved, moves specs with their tests, updates packages and references, and runs the affected tests |
Setup
- Install the skills package in Claude Code or Codex. The repository lists the supported versions and installation commands. Requirements and setup instructions
- For editor integration, install the SpecBinder IntelliJ plugin, enable Settings → Tools → MCP Server in IntelliJ IDEA, and connect your agent to that server. This connection lets the review skill read the editor's copy and publish findings beside the spec.
- Ask your agent for the task you want and give it the spec path. For example, ask it to review
ShoppingCart.specbfor gaps. You can also invoke a skill by name, such as/specbinder:review-specin Claude Code.
The setup each skill needs:
| Skill | Needs |
|---|---|
| Review a Spec | Any project; IntelliJ IDEA with the SpecBinder plugin to show findings in the editor |
| Move Under a New Rule | Any project; a Java project with JUnit 5 to run the tests before and after the move; IntelliJ IDEA with the SpecBinder plugin to review the change before it is made, or to start it from the editor |
| Move Under a New Spec | The same as Move Under a New Rule; a Java project with JUnit 5 to also move the new Feature's test code into a file of its own |
| Separate Out Specs | Any project; a Java project with JUnit 5 to move test code as well |
| Automate a Spec | A Java project with JUnit 5 and Maven or Gradle |
| Reorganize Spec Folders | A Java project with JUnit 5 and Maven or Gradle |