1c-web-session skill

A Claude Code skill for driving the 1C web client through Playwright MCP: sessions, navigation, catalogs, documents and test data

  • 33 ★ on the repository
  • Last commit
Skill

Broad access

Why this level

  • Creates and posts documents in the infobase through the UI
  • Runs arbitrary JS scenario code in the browser
All reasons and checks
Russian stack

roolee10/1c-web-session

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/1c-web-session

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Broad accessThe tool can change data, run commands or handle secrets.

  • Creates and posts documents in the infobase through the UI
  • Runs arbitrary JS scenario code in the browser

This is third-party code. Review the repository files before installing.

What it does

The skill teaches the agent to operate a published 1C infobase in the browser through Playwright MCP. It starts and ends sessions, handles login and license dialogs, navigates sections and caches menu item IDs for a specific infobase in .claude/1c-nav.json. The agent creates catalog items, fills and posts documents with tabular sections, generates test data and runs JS scenarios for scenario testing. It bundles techniques that plain Playwright needs in the 1C web client: clipboard paste input and selectors for choice buttons.

Who it is for. For 1C developers and testers who want the agent to walk through user scenarios in the web client.

Good fit when

  • You need to fill a test infobase with catalogs and documents through the UI
  • You need to run a user scenario after a form change
  • You need to reproduce a bug that shows up only in the web client

Not a fit when

  • The infobase is not published on a web server
  • It is a live infobase with real data: the agent posts documents

Example request

Start the infobase, create a product catalog item for a family ticket and post a sales document for client Petrova

Limitations

Requires Claude Code, Playwright MCP and a published 1C web infobase whose URL goes into the project CLAUDE.md. Some techniques, such as loading a scenario via the clipboard, assume PowerShell. UI-driven work is slower and more sensitive to form changes than code-level tests.

How to disable. Delete the .claude/skills/1c-web-session folder from the project and, if needed, the playwright server from .mcp.json.

FAQ

Why not just use Playwright without the skill?

1C web client fields handle standard Playwright input poorly, and menu IDs differ per infobase. The skill documents workarounds and a navigation cache.

How do I run my own scenario?

Write an async (page) JS function and ask the agent to run the scenario by file path; it executes it in the current session.

Discussion

No questions or reviews yet.

Russian stack

A 1C development skill collection for Codex and Claude Code: XML sources, forms, data composition, infobases, web publishing and an HTTP test bridge

SkillBroad access62Repository stars
Russian stack

An MCP server that drives the 1C test client's interface directly: opens forms, fills fields, records and replays scenarios

MCP serverBroad access74Repository stars
Russian stack

The 1c-dev Claude Code plugin: discussing a 1C task in dialogue, a technical spec, dependency-aware steps, and executing one verified step at a time

PluginMinimal access
Editors’ pick

Skills covering the full 1C:Enterprise 8.3 development cycle, from XML sources to publishing and web client testing

SkillBroad access743Repository stars
Russian stack

A large set of skills, rules and commands that let an agent build and parse 1C sources in the platform's format, without the Designer

SkillExtended access86Repository stars

README in short

The README lists what the skill does and explains 1C web client techniques: clipboard paste, choice button selectors, a navigation cache and long action chains in one call. Requirements are Claude Code, Playwright MCP and a published infobase, with a sample .mcp.json. Installation means copying the .claude folder into the project, and a demo video shows scenario testing. MIT licensed.

README badge

Original SKILL.md

---
name: 1c-web-session
description: >
  Взаимодействие с 1С:Предприятие в веб-клиенте через Playwright.
  Использовать для ЛЮБОЙ работы в браузере с 1С-базой: запуск/перезапуск/
  завершение сеанса; навигация по разделам интерфейса; создание и
  редактирование справочников и документов; заполнение форм и табличных
  частей; генерация тестовых данных через UI. Содержит паттерны: clipboard
  paste, DLB-кнопки, пикеры, навигационный кеш, обработка диалогов 1С,
  оптимизация browser_run_code. Триггеры: открой/запусти/перезапусти/
  заверши базу; создай/добавь/измени элемент справочника или документа;
  проведи документ; сгенерируй тестовые данные; любое browser_* действие
  в 1С-базе.
---

# Управление сеансом 1С в веб-клиенте

## Запуск базы

Прочитать `CLAUDE.md` проекта (Read tool) и найти URL базы. Формат обычно: `http://localhost/<имя-базы>/ru_RU/`

Использовать `browser_navigate` для перехода по URL. Если сеанс уже запущен — сначала завершить (см. ниже).

## Запуск JS-сценариев по пути

Команда пользователя вида `запусти сценарий <путь-к-файлу>.js` означает: выполнить код этого файла в текущем сеансе 1С через `browser_run_code`.

Формат сценария: JS-выражение функции `async (page) => { ... }` (пример: `.claude/scenarios/*.js`).

Не искать отдельный npm/ps1-раннер как первый шаг. Не запускать файл как обычный Node.js-скрипт.

Алгоритм:
1. Проверить существование файла сценария по указанному пути.
2. Запустить или восстановить сеанс 1С (URL из `CLAUDE.md`, обработать лицензию и форму входа по правилам этого скилла).
3. Выполнить сценарий способом A (по умолчанию). При недоступном clipboard переключиться на способ B.

### Способ A (рекомендуемый по скорости): clipboard loader

Использовать по умолчанию. Это самый быстрый способ для длинных сценариев: в `browser_run_code` передаётся короткий загрузчик, а не весь файл.

1. Скопировать файл сценария в буфер обмена:
```powershell
Get-Content -LiteralPath <путь-к-сценарию> -Raw | Set-Clipboard
```

Report a problem

Foxx AI1c-web-session
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.