Xbsl Image Add logo

Xbsl Image Add

Community
korolevpavel
xbsl-image-add

Добавление фото и изображений (аватар, фото товара, иконка) к объекту конфигурации 1С:Элемент. Поддерживает 2 паттерна: P5 — простое фото без обработки (ВыборФайлов + Картинка); P6 — фото с серверной обработкой (ресайз, обрезка по кругу через ОбрабатываемоеИзображение). Вызывай когда пользователь хочет добавить аватар сотрудника, фото товара, логотип компании, изображение профиля или любое одиночное изображение к справочнику или документу. НЕ для файловых вложений (используй xbsl-file-add).

Overview

Publisherkorolevpavel
Repositoryxbsl-ai-skills
Skill namexbsl-image-add
Stars
45
Forks
4
Bundled files
1
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.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

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

Installation

Install the Xbsl Image Add 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/korolevpavel/xbsl-ai-skills/tree/master/skills/xbsl-image-add
  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/korolevpavel/xbsl-ai-skills.git /tmp/xbsl-ai-skills
mkdir -p .claude/skills
cp -r /tmp/xbsl-ai-skills/skills/xbsl-image-add .claude/skills/xbsl-image-add
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xbsl Image Add 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 Xbsl Image Add 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 Xbsl Image Add 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.

На target 10.0+ при загрузке фото и особенно при P6 прочитай ../xbsl-file-add/references/file-names-10.md. Используй имя загруженного объекта; режим исправления имён общий для приложения и не изменяется в обработчике фото.

Во всех командах ниже {python} означает python в Windows и python3 в macOS/Linux/WSL. Выбирай команду сразу по текущей ОС, не запускай оба варианта.

Ключевое отличие от xbsl-file-add

ВыборФайлов не хранит файл автоматически — он вызывает обработчик ПриИзменении, который должен загрузить файл через ЗагрузкаФайлов и сохранить в реквизит. Это требует .xbsl файла обработчика — его нет в xbsl-file-add.

Перед созданием обработчика прочитай docs/xbsl-spec.md. Прочитай references/patterns.md перед выполнением — там YAML и XBSL шаблоны для обоих паттернов.


Алгоритм

Шаг 1 — Определить паттерн и placeholder

ПаттернКогда выбирать
P5 — Простое фотозагрузка без обработки, хранится как есть
P6 — Фото с обработкойнужен ресайз и/или обрезка по кругу (аватар профиля)

Placeholder-изображение (заглушка когда фото не загружено):

КонтекстPlaceholder
Фото/аватар аккаунта, пользователя, сотрудника, контактаРесурс{Аккаунт.svg}.Ссылка
Любое другое изображение (товар, документ, объект)Ресурс{Файл.svg}.Ссылка

Если пользователь просит «фото аккаунта», «аватар», «фото профиля» — используй Аккаунт.svg. Во всех остальных случаях — Файл.svg.

Шаг 2 — Анализ объекта (параллельно с шагом 1)

bash
{python} skills/xbsl-form-info/scripts/form_info.py --name <ИмяОбъекта> --root .

Из результата взять:

  • object_path + object_file — путь к YAML объекта
  • fields — проверить наличие реквизита Фото
  • existing_forms — найти YAML формы объекта

Если скрипт вернул error — сообщи пользователю и остановись.

Если реквизит Фото уже есть в fields — спроси пользователя:

  • Использовать существующий → пропустить шаги 3 и 4, имя реквизита Фото, имя метода ПриВыбореФото
  • Создать новый → спроси имя нового реквизита, продолжить со шага 3; имя метода — ПриВыборе<ИмяРеквизита>

Шаг 3 — UUID

Вызвать скилл xbsl-uuid → 1 UUID для реквизита изображения.

Шаг 4 — Обновить YAML объекта

Добавить в конец Реквизиты (шаблон из references/patterns.md, раздел «Реквизит»):

yaml
-
    Ид: <UUID>
    Имя: <ИмяРеквизита>
    Тип: ДвоичныйОбъект.Ссылка?

Шаг 5 — Обновить форму объекта

Найти файл формы из existing_forms["ФормаОбъекта"].

Если форма не найдена: вызови скилл xbsl-form-add для создания формы объекта (и формы списка если нужна), затем продолжи выполнение этого скилла — не останавливайся, добавь изображение в только что созданную форму.

Если форма найдена: добавить группу с Картинка + ВыборФайлов по шаблону из references/patterns.md.

Место вставки группы фото:

  • Объект-человек (сотрудник, пользователь, контакт, аккаунт) → в начало формы, перед полями
  • Любой другой объект (документ, товар, задача и т.д.) → в конец формы, после полей

Шаг 6 — Добавить .xbsl обработчик

Файл называется по имени формы: <НазваниеФормы>.xbsl, рядом с YAML формы.

  • Если файл уже существует — дописать метод(ы) в конец
  • Если не существует — создать новый

Шаблоны из references/patterns.md:

  • P5: метод ПриВыбореФото
  • P6: метод ПриВыбореФото + статический серверный метод ОбработатьФото

Имя реквизита — Фото (по умолчанию). Имя метода — ПриВыборе<ИмяРеквизита> (например ПриВыбореФото, ПриВыбореАватара).

Шаг 7 — Итог

Перечислить изменённые/созданные файлы:

  • <ОбъектYAML> — добавлен реквизит ДвоичныйОбъект.Ссылка?
  • <ФормаYAML> — добавлены компоненты Картинка + ВыборФайлов
  • <ФормаXBSL> — создан/обновлён обработчик

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Xbsl Image Add AI skill do?

Добавление фото и изображений (аватар, фото товара, иконка) к объекту конфигурации 1С:Элемент. Поддерживает 2 паттерна: P5 — простое фото без обработки (ВыборФайлов + Картинка); P6 — фото с серверной обработкой (ресайз, обрезка по кругу через ОбрабатываемоеИзображение). Вызывай когда пользователь хочет добавить аватар сотрудника, фото товара, логотип компании, изображение профиля или любое одиночное изображение к справочнику или документу. НЕ для файловых вложений (используй xbsl-file-add).

Why use Xbsl Image Add on TypingMind?

Because you install it once and use it with any model. Xbsl Image Add 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 Xbsl Image Add in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/korolevpavel/xbsl-ai-skills/tree/master/skills/xbsl-image-add. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Xbsl Image Add?

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 Xbsl Image Add?

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

Is the Xbsl Image Add AI skill free?

Yes. It is published on GitHub by korolevpavel 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 👇