tdd_workflow
Initiate a Test-Driven Development (TDD) workflow using Red-Green-Refactor cycles to develop features by writing tests first, ensuring implementation aligns with acceptance criteria and specified test frameworks.
Instructions
Start a Test-Driven Development workflow with Red-Green-Refactor cycles
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context | No | Additional context (optional) | |
task | Yes | Description of the feature to develop using TDD |
Input Schema (JSON Schema)
{
"properties": {
"context": {
"description": "Additional context (optional)",
"properties": {
"acceptanceCriteria": {
"description": "Clear acceptance criteria for the feature",
"items": {
"type": "string"
},
"type": "array"
},
"targetFiles": {
"description": "Files where tests and implementation will be added",
"items": {
"type": "string"
},
"type": "array"
},
"testFirst": {
"default": true,
"description": "Always write the test first (TDD principle)",
"type": "boolean"
},
"testFramework": {
"description": "Testing framework to use",
"type": "string"
}
},
"type": "object"
},
"task": {
"description": "Description of the feature to develop using TDD",
"type": "string"
}
},
"required": [
"task"
],
"type": "object"
}