Skip to content

feat: move workflow prompts to .github/prompts/ as VS Code-compatible prompt files#417

Merged
rajbos merged 5 commits intomainfrom
copilot/convert-prompt-to-md-file
Mar 18, 2026
Merged

feat: move workflow prompts to .github/prompts/ as VS Code-compatible prompt files#417
rajbos merged 5 commits intomainfrom
copilot/convert-prompt-to-md-file

Conversation

Copy link
Contributor

Copilot AI commented Mar 17, 2026

Two scheduled workflows (check-models.yml, sync-toolnames.yml) use the Copilot CLI with prompts stored under .github/workflows/prompts/. These prompts were inaccessible from VS Code Chat.

Changes

  • Moved prompt content to .github/prompts/ as VS Code-compatible prompt files:
    • sync-models.prompt.md — exact content from sync-models-prompt.md, with VS Code agent-mode frontmatter added
    • sync-toolnames.prompt.md — exact content from sync-toolnames-prompt.md, with VS Code agent-mode frontmatter added
  • Updated check-models.yml to reference .github/prompts/sync-models.prompt.md in both the paths: trigger and the runtime cat command
  • Updated sync-toolnames.yml to reference .github/prompts/sync-toolnames.prompt.md in both the paths: trigger and the runtime cat command

Both files use the VS Code prompt frontmatter format (mode: 'agent'), making them available as #sync-models and #sync-toolnames in VS Code Copilot Chat while remaining the single source of truth used by the scheduled workflows.

Original prompt

We hebben verschillende workflow's die de Copilot CLI gebruiken om een prompt af te trappen op een schema. Zoek deze prompt op en converteer deze naar een .prompt.md file in de .github folder zodat we kunnen hergebruiken vanuit de visual studio code UI.


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Create .prompt.md file for reuse in Visual Studio Code feat: add .prompt.md files to expose workflow prompts in VS Code UI Mar 17, 2026
Copilot AI requested a review from rajbos March 17, 2026 21:37
@rajbos
Copy link
Owner

rajbos commented Mar 18, 2026

@copilot I wanted to have the prompts from the .github/workflows/prompts directory as prompt file, instead of making new ones. Implement the existing prompts.

…iles

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot I wanted to have the prompts from the .github/workflows/prompts directory as prompt file, instead of making new ones. Implement the existing prompts.

Updated in dd35205. Both .prompt.md files now use the exact content from .github/workflows/prompts/sync-models-prompt.md and .github/workflows/prompts/sync-toolnames-prompt.md respectively, with only the VS Code frontmatter (mode, description, tools) added at the top.

@rajbos
Copy link
Owner

rajbos commented Mar 18, 2026

@copilot the workflows that called the old prompt files to use them, now also need their paths updated to pick up the new location of the files ofc. Find all workflows that reference them and update them.

…tory

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 18, 2026

@copilot the workflows that called the old prompt files to use them, now also need their paths updated to pick up the new location of the files ofc. Find all workflows that reference...

Done in a3736b6. Both check-models.yml and sync-toolnames.yml now reference .github/prompts/sync-models.prompt.md and .github/prompts/sync-toolnames.prompt.md respectively — in both the paths: trigger filter and the cat command that reads the prompt at runtime.

Copilot AI changed the title feat: add .prompt.md files to expose workflow prompts in VS Code UI feat: move workflow prompts to .github/prompts/ as VS Code-compatible prompt files Mar 18, 2026
@rajbos rajbos marked this pull request as ready for review March 18, 2026 20:54
@rajbos rajbos enabled auto-merge March 18, 2026 20:54
@rajbos rajbos merged commit 3eca5cf into main Mar 18, 2026
16 of 18 checks passed
@rajbos rajbos deleted the copilot/convert-prompt-to-md-file branch March 18, 2026 20:56
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.

2 participants