test-driven-generation

Generate Python or Java implementation code from provided unit tests.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill test-driven-generation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-driven-generation
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/test-driven-generation
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill test-driven-generation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of writing implementation code by leveraging existing unit tests, ensuring that the generated code directly meets specified requirements and passes all defined test cases.

Core Features & Use Cases

  • Automated Code Generation: Creates implementation code (Python, Java) based on provided unit tests.
  • TDD Workflow Support: Facilitates a complete Test-Driven Development cycle, including test analysis, code generation, execution, debugging, and iteration.
  • Use Case: When given a set of Python pytest files for a Calculator class, this Skill will generate the Calculator implementation code that makes all tests pass, including handling edge cases like division by zero.

Quick Start

Use the test-driven-generation skill to create the implementation code for the provided test file 'test_my_module.py'.

Frequently Asked Questions about test-driven-generation

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

FAQPage Schema
How do I generate Python code from unit tests?

To generate Python code from unit tests, you provide existing pytest files to the Skill. It analyzes the test cases and iteratively generates implementation code that satisfies the tests, running and debugging until all tests pass.

Can I generate Java implementation code from existing test files?

Yes, you can generate Java implementation code from existing test files. The Skill supports Java by analyzing your test cases, generating the required implementation, and iterating through test failures until the code passes all tests.

What is the test-driven development workflow for automated code generation?

The test-driven development workflow for automated code generation involves analyzing provided unit tests, generating implementation code, executing the tests, debugging failures, and iterating this cycle until all specified test cases pass successfully.

Does this code generation tool handle edge cases and exceptions defined in tests?

Yes, this code generation tool handles edge cases and exceptions defined in tests. It adheres to language-specific conventions and carefully manages edge cases, such as division by zero, as explicitly outlined by your unit test requirements.

How do I fix failing unit tests during code generation?

To fix failing unit tests during code generation, the Skill runs an iterative debugging workflow. It analyzes the test failures, updates the Python or Java implementation code, and re-executes the tests until all assertions pass.

Do I need to write unit tests before generating implementation code?

Yes, you need to write unit tests before generating implementation code. The Skill operates on a test-driven generation model, requiring existing Python or Java unit test files to analyze and generate the corresponding implementation code.