Xbsl Access Set logo

Xbsl Access Set

Community
korolevpavel
xbsl-access-set

Управляет секцией КонтрольДоступа в объектах конфигурации 1С:Элемент. Два режима: А — сводка текущих прав всех объектов проекта; Б — установить ПоУмолчанию с dry-run и подтверждением. Поддерживает: Справочник, Документ, РегистрСведений, РегистрНакопления, HttpСервис, Обработка (10.0+). Вызывай при запросах «настрой права доступа», «сделай доступным аутентифицированным», «покажи КонтрольДоступа», «установи РазрешеноАутентифицированным». НЕ для RLS (построчного доступа) — используй xbsl-pattern-rls.

Overview

Publisherkorolevpavel
Repositoryxbsl-ai-skills
Skill namexbsl-access-set
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 Access Set 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-access-set
  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-access-set .claude/skills/xbsl-access-set
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Xbsl Access Set 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 Access Set 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 Access Set 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.

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

Назначение

Показывает сводку прав доступа по проекту и позволяет установить значение КонтрольДоступа.Разрешения.ПоУмолчанию с dry-run и подтверждением.

Алгоритм

Шаг 1 — Показать текущее состояние

bash
{python} skills/xbsl-access-set/scripts/access_state.py \
  --root <корень-проекта> [--object <ИмяОбъекта>]

Скрипт выводит JSON. Сформируй таблицу для пользователя:

ОбъектТипПоУмолчанию
СкладыСправочникnull → дефолт = РазрешеноАдминистраторам
ЗаказыДокументРазрешеноАутентифицированным
ЗадачиСправочникРазрешенияВычисляютсяДляКаждогоОбъекта

null = секция КонтрольДоступа отсутствует — платформа применяет РазрешеноАдминистраторам. Для Обработка сводка дополнительно содержит processing_operations: effective_call, source (operation, processing, platform) и rename_requires_recalculation. Собственный КонтрольДоступа операции заменяет настройку обработки для этой операции.

Для изменения права одной операции добавь к dry-run --object <ИмяОбработки> --operation <ИмяОперации> --set РазрешеноАдминистраторам. После проверки плана тот же вызов с --apply меняет только право Вызов этой операции.

Шаг 2 — Определить целевое значение

Если пользователь явно указал значение в запросе — использовать его. Иначе спросить:

Какое значение установить?

  1. РазрешеноАутентифицированным — только вошедшие пользователи (рекомендуется)
  2. РазрешеноВсем — все, включая анонимных
  3. РазрешеноАдминистраторам — только администраторы

⚠️ Если пользователь хочет РазрешенияВычисляютсяДляКаждогоОбъекта (построчный RLS) — направь в скилл xbsl-pattern-rls. Запросы на ручную выдачу или отзыв экземпляров ключа доступа также направляй в xbsl-pattern-rls; access_state.py и список поддерживаемых типов не расширяй.

Шаг 3 — Проверить exit-код при работе с одним объектом

bash
{python} skills/xbsl-access-set/scripts/access_state.py \
  --root <корень> --set <значение> --object <Имя>
  • exit(3) → объект использует РазрешенияВычисляютсяДляКаждогоОбъекта. Сообщи пользователю:

    Объект <Имя> настроен на построчный RLS. Изменение ПоУмолчанию может нарушить логику доступа. Используйте скилл xbsl-pattern-rls.

    Завершить работу, не применять изменений.

  • exit(0) → продолжить к Шагу 4.

Шаг 4 — Dry-run

bash
{python} skills/xbsl-access-set/scripts/access_state.py \
  --root <корень> --set <значение> [--object <Имя>]

Отобразить вывод скрипта (список изменений + пропущенных).

Шаг 5 — Показать план и ОСТАНОВИТЬСЯ

Показать вывод dry-run и завершить ответ. Не выполнять --apply в этом же ходу.

Спросить:

Применить изменения?

  1. Да
  2. Нет

Шаг 6 — Apply (только после подтверждения пользователя)

bash
{python} skills/xbsl-access-set/scripts/access_state.py \
  --root <корень> --set <значение> [--object <Имя>] --apply

Аргументы скрипта

АргументОписание
--rootКорень проекта (по умолчанию .)
--set <значение>Целевое значение ПоУмолчанию. Без флага — режим сводки
--object <Имя>Ограничить одним объектом
--operation <Имя>Выбрать операцию одной Обработки для установки Вызов; требует --object и --set
--applyПрименить изменения (без флага — dry-run)

Допустимые значения --set: РазрешеноВсем, РазрешеноАутентифицированным, РазрешеноАдминистраторам, РазрешенияВычисляются.

Значение РазрешенияВычисляютсяДляКаждогоОбъекта напрямую установить нельзя — используй xbsl-pattern-rls.

Коды выхода

  • 0 — успех
  • 1 — ошибка (проект не найден, объект не найден, недопустимое значение)
  • 3 — объект с --object использует РазрешенияВычисляютсяДляКаждогоОбъекта → направить в xbsl-pattern-rls

Примечания

  • Объекты с РазрешенияВычисляютсяДляКаждогоОбъекта при пакетном обновлении автоматически пропускаются с предупреждением.
  • Если объект уже имеет целевое значение — пропускается (файл не изменяется).
  • Секция вставляется перед Реквизиты:/Измерения:/ШаблоныUrl: в зависимости от типа объекта.
  • HttpСервис: обновляется только верхнеуровневый КонтрольДоступа (не вложенные в ШаблоныUrl).
  • Обработка (10.0+): обычный --set меняет только общее ПоУмолчанию; --operation меняет только Операции[].КонтрольДоступа.Разрешения.Вызов. CLI устанавливает для обработки только статические права. Вычисляемые права с обработчиком настраивай по xbsl-meta-add/references/Обработка.md.
  • При переименовании операции с собственным КонтрольДоступа вызови ИмяОбработки.ПересчитатьРазрешенияДоступа() в обработчике обновления проекта. Сводка помечает такие операции rename_requires_recalculation: true.

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 Access Set AI skill do?

Управляет секцией КонтрольДоступа в объектах конфигурации 1С:Элемент. Два режима: А — сводка текущих прав всех объектов проекта; Б — установить ПоУмолчанию с dry-run и подтверждением. Поддерживает: Справочник, Документ, РегистрСведений, РегистрНакопления, HttpСервис, Обработка (10.0+). Вызывай при запросах «настрой права доступа», «сделай доступным аутентифицированным», «покажи КонтрольДоступа», «установи РазрешеноАутентифицированным». НЕ для RLS (построчного доступа) — используй xbsl-pattern-rls.

Why use Xbsl Access Set on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/korolevpavel/xbsl-ai-skills/tree/master/skills/xbsl-access-set. 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 Access Set?

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 Access Set?

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

Is the Xbsl Access Set 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 👇