[UPDATE PROMPTS] Migrate deprecated mode: agent frontmatter to description#37
Open
[UPDATE PROMPTS] Migrate deprecated mode: agent frontmatter to description#37
mode: agent frontmatter to description#37Conversation
…pt files Replace deprecated `mode: agent` / `mode: 'agent'` YAML frontmatter with `description` field in all 58 .prompt.md files. Also update instruction files that referenced the old format, and fix anomalous ````prompt` prefix in codeql_execute_query-server2.prompt.md. Agent-Logs-Url: https://github.com/advanced-security/codeql-development-template/sessions/e77050f9-eef7-468c-a4fd-67ab816ab889 Co-authored-by: felickz <[email protected]>
Copilot
AI
changed the title
[WIP] Migrate prompt files to lightweight, single-task prompts
[UPDATE PROMPTS] Migrate deprecated Mar 25, 2026
mode: agent frontmatter to description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Prompt Update
🎯 Changes
What Changed
Replaced deprecated
mode: agentYAML frontmatter withdescriptionfield across all 58.prompt.mdfiles:.github/prompts/(14 files) — development guide descriptionsresources/cli/codeql/(22 files) — CLI command reference descriptionsresources/cli/qlt/(4 files) — QLT command reference descriptionslanguages/*/tools/dev/(18 files) — language-specific dev guide descriptions.github/instructions/(2 files) — updated instructions that referenced the old formatAlso fixed an erroneous
````promptprefix oncodeql_execute_query-server2.prompt.md.Before:
After:
Why This Change
VS Code deprecated the
modefrontmatter attribute. It now emits: "The 'mode' attribute has been deprecated. Please rename it to 'agent'." Rather than blindly renaming toagent: agent, the issue asks to migrate to lightweight prompts with properdescriptionmetadata — which is the recommended frontmatter for resource/reference files that don't need to force a specific agent mode.Issues Addressed
descriptionmetadata for better discoverability in the Copilot prompt picker🔍 Impact
Previous Behavior
VS Code flags every
.prompt.mdfile with a deprecation lint warning onmode: agent. No description metadata available in prompt selection UI.New Behavior
Clean frontmatter with contextual descriptions. Each prompt file is self-describing via its
descriptionfield.🧪 Validation
Test Scenarios
mode: agentreferences across all.prompt.mdand.instructions.mdfiles.prompt.mdfiles contain validdescriptionfrontmatter📋 Checklist
🔗 References
modeNote: This update maintains hierarchy integrity and follows prompt system best practices.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
code.visualstudio.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.