generate-step-stubs
CommunityAuto-generates Behave step stubs from Gherkin.
Authorlilliangreenberg
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This tool automatically generates Python Behave step stubs from Gherkin feature files, reducing boilerplate and ensuring consistent patterns.
Core Features & Use Cases
- Robust Gherkin parsing using Behave to extract steps, including Background, Scenario Outline, data tables, and doc strings
- Intelligent parameter type inference (int, Decimal for monetary values, float, bool, str)
- Detection of existing steps to suggest reuse and prevent duplication
- Output of ready-to-implement Python stubs with proper type hints and clean naming
- Supports multi-file feature generation and optional --check-existing workflow
Quick Start
Use this skill to generate step stubs from your feature files. Example:
- Generate from a single feature: python skills/generate-step-stubs/scripts/generate_stubs.py features/login.feature
- Write output to a file: python skills/generate-step-stubs/scripts/generate_stubs.py features/login.feature -o features/steps/login_steps.py
- Check for existing steps: python skills/generate-step-stubs/scripts/generate_stubs.py features/login.feature --check-existing features/steps/
Dependency Matrix
Required Modules
behave
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: generate-step-stubs Download link: https://github.com/lilliangreenberg/gherkin-expansion/archive/main.zip#generate-step-stubs Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.