Skip to content

Ai Assistants

Feature: AI Assistant Configuration Files
  As a software engineer
  I want AI assistant configuration files generated for the tools I use
  So that each assistant is pre-configured with project-specific coding guidelines

  Background:
    Given a project for any language or artifact type is to be generated

  Scenario: Claude Code files are always generated
    When the project is initialized without the --assistant flag
    Then the following files are generated:
      | File      |
      | CLAUDE.md |
      | .claude/  |

  Scenario Outline: Each AI assistant generates its own configuration file
    When the project is initialized with "--assistant <assistant>"
    Then the file "<file>" is generated
    And the following Claude Code files are generated in any case:
      | File      |
      | CLAUDE.md |
      | .claude/  |

    Examples:
      | assistant | file                             |
      | copilot   | .github/copilot-instructions.md  |
      | cursor    | .cursor/rules/guidelines.md      |
      | duo       | .gitlab/duo_instructions.md      |

  Scenario: Multiple AI assistants generate all their configuration files
    When the project is initialized with "--assistant copilot --assistant cursor --assistant duo"
    Then the following files are generated:
      | File                             |
      | .github/copilot-instructions.md  |
      | .cursor/rules/guidelines.md      |
      | .gitlab/duo_instructions.md      |
      | CLAUDE.md                        |
      | .claude/                         |

  Scenario: An unrecognized assistant value is rejected
    When the project is initialized with "--assistant unknown"
    Then initialization fails with an error indicating the valid values