Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot update prompt to skip if summary file already exists |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Updated the prompt to skip PDFs that already have existing
Changes in commit 9c7b74e. |
|
@copilot change the way the workflow works: It is a command workflow "summarize" that takes URLs to resources to analyzes and potentially a query. Also support workflow_dispatch with url, query inputs The agent should identify the resources, use markitdown to convert them to markdown that analyze them to respond to the query. If kissing, the query is "summarize in the context of this repository" |
…spatch Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Changed the workflow to a command-based resource summarizer: Command Trigger:
Workflow Dispatch: Manual trigger with inputs
How it works:
Changes in commit 0bf3e7d. |
|
@copilot prompt store results if cache-memory tool as well. |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Added cache-memory tool and updated the prompt to store analysis results: Cache-Memory Configuration:
Prompt Updates:
Benefits:
Changes in commit 7c2a8f5. |
This PR adds support for Microsoft's markitdown MCP server and implements a command-based resource summarizer workflow with persistent storage across runs.
Changes
Shared MCP Configuration
Created
.github/workflows/shared/markitdown-mcp.md- a reusable configuration for the markitdown MCP server that can be imported into any workflow:This uses a Docker container-based transport for reliable execution and follows the MCP stdio pattern. The shared configuration promotes DRY principles and consistency across workflows.
Resource Summarizer Workflow
Created
.github/workflows/pdf-summary.md- a command-based agentic workflow that analyzes and summarizes resources from URLs:Triggers:
/summarizein issues and commentsurlandqueryinputsHow it works:
Key features:
safe-outputs.add-commentpattern with minimal permissions (contents: read,actions: read)Technical Details
The markitdown MCP server is configured in the compiled workflow as:
{ "mcpServers": { "markitdown": { "type": "local", "command": "docker", "tools": ["*"], "args": ["run", "--rm", "-i", "ghcr.io/microsoft/markitdown"] } } }Cache-memory is enabled to provide persistent file storage at
/tmp/cache-memory/for storing analysis results as structured JSON files.The workflow uses the
importsfield in the frontmatter to merge the shared MCP configuration, demonstrating the reusability pattern for MCP server definitions across multiple workflows.Example Usage
Using the command trigger:
Or with a specific query:
Using workflow dispatch:
urlfield (comma-separated for multiple)The workflow will:
This makes external resources more accessible by converting them to markdown, providing intelligent analysis within the repository context, and building a persistent knowledge base of analyzed resources.
Testing
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.