Skip to content
Back to skills

Magika Ai File Type Detection And Content Classification

ASecurity

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.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 8, 2026
ai-agentspythongogitsecurity

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill magika-ai-file-type-detection-and-content-classification --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Magika Ai File Type Detection And Content Classification?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Magika Ai File Type Detection And Content Classification
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-magika-ai-file-type-detection-and-content-classifi/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-magika-ai-file-type-detection-and-content-classifi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Magika AI File Type Detection and Content Classification"
slug: "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."
github_stars: 10199
verification: "security_reviewed"
source: "https://github.com/google/magika"
category: "Security & Verification"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "google/magika"
  github_stars: 10199
  npm_package: "magika"
  npm_weekly_downloads: 4630
---

# Magika AI File Type Detection and Content Classification

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.

## Installation

Use the upstream install or setup path that matches your environment:
- pipx install magika
- brew install magika
- cargo install --locked magika-cli
- pip install magika

Requirements and caveats from upstream:
- [![image](https://img.shields.io/pypi/v/magika.svg)](https://pypi.python.org/pypi/magika)
- [![image](https://img.shields.io/pypi/l/magika.svg)](https://pypi.python.org/pypi/magika)
- [![image](https://img.shields.io/pypi/pyversions/magika.svg)](https://pypi.python.org/pypi/magika)

Basic usage or getting-started notes:
- Here is an example of what Magika command line output looks like:
- 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....
- 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.

- Source: https://github.com/google/magika
- Extracted from upstream docs: https://raw.githubusercontent.com/google/magika/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/magika-ai-file-type-detection-and-content-classification/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.