new-control

new-control is a skill for Claude Code, Codex from sintaxasn/Fluence.Wpf. It costs 0 tokens per session (1,302 once invoked), scanned A, original, BSD-3-Clause.

A step-by-step guide for creating a new Fluence.Wpf control, including its code, properties, visual states, tests, and documentation.

In plain words
What is it for?
Scaffolding WPF controls, choosing their base types and properties, defining visual states, and adding required tests and docs.
Why use it?
It helps a new control follow the project's existing rules from the beginning instead of requiring later corrections.

Skill for Claude CodeCodex

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 skills/sintaxasn/fluence.wpf/new-control
Any agent
npx skills add sintaxasn/Fluence.Wpf --skill new-control
Clone the repo
git clone --depth 1 https://github.com/sintaxasn/Fluence.Wpf

Made for: Claude Code, Codex.

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 new-control

README.md
[![agentmods](https://agentmods.dev/badge/skills/sintaxasn/fluence.wpf/new-control.svg)](https://agentmods.dev/skills/sintaxasn/fluence.wpf/new-control)
Your own site
<a href="https://agentmods.dev/skills/sintaxasn/fluence.wpf/new-control"><img src="https://agentmods.dev/badge/skills/sintaxasn/fluence.wpf/new-control.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,302 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01302
Opus 5 $0.00000 $0.00651
Sonnet 5 $0.00000 $0.00260
Haiku 4.5 $0.00000 $0.00130

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

Security

Grade A, and why

new-control 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 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.

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.

.claude/skills/new-control/SKILL.md · 58 lines

How it starts

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

New Control

Scaffold a new Fluence.Wpf control so it starts conformant instead of being retrofitted. This skill encodes AGENTS.md section 5 (Control authoring checklist). Follow every step; do not skip tests or docs.

Inputs

Ask the user (or infer from the request) before generating:

  • Control name (PascalCase, for example RatingControl).
  • Base type (Control, ContentControl, or the closest System.Windows.Controls.*).
  • Dependency properties and which are read-only state DPs (IsPressed, IsValid).
  • Visual state groups needed (CommonStates, FocusStates, CheckStates, ...).
  • Whether it is theme-sensitive (needs a theme-cycle test).

Reference authority

Resolve every visual or behavioural decision through AGENTS.md section 4: in-tree precedent first, then WinUI 3 CommonStyles for tokens/states/visuals, then .NET 10 WPF Themes for WPF-native chrome, then Microsoft Learn as a tie-breaker. Do not invent Fluent semantics. Verify any runtime API is available on net472 (section 4.3).

Steps

  1. CLR type at Fluence.Wpf/Controls/<Name>.cs.
    • Copy the 27-line BSD header verbatim from an existing library file. Do not change the year.
    • Subclass the chosen base. In the static constructor: DefaultStyleKeyProperty.OverrideMetadata(typeof(<Name>), new FrameworkPropertyMetadata(typeof(<Name>)));.
    • Register dependency properties with CLR wrappers and OnFooChanged callbacks where relevant. Use RegisterReadOnly for state-only DPs, with the ...PropertyKey private field plus public ...Property = ...PropertyKey.DependencyProperty.
    • Annotate template parts: const string PART_Whatever = "PART_Whatever"; plus [TemplatePart(Name = PART_..., Type = typeof(T))], and wire them in OnApplyTemplate.
    • Annotate visual states: [TemplateVisualState(GroupName = "CommonStates", Name = "Normal|PointerOver|Pressed|Disabled")].
    • Nullable-clean, explicit types over var, target-typed new(), discard ignored returns with _, ?? throw expressions. XML /// docs on every public member (the build fails on missing docs).
    • Never use string.IsNullOrEmpty (use string.IsNullOrWhiteSpace). Wrap any Win32 bit-mask math in unchecked { }.

Read the full file on GitHub · 58 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 · 58 lines · 0 tokens per session scan A 5f89c62cf620

Subscribe to this mod's changes

new-control is a skill published in the GitHub repository sintaxasn/Fluence.Wpf (12 stars, last pushed today), licensed BSD-3-Clause. It costs nothing until one of its globs matches a file; then it loads 1,302 tokens. 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.

Related

Other skills, from other repositories

entity-generator

Generate a tik4net.objects O/R-mapper entity (C# class) for a MikroTik object/path — decorated with [TikEntity]/[TikProperty], correctly typed, R/O vs R/W resolved, documented (including WinBox-native GUI names), with Execute/connection-extension methods and a ToString override where appropriate. Use whenever the user…

danikf/tik4net · 144 tokens

winbox-native-dev

Develop and extend the tik4net WinBoxNative (structured M2) transport: add a new path→handler mapping, a new field UI-type encoder/decoder, a singleton/list/range/enum/reference field, an action verb or streaming monitor — by cross-referencing the three sources of truth (the version-matched .jg catalog, the webfig…

danikf/tik4net · 211 tokens

nina-repository

Repository-specific guidance for working in the N.I.N.A. codebase and NINA.sln. Use when Codex is asked to modify, review, test, debug, navigate, or explain code in this repository; touch NINA. projects, app startup/DI, profiles/settings, localization, database migrations, equipment, astrometry, imaging, plate…

isbeorn/nina · 106 tokens

mapsui

Use when embedding interactive 2D maps in .NET desktop (WinForms/WPF) or mobile (MAUI) applications — tile layers, vector features, map controls. Mapsui: cross-platform .NET map component library.

znlgis/opengis-skills · 49 tokens

make-wpf-custom-control

Generates WPF CustomControl C# class and XAML ControlTemplate style from a control name. Use when creating a new custom control, scaffolding a templated control, or generating CustomControl boilerplate code. Usage: /wpf-dev-pack:make-wpf-custom-control.

christian289/dotnet-with-claudecode · 60 tokens

make-wpf-project

Scaffolds a complete WPF project structure with MVVM, DI, and best practices. Use when starting a new WPF application, creating a WPF solution from scratch, or setting up project structure with CommunityToolkit.Mvvm or Prism. Usage: /wpf-dev-pack:make-wpf-project [--minimal|--full|--prism].

christian289/dotnet-with-claudecode · 77 tokens