MIME type detection and extractor routing in core/mime.rs — the FORMATS registry that EXT_TO_MIME and SUPPORTED_MIME_TYPES are derived from, the path-based and bytes-based detection functions, priority-based registry selection, wildcard MIME families, and the real procedure for adding a format.
Install
npx skills add xberg-io/xberg --skill mime-detection-routingnpx skills add xberg-io/xberg --skill mime-detection-routing -a claude-code -gnpx skills add xberg-io/xberg --skill mime-detection-routing -a codex -ggemini skills install https://github.com/xberg-io/xberg.git --path .ai-rulez/skills/mime-detection-routinggh skill install xberg-io/xberg mime-detection-routinggit clone --depth 1 https://github.com/xberg-io/xberg /tmp/xberg-io__xberg
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/xberg-io__xberg/.ai-rulez/skills/mime-detection-routing ~/.claude/skills/mime-detection-routing # Claude Code
cp -R /tmp/xberg-io__xberg/.ai-rulez/skills/mime-detection-routing ~/.agents/skills/mime-detection-routing # Codex, Cursor, Gemini CLI, Copilot, OpenCode