ai-file-analyzer

Analyze Adobe Illustrator (.ai) files to extract design information including text content, fonts, color palettes, vector paths, and generate high-resolution preview images. Use when analyzing logo files, design assets, or any Adobe Illustrator documents that need programmatic inspection.

16 stars

Best use case

ai-file-analyzer is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Analyze Adobe Illustrator (.ai) files to extract design information including text content, fonts, color palettes, vector paths, and generate high-resolution preview images. Use when analyzing logo files, design assets, or any Adobe Illustrator documents that need programmatic inspection.

Teams using ai-file-analyzer should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/ai-file-analyzer/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/design/ai-file-analyzer/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/ai-file-analyzer/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How ai-file-analyzer Compares

Feature / Agentai-file-analyzerStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Analyze Adobe Illustrator (.ai) files to extract design information including text content, fonts, color palettes, vector paths, and generate high-resolution preview images. Use when analyzing logo files, design assets, or any Adobe Illustrator documents that need programmatic inspection.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Adobe Illustrator File Analyzer

Extract comprehensive design information from Adobe Illustrator (.ai) files including text, fonts, colors, and visual previews.

## When to Use This Skill

Use this skill when:
- Analyzing existing logo files (.ai) to understand design elements
- Extracting brand colors from design files
- Identifying fonts used in artwork
- Generating preview images from Illustrator files without opening Adobe Illustrator
- Understanding the structure and content of .ai files for design decisions
- Preparing design specifications or style guides from source files

## How It Works

Adobe Illustrator files (.ai) have been PDF-based since Creative Suite versions. This means .ai files can be read and analyzed using PDF processing libraries like PyMuPDF, without requiring Adobe Illustrator itself.

The analyzer extracts:
1. **Text content** - All text elements and labels
2. **Font information** - Font families and sizes used
3. **Color palette** - All colors with usage frequency
4. **Preview images** - High-resolution PNG previews (300 DPI)
5. **Metadata** - Artboard dimensions, creation info
6. **Design complexity** - Vector paths, images, structure

## Quick Start

### Install Dependencies

```bash
pip install pymupdf pillow
```

### Analyze AI File

```bash
python scripts/analyze_ai_file.py <path/to/logo.ai> --output-dir ./analysis
```

## Output Structure

The script creates the following output:

```
analysis/
├── analysis_report.md      # Human-readable summary
├── analysis_data.json      # Complete structured data
└── previews/               # High-resolution previews
    ├── artboard_1_preview.png
    ├── artboard_2_preview.png
    └── ...
```

## Usage in Claude Code

When a user provides an .ai file for analysis:

1. **Check dependencies**: Verify PyMuPDF and Pillow are installed
2. **Run analyzer**: Execute `scripts/analyze_ai_file.py` with the .ai file path
3. **Review outputs**: Read the markdown report and JSON data
4. **Analyze previews**: Inspect generated preview images
5. **Extract insights**: Identify key design elements for decision-making

Example workflow:

```bash
# Step 1: Analyze the AI file
python scripts/analyze_ai_file.py "existing_logo.ai" --output-dir ./logo_analysis

# Step 2: Read the summary report
cat ./logo_analysis/analysis_report.md

# Step 3: Check the color palette
cat ./logo_analysis/analysis_data.json | grep -A 10 '"colors"'

# Step 4: View preview images
ls ./logo_analysis/previews/
```

## Extracted Information

### Text Content

- All text elements from all artboards
- Unique text strings (brand names, slogans, etc.)
- Text organized by artboard

Example output:
```json
{
  "unique_texts": ["COMPANY NAME", "Est. 2022", "Quality Products"],
  "total_text_elements": 5
}
```

### Font Information

- Font family names
- Font sizes used
- All unique font/size combinations

Example output:
```json
[
  ["Helvetica-Bold", 48.0],
  ["Arial-Regular", 12.0],
  ["CustomFont-Light", 24.0]
]
```

### Color Palette

