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 2mo 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.
- 2mo 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 (14 stars, last pushed today), 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.
orchardcore-source-generators compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| orchardcore-source-generatorsCrestApps/CrestApps.AgentSkills | Skill | 14 | today | MIT | A | 189 | Claude Code |
| dotnet-debuggingjkolo/debug-mcp | Skill | 31 | 3mo ago | AGPL-3.0 | A | 70 | Claude Code, Codex |
| opentelemetry-net-instrumentationAaronontheweb/dotnet-skills | Skill | 1.3k | today | MIT | A | 56 | Claude Code |
| wpfmanagedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 122 | Claude Code, Codex |
| mcpmanagedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 123 | Claude Code, Codex |
| migrate-xunit-to-xunit-v3managedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 149 | Claude Code, Codex |
| semantic-kernelmanagedcode/dotnet-skills | Skill | 527 | 17d ago | MIT | A | 116 | Claude Code, Codex |