managedcode-mimetypes

managedcode-mimetypes is a skill for Claude Code, Codex from managedcode/dotnet-skills. It costs 118 tokens per session (1,216 once invoked), scanned A, original, MIT.

A .NET library for mapping file extensions to MIME types, the labels that tell browsers and services what kind of file they are handling.

In plain words
What is it for?
Use it to validate uploaded files, set download response headers, store file metadata, and process attachments.
Why use it?
It gives uploads, downloads, attachments, and HTTP responses one consistent content-type decision instead of scattered lookup tables.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate uploaded files, set download response headers, store file metadata, and process attachments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/managedcode/dotnet-skills/managedcode-mimetypes
Install

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.

Any agent
npx skills add managedcode/dotnet-skills --skill managedcode-mimetypes
Clone the repo
git clone --depth 1 https://github.com/managedcode/dotnet-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for managedcode-mimetypes

README.md
[![agentmods](https://agentmods.dev/badge/skills/managedcode/dotnet-skills/managedcode-mimetypes/github.svg)](https://agentmods.dev/skills/managedcode/dotnet-skills/managedcode-mimetypes)
Your own site
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/managedcode-mimetypes"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/managedcode-mimetypes/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.

agentmods 80×15 button for managedcode-mimetypes

Your own site · 80×15
<a href="https://agentmods.dev/skills/managedcode/dotnet-skills/managedcode-mimetypes"><img src="https://agentmods.dev/badge/skills/managedcode/dotnet-skills/managedcode-mimetypes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,216 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.01216
Opus 5.5 $0.00047 $0.00486
Sonnet 5.5 $0.00024 $0.00243
Haiku 4.5 $0.00012 $0.00122

Measured 2mo ago against content hash f06a7ce583a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

managedcode-mimetypes 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.

catalog/Libraries/ManagedCode-MimeTypes/skills/managedcode-mimetypes/SKILL.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ManagedCode.MimeTypes

Trigger On

  • integrating ManagedCode.MimeTypes into upload or download flows
  • mapping file extensions to content types in APIs or background processing
  • reviewing content-type handling for files, blobs, or attachments
  • documenting a reusable MIME-type decision point in a .NET application

Install

dotnet add package ManagedCode.MimeTypes --version 10.1.1

Use PackageReference when the repository centralizes dependency versions:

<PackageReference Include="ManagedCode.MimeTypes" Version="10.1.1" />

The current package targets .NET 8, 9, and 10. Keep the version in the repository's existing central package-management file when one is present.

Workflow

  1. Identify where the application needs stable MIME-type decisions:
    • upload validation
    • download response headers
    • storage metadata
    • attachment processing
  2. Centralize content-type mapping instead of scattering ad-hoc string tables across the codebase.
  3. Use one library boundary for extension and MIME lookups.
  4. Validate the extensions and media types that matter to the product.
  5. Document any product-specific overrides separately from the library defaults.

Read MIME Metadata

Map file names, URLs, and compound extensions through the generated catalog:

using ManagedCode.MimeTypes;

var reportType = MimeHelper.GetMimeType("report.pdf");
var archiveType = MimeHelper.GetMimeType("archive.tar.gz");
var imageType = MimeHelper.GetMimeType("https://cdn.example.test/avatar.png?v=2");
var jpegExtensions = MimeHelper.GetExtensions("image/jpeg");

Use registry metadata when the application needs provenance or registration details:

if (MimeHelper.TryGetMimeTypeInfoByExtension("report.pdf", out var info))
{
    Console.WriteLine($"{info.Mime} registered={info.IsIanaRegistered}");
}

Write Application Mappings

Register product-specific mappings at startup and remove them only when the owning application lifecycle requires it:

Read the full file on GitHub · 127 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 2mo ago Changed · +6 lines f06a7ce583a5
  2. 2mo ago First seen · 121 lines · 118 tokens per session scan A 1e1fe3b3bb81

Subscribe to this mod's changes

managedcode-mimetypes is a skill published in the GitHub repository managedcode/dotnet-skills (527 stars, last pushed 16d ago), licensed MIT. It adds 118 tokens to every session and 1,216 once invoked, about $0.0005 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-03.

Related

managedcode-mimetypes compared with skills from other repositories

managedcode-mimetypes next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
managedcode-mimetypesmanagedcode/dotnet-skillsSkill52716d agoMITA118Claude Code, Codex
clean-architecture-dotnetSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A50Claude Code, Codex
generate-microcks-openapi-samplesSebastienDegodez/copilot-instructionsSkill19923d agoApache-2.0A37Claude Code, Codex
nav-authnavikt/copilotSkill65yesterdayMITA28Claude Code, Codex
kafkanavikt/copilotSkill65yesterdayMITA26Claude Code, Codex
spring-boot-scaffoldnavikt/copilotSkill65yesterdayMITA32Claude Code, Codex
ktor-scaffoldnavikt/copilotSkill65yesterdayMITA30Claude Code, Codex