comment-alive-test-driven-development

Generate test and production code from structured User Stories and Acceptance Criteria comments.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/EnigmaWU/MyCodeAgentSkills --skill comment-alive-test-driven-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comment-alive-test-driven-development
Source: https://github.com/EnigmaWU/MyCodeAgentSkills/tree/main/comment-alive-test-driven-development
Command: npx skills add https://github.com/EnigmaWU/MyCodeAgentSkills --skill comment-alive-test-driven-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires , and includes scripts (resource) and references (resource) components.

What problem does it solve?

The comment-alive-test-driven-development (CaTDD) Skill addresses the challenge of creating comprehensive, structured test files that serve as both design documentation and executable tests, bridging the gap between human and machine-assisted development.

Core Features & Use Cases

  • Structured Comment-Based Design: Utilizes structured comments to define test design (User Stories, Acceptance Criteria, Test Cases) before code is written.
  • AI-Generated Code: Employs AI to parse comments and generate test and production code.
  • Human-AI Collaboration: Facilitates iterative improvement through collaboration between developers and AI.

Quick Start

To create a new CaTDD test file for the UserAuth module in Python, use the following command:

Use CaTDD to write new tests for the UserAuth module in Python.

Frequently Asked Questions about comment-alive-test-driven-development

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

FAQPage Schema
How do I generate test cases from user stories and acceptance criteria?

To generate test cases from user stories, you use structured comments to define acceptance criteria and test cases, then apply AI-assisted development to automatically parse these comments and generate the corresponding executable test code.

What is comment-alive test-driven development and how does it work?

Comment-alive test-driven development is a technique that uses structured comments as both design documentation and executable tests. It works by formatting comments into user stories and acceptance criteria, allowing AI to generate code based on those specifications.

Can I use AI-assisted development to write unit tests and user acceptance tests?

Yes, you can use AI-assisted development to write unit tests and user acceptance tests. This approach applies to any testing level, automatically generating test and production code by parsing structured comments defined before code implementation.

How do I structure comments for AI to generate test and production code?

To structure comments for AI code generation, format them into User Stories, Acceptance Criteria, and Test Cases. This structured format bridges human and machine-assisted development, enabling the AI to parse specifications and generate the matching code.

Does test-driven development with structured comments work for system testing?

Test-driven development with structured comments works for system testing. The method applies to any testing level—including unit tests, system tests, and user acceptance tests—by using structured comments to drive AI-generated code for comprehensive coverage.

What are the limitations of using structured comments for test design?

A limitation of using structured comments for test design is the strict requirement to format specifications as User Stories, Acceptance Criteria, and Test Cases. Without this precise structured comment format, the AI cannot parse the design to generate the test files.