framework_eng/skills/tool-usage/diagnostics/agent-debug/SKILL.md
Debug-message pattern for 1С BSL. Use when standard diagnostics (event-log, screenshots) do not reveal the actual system behavior — you need to insert temporary logging points into code, run a test, and analyze the registration log entries.
npx skillsauth add steelmorgan/1c-agent-based-dev-framework agent-debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
| Trigger | Action | |---------|--------| | Standard diagnostics do not help understand behavior | Insert debug points | | Hypothesis about the root cause needs confirmation/refutation | Log key values | | It is unclear which branch of code is executing | Place markers across branches |
Do not use if the answer can be obtained by reading the code, the event-log, or a screenshot.
//[AGENTDEBUG-001]
ЗаписьЖурналаРегистрации("AgentDebug",
УровеньЖурналаРегистрации.Информация, , ,
"STEP=001 PROC=ОбработкаПроведения MSG=Проверка суммы"
+ " | СуммаДокумента=" + Строка(СуммаДокумента)
+ " | Статус=" + Строка(Статус));
///[AGENTDEBUG-001]
//[AGENTDEBUG-NNN]///[AGENTDEBUG-NNN] (three slashes)| Parameter | Value | Why |
|-----------|-------|-----|
| ИмяСобытия | "AgentDebug" | Filtering: all debug entries with one query |
| Уровень | Информация | Persisted reliably in the registration log (note may be omitted) |
| МетаданныеОбъекта | Неопределено or a specific object | Specify if obvious for additional filtering |
| Данные | Reference to an object or Неопределено | For correlation with a specific document/element |
| Комментарий | STEP=NNN PROC=... MSG=... \| key=value | Structured format, easy to parse |
STEP=001 PROC=ОбработкаПроведения MSG=Brief description of the hypothesis | Key1=Value1 | Key2=Value2
STEP is the point number (matches the marker)PROC is the name of the procedure/functionMSG describes what is being verified (the hypothesis)| list key values in key=value format//[AGENTDEBUG-NNN] ... ///[AGENTDEBUG-NNN]ИмяСобытия = "AgentDebug", sort by timeIf one iteration is not enough — adjust the points and repeat (steps 2-6). If 10+ points are needed — the hypothesis is too broad; split it into several.
Search order for a suitable place:
Delegating code study to a subagent (Explorer / code-navigation) is preferable.
MUST before finishing the task:
AGENTDEBUG — no occurrences should remainLine-by-line removal:
//[AGENTDEBUG-NNN]///[AGENTDEBUG-NNN]| Anti-pattern | Consequence | |--------------|-------------| | Production code inside the debug block | Removing the block breaks business logic | | Debug blocks left in the final code | Registration log pollution, data leakage | | 10+ points for one hypothesis | Hypothesis is too broad; results unclear | | Logging value tables / large structures | Registration log overflow, slowdown | | Free text instead of key=value | Hard to parse during analysis |
depends_on:
tools
Diagnostics for Vanessa Automation runs. Use when a feature scenario failed, artifacts were not created, or you need to classify a failure after launch.
tools
Creating and refining Vanessa Automation feature scenarios based on real project requirements. Use when you need to write or update a scenario test, not just run it.
tools
--- name: v8-session-manager description: Use when working with the 1С session manager (v8-session-manager) - launch, configuration, connecting 1С clients, reading session_list, calling proxied MCP-tools from 1С extensions, diagnostics. Triggers: mention of `v8-session-manager`, `session_list`, 1С extension MCP showcase, error “no active sessions” / “session_id required”, connecting a client to the manager via `mcpMode=ws`. provides_capabilities: # Built-in manager tools — always available whi
tools
Use when Codex needs to manage v8-runner on local 1C projects through the CLI: configure v8project.yaml, initialize infobases or EDT workspaces, build sources from Designer or EDT, run syntax checks and tests, dump infobase changes, convert source formats, load or export artifacts, launch 1C clients, or choose safe 1C automation command sequences.