Code review

From IngvarConsulting/unica · View interactive version

Code review is an AI agent skill from the GitHub repository IngvarConsulting/unica. Код-ревью BSL и изменений 1С. Используй когда пользователь явно просит review, ревью diff/PR/модуля/изменения, поиск дефектов, регрессий, рисков или недостающих тестов.

How to use this skill

Skill file

Code Review

MCP routing

контракт каждой — argsSchema, execution, previewRequired,

dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;

используй опубликованную argsSchema; при support.state: limited

разрешено только подмножество support.supportedArgs. Недоступной операции

в словаре нет. Для плановой операции сначала проверь результат

dryRun: true, затем исполняй запрос с dryRun: false. Preview

не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.

Review stance

Lead with findings. Order them by severity and ground each finding in a file/line reference, reproducible path, or diagnostic output. Keep summaries secondary.

Workflow

  1. Identify the review scope: changed files, target source-set, affected metadata objects, public entry points.
  2. Find changed exported methods and entry points with unica.search; inspect large modules with unica.view on the module node (its Method branch lists the methods).
  3. Use unica.view on the object node for affected metadata objects to connect the review scope with modules, roles, subscriptions, functional options, and predefined items.
  4. Find callers and impact with unica.view at <method>.Caller (callees at <method>.Callee); unica.search by the method name covers handlers, literals, query fragments, and non-method tokens.
  5. Inspect metadata with unica.view on the object node when code depends on object structure.
  6. Run unica.check {at} on each touched module when the review includes BSL code; a whole-source-set analysis is not on the v0.13 surface, so check module by module. Use unica.resolve first when the diff supplies only a file path. Use unica.docs with source: "development-standard" for diagnostic codes or standards-sensitive claims.
  7. Check high-risk 1C patterns: transaction boundaries, query-in-loop, server/client context, privileged mode, broad rights, background jobs, external calls, temporary files, and silent exception handling.
  8. Check syntax with unica.check (test runs are outside the v0.13 surface); always state the exact unverified runtime risk unless separate execution evidence is supplied.

Output

Do not rewrite the code during a review unless the user explicitly asks for fixes after the review.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.