Openclaw Magika
Skill by axelhu
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/axelhu/openclaw-magikaname: 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
| Task | Command |
|---|---|
| Identify single file | magika -l <file> |
| Get MIME type | magika -i <file> |
| Recursive scan | magika -r <dir> |
| Batch JSON | magika --jsonl <files...> |
| With confidence score | magika -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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-axelhu-openclaw-magika": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
Openclaw Sleep
Skill by axelhu
superpowers-overview
Use when starting any development work or when unsure which superpowers development skill to use - provides entry point and navigation to the full superpowers skill suite for OpenClaw agents
superpowers-subagent-dev
Use when executing implementation plans with independent tasks - coordinates task execution by dispatching subagents per task with verification checkpoints, adapted for OpenClaw's isolated session model
contacts
通讯录查询与维护技能。用于查找联系人信息(open_id、chat_id、account_id 等)、记录新联系人、或查询历史沟通偏好。触发时机:(1) 需要 @某人或向某渠道发消息时 (2) 认识新联系人后需要录入通讯录时 (3) 查询某人的联系方式或交流偏好时 (4) 询问"谁知道xxx的飞书ID"或"怎么联系xxx"时。
superpowers-executing-plans
Use when executing a written implementation plan in the current session with sequential task execution and review checkpoints - for when subagent-driven mode is not available