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.
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-source-generatorsgit clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkillsWrote 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/skills/crestapps/crestapps.agentskills/orchardcore-source-generators)<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-source-generators"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-source-generators/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/skills/crestapps/crestapps.agentskills/orchardcore-source-generators"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-source-generators.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.00189 | $0.01691 |
| Opus 5.5 | $0.00076 | $0.00676 |
| Sonnet 5.5 | $0.00038 | $0.00338 |
| Haiku 4.5 | $0.00019 | $0.00169 |
Grade A, and why
orchardcore-source-generators 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 1mo 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 — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orchard Core Source Generators - Prompt Templates
Use Source Generators for Performance Optimization
You are an Orchard Core expert. Generate code using source generators, the [GenerateArguments] attribute, anonymous type interceptors, and named argument types for shapes and display management.
Guidelines
- Use
[GenerateArguments]onpartialclasses to generate optimizedINamedEnumerable<object>implementations at compile time. - Generated classes extend
PropertyBasedNamedEnumerablewith zero-reflection property access via switch expressions. - Classes marked with
[GenerateArguments]must bepartialand have at least one public instance property with a getter. - For .NET 9+ projects, anonymous types passed to
Arguments.From()are automatically optimized by interceptors. - On older .NET versions,
Arguments.From()falls back to cached reflection (acceptable for infrequent usage). - Prefer named types with
[GenerateArguments]for production code over anonymous types. - Source-generated argument classes support nested types, records, and inheritance.
- All C# classes must use the
sealedmodifier where applicable.
Quick Start with [GenerateArguments]
using OrchardCore.DisplayManagement;
[GenerateArguments]
public sealed partial class MyShapeArguments
{
public string Title { get; set; }
public int Count { get; set; }
public bool IsActive { get; set; }
}
// Usage - direct property access, no reflection
var args = new MyShapeArguments
{
Title = "Hello",
Count = 42,
IsActive = true,
};
var shape = await shapeFactory.CreateAsync("MyShape", args);
What Gets Generated
The source generator produces an optimized implementation extending PropertyBasedNamedEnumerable:
// Your code:
[GenerateArguments]
public sealed partial class MyData
{
public string Name { get; set; }
public int Value { get; set; }
}
// Auto-generated at compile time:
public sealed partial class MyData : PropertyBasedNamedEnumerable
{
private static readonly string[] s_propertyNames = ["Name", "Value"];
protected override int PropertyCount => 2;
protected override IReadOnlyList<string> PropertyNames => s_propertyNames;
protected override object? GetPropertyValue(int index) => index switch
{
0 => this.Name,
1 => this.Value,
_ => throw new ArgumentOutOfRangeException(nameof(index))
};
}
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.
- 1mo ago First seen · 248 lines · 189 tokens per session scan A 975d3c49e88b
orchardcore-source-generators is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (13 stars, last pushed 2d ago), licensed MIT. It adds 189 tokens to every session and 1,691 once invoked, about $0.0008 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-09-12.
Other skills, from other repositories
dotnet-debugging
Debug .NET applications using debug-mcp MCP tools — launch processes, set breakpoints, step through code, inspect variables, evaluate expressions, and analyze exceptions. Use this skill when debugging .NET/C# applications, investigating runtime behavior, diagnosing exceptions, inspecting object state, or performing…
generate-code-cs
Generate the code from typespec for C#. Parameter: C# SDK repository root location .
author-test
Generate a test given sample. Parameters: C# SDK repository root; Package name: one of Azure.AI.Projects, Azure.AI.Projects.Agents or Azure.AI.Extensions.OpenAI; the sample to use as a starting point for the test.
script-execute
Compiles and executes C# code dynamically using Roslyn. Supports a full-code mode (default) and a body-only mode — see the skill body for the difference and for how to pass Unity object references as parameters.
script-update-or-create
Write a .cs script file (create or overwrite) with the provided C# code. Validates syntax via Roslyn before write — invalid code is rejected with error details and the file is left untouched. Refreshes the AssetDatabase and delivers the final result via requestId after Unity finishes the triggered compilation. Use…
opentelemetry-net-instrumentation
Provides guidance for implementing OpenTelemetry instrumentation in .NET codebases, covering tracing (Activities/Spans), metrics, logs, naming conventions, error handling, performance, SDK setup, resources, context propagation, and API design best practices.