View Attachment logo

View Attachment

Community
tkellogg
view-attachment

View image or file attachments that you can't directly see. Use this skill when you receive a message with attachments listed as file paths and you need to understand their contents. Especially useful for text-only models that cannot process images natively.

Overview

Publishertkellogg
Repositoryopen-strix
Skill nameview-attachment
Stars
95
Forks
21
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by tkellogg on GitHub. Read the source before you install it.

Installation

Install the View Attachment AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/tkellogg/open-strix/tree/main/open_strix/builtin_skills/view-attachment
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/tkellogg/open-strix.git /tmp/open-strix
mkdir -p .claude/skills
cp -r /tmp/open-strix/open_strix/builtin_skills/view-attachment .claude/skills/view-attachment
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable View Attachment in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads View Attachment on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so View Attachment is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

view-attachment

When a message includes attachments, you see file paths like:

attachments:
  - state/attachments/12345-screenshot.png

These are real files on disk. You can't see them inline, but you have several ways to inspect them depending on the file type.

Step 1: Identify the File Type

Check the extension:

  • Images: .png, .jpg, .jpeg, .gif, .webp, .svg, .bmp
  • Text/code: .txt, .md, .py, .js, .json, .csv, .log, .yaml, .toml
  • Documents: .pdf
  • Other: anything else

Step 2: Choose a Viewing Strategy

For Text-Based Files

Read them directly — these are just text:

bash
cat state/attachments/12345-notes.txt

For Images (When You Can't View Them Natively)

Try these approaches in order of usefulness:

Option A: Describe from context Often the surrounding message gives enough context. If someone says "look at this error" and attaches a screenshot, the error is probably in their message text too. Ask if unclear.

Option B: File metadata Get dimensions, format, and size to understand what you're looking at:

bash
file state/attachments/12345-image.png
identify state/attachments/12345-image.png 2>/dev/null  # if ImageMagick available

Option C: OCR with Tesseract Extract text content from screenshots, documents, or photos of text:

bash
tesseract state/attachments/12345-screenshot.png stdout 2>/dev/null

Option D: Convert to SVG (for simple graphics/charts) Trace bitmap images into vector format you can reason about:

bash
# Install if needed: apt-get install -y potrace
convert state/attachments/12345-chart.png pbm:- | potrace --svg -o - 2>/dev/null

SVG output is XML text — you can read the paths and shapes.

Option E: Base64 encode If another tool or API accepts base64 images, encode it:

bash
base64 -w0 state/attachments/12345-image.png

Warning: base64 output is large. Only use this if you're passing it to a vision-capable API or tool, not for your own comprehension.

Option F: Pixel sampling (last resort) For very simple images, sample pixel values at key coordinates:

bash
# Get the color at specific pixel coordinates (requires ImageMagick)
convert state/attachments/12345-image.png -format '%[pixel:p{100,100}]' info: 2>/dev/null

For PDFs

bash
# Extract text
pdftotext state/attachments/12345-document.pdf - 2>/dev/null

Step 3: Be Honest About Limitations

If none of these approaches give you useful information:

  1. Say what you tried
  2. Describe what you CAN tell (file size, type, metadata)
  3. Ask the human to describe what's in the attachment

Never pretend you can see an image when you can't. Never hallucinate image contents.

Frequently asked questions

What does the View Attachment AI skill do?

View image or file attachments that you can't directly see. Use this skill when you receive a message with attachments listed as file paths and you need to understand their contents. Especially useful for text-only models that cannot process images natively.

Why use View Attachment on TypingMind?

Because you install it once and use it with any model. View Attachment is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install View Attachment in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/tkellogg/open-strix/tree/main/open_strix/builtin_skills/view-attachment. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use View Attachment?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with View Attachment?

As many as you like. As long as a model supports skills, you can use View Attachment with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the View Attachment AI skill free?

Yes. It is published on GitHub by tkellogg under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