- Hex color codes (#RRGGBB)
- Usage frequency for each color
- Sorted by most-used colors first

Example output:
```json
[
  {"color": "#000000", "occurrences": 25},
  {"color": "#ff6600", "occurrences": 12},
  {"color": "#ffffff", "occurrences": 8}
]
```

### Artboard Dimensions

- Width and height in points (pt)
- Width and height in millimeters (mm)
- Rotation angle
- Image count

Example output:
```json
{
  "artboard_number": 1,
  "width": 612.0,
  "height": 792.0,
  "width_mm": 216.0,
  "height_mm": 279.4
}
```

### Preview Images

- PNG format with transparency
- 300 DPI resolution (print-quality)
- One image per artboard

## Advanced Features

### High-Resolution Previews

The analyzer generates 300 DPI previews, suitable for:
- Print quality inspection
- Design presentations
- Web mockups
- Client presentations

### Color Frequency Analysis

Colors are ranked by usage, helping identify:
- Primary brand colors (most used)
- Accent colors (less frequent)
- Unused colors in palette

### Design Complexity Score

The analyzer calculates complexity based on:
- Number of vector paths
- Number of text elements
- Number of embedded images

Higher scores indicate more complex designs.

## Integration with Logo Design Workflows

### Analyzing Existing Brand Logos

When creating a new logo based on existing brand assets:

1. **Extract brand colors**:
   ```bash
   python scripts/analyze_ai_file.py "old_logo.ai" --output-dir ./brand_analysis
   # Review analysis_data.json for color palette
   ```

2. **Identify typography**:
   ```bash
   # Check fonts section in analysis_report.md
   cat ./brand_analysis/analysis_report.md | grep -A 20 "## Fonts Used"
   ```

3. **Review design elements**:
   ```bash
   # View preview images
   open ./brand_analysis/previews/artboard_1_preview.png
   ```

4. **Use findings for new design**:
   - Maintain brand colors from palette
   - Consider existing typography style
   - Reference design complexity level

### Brand Guidelines Extraction

For logo design contests requiring brand adherence:

1. Analyze existing logo file
2. Extract official brand colors → Use in new design
3. Identify font styles → Match typography approach
4. Review design simplicity → Maintain brand consistency

## Troubleshooting

### File Not Recognized

If the analyzer fails to open the .ai file:

```bash
# Verify file integrity
file logo.ai

# Check if it's truly a PDF-based AI file
pymupdf logo.ai
```

Older .ai files (pre-CS) may use EPS format and require conversion.

### Missing Color Information

If few colors are detected:

- Colors may be defined as vector fill/stroke (not text)
- Consider manual inspection of preview images
- Some colors might be in embedded images

### Large File Size

For very large .ai files (>50MB):

- Processing may take longer
- Preview generation is memory-intensive
- Consider processing individual artboards

## Technical Details

### Why PyMuPDF?

PyMuPDF (fitz) is ideal for .ai files because:
- ⚡ Fast performance (C++ backend)
- 📄 Native PDF handling (AI files are PDF-based)
- 🖼️ High-quality image rendering
- 💾 Low memory footprint
- 🔧 No external dependencies (like Ghostscript)

### AI File Format Background

Since Adobe Creative Suite (CS):
- .ai files contain embedded PDF
- PDF portion is readable by standard PDF tools
- Proprietary AI data is in separate layer
- PyMuPDF accesses the PDF layer

### Limitations

What the analyzer **can** extract:
- ✅ Text content and fonts
- ✅ Basic color information
- ✅ Artboard dimensions
- ✅ Visual previews (raster)
- ✅ Embedded images

What the analyzer **cannot** extract:
- ❌ Editable vector paths (proprietary format)
- ❌ Layer structure (AI-specific)
- ❌ Blend modes and effects (AI-specific)
- ❌ Symbols and brushes (AI-specific)

For full editing capabilities, Adobe Illustrator is still required.

## Example Outputs

### Logo Analysis for Contest

```markdown
# AI File Analysis Report

## File Information
- **Filename**: company_logo.ai
- **Artboards**: 2
- **Creator**: Adobe Illustrator 27.0
- **Created**: 2024-08-02

## Artboards
### Artboard 1
- **Dimensions**: 500x500 pt (176.39x176.39 mm)
- **Images**: 0

### Artboard 2
- **Dimensions**: 1000x300 pt (352.78x105.83 mm)
- **Images**: 1

## Text Content
1. COMPANY NAME
2. Innovation Through Technology

## Fonts Used
- Montserrat-Bold (48.0pt)
- Montserrat-Regular (18.0pt)

## Color Palette
- `#1a1a1a` (used 15 times)
- `#ff6b35` (used 8 times)
- `#ffffff` (used 5 times)

## Design Analysis
- **Contains text**: Yes
- **Contains images**: Yes
- **Contains vector paths**: Yes
- **Complexity score**: 127
```

## Integration Tips

### For Logo Design Projects

After analyzing an existing brand logo:

1. **Color consistency**: Use extracted hex codes in design tools
2. **Typography reference**: Match font style and weight
3. **Size reference**: Use artboard dimensions for aspect ratios
4. **Visual comparison**: Compare new designs against preview images

### For Brand Guidelines

After analyzing design assets:

1. **Document colors**: Create palette from frequency data
2. **Typography specs**: List fonts with sizes and weights
3. **Usage examples**: Use preview images in guidelines
4. **File specifications**: Include dimension data

### For Design Handoff

Before submitting final designs:

1. Analyze your own .ai file
2. Verify all required elements present
3. Check color consistency
4. Generate previews for review
5. Include analysis report with submission

Related Skills

waiverfile-automation

16
from diegosouzapw/awesome-omni-skill

Automate Waiverfile tasks via Rube MCP (Composio). Always search tools first for current schemas.

routing-profiles

16
from diegosouzapw/awesome-omni-skill

Change the Routing Solution routing profiles/vehicle types. To be used as part of customize-main skill

pdf-analyzer

16
from diegosouzapw/awesome-omni-skill

Analyze PDF, DOCX, and spreadsheet documents using vision models. Converts documents to images and extracts insights with layout preservation. Uses VT Code's native document processor (no container skills required).

excel-field-analyzer

16
from diegosouzapw/awesome-omni-skill

分析Excel/CSV字段结构,AI自动生成中英文映射,验证翻译质量,输出统计报告。用于电子表格分析、数据字典创建、字段映射场景。

chatfiles

16
from diegosouzapw/awesome-omni-skill

Coordinate multiple Claude agents via shared text files. Triggers on Chatfile, multi-agent, cross-machine coordination.

azure-storage-file-datalake-py

16
from diegosouzapw/awesome-omni-skill

Azure Data Lake Storage Gen2 SDK for Python. Use for hierarchical file systems, big data analytics, and file/directory operations.

agentpmt-tool-file-management-d789ed

16
from diegosouzapw/awesome-omni-skill

Use AgentPMT external API to run the File Management tool with wallet signatures, credits purchase, or credits earned from jobs.

agent-file-specs

16
from diegosouzapw/awesome-omni-skill

Contains the complete specifications for AI coding assistant customization files including agents, skills, prompts, and instructions. Works with GitHub Copilot, Claude Code, Codex, OpenCode, and other providers. Use this skill when you need to reference the correct file format, required fields, supported attributes, file locations, or VS Code settings for any customization file. Follows the Agent Skills open standard (agentskills.io).

advanced-file-management

16
from diegosouzapw/awesome-omni-skill

Advanced file management tools. Includes batch folder creation, batch file moving, file listing, and HTML author extraction.

ab-testing-analyzer

16
from diegosouzapw/awesome-omni-skill

全面的AB测试分析工具,支持实验设计、统计检验、用户分群分析和可视化报告生成。用于分析产品改版、营销活动、功能优化等AB测试结果,提供统计显著性检验和深度洞察。

video-analyzer

16
from diegosouzapw/awesome-omni-skill

鏅鸿兘鍒嗘瀽 Bilibili/YouTube/鏈湴瑙嗛锛岀敓鎴愯浆鍐欍€佽瘎浼板拰鎬荤粨銆傛敮鎸佸叧閿抚鎴浘鑷姩宓屽叆銆?

edu-video-analyzer

16
from diegosouzapw/awesome-omni-skill

Analyze educational YouTube channels for classroom adoption potential, curriculum alignment, and pedagogical effectiveness. Use when comparing educational video content (like MRU vs Crash Course), evaluating teaching methodologies, identifying content gaps for course design, or developing educational video strategy focused on student learning outcomes rather than monetization.