Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 2, 2025

Conversion Plan: Custom Agents to Prompt Files

  • Analyze current agent files in .github/agents/ directory
  • Create .github/prompts/ directory structure
  • Convert each agent file (.md) to prompt file format (.prompt.md):
    • create-agentic-workflow.md → create-agentic-workflow.prompt.md
    • setup-agentic-workflows.md → setup-agentic-workflows.prompt.md
    • debug-agentic-workflow.md → debug-agentic-workflow.prompt.md
    • create-shared-agentic-workflow.md → create-shared-agentic-workflow.prompt.md
    • All other embedded agents converted
  • Update init command to generate prompt files instead of agent files:
    • Modify ensureAgentFromTemplate to ensurePromptFromTemplate
    • Update directory from .github/agents/ to .github/prompts/
    • Add .prompt.md extension to generated files
    • Add code to delete old agent files after creating prompts
  • Update template files in pkg/cli/templates/:
    • Convert template format to prompt file format with proper frontmatter
    • Ensure mode: agent frontmatter is present
  • Update tests:
    • Modify tests to expect prompt files instead of agent files
    • Update test assertions for new file locations
  • Run full test suite and fix any failures
  • Update documentation to reference prompts instead of agents
  • Manual verification with CLI
  • Fix Makefile to sync prompt templates
  • Clarify documentation about prompt files vs custom agents

Summary

Successfully converted all embedded custom agents from .github/agents/*.md to .github/prompts/*.prompt.md format:

  • Init command: Now generates prompt files instead of agent files
  • Template files: All templates updated with mode: agent frontmatter
  • Cleanup: Old agent files automatically deleted when creating prompts
  • Tests: All unit tests updated and passing
  • Documentation: Updated to reference prompts and slash commands instead of /agent selection
  • Manual verification: Tested with gh aw init command, confirms proper file creation
  • Makefile: Updated to sync prompt templates from .github/prompts/
  • Glossary: Added Prompt Files entry and clarified Custom Agents entry to distinguish between:
    • Prompt files (.github/prompts/*.prompt.md) for Copilot Chat slash commands
    • Agent files (.github/agents/*.md) for workflow imports via imports field
    • Instruction files (.github/copilot/instructions/) for path-specific Copilot instructions
Original prompt

Convert all embedded custom agents (.github/agents/.md) to the prompt file format (.github/prompts/.prompt.md).

update init command to generate prompt file
add code in init to delete old agent file
update docs to notify that we are using prompts now


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits December 2, 2025 23:29
- Create new prompt template files (.prompt.md) with mode: agent frontmatter
- Update init command to generate prompts in .github/prompts/ directory
- Add cleanup logic to remove old agent files when creating prompts
- Update all test files to expect prompt files instead of agent files
- Update command help text and success messages
- All unit tests passing

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Remove all agent files from .github/agents/
- Create prompt files in .github/prompts/ with mode: agent frontmatter
- Update documentation to reference prompts instead of custom agents
- Update all references from /agent to slash commands like /create-agentic-workflow
- Documentation now explains prompt files instead of custom agent files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Update sync-templates target to copy from .github/prompts/ instead of .github/agents/
- Add debug-agentic-workflow.prompt.md to sync list
- Remove old agent template files from pkg/cli/templates/

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Convert embedded custom agents to prompt file format Convert embedded custom agents to prompt file format Dec 2, 2025
Copilot AI requested a review from pelikhan December 2, 2025 23:56
@pelikhan
Copy link
Contributor

pelikhan commented Dec 3, 2025

@copilot reference to the agent /agent in the cli and docs and update to using prompt files.

- Update custom-agents.md to mention built-in prompts from gh aw init
- Add Prompt Files entry to glossary explaining slash command usage
- Update Custom Agents glossary entry to distinguish between prompt files, agent files, and instruction files
- Clarify that prompt files are for Copilot Chat slash commands while agent files are for workflow imports

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

Copilot AI commented Dec 3, 2025

@copilot reference to the agent /agent in the cli and docs and update to using prompt files.

Updated documentation to clarify the distinction between prompt files and custom agents:

  • Added "Prompt Files" entry to glossary explaining they're used for Copilot Chat slash commands (7489baf)
  • Updated "Custom Agents" glossary entry to distinguish between:
    • Prompt files (.github/prompts/*.prompt.md) - for interactive Copilot Chat commands
    • Agent files (.github/agents/*.md) - for workflow imports via imports field
    • Instruction files (.github/copilot/instructions/) - for path-specific Copilot behavior
  • Updated custom-agents.md reference to mention "Built-in Prompts" created by gh aw init

All previous commits already updated docs to change /agent command references to direct slash commands like /create-agentic-workflow.

@pelikhan pelikhan marked this pull request as ready for review December 3, 2025 00:23
@pelikhan pelikhan merged commit 00e3f5f into main Dec 3, 2025
4 checks passed
@pelikhan pelikhan deleted the copilot/convert-agents-to-prompt-format branch December 3, 2025 00:24
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