In agent development workflows, generating code directly often makes it difficult to guarantee quality. Test-Driven Development (TDD) improves code robustness by writing tests first and then implementing them. However, the red-green-refactor cycle requires frequent mental model switching and is prone to errors during agent execution. dsh-tdd encapsulates this workflow as a DSH skill, aiming to automate the TDD cycle.
This is a workflow plugin maintained by satan9394. It embeds the TDD process into the DSH environment, including a red-green-refactor loop and a Prove-It repair mode, inspired by the 88k★ skill in addyosmani/agent-skills.
Core Features¶
- Test-Driven Development: Guides agents to prioritize writing test cases rather than directly implementing features.
- Red-Green-Refactor Loop: Automates the iterative process of “red (tests fail) - green (tests pass) - refactor.”
- Prove-It Repair Mode: Uses the Prove-It mechanism to fix code defects.
Installation and Enablement¶
Because the available documents do not provide explicit official installation commands, refer to the source repository instructions when installing. Before installation, be sure to check the source code and license information.
Typical Usage¶
The current materials do not provide specific usage examples. It is recommended to invoke this skill directly in the DSH environment and observe how it executes test writing and refactoring.
Applicable Scenarios and Precautions¶
Applicable to agent development scenarios with high code quality requirements. Note that the plugin runs with the permissions of the current dsh process; check the source code and license before installation.
dsh-tdd introduces a standardized TDD process for agents. Visit the directory page or GitHub repository for more details.