Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/tobitege/Flowery.Unonpx agentmods add rules/tobitege/flowery.uno/new-controlWrote 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.
[](https://agentmods.dev/rules/tobitege/flowery.uno/new-control)<a href="https://agentmods.dev/rules/tobitege/flowery.uno/new-control"><img src="https://agentmods.dev/badge/rules/tobitege/flowery.uno/new-control/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.
<a href="https://agentmods.dev/rules/tobitege/flowery.uno/new-control"><img src="https://agentmods.dev/badge/rules/tobitege/flowery.uno/new-control.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.03652 |
| Opus 5.5 | $0.00000 | $0.01461 |
| Sonnet 5.5 | $0.00000 | $0.00730 |
| Haiku 4.5 | $0.00000 | $0.00365 |
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 13d 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.
How it starts
The opening of the file, as written. The whole thing — 566 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Creating a New Flowery.Uno Control (Uno Platform / WinUI)
This rule outlines the complete workflow for creating a new control in Flowery.Uno, whether it's a brand new control or a port from another library.
Platform: Uno Platform / WinUI (NOT Avalonia). Use
Microsoft.UI.Xaml.*namespaces,.xamlfiles, andDependencyProperty.
Overview
Creating a new control involves these major phases:
- Control Implementation - C# class with properties and logic
- Theme/Styling - XAML ResourceDictionary for visual appearance
- Gallery Examples - Demo page in the gallery application
- Sidebar Integration - Add to the sidebar data
- Documentation - Markdown file for supplementary docs
Phase 1: Control Implementation
1.1 Create the C# Control File
Location: Flowery.Uno/Controls/Daisy[ControlName].cs
If the control is a custom extension (not a direct DaisyUI component), place it under:
Flowery.Uno/Controls/Custom/Daisy[ControlName].cs- Namespace:
Flowery.Controls
Required elements:
using System;
using Flowery.Theming;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Input;
using Microsoft.UI.Xaml.Media;
using Windows.UI;
// Add other required usings at the TOP
namespace Flowery.Controls
{
// Define enums at namespace level
public enum Daisy[ControlName]Variant
{
Default,
Primary,
// ... other values
}
/// <summary>
/// Brief description of what the control does (Uno/WinUI).
/// </summary>
public partial class Daisy[ControlName] : ContentControl // or appropriate base class
{
/// <summary>
/// Gets or sets the property description.
/// </summary>
public static readonly DependencyProperty VariantProperty =
DependencyProperty.Register(
nameof(Variant),
typeof(Daisy[ControlName]Variant),
typeof(Daisy[ControlName]),
new PropertyMetadata(Daisy[ControlName]Variant.Default, OnAppearanceChanged));
public Daisy[ControlName]Variant Variant
{
get => (Daisy[ControlName]Variant)GetValue(VariantProperty);
set => SetValue(VariantProperty, value);
}
private static void OnAppearanceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
if (d is Daisy[ControlName] control)
{
control.ApplyAll();
}
}
public Daisy[ControlName]()
{
DefaultStyleKey = typeof(Daisy[ControlName]);
Loaded += OnLoaded;
Unloaded += OnUnloaded;
}
private void OnLoaded(object sender, RoutedEventArgs e)
{
BuildVisualTree();
ApplyAll();
}
private void OnUnloaded(object sender, RoutedEventArgs e)
{
// Cleanup (unsubscribe from events, etc.)
}
private void BuildVisualTree()
{
// Build control's visual tree programmatically
}
private void ApplyAll()
{
// Apply sizing, colors, states
}
}
}
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.
- 13d ago First seen · 566 lines · 0 tokens per session scan A b34ae4318fa0
new-control is a cursor rule published in the GitHub repository tobitege/Flowery.Uno (16 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,652 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-10-02.
Other cursor rules, from other repositories
roslyn-mcp-overview
RoslynMcpServer — architecture, layout, version, DI.
roslyn-mcp-pitfalls
Known pitfalls and regression lessons from production use.
roslyn-mcp-docs-agents
Docs sync AGENTS/README, agent conventions, PowerShell, secrets.
roslyn-mcp-decompile
Assembly resolve, ILSpy decompile, NuGet/BCL fallback.
roslyn-mcp-structural-tests
Do not assert production C# structure from source text.
ui
A set of instructions for designing and building polished React user interfaces, including layouts, styling, animation, and interaction behavior. React is a JavaScript library for building interfaces from reusable components.