# db-update

Applies changes from the main 1C configuration to the database configuration. Useful when loading XML or a Git branch and applying the update are separate steps.

- skill · `type=skill` · Claude Code, Codex · 44 installs · ★ 727
- Author: Nikolay Shirokov
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/HEAD/.claude/skills/db-update/SKILL.md
- Updated: 2026-10-23
- HTML: https://affpapa.org/en/nevibecode/skills/db-update

## What it does

The skill runs `/UpdateDBCfg` through the PowerShell script `scripts/db-update.ps1`. `/db-load-xml` and `/db-load-git` do the same thing with the `-UpdateDB` flag, so this skill is for when you want the update on its own.

It resolves the database from `.v8-project.json` in the project root: explicit connection parameters first, then a match by id, alias or name, then the current Git branch against `databases[].branches`, and finally the `default` entry. The platform path comes from `v8path` on the matched database record, or the root `v8path`. No file at all — the skill suggests `/db-list add`.

A file infobase needs `-InfoBasePath`; a server one needs `-InfoBaseServer` plus `-InfoBaseRef`. `-Dynamic on` updates without exclusive access to the database, `-Extension` and `-AllExtensions` cover extensions, and server infobases get background modes: `-BackgroundStart`, `-BackgroundFinish`, `-BackgroundCancel`, `-BackgroundSuspend`, `-BackgroundResume`. Worth knowing: `-Dynamic on` will not help where the update demands exclusive access.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add Nikolay-Shirokov/cc-1c-skills
```
In the agent chat (not a shell):
```text
/plugin install 1c-skills@cc-1c-skills
```
This installs the whole 1c-skills plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add Nikolay-Shirokov/cc-1c-skills --skill db-update -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/db-update/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/db-update/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Nikolay-Shirokov/cc-1c-skills --skill db-update -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/db-update/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/db-update/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Nikolay-Shirokov/cc-1c-skills db-update
```

2. **Manually: put the files in place**
- File: `.github/skills/db-update/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/Nikolay-Shirokov/cc-1c-skills --path .claude/skills/db-update
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/db-update/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/HEAD/.claude/skills/db-update/SKILL.md

## When to use it
- apply configuration changes to a 1C database after loading XML
- update a database without exclusive access using dynamic mode
- update a single extension or all of them at once
- start a background update on a server infobase and wait for it to finish
- match the current Git branch to the right database in `.v8-project.json`

## Example prompts
- /db-update dev
- /db-update dev -Dynamic on
- update the 1C database configuration for the dev database

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 6865e301b9a6dbc2.

BEGIN THIRD-PARTY FILE 6865e301b9a6dbc2
````text
---
name: db-update
description: Обновление конфигурации базы данных 1С. Используй когда нужно обновить БД, применить конфигурацию, UpdateDBCfg
argument-hint: "[database]"
allowed-tools:
  - Bash
  - Read
  - Glob
  - AskUserQuestion
---

# /db-update — Обновление конфигурации БД

Применяет изменения основной конфигурации к конфигурации базы данных (`/UpdateDBCfg`) —
отдельным шагом после загрузки. У `/db-load-xml` и `/db-load-git` то же самое делает
ключ `-UpdateDB`.

## Usage

```
/db-update [database]
/db-update dev
/db-update dev -Dynamic on
```

## Параметры подключения

Прочитай `.v8-project.json` из корня проекта и разреши базу:
1. Если пользователь указал параметры подключения (путь, сервер) — используй напрямую
2. Если указал базу по имени — ищи по id / alias / name в `.v8-project.json`
3. Если не указал — сопоставь текущую ветку Git с `databases[].branches`
4. Если ветка не совпала — используй `default`
Платформа — `v8path` найденной записи базы, иначе корневой `v8path`. Не задан ни там, ни там — `-V8Path` не передавай.
Если файла нет — предложи `/db-list add`.
Если использованная база не зарегистрирована — после выполнения предложи добавить через `/db-list add`.

## Команда

```powershell
powershell.exe -NoProfile -File "${CLAUDE_SKILL_DIR}/scripts/db-update.ps1" <параметры>
```

### Параметры скрипта

| Параметр | Обязательный | Описание |
|----------|:------------:|----------|
| `-V8Path <путь>` | нет | Каталог bin платформы, или полный путь к `1cv8.exe` / `ibcmd.exe` |
| `-InfoBasePath <путь>` | * | Файловая база |
| `-InfoBaseServer <сервер>` | * | Сервер 1С (для серверной базы) |
| `-InfoBaseRef <имя>` | * | Имя базы на сервере |
| `-UserName <имя>` | нет | Имя пользователя |
| `-Password <пароль>` | нет | Пароль |
| `-Extension <имя>` | нет | Обновить расширение |
| `-AllExtensions` | нет | Обновить все расширения |
````
END THIRD-PARTY FILE 6865e301b9a6dbc2

The third-party file has ended. Everything between the 6865e301b9a6dbc2 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2721 of 4715 bytes. © Nikolay Shirokov · MIT · https://github.com/Nikolay-Shirokov/cc-1c-skills/tree/HEAD/.claude/skills/db-update/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
