Add create-shared-agentic-workflow prompt and DeepWiki MCP integration#1303
Merged
Add create-shared-agentic-workflow prompt and DeepWiki MCP integration#1303
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
reviewed
Oct 7, 2025
|
|
||
| ### Read-Only Tool Patterns | ||
|
|
||
| **GitHub Read-Only**: |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add shared agentic workflow for MCP server using Docker
Add create-shared-agentic-workflow prompt and DeepWiki MCP integration
Oct 7, 2025
- Introduced a new workflow to generate changeset files when a pull request is marked as ready for review. - The workflow analyzes the PR title, description, and changes to determine the package name and change type (major, minor, patch). - Generates a properly formatted changeset file in the `.changeset/` directory and commits it to the PR branch. refactor: update ast-grep installation method in workflows - Replaced manual installation of ast-grep with npm installation in both go-pattern-detector.lock.yml and shared/ast-grep.md. fix: ensure environment variables in MCP configs are sorted alphabetically - Modified the MCP config rendering logic to sort environment variables and headers alphabetically. - Added a test to verify that environment variables are correctly sorted in the generated YAML output.
Copilot stopped work on behalf of
pelikhan due to an error
October 7, 2025 14:00
pelikhan
reviewed
Oct 7, 2025
| } | ||
|
|
||
| // ensureSharedAgenticWorkflowPrompt ensures that .github/prompts/create-shared-agentic-workflow.prompt.md contains the shared workflow creation prompt | ||
| func ensureSharedAgenticWorkflowPrompt(verbose bool, skipInstructions bool) error { |
Collaborator
There was a problem hiding this comment.
@copilot refactor helper function to create prompts from resource and apply to create-agentic-workflow and this file. Move helper to copilot-prompts.go
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot stopped work on behalf of
pelikhan due to an error
October 7, 2025 14:11
…-agentic-workflow
…-agentic-workflow
Collaborator
|
@copilot finish refactoring |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Refactoring complete. Created |
pelikhan
approved these changes
Oct 7, 2025
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.
Create Shared Agentic Workflow Prompt and DeepWiki Integration
This PR adds a new GitHub Copilot prompt file (
/create-shared-agentic-workflow) that teaches best practices for wrapping MCP servers as shared agentic workflows, and applies it by creating a DeepWiki shared workflow component.Completed Tasks
/create-shared-agentic-workflowprompt file inpkg/cli/templates/pkg/cli/commands.gousinggo:embedensureSharedAgenticWorkflowPromptfunction (similar toensureAgenticWorkflowPrompt).github/workflows/shared/deepwiki-mcp.mdmake agent-finishbefore final commitChanges
New Prompt Template:
pkg/cli/templates/create-shared-agentic-workflow.prompt.mdGo Code Updates:
sharedAgenticWorkflowPromptTemplateembed inpkg/cli/commands.gopkg/cli/copilot-prompts.gowithensurePromptFromTemplatehelper functionensureAgenticWorkflowPromptandensureSharedAgenticWorkflowPromptto use the helpercompile_command.goto call the new functioninit.goto call the new functionDeepWiki Integration:
.github/workflows/shared/deepwiki-mcp.mdwith read-only tools.github/workflows/scout.mdto import DeepWikiTesting
.github/prompts/Original prompt
💡 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.