playwright-agent-mcp-starter: Instructions file for GitHub Copilot

.github/copilot-instructions.md

playwright-agent-mcp-starter copilot-instructions.md is an instructions file for GitHub Copilot from ErkanBarin/playwright-agent-mcp-starter. It costs 529 tokens per session, scanned A, original, MIT.

Repository instructions for generating browser tests with Playwright, a tool for controlling web browsers automatically. They define shared project resources, test structure, accessibility-friendly selectors, fixtures, and test labels.

In plain words
What is it for?
Use them when creating end-to-end tests for user flows such as checkout, especially when the project uses page objects and shared test fixtures.
Why use it?
They keep generated tests consistent with the repository's conventions instead of producing disconnected or fragile test code.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions AGENTS.md.

This is ErkanBarin/playwright-agent-mcp-starter's own configuration. It tells GitHub Copilot how to work on playwright-agent-mcp-starter itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything playwright-agent-mcp-starter configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ErkanBarin/playwright-agent-mcp-starter. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ErkanBarin/playwright-agent-mcp-starter/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/ErkanBarin/playwright-agent-mcp-starter

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for playwright-agent-mcp-starter copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/erkanbarin/playwright-agent-mcp-starter/copilot-instructions.svg)](https://agentmods.dev/instructions/erkanbarin/playwright-agent-mcp-starter/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/erkanbarin/playwright-agent-mcp-starter/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/erkanbarin/playwright-agent-mcp-starter/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 529 This file is loaded in full into every session.
When invoked 529 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00529 $0.00529
Opus 5 $0.00264 $0.00264
Sonnet 5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

Measured 8d ago against content hash 13b04c90b570, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

playwright-agent-mcp-starter copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Copilot Instructions

General

Read and follow the conventions defined in AGENTS.md at the repository root. That file is the single source of truth for coding standards, selector strategy, test structure, and project layout.

Shared AI Workspace

This repository uses a shared AI workspace at /ai. Use the resources there:

  • /ai/skills/ — Reusable skills (e.g., MCP server selection, prompt templates)
  • /ai/agents/ — Agent definitions for specialized tasks
  • /ai/prompts/ — Ready-to-use prompt templates
  • /ai/knowledge/ — Domain knowledge and reference material

Generating Playwright Tests

When generating or suggesting Playwright tests:

  1. Use @playwright/test — import test and expect from @playwright/test
  2. Follow the Page Object Model — interact through page objects in pages/, not raw selectors
  3. Prefer accessibility selectorsgetByRole, getByLabel, getByText over CSS or XPath
  4. Save tests under tests/e2e/ — use descriptive filenames like checkout-flow.spec.ts
  5. Tag tests — add @smoke, @regression, or @api annotations
  6. Use fixtures — extend the base fixture in tests/fixtures/base.fixture.ts
  7. Generate test data — use utils/data-factory.ts, never hard-code values
  8. No waitForTimeout — rely on Playwright auto-waiting and assertion retries
  9. Keep tests deterministic — no shared state, no order dependencies
  10. TypeScript strict mode — proper types, no any

Example Test Skeleton

import { test, expect } from '@playwright/test';

test.describe('Feature Name', () => {
  test('should perform expected behavior @smoke', async ({ page }) => {
    // Arrange
    await page.goto('/feature');

    // Act
    await page.getByRole('button', { name: 'Submit' }).click();

    // Assert
    await expect(page.getByText('Success')).toBeVisible();
  });
});

Code Style

  • Use async/await consistently
  • Prefer const over let
  • Use descriptive test names starting with "should"
  • Group related tests with test.describe
  • One assertion focus per test (multiple related assertions are fine)

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 59 lines · 529 tokens per session scan A 13b04c90b570

Subscribe to this mod's changes

playwright-agent-mcp-starter copilot-instructions.md is an instructions file published in the GitHub repository ErkanBarin/playwright-agent-mcp-starter (43 stars, last pushed 6mo ago), licensed MIT. It adds 529 tokens to every session, about $0.0026 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens