Code Review
MCP routing
- Preferred path: use MCP
unicatoolsunica.search,unica.check,unica.viewon the object node,unica.docs,unica.view {}, andunica.run. - Runtime идёт через
unica.run: вызов безopотдаёт словарь операций и контракт каждой —argsSchema,execution,previewRequired,ifRevRequiredOnApply. Контракт вызова бери оттуда, а не из этого текста; выбирай только операцию сimplemented: trueи не выдумывай аргументов записи сargsSchema: null; превью исполнением не является. Не обходи контракт прямым runner-ом. - Use
unica.viewat the object's logical address before reviewing code that depends on metadata shape, form structure, rights, DCS, or interfaces; a spreadsheet template is read byunica.viewat its template address. - Do not call internal analyzer, standards, runtime, or package adapters directly. They are hidden behind MCP
unica.
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
- Identify the review scope: changed files, target source-set, affected metadata objects, public entry points.
- Find changed exported methods and entry points with
unica.search; inspect large modules withunica.viewon the module node (itsMethodbranch lists the methods). - Use
unica.viewon the object node for affected metadata objects to connect the review scope with modules, roles, subscriptions, functional options, and predefined items. - Find callers and impact with
unica.searchby the method name (a call graph is not on the v0.13 surface); the same search covers handlers, literals, query fragments, and non-method tokens. - Inspect metadata with
unica.viewon the object node when code depends on object structure. - 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. Useunica.resolvefirst when the diff supplies only a file path. Useunica.docswithsource: "development-standard"for diagnostic codes or standards-sensitive claims. - 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.
- 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
- Findings first: severity, path, issue, impact, suggested fix.
- Then open questions or assumptions.
- Then brief change/test summary only if useful.
Do not rewrite the code during a review unless the user explicitly asks for fixes after the review.