cratis-fundamentals-type-discovery SKILL.md skillA
cratis-fundamentals-type-discovery from cratis/ai is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add cratis/ai/cratis-fundamentals-type-discovery@git:20261013.d89a1b7Pins git:20261013.d89a1b7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- cratis/ai
- Path
.cratis/ai/skills/cratis-fundamentals-type-discovery/SKILL.md- Versions recorded
- 5
- Latest version
- git:20261013.d89a1b7, committed Oct 13, 2026
- First version recorded
- Sep 11, 2026
- Size
- 9,003 bytes
- Repository stars
- 4
- License
- MIT
Wire a type that must enumerate every implementation of an abstraction by injecting IInstancesOf from Cratis.Types and deleting the hand-maintained service registrations. Use when a handler set, filter chain, strategy set, or dispatcher fans out to all implementations. Do not use for ordinary single-service dependency injection.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Cratis implementation discovery `services.AddSingleton<IFoo, Foo>()` looks free at the registration line. The cost arrives later: a new implementation in another folder does nothing until someone remembers the line, a removed one leaves a registration that fails at startup, and every specification setup has to mirror the composition root. `IInstancesOf<T>` moves that knowledge into the implementation. Adding or removing one becomes a single-file change. ## Verified product sources | Package | Purpose | | --- | --- | | `Cratis.Fundamentals` | `IInstancesOf<T>`, `IImplementationsOf<T>`, `ITypes`, convention bindings and the bundled `Cratis.Fundamentals.TypeDiscovery.Generator` | Reverify against the Cratis Fundamentals repository before claiming support for another version. ## Route near misses - The consumer needs **one** implementation chosen at composition time: constructor-inject the interface and let the `IFoo → Foo` convention resolve it. This skill does not apply. - The method **returns** a sequence of values to a caller: `IEnumerable<T>` (or `IReadOnlyList<T>`) is still the right return type. The rule is about …
Read the whole file at its exact version.
How to install
mdr add cratis/ai/cratis-fundamentals-type-discovery@sha256:c05dec0966089facThe line at the top of this page pins the label git:20261013.d89a1b7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_yl3epclrrwj5ww5r)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Sep 11, 2026 and Oct 13, 2026, about one every 8 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261013.d89a1b7 latest | 2026-10-13 | d89a1b7 | 9,003 B | A | view · diff |
| git:20261012.6b38fef | 2026-10-12 | 6b38fef | 9,057 B | A | view · diff |
| git:20261008.86f1c68 | 2026-10-08 | 86f1c68 | 6,897 B | A | view · diff |
| git:20260916.2dd9dbe | 2026-09-16 | 2dd9dbe | 6,900 B | A | view · diff |
| git:20260911.75ad9bc | 2026-09-11 | 75ad9bc | 6,314 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (9003 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
cratis/ai · 4 stars · license MIT · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_yl3epclrrwj5ww5r GET https://markdownregistry.com/api/v1/resolve?ref=cratis/ai/cratis-fundamentals-type-discovery GET https://markdownregistry.com/api/v1/blob/c05dec0966089fac75ff50d46917991355d01d3a91e859e92c0a8eef34046fbe
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.