spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

feat: add Trae AI agent support

Open glara opened this issue 11 months ago • 1 comments

Summary

This PR integrates the Trae AI agent into the Spec Kit ecosystem. It enables full support across the CLI, context update scripts (Bash/PowerShell), release automation, and documentation.

Changes

🐍 CLI & Configuration

  • src/specify_cli/__init__.py: Added trae to AGENT_CONFIG as a supported IDE-based agent (configured to use .trae/ folder).

🛠 Core Scripts

  • scripts/bash/update-agent-context.sh: Added logic to handle the trae argument and update context files in .trae/rules/specify-rules.md.
  • scripts/powershell/update-agent-context.ps1: Implemented equivalent trae support for Windows users.

📦 Release Automation

  • create-release-packages.sh (Bash):
    • Added generation logic for Trae rule files.
    • Improved script portability for better macOS compatibility.
  • create-release-packages.ps1 (PowerShell): Updated to generate Trae agent packages alongside other agents.
  • create-github-release.sh: Configured to include Trae artifacts (spec-kit-template-trae-*.zip) in official GitHub releases.

📚 Documentation

  • AGENTS.md: Documented Trae as a supported agent, including its directory convention (.trae/rules/).
  • README.md: Added Trae to the list of supported AI agents.

Verification

  • Verified specify init logic via CLI configuration check.
  • Validated update-agent-context scripts on both Bash and PowerShell.
  • Successfully generated release packages locally for Trae using the updated build scripts.

glara avatar Dec 25 '25 18:12 glara

This pull request has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar May 30 '26 01:05 github-actions[bot]