websight copilot-instructions.md

websight copilot-instructions.md is an instructions file for GitHub Copilot from h34tsink/websight. It costs 831 tokens per session, scanned A, original, MIT.

Instructions for using WebSight, a tool that examines web pages visually and interacts with their controls.

In plain words
What is it for?
Analyzing page structure and styles, saving visual baselines, comparing screenshots, and testing clicks, forms, hover states, scrolling, and keyboard navigation.
Why use it?
They give an agent a repeatable way to inspect a page before editing it and check whether visual changes match expectations afterward.

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/h34tsink/websight/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/h34tsink/websight

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 websight copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/h34tsink/websight/copilot-instructions.svg)](https://agentmods.dev/instructions/h34tsink/websight/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/h34tsink/websight/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/h34tsink/websight/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 831 This file is loaded in full into every session.
When invoked 831 The same file — it is already loaded in full.
Security scan A 0 findings. 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 $0.00831 $0.00831
Opus 5 $0.00415 $0.00415
Sonnet 5 $0.00166 $0.00166
Haiku 4.5 $0.00083 $0.00083

Measured 2d ago against content hash 3d65c6d2dd98, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

websight 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 2d 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 · 94 lines

How it starts

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

WebSight - Visual Analysis & Interaction Tools

This workspace contains WebSight, a visual analysis and page interaction tool for AI-assisted UI work.

Quick Reference

Action Purpose When to Use
look Analyze page structure, theme, CSS vars, interactive elements First step - understand the page
baseline Save current visual state Before making any code changes
diff Compare current vs baseline, get % pixel difference After code changes to verify
click Click buttons, links, toggles Testing interactions
type Enter text into inputs/textareas Form testing
select Choose dropdown options Form testing
hover Hover over elements Test hover states
scroll Scroll page (up/down/top/bottom) Navigate page
press Press keyboard keys (Enter, Escape, Tab) Keyboard navigation

WORKFLOW: Visual Changes

When user says "use websight" for ANY visual change:

1. look    → Understand current state (CSS vars, sections, theme)
2. baseline → Save before state
3. [edit]  → Make code changes
4. diff    → Verify changes (check % difference)
5. [iterate if needed]

WORKFLOW: Interaction Testing

When user wants to test page interactions:

1. look    → Get list of interactive elements with testIds
2. click/type/select/hover → Interact using testId or element text
3. look    → Verify state changed

Targeting Elements

WebSight finds elements in this priority order:

  1. data-testid - click("btn-save") finds [data-testid="btn-save"]
  2. Accessible name - click("Submit") finds button with text "Submit"
  3. CSS selector - click("#my-button") or click(".submit-btn")

Pro tip: Use short testIds without prefixes. field-name not [data-testid="field-name"]

Available MCP Tools

websight_look / websight(action="look")

Returns: CSS variables, theme colors, sections, landmarks, interactive elements with testIds

websight_baseline / websight(action="baseline")

Saves: Screenshot + snapshot.json for comparison

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

Subscribe to this mod's changes

websight copilot-instructions.md is an instructions file published in the GitHub repository h34tsink/websight (0 stars, last pushed 6mo ago), licensed MIT. It adds 831 tokens to every session, about $0.0042 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-31.

Related

Other instructions, from other repositories