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 Cratis/AI --skill cratis-fundamentals-type-discoverygit clone --depth 1 https://github.com/Cratis/AIWrote 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/cratis/ai/cratis-fundamentals-type-discovery)<a href="https://agentmods.dev/skills/cratis/ai/cratis-fundamentals-type-discovery"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-fundamentals-type-discovery/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/cratis/ai/cratis-fundamentals-type-discovery"><img src="https://agentmods.dev/badge/skills/cratis/ai/cratis-fundamentals-type-discovery.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.00045 | $0.00634 |
| Opus 5.5 | $0.00018 | $0.00254 |
| Sonnet 5.5 | $0.00009 | $0.00127 |
| Haiku 4.5 | $0.00005 | $0.00063 |
Grade A, and why
cratis-fundamentals-type-discovery 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 today.
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.
What it actually says
Discover implementations in .NET
When a consumer needs every implementation, inject IInstancesOf<T> from Cratis.Types. Use a concrete, non-generic implementation of an interface or abstract class. Discovering a set avoids maintaining a second list in the composition root. For one chosen service, inject that service's interface instead; for a sequence returned as data, use an ordinary collection type.
-
Reference
Cratis.Fundamentalsin projects that contribute implementations; its NuGet package carries the discovery analyzer. Arc'sAddCratisArc()already configures discovery and convention bindings. Choose explicit host setup when using a plain .NET host: callservices.AddTypeDiscovery(),services.AddBindingsByConvention()andservices.AddSelfBindings()before building the provider (Cratis.DependencyInjectionandMicrosoft.Extensions.DependencyInjection). A project reference to Fundamentals source doesn't bring the analyzer: see discovery diagnostics if the host can't see a contributor. -
Implement the contract. Leave the lifetime unspecified for a transient; use
[Scoped]for a scope-bound implementation or[Singleton]for an implementation safe to share across scopes and concurrent calls. Both attributes are inCratis.DependencyInjection. Keep the consumer within a scope if it resolves scoped implementations. -
Enumerate the discovered set in the operation. In this example, neither the consumer nor its implementations needs a manual registration in an Arc host:
using System.Linq; using Cratis.Types; namespace Reports; public interface IReportSection { string Heading { get; } } public class TotalsSection : IReportSection { public string Heading => "Totals"; } public class ReportOutline(IInstancesOf<IReportSection> sections) { public string[] GetHeadings() => sections.Select(section => section.Heading).ToArray(); }The set resolves concrete self-bindings, not
IEnumerable<T>interface registrations. Remove old manual registrations only after checking that no other consumer needs them. Each enumeration resolves instances from the captured provider, so a singleton consumer cannot safely resolve scoped implementations. Materialize once when an operation needs to reuse the same resolved instances. Do not rely on discovery order as business precedence; apply an explicit order when it matters. -
Build and exercise the behavior through the host. Assert the expected contributions, not just that iteration completed: an empty set can otherwise pass a fan-out spec. If a contribution is missing or enumeration throws, use discovery diagnostics.
Choose IImplementationsOf<T> when the consumer needs only type metadata. It enumerates Type without constructing the implementations, so concrete self-bindings aren't needed for that enumeration.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · -162 lines · +2 tokens per session 6cdfb59603a3
- 1mo ago Changed · -26 tokens per session c902dcfc403d
- 1mo ago Changed · +13 lines 73c2dc79b6b9
- 1mo ago Changed c05dec096608
- 1mo ago Changed · +37 lines 1124b632c3cd
- 1mo ago Changed · -2 tokens per session 8f9f11830345
- 2mo ago Changed 6f32c41ec458
- 2mo ago First seen · 153 lines · 71 tokens per session scan A 6cf847780b99
cratis-fundamentals-type-discovery is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 634 once invoked, about $0.0002 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-08.
cratis-fundamentals-type-discovery compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cratis-fundamentals-type-discoveryCratis/AI | Skill | 4 | today | MIT | A | 45 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 330k | 2d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 14k | yesterday | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |