uno: Skill for Claude Code

.claude/skills/add-sample/SKILL.md

add-sample is a skill for Claude Code from unoplatform/uno. It costs 21 tokens per session (1,276 once invoked), scanned A, original, Apache-2.0.

An instruction set for creating a SamplesApp page that demonstrates a user-interface control. The page includes the required XAML, code-behind, and discovery attributes.

In plain words
What is it for?
Use it when adding a sample for controls such as Button, TreeView, or NavigationView, including basic usage, styling, or data-binding examples.
Why use it?
It reduces the chance of placing a sample in the wrong folder or omitting files and metadata needed for the sample app to find it.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is unoplatform/uno's own configuration. It tells Claude Code how to work on uno 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 uno configures →

About the project

Uno Platform is an open-source .NET development platform that lets developers build native mobile, web, desktop, and embedded applications from one C# and XAML codebase. It is intended for .NET developers who want to share application code across multiple operating systems and device types. The catalogue entries support development workflows for Uno Platform with skills, agents, commands, and instructions.

unoplatform/uno · 10,079 stars · on GitHub · platform.uno

Reuse

Borrowing it

Nothing to install: this file belongs to unoplatform/uno. 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/unoplatform/uno/master/.claude/skills/add-sample/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/unoplatform/uno

Made for: Claude Code.

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 add-sample

README.md
[![agentmods](https://agentmods.dev/badge/skills/unoplatform/uno/add-sample/github.svg)](https://agentmods.dev/skills/unoplatform/uno/add-sample)
Your own site
<a href="https://agentmods.dev/skills/unoplatform/uno/add-sample"><img src="https://agentmods.dev/badge/skills/unoplatform/uno/add-sample/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-sample

Your own site · 80×15
<a href="https://agentmods.dev/skills/unoplatform/uno/add-sample"><img src="https://agentmods.dev/badge/skills/unoplatform/uno/add-sample.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,276 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00021 $0.01276
Opus 5.5 $0.00008 $0.00510
Sonnet 5.5 $0.00004 $0.00255
Haiku 4.5 $0.00002 $0.00128

Measured 25d ago against content hash 44cf68326e50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-sample 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 25d 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/add-sample/SKILL.md · 131 lines

How it starts

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

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).


Overview

You are executing the Add Sample Skill. This skill creates a SamplesApp sample page with correct XAML, code-behind, and attribute setup. Files dropped under src/SamplesApp/SamplesApp.Samples/ are auto-discovered by glob — no manual project registration is required.


Execution Workflow

Phase 0: Determine Location & Names

  1. Parse user input for:

    • Control name: The control being demonstrated (e.g., Button, TreeView, NavigationView)
    • Scenario: What the sample demonstrates (e.g., BasicUsage, CustomStyle, DataBinding)
  2. Find existing folder under src/SamplesApp/SamplesApp.Samples/ matching the control's namespace. Folders are a nested hierarchy mirroring the API namespace, same as src/Uno.UI:

    • Controls: Microsoft/UI/Xaml/Controls/ (e.g., Microsoft/UI/Xaml/Controls/Button/, Microsoft/UI/Xaml/Controls/NavigationViewTests/)
    • Shapes: Microsoft/UI/Xaml/Shapes/
    • Media: Microsoft/UI/Xaml/Media/
    • Composition: Microsoft/UI/Composition/
    • Pure WinRT APIs keep their Windows/ prefix (e.g., Windows/Storage/, Windows/UI/Input/)
    • Search for existing samples of the same control to find the right folder
  3. Generate file names: ControlName_Scenario.xaml and ControlName_Scenario.xaml.cs

    • Follow the naming convention of nearby existing samples
    • Use PascalCase with underscores separating control from scenario

Phase 1: Create XAML Page

Create the XAML file with:

  • Standard Page root element
  • Correct namespace declarations for the control
  • {ThemeResource ApplicationPageBackgroundThemeBrush} for Background (NOT hardcoded colors — supports light/dark theme)
  • The control being demonstrated with meaningful property settings
  • Follow patterns from nearby existing samples in the same folder

Template:

<Page x:Class="UITests.FolderNamespace.ControlName_Scenario"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d"
      Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <StackPanel Spacing="8" Padding="16">
        <!-- Sample content here -->
    </StackPanel>
</Page>

Read the full file on GitHub · 131 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. 25d ago Changed · +1 lines 44cf68326e50
  2. 1mo ago Changed ef5ec68018e8
  3. 1mo ago First seen · 130 lines · 21 tokens per session scan A 8efd064db9bc

Subscribe to this mod's changes

add-sample is a skill published in the GitHub repository unoplatform/uno (10,079 stars, last pushed today), licensed Apache-2.0. It adds 21 tokens to every session and 1,276 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

solopi-ai

A command-line framework for testing Android apps and devices with SoloPi, including on-device or cloud AI decision models. It manages devices, test cases, recorded interactions, replays, performance history, and evidence.

alipay/SoloPi · 82 tokens

cindy-plugin-creator

Create, edit, debug, package, or publish Cindy plugins (.cindy packages with ghost.json). Use for plugin authoring and host API questions; not for creating standalone Skills or simply using an installed plugin.

makecindy/cindy · 48 tokens

argent-tv-interact

Control and inspect TV apps via argent, Apple TV (tvOS), Android TV (leanback), and Amazon Fire TV (Vega). Boot the target, read focus, navigate with the D-pad remote, type, screenshot, and on Vega debug the JS runtime (evaluate, console logs, network inspector). Use when a task targets a TV (runtimeKind "tv", or…

software-mansion/argent · 107 tokens

engineer-bot-ops

A workflow for carrying an engineering task from scope through implementation and reviewable delivery. It works with a repository's branch, existing changes, rules, checks, and permissions while separating completed, unverified, and next-step work.

makecindy/cindy · 57 tokens

apple-search-ads-review-evidence

A local checker for exported Apple Search Ads search-term data. It groups terms by ad group, compares spending and installations with a target installation cost, and suggests terms to exclude or promote.

makecindy/cindy · 59 tokens

seo-aeo-desk-evidence

An offline tool for organizing keywords and user questions that you provide. It normalizes wording, removes duplicates, groups items by intent, and keeps missing metrics marked as unknown.

makecindy/cindy · 43 tokens