{"id":"1f4c35fe-177c-43df-b19f-8504a8dab706","shortId":"QbrvKd","kind":"skill","title":"Magika AI File Type Detection and Content Classification","tagline":"Magika is Google's AI-powered file type detector for fast, content-based identification of binary and text files. It is useful when an agent needs safer routing, validation, triage, or downstream policy decisions based on the real file contents instead of just filenames or MIME h","description":"# Magika AI File Type Detection and Content Classification\n\nMagika is Google's AI-powered file type detector for fast, content-based identification of binary and text files. It is useful when an agent needs safer routing, validation, triage, or downstream policy decisions based on the real file contents instead of just filenames or MIME headers.\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- pipx install magika\n- brew install magika\n- cargo install --locked magika-cli\n- pip install magika\n\nRequirements and caveats from upstream:\n- [![image](https://img.shields.io/pypi/v/magika.svg)](https://pypi.python.org/pypi/magika)\n- [![image](https://img.shields.io/pypi/l/magika.svg)](https://pypi.python.org/pypi/magika)\n- [![image](https://img.shields.io/pypi/pyversions/magika.svg)](https://pypi.python.org/pypi/magika)\n\nBasic usage or getting-started notes:\n- Here is an example of what Magika command line output looks like:\n- Magika is used at scale to help improve Google users' safety by routing Gmail, Drive, and Safe Browsing files to the proper security and content policy scanners, processing hundreds billions samples on a weekly basis....\n- After the model is loaded (which is a one-off overhead), the inference time is about 5ms per file, even when run on a single CPU.\n\n- Source: https://github.com/google/magika\n- Extracted from upstream docs: https://raw.githubusercontent.com/google/magika/HEAD/README.md\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/magika-ai-file-type-detection-and-content-classification/)","tags":["magika","file","type","detection","and","content","classification","skills","agentskillexchange","agent-skills","ai-agents","ai-tools"],"capabilities":["skill","source-agentskillexchange","skill-magika-ai-file-type-detection-and-content-classification","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/magika-ai-file-type-detection-and-content-classification","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,597 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:11:13.873Z","embedding":null,"createdAt":"2026-05-18T13:17:37.841Z","updatedAt":"2026-05-18T19:11:13.873Z","lastSeenAt":"2026-05-18T19:11:13.873Z","tsv":"'/google/magika':243 '/google/magika/head/readme.md':250 '/pypi/l/magika.svg)](https://pypi.python.org/pypi/magika)':154 '/pypi/pyversions/magika.svg)](https://pypi.python.org/pypi/magika)':158 '/pypi/v/magika.svg)](https://pypi.python.org/pypi/magika)':150 '/skills/magika-ai-file-type-detection-and-content-classification/)':257 '5ms':230 'agent':35,92,252 'agentskillexchange.com':256 'agentskillexchange.com/skills/magika-ai-file-type-detection-and-content-classification/)':255 'ai':2,14,59,71 'ai-pow':13,70 'base':23,45,80,102 'basi':212 'basic':159 'billion':207 'binari':26,83 'brew':130 'brows':195 'cargo':133 'caveat':144 'classif':8,65 'cli':138 'command':173 'content':7,22,50,64,79,107,202 'content-bas':21,78 'cpu':239 'decis':44,101 'detect':5,62 'detector':18,75 'doc':247 'downstream':42,99 'drive':192 'environ':126 'even':233 'exampl':169 'exchang':254 'extract':244 'fast':20,77 'file':3,16,29,49,60,73,86,106,196,232 'filenam':54,111 'get':163 'getting-start':162 'github.com':242 'github.com/google/magika':241 'gmail':191 'googl':11,68,186 'h':57 'header':114 'help':184 'hundr':206 'identif':24,81 'imag':147,151,155 'img.shields.io':149,153,157 'img.shields.io/pypi/l/magika.svg)](https://pypi.python.org/pypi/magika)':152 'img.shields.io/pypi/pyversions/magika.svg)](https://pypi.python.org/pypi/magika)':156 'img.shields.io/pypi/v/magika.svg)](https://pypi.python.org/pypi/magika)':148 'improv':185 'infer':226 'instal':115,119,128,131,134,140 'instead':51,108 'like':177 'line':174 'load':217 'lock':135 'look':176 'magika':1,9,58,66,129,132,137,141,172,178 'magika-c':136 'match':124 'mime':56,113 'model':215 'need':36,93 'note':165 'one':222 'one-off':221 'output':175 'overhead':224 'path':122 'per':231 'pip':139 'pipx':127 'polici':43,100,203 'power':15,72 'process':205 'proper':199 'raw.githubusercontent.com':249 'raw.githubusercontent.com/google/magika/head/readme.md':248 'real':48,105 'requir':142 'rout':38,95,190 'run':235 'safe':194 'safer':37,94 'safeti':188 'sampl':208 'scale':182 'scanner':204 'secur':200 'setup':121 'singl':238 'skill':253 'skill-magika-ai-file-type-detection-and-content-classification' 'sourc':240,251 'source-agentskillexchange' 'start':164 'text':28,85 'time':227 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'triag':40,97 'type':4,17,61,74 'upstream':118,146,246 'usag':160 'use':32,89,116,180 'user':187 'valid':39,96 'week':211","prices":[{"id":"aa85a80c-4786-4c89-9530-933d008cb1d2","listingId":"1f4c35fe-177c-43df-b19f-8504a8dab706","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:17:37.841Z"}],"sources":[{"listingId":"1f4c35fe-177c-43df-b19f-8504a8dab706","source":"github","sourceId":"agentskillexchange/skills/magika-ai-file-type-detection-and-content-classification","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/magika-ai-file-type-detection-and-content-classification","isPrimary":false,"firstSeenAt":"2026-05-18T13:17:37.841Z","lastSeenAt":"2026-05-18T19:11:13.873Z"}],"details":{"listingId":"1f4c35fe-177c-43df-b19f-8504a8dab706","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"magika-ai-file-type-detection-and-content-classification","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"553c9b8eddbbecf2082dd27780ef5898f19abdf9","skill_md_path":"skills/magika-ai-file-type-detection-and-content-classification/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/magika-ai-file-type-detection-and-content-classification"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Magika AI File Type Detection and Content Classification","description":"Magika is Google's AI-powered file type detector for fast, content-based identification of binary and text files. It is useful when an agent needs safer routing, validation, triage, or downstream policy decisions based on the real file contents instead of just filenames or MIME headers."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/magika-ai-file-type-detection-and-content-classification"},"updatedAt":"2026-05-18T19:11:13.873Z"}}