/vmkteam-developer:mr-review <mr_iid> [--focus security|performance|...]from vmkteam-developer
Reviews GitLab merge requests by fetching diff, analyzing code, and publishing inline threads. Supports focus areas like security or performance.
Ships in vmkteam-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Полный цикл code review для MR в GitLab: получить diff, проанализировать код, опубликовать замечания как inline threads.
Подключения — из project-index.md в auto-memory проекта и ~/.claude/memory/infra-{group}.md.
/mr-review 42
/mr-review 42 --focus security
/mr-review 42 --focus performance
FETCH MR → READ CODE → REVIEW → SUMMARY → ⏸ HITL → PUBLISH
# Детали MR (title, description, author, source/target branch, diff_refs)
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}' -s
# Diff (список изменённых файлов с содержимым)
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/changes' -s
# Коммиты MR
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/commits' -s
# Существующие discussions (чтобы не дублировать замечания)
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/discussions?per_page=100' -s
Извлечь:
diff_refs (base_sha, start_sha, head_sha) — нужны для inline commentsДля каждого изменённого файла:
git fetch origin && git checkout {source_branch}Дополнительно:
Запустить /go-review в режиме MR: изменения — diff из шага 1 (или git diff origin/{target_branch}...origin/{source_branch}), preflight локальной базы не нужен. 6 ревьюеров:
Если указан --focus — углубиться в этот аспект, не отбрасывая находки по остальным.
Дополнительные проверки (сверх /go-review):
*_zenrpc.go, *_colgen.go, *_mfd.go) — пропустить, но убедиться что они обновленыmake generate consistency — если менялись структуры/аннотации, обновлены ли сгенерированные файлы?Сформировать два артефакта:
## Code Review Summary
**MR:** !{mr_iid} — {title}
**Reviewed by:** Claude (/go-review — 6 perspectives)
### Verdict: {Approve / Request Changes / Comment}
### Acceptance
- met: {критерий из задачи}
- unmet: {критерий} — {почему}
### Findings
| # | Severity | Confidence | File | Line | Issue |
|---|----------|------------|------|------|-------|
| 1 | blocker | high | {file} | {line} | {description} |
| 2 | major | medium | {file} | {line} | {description} |
| 3 | minor | low | {file} | {line} | {description} |
### What's good
- {positive finding 1}
- {positive finding 2}
### Recommendations
- {recommendation 1}
Для каждого замечания severity blocker/major/minor — подготовить inline comment с:
**[blocker]**, **[major]**, **[minor]**Замечания nit — только в summary, без отдельных threads. Находки с уверенностью low пометь в тексте замечания как предположение — пользователь решит на HITL, публиковать ли их.
Показать пользователю:
Пользователь решает:
Тексты замечаний — многострочный markdown с кавычками и кодом, поэтому JSON собирается через jq, а не руками.
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/notes' -s -X POST \
-H 'Content-Type: application/json' \
-d "$(jq -n --arg body "$SUMMARY" '{body: $body}')"
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/discussions' -s -X POST \
-H 'Content-Type: application/json' \
-d "$(jq -n --arg body "$COMMENT" --arg path '{file_path}' --argjson line {line_number} \
--arg base '{base_sha}' --arg start '{start_sha}' --arg head '{head_sha}' \
'{body: $body, position: {position_type: "text", base_sha: $base, start_sha: $start, head_sha: $head, old_path: $path, new_path: $path, new_line: $line}}')"
base_sha,start_sha,head_shaизdiff_refs(шаг 1).new_line— номер строки в новой версии файла. Для удалённых строк использоватьold_lineвместоnew_line.
pcurl @{gl_profile} 'https://{gl_host}/api/v4/projects/{gl_project_id}/merge_requests/{mr_iid}/approve' -s -X POST
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub vmkteam/claude-plugins --plugin vmkteam-developer36 skills in this plugin
/api-healthAPI Health — проверка здоровья JSON-RPC сервиса через SMD. Используй когда нужно убедиться что RPC-endpoint жив, собрать тайминги методов или диагностировать недоступность API./appkitAppkit — библиотека vmkteam/appkit: метрики, pprof, HTTP client, service metadata, X-Request-ID. Используй при подключении метрик/pprof в сервис, работе с HTTP-клиентом appkit или добавлении корреляционных ID./ci-cdCI/CD — GitLab CI + Nomad deploy для Go-сервисов vmkteam. Используй при редактировании .gitlab-ci.yml, *.nomad.hcl, настройке пайплайна или дебаге деплоя./colgenColgen — коллекции и конвертеры Go-структур. Используй, когда пишешь цикл, который собирает id, строит map по полю, группирует, заполняет связи или конвертирует список между слоями (включая лямбды в `Map`/`mcp.Map`); при новом DTO или модели домена; при правке collection.go./commit-msgCommit message — краткое сообщение коммита на английском из git diff. Используй перед `git commit`, после /solve, или при явной просьбе 'сгенерируй commit message'./cronCron — менеджер cron-задач с UI, middleware и Prometheus-метриками. Используй при добавлении/правке cron-задачи, фонового воркера, периодической проверки или правил по расписанию, при пакете `<domain>/cron`, подключении vmkteam/cron или настройке CronConfig.