PixelPilot uiux-a11y-ci.instructions.md

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

A GitHub Actions workflow for checking whether a website can be used by people with disabilities. It uses axe-core to scan a preview or staging URL for accessibility problems.

In plain words
What is it for?
Use it to build the application, start a preview server, and run automated accessibility scans in GitHub Actions.
Why use it?
It catches serious accessibility issues during pull requests or deployments, before they reach users. Critical and serious findings fail the check, while moderate and minor findings produce warnings.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dev-lou/pixelpilot/uiux-a11y-ci
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-a11y-ci.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-a11y-ci.svg)](https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-a11y-ci)
Your own site
<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-a11y-ci"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-a11y-ci.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,925 This file is loaded in full into every session.
When invoked 2,925 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
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.02925 $0.02925
Opus 5 $0.01463 $0.01463
Sonnet 5 $0.00585 $0.00585
Haiku 4.5 $0.00293 $0.00293

Measured 5d ago against content hash 798014e29fea, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

PixelPilot uiux-a11y-ci.instructions.md scanned grade A with 1 finding 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 5d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

const { execSync } = require('child_process');
vscode/.github/instructions/uiux-a11y-ci.instructions.md · 463 lines

How it starts

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

Accessibility CI Skill

Automated accessibility testing in CI/CD pipeline using axe-core.


CORE PRINCIPLE

Rule: Every PR must pass accessibility checks. Fail on any Critical or Serious violation. Warn on Moderate/Minor.


GITHUB ACTION WORKFLOW

Basic Setup

# .github/workflows/a11y.yml
name: Accessibility Tests

on:
  pull_request:
    branches: [main, develop]
  push:
    branches: [main]
  # Manual trigger
  workflow_dispatch:
    inputs:
      url:
        description: 'URL to test'
        required: true
        type: string

jobs:
  a11y:
    runs-on: ubuntu-latest
    name: axe-core accessibility scan
    
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: '20'
          cache: 'npm'

      - name: Install dependencies
        run: npm ci

      - name: Build application
        run: npm run build

      - name: Start server
        run: |
          npm run preview &
          sleep 5
        env:
          PORT: 3000

      - name: Wait for server
        run: npx wait-on http://localhost:3000 --timeout 60000

      - name: Run axe-core tests
        id: axe
        run: |
          npx @axe-core/cli http://localhost:3000 \
            --exit \
            --tags wcag2a,wcag2aa,wcag21a,wcag21aa \
            --save results.json
        continue-on-error: true

      - name: Process results
        id: results
        run: |
          node << 'EOF'
          const fs = require('fs');
          const results = JSON.parse(fs.readFileSync('results.json', 'utf8'));
          
          let critical = 0, serious = 0, moderate = 0, minor = 0;
          const violations = [];
          
          results.forEach(page => {
            page.violations?.forEach(v => {
              const count = v.nodes.length;
              switch(v.impact) {
                case 'critical': critical += count; break;
                case 'serious': serious += count; break;
                case 'moderate': moderate += count; break;
                case 'minor': minor += count; break;
              }
              violations.push({
                impact: v.impact,
                description: v.description,
                help: v.help,
                helpUrl: v.helpUrl,
                count
              });
            });
          });
          
          // Generate summary
          const summary = `
          ## Accessibility Report
          
          | Severity | Count |
          |----------|-------|
          | 🔴 Critical | ${critical} |
          | 🟠 Serious | ${serious} |
          | 🟡 Moderate | ${moderate} |
          | 🔵 Minor | ${minor} |
          
          ${critical + serious > 0 ? '### ❌ FAILED — Fix critical/serious issues before merging' : '### ✅ PASSED'}
          
          ${violations.length > 0 ? '### Violations\n' + violations.slice(0, 10).map(v => 
            `- **[${v.impact.toUpperCase()}]** ${v.description} (${v.count} occurrences)\n  - ${v.help}\n  - [Learn more](${v.helpUrl})`
          ).join('\n') : ''}
          `;
          
          fs.writeFileSync('summary.md', summary);
          
          // Set outputs
          const core = require('@actions/core');
          core.setOutput('critical', critical);
          core.setOutput('serious', serious);
          core.setOutput('passed', critical + serious === 0);
          
          console.log(summary);
          EOF

      - name: Comment on PR
        if: github.event_name == 'pull_request'
        uses: actions/github-script@v7
        with:
          script: |
            const fs = require('fs');
            const summary = fs.readFileSync('summary.md', 'utf8');
            
            // Find existing comment
            const { data: comments } = await github.rest.issues.listComments({
              owner: context.repo.owner,
              repo: context.repo.repo,
              issue_number: context.issue.number,
            });
            
            const botComment = comments.find(c => 
              c.user.type === 'Bot' && c.body.includes('Accessibility Report')
            );
            
            if (botComment) {
              await github.rest.issues.updateComment({
                owner: context.repo.owner,
                repo: context.repo.repo,
                comment_id: botComment.id,
                body: summary
              });
            } else {
              await github.rest.issues.createComment({
                owner: context.repo.owner,
                repo: context.repo.repo,
                issue_number: context.issue.number,
                body: summary
              });
            }

      - name: Fail on critical/serious
        if: steps.results.outputs.passed == 'false'
        run: |
          echo "❌ Accessibility check failed"
          echo "Critical: ${{ steps.results.outputs.critical }}"
          echo "Serious: ${{ steps.results.outputs.serious }}"
          exit 1

Read the full file on GitHub · 463 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. 5d ago First seen · 463 lines · 2,925 tokens per session scan A 798014e29fea

Subscribe to this mod's changes

PixelPilot uiux-a11y-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,925 tokens to every session, about $0.0146 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.