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.
git clone --depth 1 https://github.com/rkttu/cadenzaWrote 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/rkttu/cadenza/cadenza)<a href="https://agentmods.dev/rules/rkttu/cadenza/cadenza"><img src="https://agentmods.dev/badge/rules/rkttu/cadenza/cadenza/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/rkttu/cadenza/cadenza"><img src="https://agentmods.dev/badge/rules/rkttu/cadenza/cadenza.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.02387 |
| Opus 5 | $0.00000 | $0.01193 |
| Sonnet 5 | $0.00000 | $0.00477 |
| Haiku 4.5 | $0.00000 | $0.00239 |
Grade A, and why
cadenza 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 9d 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 — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cadenza skill
Cadenza is .NET's answer to "Python for scripting" with "Go-like single-binary distribution". Every Cadenza program is one .cs file that runs with dotnet run app.cs and publishes to a ~30–40 MB self-contained binary with dotnet publish app.cs -r <rid> -c Release.
Repo: https://github.com/rkttu/cadenza
When to suggest Cadenza
Pick Cadenza when the user wants:
| Goal | SDK | Use case |
|---|---|---|
| CLI / shell automation / build glue | Cadenza |
git deploy guards, file processing, devops scripts |
| Background service / daemon | Cadenza.Worker |
heartbeat, polling, scheduled work |
| Minimal HTTP API / webhook | Cadenza.Web |
a 30-line REST endpoint, internal tool |
| MCP server (AI tool integration) | Cadenza.Mcp |
tools / resources / prompts for Claude Desktop, Cursor, VS Code AI |
| Local AI agent | Cadenza.Agent |
OpenAI-compatible HTTP server fronting Ollama / OpenAI / Anthropic / Azure OpenAI — Codex / Aider / Continue / Cursor speak to it as if it were OpenAI |
Skip Cadenza for multi-project solutions, libraries that ship as DLLs, or anything that needs a full csproj. Cadenza is for the "single file = whole program" case.
Critical: exact version pinning
MSBuild SDK references do NOT support wildcards (1.*). Always pin an exact SemVer version. Latest pin: 1.0.15 across all five SDKs.
#:sdk [email protected] // console
#:sdk [email protected] // worker
#:sdk [email protected] // web
#:sdk [email protected] // MCP server
#:sdk [email protected] // AI agent (OpenAI-compatible HTTP)
Tier 1 — bare names per variant (no namespace prefix needed)
Cadenza(console):Run(cmd),Capture(cmd),ReadText(path),WriteText(path, content),Glob(pattern),TempDir(), plusWriteLine/Write/ReadLine.Cadenza.Worker:Run(Func<CT, Task>)(starts host + BackgroundService),Config<T>(key), plus sharedReadText/WriteText/Glob/WriteLine.Log.Info/Warn/Error/Debugvia ILogger.Cadenza.Web:Get/Post/Put/Delete/Map(path, handler),Run()(starts server).Web.App/Web.Servicesfor raw access.Cadenza.Mcp:Tool(name, desc, handler),Resource(uri, name, handler),Prompt(name, desc, handler),Run()(stdio).Log.*routed to stderr (never useWriteLinehere).Cadenza.Agent:Tool(name, desc, handler),SystemPrompt(text),UseOllama(model)/UseOpenAi(model)/UseAnthropic(model)/UseAzureOpenAi(endpoint, deployment)/UseChatClient(IChatClient),Run()(HTTP server onlocalhost:8080— servesPOST /v1/chat/completionsANDPOST /v1/responsesfor Codex CLI),ChatLoop()(REPL),Reply(prompt)(one-shot). Server-sideTool(...)auto-invokes on Chat Completion only; Codex brings its own toolset.
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.
- 9d ago First seen · 209 lines · 0 tokens per session scan A bbf0b6d72d9c
cadenza is a cursor rule published in the GitHub repository rkttu/cadenza (4 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,387 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-31.
Other cursor rules, from other repositories
aspnet-abp-cursorrules-prompt-file
Cursor rules for Aspnet Abp.
kraken-net
Conventions for using Kraken.Net when working with Kraken Spot and Futures cryptocurrency exchange APIs in C#/.NET. Apply when generating code that interacts with Kraken API.
ef-core
Entity Framework Core patterns - DbContext, repositories, migrations, query optimization.
unity-core
// ✅ DO: PascalCase public class PlayerController : MonoBehaviour { }.
cfx-csharp-conventions
Coding conventions for C# scripts in FiveM and RedM resources.
unity-game-developer-intelligent
Expert Unity game developer specializing in C# scripting, 3D graphics, mobile optimization, and complete game development workflows. Apply this rule when working on Unity projects, implementing Unity C# scripts, designing component-based architecture, optimizing Unity performance, building Unity UI systems…