frontend-stack-blueprint copilot-instructions.md

frontend-stack-blueprint copilot-instructions.md is an instructions file for GitHub Copilot from barrosohub/frontend-stack-blueprint. It costs 1,321 tokens per session, scanned A, original, MIT.

A set of GitHub Copilot instructions for projects following a defined frontend technology stack. GitHub Copilot is an AI coding assistant that suggests and writes code.

In plain words
What is it for?
Use it to guide frontend work involving TypeScript, React, Vite, pnpm, Tailwind, forms, databases, or authentication. It also defines when optional tools such as Prisma and Better Auth should be used.
Why use it?
It keeps Copilot’s suggestions aligned with the project’s chosen tools, folder layout, coding rules, and reliability practices.

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/barrosohub/frontend-stack-blueprint/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/barrosohub/frontend-stack-blueprint

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 frontend-stack-blueprint copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/barrosohub/frontend-stack-blueprint/copilot-instructions.svg)](https://agentmods.dev/instructions/barrosohub/frontend-stack-blueprint/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/barrosohub/frontend-stack-blueprint/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/barrosohub/frontend-stack-blueprint/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,321 This file is loaded in full into every session.
When invoked 1,321 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.01321 $0.01321
Opus 5 $0.00660 $0.00660
Sonnet 5 $0.00264 $0.00264
Haiku 4.5 $0.00132 $0.00132

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

Security

Grade A, and why

frontend-stack-blueprint 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 4d 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 · 102 lines

How it starts

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

GitHub Copilot Custom Instructions

These instructions guide GitHub Copilot when working on projects that reference this Frontend Stack Blueprint repository.

Stack Reference

This project follows the Frontend Stack Blueprint — a canonical frontend stack for any new project. For the complete reference, see:

Key Rules for Copilot

  1. Use TypeScript ≥7 with strict: true — no any
  2. Use React ≥19.2.7 function product components; class Error Boundaries are allowed
  3. Use pnpm as the default package manager
  4. Use Vite ≥8 with Node.js >=22.22
  5. Treat Bun ≥1 as an alternative runtime only
  6. Structure by feature (src/features/), never by file type
  7. Use @/* path aliases, never ../../../
  8. Use cn() utility for conditional Tailwind classes
  9. Use React Hook Form + Zod for forms with 2+ fields
  10. If the project needs ORM-backed server-side or edge relational data access, use Prisma ≥7; do not add ORM to purely static apps
  11. If the project needs authentication, use Better Auth ≥1; do not assume auth is mandatory
  12. If the project needs managed services, prefer Neon Postgres, Cloudflare D1, Cloudflare R2, Cloudflare KV, and Resend by capability; do not assume they are mandatory
  13. For new Cloudflare projects use Workers Static Assets; keep existing Pages projects unless migration is justified; use Vercel when explicitly requested
  14. Use TanStack Query for server state
  15. Use Zustand for client state (no Redux, MobX). TanStack Store remains under evaluation
  16. Use Motion (import from motion/react) for animations
  17. Use date-fns ≥4.1 + @date-fns/tz for dates and timezones (no Moment, no Day.js)
  18. Use the selected Base UI/Radix/React Aria/shadcn primitives before custom components
  19. Write tests with Vitest; use Playwright for critical deployed-UI journeys
  20. Never install packages outside this stack without asking
  21. Use Advanced Capabilities only when an explicit product requirement activates Markdown, tables, charts, diagrams, code editing, terminal, collaboration, or PDF viewing
  22. If root DESIGN.md exists, treat it as the provisional DESIGN.md Design Contract: read it before UI work and regenerate Tailwind tokens after intentional changes
  23. Apply Official CLI-First when official docs recommend a CLI
  24. Run Impact Preflight before any official CLI execution; ask confirmation if non-trivial/uncertain
  25. Apply Production Reliability: authoritative CI, WCAG 2.2 AA, Core Web Vitals budgets, browser matrix, preview smoke, and rollback
  26. Validate public environment and API responses at runtime; use fetch cancellation/timeout and MSW degraded scenarios when networked
  27. Activate Sentry, OpenTelemetry, Statsig, and Storybook only when their operational capability applies

Read the full file on GitHub · 102 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. 4d ago First seen · 102 lines · 1,321 tokens per session scan A 324536329ca5

Subscribe to this mod's changes

frontend-stack-blueprint copilot-instructions.md is an instructions file published in the GitHub repository barrosohub/frontend-stack-blueprint (3 stars, last pushed 1mo ago), licensed MIT. It adds 1,321 tokens to every session, about $0.0066 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.