Skip to content

Add TDD chatmodes#119

Merged
codemillmatt merged 5 commits into
github:mainfrom
abdidaudpropel:tddmodes
Jul 25, 2025
Merged

Add TDD chatmodes#119
codemillmatt merged 5 commits into
github:mainfrom
abdidaudpropel:tddmodes

Conversation

@abdidaudpropel

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, or chat mode with GitHub Copilot.
  • I have run node update-readme.js and verified that README.md is up to date.

Description

  1. TDD Red Phase - Guides writing failing tests first based on GitHub issue context before implementation exists
  2. TDD Green Phase - Implements minimal code to make failing tests pass without over-engineering
  3. TDD Refactor Phase - Improves code quality and applies security best practices while maintaining green tests

These chat modes provide structured guidance for each phase of the TDD cycle, helping developers maintain proper test-first discipline and avoid common TDD anti-patterns.


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New chat mode file.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings July 22, 2025 05:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds three TDD chat modes that provide structured guidance for the Test-Driven Development cycle, helping developers maintain proper test-first discipline through GitHub issue integration and C#-focused best practices.

  • TDD Red Phase for writing failing tests based on GitHub issue requirements
  • TDD Green Phase for minimal implementation to make tests pass
  • TDD Refactor Phase for improving code quality and security while maintaining green tests

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
chatmodes/tdd-red.chatmode.md Defines the Red phase chatmode for writing failing tests first based on GitHub issue context
chatmodes/tdd-green.chatmode.md Defines the Green phase chatmode for minimal implementation to satisfy tests and issue requirements
chatmodes/tdd-refactor.chatmode.md Defines the Refactor phase chatmode for improving code quality and applying security best practices
README.md Updates the chatmodes table to include the three new TDD chatmode entries

Comment thread chatmodes/tdd-red.chatmode.md Outdated
Comment thread chatmodes/tdd-green.chatmode.md Outdated
abdidaudpropel and others added 4 commits July 22, 2025 15:41
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codemillmatt codemillmatt merged commit 2587ec1 into github:main Jul 25, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants