PixelPilot: Instructions file for GitHub Copilot

vscode/.github/instructions/uiux-social-share.instructions.md

PixelPilot uiux-social-share.instructions.md is an instructions file for GitHub Copilot from dev-lou/PixelPilot. It costs 3,934 tokens per session, scanned A, original, MIT.

A guide for adding page-sharing controls with the browser's built-in Web Share API and fallback pop-ups for social networks, messaging, and email.

In plain words
What is it for?
Use it to build share buttons for Twitter, LinkedIn, Facebook, WhatsApp, email, and copying a link.
Why use it?
It gives users a way to share content on devices that support native sharing and on desktop browsers that do not.

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-social-share.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-social-share.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-social-share.svg)](https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-social-share)
Your own site
<a href="https://agentmods.dev/instructions/dev-lou/pixelpilot/uiux-social-share"><img src="https://agentmods.dev/badge/instructions/dev-lou/pixelpilot/uiux-social-share.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,934 This file is loaded in full into every session.
When invoked 3,934 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.03934 $0.03934
Opus 5 $0.01967 $0.01967
Sonnet 5 $0.00787 $0.00787
Haiku 4.5 $0.00393 $0.00393

Measured 3d ago against content hash 181cbec16e6c, 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-social-share.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-social-share.instructions.md · 640 lines

How it starts

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

UI/UX Social Share Buttons

Share content using native Web Share API with popup fallbacks. No third-party libraries, token-aware styling.


OVERVIEW

This skill covers:

  1. Native Web Share API (mobile)
  2. Platform-specific popup fallbacks
  3. Share button component
  4. Copy link option
  5. Token-aware styling
  6. Analytics tracking

HTML STRUCTURE

<div class="share-buttons">
  <span class="share-buttons__label">Share:</span>
  
  <!-- Native share (mobile) -->
  <button 
    class="share-btn share-btn--native" 
    id="native-share"
    aria-label="Share this page"
    hidden
  >
    <i data-lucide="share"></i>
    <span>Share</span>
  </button>
  
  <!-- Individual platforms (desktop fallback) -->
  <div class="share-buttons__platforms" id="share-platforms">
    <button 
      class="share-btn share-btn--twitter"
      data-platform="twitter"
      aria-label="Share on Twitter"
    >
      <i data-lucide="twitter"></i>
    </button>
    
    <button 
      class="share-btn share-btn--linkedin"
      data-platform="linkedin"
      aria-label="Share on LinkedIn"
    >
      <i data-lucide="linkedin"></i>
    </button>
    
    <button 
      class="share-btn share-btn--facebook"
      data-platform="facebook"
      aria-label="Share on Facebook"
    >
      <i data-lucide="facebook"></i>
    </button>
    
    <button 
      class="share-btn share-btn--whatsapp"
      data-platform="whatsapp"
      aria-label="Share on WhatsApp"
    >
      <i data-lucide="message-circle"></i>
    </button>
    
    <button 
      class="share-btn share-btn--email"
      data-platform="email"
      aria-label="Share via Email"
    >
      <i data-lucide="mail"></i>
    </button>
    
    <button 
      class="share-btn share-btn--copy"
      data-platform="copy"
      aria-label="Copy link"
    >
      <i data-lucide="link"></i>
    </button>
  </div>
</div>

CSS STYLES

.share-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.share-buttons__label {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

.share-buttons__platforms {
  display: flex;
  gap: var(--space-2);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--dur-micro), background var(--dur-micro);
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn:active {
  transform: translateY(0);
}

.share-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Native share button */
.share-btn--native {
  width: auto;
  padding: var(--space-2) var(--space-4);
  gap: var(--space-2);
  background: var(--accent);
}

.share-btn--native:hover {
  background: var(--accent-hover);
}

/* Platform colors — using brand tokens from uiux-tokens.md (v10.1) */
.share-btn--twitter {
  background: var(--brand-twitter);
}

.share-btn--twitter:hover {
  background: var(--brand-twitter-hover);
}

.share-btn--linkedin {
  background: var(--brand-linkedin);
}

.share-btn--linkedin:hover {
  background: var(--brand-linkedin-hover);
}

.share-btn--facebook {
  background: var(--brand-facebook);
}

.share-btn--facebook:hover {
  background: var(--brand-facebook-hover);
}

.share-btn--whatsapp {
  background: var(--brand-whatsapp);
}

.share-btn--whatsapp:hover {
  background: var(--brand-whatsapp-hover);
}

.share-btn--email {
  background: var(--muted);
}

.share-btn--email:hover {
  background: var(--text);
}

.share-btn--copy {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.share-btn--copy:hover {
  background: var(--bg-hover);
}

.share-btn--copy.copied {
  background: var(--color-success);
  color: white;
  border-color: var(--color-success);
}

/* Icon sizing */
.share-btn svg,
.share-btn i {
  width: 18px;
  height: 18px;
}

/* Tooltip */
.share-btn[data-tooltip] {
  position: relative;
}

.share-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--text);
  color: var(--bg);
  font-size: var(--text-xs);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-micro);
}

.share-btn[data-tooltip]:hover::after {
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .share-btn:hover {
    transform: none;
  }
}

Read the full file on GitHub · 640 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 · 640 lines · 3,934 tokens per session scan A 181cbec16e6c

Subscribe to this mod's changes

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