Cucumber Step Definitions
Generates reusable Cucumber step definitions for automated testing, streamlining test creation and improving maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add cucumber-step-definitions npx -- -y @trustedskills/cucumber-step-definitions
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"cucumber-step-definitions": {
"command": "npx",
"args": [
"-y",
"@trustedskills/cucumber-step-definitions"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows you to generate Cucumber step definitions from natural language descriptions. It automatically creates code snippets in a Gherkin-compatible format, streamlining the process of writing automated tests for software development projects. The generated steps are designed to be easily integrated into existing Cucumber test suites.
When to use it
- You need to quickly create initial drafts of Cucumber step definitions for new features.
- You're refactoring existing feature files and want to automate the generation of corresponding step definitions.
- You’re onboarding a new team member unfamiliar with Cucumber syntax and want to accelerate their learning process.
- You have a backlog of tests needing automation and need to expedite the creation of test code.
Key capabilities
- Generates Cucumber step definitions from natural language input.
- Supports Gherkin syntax for defining scenarios and steps.
- Creates code snippets ready for integration into existing testing frameworks.
Example prompts
- "Generate a step definition for 'Given the user is logged in'"
- "Create a Cucumber step for 'When I click the submit button' that interacts with the UI."
- “Write a step to verify ‘Then the confirmation message should display’ ”
Tips & gotchas
The quality of generated step definitions depends heavily on the clarity and specificity of your natural language input. Be as detailed as possible in your descriptions to ensure accurate code generation.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.