tdd-generate

Translate Gherkin feature files into Vitest or Jest test stubs.

3|Updated May 28, 2026
One-click install
npx skills add https://github.com/mahg-es/araya --skill tdd-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tdd-generate
Source: https://github.com/mahg-es/araya/tree/main/skills/tdd-generate
Command: npx skills add https://github.com/mahg-es/araya --skill tdd-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transforms Gherkin feature files into executable test scaffolding, enabling test-driven development by defining tests before implementation.

Core Features & Use Cases

  • Generate tests from each feature into test files compatible with the project's framework.
  • Framework detection: automatically adapts to Vitest or Jest and emits appropriate test syntax.
  • Scenario handling: supports individual scenarios and scenario outlines with parameterization; includes setup/teardown scaffolding where applicable.

Quick Start

Run the tdd-generate skill on a features/*.feature file to generate corresponding test stubs under tests/.

Frequently Asked Questions about tdd-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate executable tests from Gherkin feature files?

You can generate executable test stubs from Gherkin feature files by translating the feature scenarios into test code with describe/it blocks and beforeAll/afterAll scaffolding for JavaScript or TypeScript projects.

Does test generation work with both Vitest and Jest?

Yes, test generation supports both Vitest and Jest. The process automatically detects your project's test framework and emits the appropriate test syntax for the generated executable stubs.

Can I generate parameterized tests from scenario outlines?

Yes, you can generate parameterized tests from scenario outlines. The process handles both individual scenarios and scenario outlines, creating parameterized test stubs with appropriate setup and teardown scaffolding.

What is the best way to start test-driven development from feature files?

The best way to start test-driven development from feature files is to convert them into runnable test stubs under a tests directory. This defines the expected behavior in test code before writing the actual implementation.

How do I scaffold setup and teardown hooks for BDD tests?

You can scaffold setup and teardown hooks for BDD tests by generating test code from feature files. The generated output automatically includes beforeAll and afterAll hook scaffolding where applicable for your detected framework.