Pattern miner: Add contribution-guidelines-checker archetype - #250
Merged
pelikhan merged 1 commit intoSep 2, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
pelikhan
marked this pull request as ready for review
September 2, 2026 23:31
pelikhan
deleted the
pattern-miner/contribution-guidelines-checker-a115aa370cc00236
branch
September 2, 2026 23:31
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.
Mined pattern: Contribution Guidelines Checker
Upstream repositories and files mined:
githubnext/agentics→workflows/contribution-guidelines-checker.mdgithubnext/agentics→workflows/contribution-check.mdgithub/gh-aw→.github/aw/subagents.md(inline sub-agent dispatch pattern, corroborating evidence)Recurring pattern found (2 upstream workflows):
Both upstream workflows check incoming pull requests against a repository's contribution guidelines (
CONTRIBUTING.mdand similar docs) and take a binary label-or-comment action:contribution-guidelines-checker.mdtriggers onpull_request: [opened, synchronize], searchesCONTRIBUTING.md→.github/CONTRIBUTING.md→docs/CONTRIBUTING.md→ README sections in order, then applies thecontribution-readylabel (max 1) or leaves one comment (max 1). It explicitly recommends a small model since it runs on every PR event.contribution-check.mdperforms the same guideline evaluation at scale by delegating each PR to an inlinecontribution-checkersub-agent (documented generally in.github/aw/subagents.md) and compiling results, since the target repo is external and has high PR volume.Both workflows share the same observable shape: guideline discovery order, single-outcome labeling/commenting, and explicit DO NOT-merge/approve/close constraints — a distinct archetype from the existing
pr-review(code correctness/security review) andcontent-moderation(spam/policy review of arbitrary content) archetypes.Why the existing library did not already cover it:
pr-reviewfocuses on code correctness, security, and inline diff feedback — not documented process/contribution-guideline compliance.content-moderationnever labels PRsready/applies a binary compliance outcome tied to a specific document (CONTRIBUTING.md); it usesissues+pull-requestssafe outputs for spam/policy review of arbitrary content, not a single-label-or-comment guideline check.CONTRIBUTING.mddiscovery order or the small-model-for-high-frequency-PR-events tip.What changed in
patterns/:patterns/archetypes/contribution-guidelines-checker.json(curated:success_rate: null,count: 0,top_repos: [])."contribution-guidelines-checker"toarchetypesinpatterns/manifest.json.icon,capabilities,permissions,github_toolsets,body) topatterns/workflow-generation.json.Validation results:
npm test: 18 test files, 318 tests passed.npm run build: succeeded, new archetype JSON emitted todist/patterns/archetypes/contribution-guidelines-checker.json.Candidates deliberately left out:
contribution-check.md,.github/aw/subagents.md,.github/aw/multi-agent-research.md): only one upstream workflow demonstrates full sub-agent dispatch end-to-end; folded its guideline-discovery-order tip into this archetype instead of creating a separate archetype from a single example.issue-hierarchy-managerarchetype.code-health-auditorarchetype's "Assign findings to copilot" tip.