ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Openclaw Magika

Skill by axelhu

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/axelhu/openclaw-magika
Or

name: openclaw-magika description: "AI-powered file type detection. Detects file content types (200+ types, ~99% accuracy) using Google Magika deep learning model. Triggered when: (1) user asks to identify/check/detect file type, (2) analyzing uploaded files, (3) batch classifying files by content. Requires: magika CLI (pip install/pipx install/brew). Reads: no config files. No data sent to third parties; local inference only." metadata: {"openclaw":{"emoji":"🔍","requires":{"anyBins":["magika"]}}}}

openclaw-magika

AI-powered file content type detection using Google Magika.

Quick Use

# Single file — label output
magika -l /path/to/file

# MIME type output
magika -i /path/to/file

# Recursive directory scan
magika -r ./workspace/

# JSON output (for programmatic use)
magika --json /path/to/file

# Batch multiple files
magika -r --json ./uploads/

Common Tasks

TaskCommand
Identify single filemagika -l <file>
Get MIME typemagika -i <file>
Recursive scanmagika -r <dir>
Batch JSONmagika --jsonl <files...>
With confidence scoremagika -s -l <file>

Output Labels

Magika identifies 200+ content types including: markdown, json, python, javascript, pdf, zip, png, jpeg, html, xml, sql, csv, png, gif, mp3, mp4, exe, elf, wasm, and many more.

High-confidence predictions are marked with [HIGH]. Low-confidence returns generic labels like text or unknown binary data.

Install

# pipx (recommended)
pipx install magika

# pip
pip install magika

# brew
brew install magika

# curl script
curl -LsSf https://securityresearch.google/magika/install.sh | sh

Notes

  • Fast: ~5ms per file after model loads
  • Accurate: 99% average precision on 200+ file types
  • Local: All inference runs locally, no network needed
  • Size agnostic: Only reads a subset of file content regardless of file size

Metadata

Author@axelhu
Stars4473
Views1
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-axelhu-openclaw-magika": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.