Fluence.Wpf copilot-instructions.md

Fluence.Wpf copilot-instructions.md is an instructions file for GitHub Copilot from sintaxasn/Fluence.Wpf. It costs 1,563 tokens per session, scanned A, original, BSD-3-Clause.

Project-specific instructions for Fluence.Wpf, a .NET library that makes Windows desktop interfaces look like Windows 11. They cover the project layout, file rules, theme structure, and coding requirements.

In plain words
What is it for?
Use them when changing the WPF library, its demo applications, or its tests. They cover file encoding, warnings, banned APIs, license headers, and documentation for public code.
Why use it?
They help coding agents avoid changes that break the library’s three-part layout or fail its build checks. They also explain which project files and references to consult.

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/sintaxasn/fluence.wpf/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/sintaxasn/Fluence.Wpf

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sintaxasn/fluence.wpf/copilot-instructions.svg)](https://agentmods.dev/instructions/sintaxasn/fluence.wpf/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/sintaxasn/fluence.wpf/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/sintaxasn/fluence.wpf/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,563 This file is loaded in full into every session.
When invoked 1,563 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.01563 $0.01563
Opus 5 $0.00781 $0.00781
Sonnet 5 $0.00313 $0.00313
Haiku 4.5 $0.00156 $0.00156

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

Security

Grade A, and why

Fluence.Wpf 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 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.

.github/copilot-instructions.md · 137 lines

How it starts

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

Fluence.Wpf -- Copilot Instructions

Condensed guidance for Copilot, Gemini, and similar assistants. Full detail is in AGENTS.md -- read it before making any non-trivial change.


Project at a glance

WPF control library reproducing Windows 11 Fluent / WinUI 3 visuals on .NET Framework 4.7.2 and .NET 10. Four projects: Fluence.Wpf (library), Fluence.Wpf.Demo (gallery), Fluence.Wpf.Demo.Mvvm (MVVM demo), Fluence.Wpf.Tests (xunit.v3 3.2.2, multi-TFM).

XML namespace: http://schemas.fluencewpf.com (prefix: fluence)


Non-negotiable rules

  1. File encoding: All .cs, .xaml, .csproj files must be UTF-8 with BOM + LF line endings. The PostToolUse hook enforces this -- violations block writes.

  2. Zero warnings: TreatWarningsAsErrors=True. Never suppress a warning with #pragma; fix the root cause.

  3. Banned API: string.IsNullOrEmpty() is banned (RS0030). Always use string.IsNullOrWhiteSpace().

  4. BSD header: Every .cs file starts with the 27-line BSD 3-Clause header. Copy it from any existing library file.

  5. XML docs: All public API members need /// XML doc comments. Missing comments fail the build.

  6. Nullable clean: Nullable=enable project-wide. Annotate ? only where genuinely nullable.

  7. DynamicResource for theme values: Any brush, color, corner radius, or typography that must react to theme changes uses DynamicResource. Static assets only use StaticResource.

  8. No hard-coded colors: Never write hex values in XAML templates. Use canonical WinUI-style resource keys. Hex literals belong only in the Color tables Themes/Colors/Theme.{Light|Dark|HighContrast}.xaml; templates bind the auto-generated *Brush twin via DynamicResource.

  9. Overflow in Win32 bit-math: Wrap HIWORD/LOWORD extractions in unchecked { }. CheckForOverflowUnderflow=True is active.

  10. Discard return values: _ = method() for non-void returns you are not using. Ignored returns are build errors (CA1806).

Read the full file on GitHub · 137 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 · 137 lines · 1,563 tokens per session scan A 0fcdde5fb12d

Subscribe to this mod's changes

Fluence.Wpf copilot-instructions.md is an instructions file published in the GitHub repository sintaxasn/Fluence.Wpf (11 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 1,563 tokens to every session, about $0.0078 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-30.