Draft
Conversation
Adds a new GitHub Agentic Workflow that triggers on pull_request events (opened, synchronize, reopened) to detect potential duplicate agents, instructions, skills, and workflows being contributed via PR. When relevant files are changed, the agent compares them against existing resources and posts a comment on the PR listing any potential duplicates with context and a suggestion. If no relevant files are changed or no duplicates are found, it calls noop. - .github/workflows/pr-duplicate-check.md: source workflow (gh-aw format) - .github/workflows/pr-duplicate-check.lock.yml: compiled workflow Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
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.
Summary
Adds a new GitHub Agentic Workflow (
pr-duplicate-check) that proactively checks for potential duplicate resources when a PR is opened or updated, addressing the need described in the problem statement.What it does
When a pull request is opened, synchronized, or reopened, the workflow:
agents/,instructions/,skills/, orworkflows/directoriesduplicate-resource-detectorworkflownoopif no relevant files changed or no duplicates were foundFiles added
.github/workflows/pr-duplicate-check.md— gh-aw source workflow with instructions for the AI agent.github/workflows/pr-duplicate-check.lock.yml— compiled workflow (adapted fromduplicate-resource-detector.lock.yml) with:pull_requesttrigger (opened, synchronize, reopened)add-commentsafe output (posts/updates a single PR comment)repos+pull_requestsGitHub MCP toolsetspull-requests: writepermission for commentingRelationship to existing weekly workflow
The weekly
duplicate-resource-detectordoes a full repo scan and creates a GitHub Issue. This new workflow is complementary — it's scoped to just the files in the current PR and comments directly on that PR, giving contributors immediate feedback at contribution time.