54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"id": "tdd",
|
|
"role": "feature",
|
|
"version": "1.6.0",
|
|
"title": "Test-driven development",
|
|
"description": "Injects TDD heuristics into the planner and enforces RED/GREEN gate compliance on type:tdd plans after execution. Owns workflow.tdd_mode; the --tdd CLI flag is the ephemeral override.",
|
|
"tier": "full",
|
|
"requires": [],
|
|
"engines": {
|
|
"gsd": ">=1.6.0"
|
|
},
|
|
"runtimeCompat": {
|
|
"supported": [
|
|
"*"
|
|
],
|
|
"unsupported": []
|
|
},
|
|
"skills": [],
|
|
"agents": [],
|
|
"hooks": [],
|
|
"config": {
|
|
"workflow.tdd_mode": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Enable TDD mode: planner annotates eligible tasks type:tdd and executor enforces RED/GREEN/REFACTOR gate sequence."
|
|
}
|
|
},
|
|
"steps": [],
|
|
"contributions": [
|
|
{
|
|
"point": "plan:pre",
|
|
"into": "planner",
|
|
"fragment": {
|
|
"inline": "<tdd_mode_active>\n**TDD Mode is ENABLED.** Apply TDD heuristics to all eligible tasks:\n- Business logic with defined I/O → type: tdd\n- API endpoints with request/response contracts → type: tdd\n- Data transformations, validation, algorithms → type: tdd\n- UI, config, glue code, CRUD → standard plan (type: execute)\nEach TDD plan gets one feature with RED/GREEN/REFACTOR gate sequence.\n</tdd_mode_active>"
|
|
},
|
|
"produces": [],
|
|
"consumes": [],
|
|
"when": "workflow.tdd_mode",
|
|
"onError": "skip"
|
|
}
|
|
],
|
|
"gates": [
|
|
{
|
|
"point": "execute:post",
|
|
"check": {
|
|
"query": "tdd.review-checkpoint"
|
|
},
|
|
"when": "workflow.tdd_mode",
|
|
"blocking": false,
|
|
"onError": "skip"
|
|
}
|
|
]
|
|
}
|