PixelPilot: Instructions file for GitHub Copilot

vscode/.github/instructions/uiux-performance-ci.instructions.md

PixelPilot uiux-performance-ci.instructions.md is an instructions file for GitHub Copilot from dev-lou/PixelPilot. It costs 2,831 tokens per session, scanned A, original, MIT.

A setup for running Lighthouse, Google's website auditing tool, automatically in continuous integration (CI) when code changes are proposed. It checks performance, accessibility, best practices, SEO, and loading metrics against limits.

In plain words
What is it for?
Use it in pull requests to test selected pages, report scores, and fail checks when quality or performance budgets are exceeded.
Why use it?
It catches regressions before a change is merged instead of relying on occasional manual checks.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is dev-lou/PixelPilot's own configuration. It tells GitHub Copilot how to work on PixelPilot 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 PixelPilot configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dev-lou/PixelPilot. 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/dev-lou/PixelPilot/main/vscode/.github/instructions/uiux-performance-ci.instructions.md
Clone the repo
git clone --depth 1 https://github.com/dev-lou/PixelPilot

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 PixelPilot uiux-performance-ci.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-performance-ci.svg)](https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-performance-ci)
Your own site
<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-performance-ci"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-performance-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,831 This file is loaded in full into every session.
When invoked 2,831 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.02831 $0.02831
Opus 5 $0.01416 $0.01416
Sonnet 5 $0.00566 $0.00566
Haiku 4.5 $0.00283 $0.00283

Measured 3d ago against content hash 372e0df0ceb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-performance-ci.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 3d 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.

vscode/.github/instructions/uiux-performance-ci.instructions.md · 424 lines

How it starts

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

Performance CI Skill

Automated Lighthouse performance testing in CI/CD with budget enforcement.


BUDGET THRESHOLDS

Metric Target Fail Threshold
Performance ≥ 90 < 85
Accessibility ≥ 95 < 90
Best Practices ≥ 90 < 85
SEO ≥ 90 < 85
LCP ≤ 2.5s > 4.0s
CLS ≤ 0.1 > 0.25
FID/INP ≤ 100ms > 300ms

LIGHTHOUSE CI CONFIGURATION

.lighthouserc.json

{
  "ci": {
    "collect": {
      "numberOfRuns": 3,
      "url": [
        "http://localhost:3000/",
        "http://localhost:3000/about",
        "http://localhost:3000/contact"
      ],
      "startServerCommand": "npm run preview",
      "startServerReadyPattern": "ready",
      "startServerReadyTimeout": 30000
    },
    "assert": {
      "preset": "lighthouse:recommended",
      "assertions": {
        "categories:performance": ["error", { "minScore": 0.9 }],
        "categories:accessibility": ["error", { "minScore": 0.95 }],
        "categories:best-practices": ["error", { "minScore": 0.9 }],
        "categories:seo": ["error", { "minScore": 0.9 }],
        
        "largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
        "cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
        "total-blocking-time": ["error", { "maxNumericValue": 300 }],
        "first-contentful-paint": ["warn", { "maxNumericValue": 1800 }],
        "interactive": ["warn", { "maxNumericValue": 3900 }],
        "speed-index": ["warn", { "maxNumericValue": 3400 }],
        
        "uses-responsive-images": "warn",
        "uses-optimized-images": "warn",
        "uses-webp-images": "warn",
        "render-blocking-resources": "warn",
        "unused-css-rules": "warn",
        "unused-javascript": "warn"
      }
    },
    "upload": {
      "target": "temporary-public-storage"
    }
  }
}

Alternative: Per-Environment Config

{
  "ci": {
    "collect": {
      "numberOfRuns": 3,
      "settings": {
        "preset": "desktop",
        "throttling": {
          "rttMs": 40,
          "throughputKbps": 10240,
          "cpuSlowdownMultiplier": 1
        }
      }
    },
    "assert": {
      "assertions": {
        "categories:performance": ["error", { "minScore": 0.9 }],
        "categories:accessibility": ["error", { "minScore": 0.95 }]
      }
    }
  }
}

Read the full file on GitHub · 424 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. 3d ago First seen · 424 lines · 2,831 tokens per session scan A 372e0df0ceb1

Subscribe to this mod's changes

PixelPilot uiux-performance-ci.instructions.md is an instructions file published in the GitHub repository dev-lou/PixelPilot (2 stars, last pushed 5mo ago), licensed MIT. It adds 2,831 tokens to every session, about $0.0142 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-09-03.

Related

Other instructions, from other repositories