Skip to content

Fix: Release script missing agent template files in package creation #420

Description

@guercheLE

Problem

The release script .github/workflows/scripts/create-release-packages.sh is not properly including agent template files when creating packages for different AI agents.

Current Issues

  1. Claude agent: Missing agent_templates/claude/CLAUDE.md file in package
  2. Copilot agent: Incorrect directory structure and missing agent_templates/copilot/copilot-instructions.md file

Expected Behavior

The release script should:

  • Copy agent_templates/claude/CLAUDE.md to CLAUDE.md in the package root for Claude packages
  • Copy agent_templates/copilot/copilot-instructions.md to .github/copilot-instructions.md for Copilot packages
  • Ensure all agent context files are properly included in their respective packages

Impact

Without these fixes:

  • Claude packages won't include the necessary context file
  • Copilot packages will have incorrect structure and missing instructions
  • Users won't have proper agent-specific context when using the packages

Proposed Solution

Update the release script to properly handle agent template files:

case $agent in
  claude)
    mkdir -p "$base_dir/.claude/commands"
    generate_commands claude md "\$ARGUMENTS" "$base_dir/.claude/commands" "$script"
    [[ -f agent_templates/claude/CLAUDE.md ]] && cp agent_templates/claude/CLAUDE.md "$base_dir/CLAUDE.md" ;;
  copilot)
    [[ -f agent_templates/copilot/copilot-instructions.md ]] && cp agent_templates/copilot/copilot-instructions.md "$base_dir/.github/copilot-instructions.md" ;;

This ensures that agent-specific context files are properly included in the release packages.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions