diff --git a/.github/workflows/scripts/create-release-packages.sh b/.github/workflows/scripts/create-release-packages.sh index 25e42ae0..d79f1403 100644 --- a/.github/workflows/scripts/create-release-packages.sh +++ b/.github/workflows/scripts/create-release-packages.sh @@ -101,6 +101,26 @@ generate_commands() { done } +generate_copilot_prompts() { + local chatmodes_dir=$1 prompts_dir=$2 + mkdir -p "$prompts_dir" + + # Generate a .prompt.md file for each .chatmode.md file + for chatmode_file in "$chatmodes_dir"/speckit.*.chatmode.md; do + [[ -f "$chatmode_file" ]] || continue + + local basename=$(basename "$chatmode_file" .chatmode.md) + local prompt_file="$prompts_dir/${basename}.prompt.md" + + # Create prompt file with agent frontmatter + cat > "$prompt_file" <