Repository navigation
Pattern miner: Add responsive-docs-tester curated archetype - #316
Merged
pelikhan merged 1 commit intoOct 5, 2026
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
pelikhan
marked this pull request as ready for review
October 5, 2026 21:51
pelikhan
deleted the
pattern-miner/responsive-docs-tester-3989b3a630a05516
branch
October 5, 2026 21:51
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.
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
.github/copilot-instructions.mdMined pattern: Responsive Docs Tester
Upstream repos mined:
githubnext/agentics(workflow files),github/gh-aw(.github/aw/*.mdreference docs). Evidence:/tmp/gh-aw/data/upstream/githubnext-agentics/files/workflows/accessibility-review.md/tmp/gh-aw/data/upstream/githubnext-agentics/files/workflows/multi-device-docs-tester.mdRecurring pattern (2 upstream workflows): Both are
schedule-triggered workflows that (1) build and start a web app/docs site locally in a pre-step, (2) polllocalhostuntil the server is ready, (3) driveplaywright-cliin bash (not an installed npm Playwright dependency) across multiple device viewports, and (4) report layout/accessibility/interaction findings as GitHub issues or discussions, cleaning up the server afterward.accessibility-review.mdeven documents in its own prompt that it should propose the build/serve commands as a one-time setup edit if they are still placeholders.multi-device-docs-tester.mdis the more complete, generalized implementation (configurabledevices,docs_dir,build_command,serve_command,server_portinputs) and explicitly names mobile/tablet/desktop viewport sizes, navigation/overflow/image/accessibility checks, andupload-assetfor failure screenshots.Why the existing library didn't cover it: The existing
accessibility-expertarchetype ispull_request-triggered and reviews diffs against a live preview — it does not cover the scheduled, build-and-serve-locally-then-multi-viewport-sweep shape, device-size matrix, or the explicit playwright-cli-not-npm-package constraint. No other archetype (community-digest,link-checker,performance-nut) combines scheduled triggers with Playwright-driven multi-viewport testing of a locally built site.What changed in
patterns/:patterns/archetypes/responsive-docs-tester.json(curated:success_rate: null,count: 0,top_repos: []), covering the build-and-serve pre-step, named viewport set, playwright-cli-only constraint, failure-only screenshot capture viaupload-asset, server cleanup, andnoop/create-issueduplicate-prevention tips."responsive-docs-tester"toarchetypesinpatterns/manifest.json.responsive-docs-testerruntime rendering entry topatterns/workflow-generation.json(icondevice-desktop,bash/browser/networkcapabilities, Playwright/tools-imports instructions, phase-based prompt body)..github/copilot-instructions.md: archetype count 31 → 32 and addedresponsive-docs-testerto the curated-archetype list, to keep that doc in sync with the manifest (validated bytest/copilot-instructions.test.js).Validation:
npm test: 19 test files, 327 tests passed (includestest/copilot-instructions.test.jsandtest/patterns.test.js, which validate the new manifest/archetype entries).npm run build: succeeded;dist/patterns/archetypes/responsive-docs-tester.jsonis emitted alongside the updatedmanifest.jsonandworkflow-generation.json.Candidates deliberately left out:
assign-to-agentsafe output (seen inissue-monster.md) — only one upstream workflow demonstrates it; no corroborating doc recommends it as a standalone pattern beyond whatbacklog-drip's existing tip already covers.gollumtrigger / wiki-sync workflows (agentic-wiki-writer.md,agentic-wiki-coder.md) — only one upstream pair, and no second independent workflow or doc section recommends this combination; insufficient corroboration per the two-workflow rule.sub-issue-closer.md) — only one upstream example; the existingissue-hierarchy-managerarchetype already covers the general sub-issue organization pattern it overlaps with.playwright+cache-memorybaselines) — well documented invisual-regression.md, but no upstream workflow file in the scanned set demonstrates it, so it doesn't meet the "workflow evidence" bar even though it has doc support; left for a future mining run if an upstream workflow example appears.