update-knowledge

A command for updating a project’s Memory Bank and documentation after its structure or integration changes. The Memory Bank is a set of project notes describing technology, patterns, and product context.

In plain words
What is it for?
Use it after adding modules, changing document structures, modifying registers, changing integration logic, or checking configuration versions.
Why use it?
It reduces the risk that project documentation becomes outdated after modules, metadata, registers, or integrations change.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/rmartynenko/workflow-dev-1c-claude-code/update-knowledge
Clone the repo
git clone --depth 1 https://github.com/rmartynenko/workflow-dev-1c-claude-code

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00527
Opus 5 $0.00000 $0.00264
Sonnet 5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00053

Measured 2d ago against content hash 926b24d9ddaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update-knowledge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/update-knowledge.md · 102 lines

What it actually says

Команда: Обновление базы знаний

Назначение

Актуализация Memory Bank и документации проекта при изменениях структуры расширения.

Когда использовать

  • После добавления новых модулей
  • После изменения структуры документов/справочников
  • После добавления новых регистров
  • При изменении логики интеграции
  • Периодически для проверки актуальности

Действия

1. Сканирование структуры

Просканировать директорию исходников:

[путь к src расширения]

Собрать информацию о:

  • Общих модулях (количество, имена)
  • Документах
  • Справочниках
  • Регистрах сведений
  • Регистрах накопления
  • Перечислениях

2. Обновление CLAUDE.md

  • Обновить версию расширения
  • Обновить счётчики объектов метаданных
  • Актуализировать структуру модулей

3. Обновление Memory Bank

techContext.md
  • Список модулей с описаниями
  • Зависимости
  • MCP конфигурация
systemPatterns.md (если нужно)
  • Новые архитектурные решения
  • Изменения в паттернах
productContext.md (если нужно)
  • Новые бизнес-правила
  • Изменения в сценариях

4. Проверка базовой конфигурации

Если указан путь к базовой конфигурации — проверить актуальность версии.

5. Вывод отчёта

## Отчёт об обновлении базы знаний

### Дата
[Текущая дата]

### Изменения в структуре

#### Добавлено
- [Тип]: [Название]

#### Удалено
- [Тип]: [Название]

#### Изменено
- [Описание изменений]

### Обновлённые файлы
- [ ] CLAUDE.md
- [ ] techContext.md
- [ ] systemPatterns.md
- [ ] productContext.md

### Рекомендации
- [Если есть]

Пример вызова

/update-knowledge

или

Выполни команду обновления базы знаний из .claude/commands/update-knowledge.md

Автоматизация

Рекомендуется выполнять:

  • После каждого значимого изменения структуры
  • В начале новой итерации разработки
  • При переключении между проектами
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 102 lines · 0 tokens per session scan A 926b24d9ddaa

Subscribe to this mod's changes

update-knowledge is a command published in the GitHub repository rmartynenko/workflow-dev-1c-claude-code (40 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 527 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.