add-sample

add-sample is a skill for Claude Code, Codex from unoplatform/uno. It costs 21 tokens per session (1,191 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 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/unoplatform/uno/add-sample
Any agent
npx skills add unoplatform/uno --skill add-sample
Clone the repo
git clone --depth 1 https://github.com/unoplatform/uno

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/unoplatform/uno/add-sample.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.svg" alt="Measured on agentmods" 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,191 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.00021 $0.01191
Opus 5 $0.00010 $0.00596
Sonnet 5 $0.00004 $0.00238
Haiku 4.5 $0.00002 $0.00119

Measured 3d ago against content hash 8efd064db9bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

.claude/skills/add-sample/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 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:

    • WinUI controls: Microsoft_UI_Xaml_Controls/ (e.g., Microsoft_UI_Xaml_Controls/NavigationViewTests/)
    • XAML framework: Windows_UI_Xaml_Controls/ (e.g., Windows_UI_Xaml_Controls/Button/)
    • Shapes: Windows_UI_Xaml_Shapes/
    • Media: Windows_UI_Xaml_Media/
    • 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 · 130 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 · 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,030 stars, last pushed yesterday), licensed Apache-2.0. It adds 21 tokens to every session and 1,191 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

dart-log-failure-parser

Parse failures from Dart and Flutter test logs.

flutter/flutter · 15 tokens

auditing-part11-trails

Generates and verifies 21 CFR Part 11-style audit trails — who/what/when, electronic signatures, and tamper-evidence — for OpenMed pipelines in GxP and clinical-trial (GCP) settings. Use when the user runs OpenMed in a regulated/validated environment and needs an attributable, time-stamped, tamper-evident record of…

maziyarpanahi/openmed · 222 tokens

configuring-privacy-policies

Select and customize OpenMed's seven bundled privacy policy profiles for de-identification, and build custom surrogate generators. Use when the user asks which policy fits HIPAA Safe Harbor vs Expert Determination vs GDPR vs PIPEDA vs a research limited dataset vs strict no-leak, wants to pass policy= to deidentify()…

maziyarpanahi/openmed · 143 tokens

detecting-pv-signals

Computes disproportionality signals — PRR, ROR, EBGM, and IC (BCPNN) — over FAERS / OpenFDA drug-event data to flag potential safety signals. Use when the user wants to mine spontaneous-report data for drug-reaction associations, build a 2x2 contingency table, compute a Proportional Reporting Ratio or Reporting Odds…

maziyarpanahi/openmed · 218 tokens

evaluating-with-leakage-gates

Evaluate an OpenMed de-identification or clinical NER model against the leakage-first release gates G1a through G8, which gate releases on residual PHI leakage rather than on F1. Use when the user wants to run the OpenMed eval harness on a synthetic golden set, decide whether a de-id model is RELEASABLE or…

maziyarpanahi/openmed · 158 tokens

exporting-bulk-fhir

Kick off and harvest a FHIR Bulk Data $export (system-, group-, or patient-level) and stream the resulting NDJSON into a batch OpenMed de-identification + NER pipeline at cohort scale. Covers the async kickoff (Prefer respond-async) -> poll Content-Location -> download NDJSON flow, the Bulk Data Access IG, type/since…

maziyarpanahi/openmed · 151 tokens