platform-gitlab-review-finding-schema
Use to produce structured GitLab code review findings and the final GitLab review result.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use to produce structured GitLab code review findings and the final GitLab review result.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use to render GitLab review results into concise merge request or commit comments.
Use for narrow GitLab commit review runs triggered from commit comments.
Use for GitLab merge request review runs triggered by @Nine1bot comments or merge request webhooks.
Use to choose which custom subagents should be created for a GitLab review run.
Use for security review of GitLab MR or commit diffs.
Use to decide whether a GitLab review has enough product and technical context to proceed.
| name | platform.gitlab.review-finding-schema |
| description | Use to produce structured GitLab code review findings and the final GitLab review result. |
Use this skill whenever a GitLab review agent or PM coordinator emits findings.
The PM coordinator final answer must be exactly one fenced JSON block. The first content line inside the fence must be GITLAB_REVIEW_RESULT:.
GITLAB_REVIEW_RESULT:
{
"stage": "closed",
"status": "ok",
"summary": "Concise review conclusion grounded in the supplied diff.",
"findings": [],
"nextActions": []
}
Required fields:
stage: always closed for the final PM result.status: one of ok, blocked, failed.summary: short human-readable conclusion.findings: array of finding objects, empty when no concrete issues are found.nextActions: array of short strings, empty when no follow-up is needed.Do not wrap the result in another object. Do not add Markdown prose outside the JSON fence.
{
"title": "Short finding title",
"body": "Evidence, impact, and suggested change.",
"severity": "major",
"category": "correctness",
"file": "src/example.ts",
"oldLine": 12,
"newLine": 18,
"suggestion": {
"replacement": "return validate(input)",
"confidence": "high"
},
"source": "pm-coordinator"
}
Required finding fields:
titlebodyseverityOptional finding fields:
categoryfileoldLinenewLinesuggestionsourceAllowed severities: info, minor, major, critical, blocker.
Allowed categories: correctness, security, testing, performance, maintainability, frontend, architecture, docs, config.
Use suggestion only for a small, local replacement that can be applied to a changed diff line. The publisher may render it as a GitLab suggestion block only after inline position validation passes.
suggestion fields:
replacement: replacement code only. Do not include markdown fences.confidence: low, medium, or high.Do not include a suggestion when:
When in doubt, put the recommendation in body instead of suggestion.
Only include file, oldLine, or newLine when the location is grounded in the supplied GitLab diff evidence and review line map.
Never guess line numbers. Use the Review line map for file/newLine/oldLine fields rows when present:
newLine.oldLine.newLine; the publisher can map it to the matching oldLine.If the exact diff hunk line is uncertain, omit line fields and let the publisher create a top-level summary finding.
Do not create findings for:
Use ok when review completed, even if findings exist.
Use blocked when the diff is too large, truncated, overflowed, empty after filters, or otherwise lacks enough evidence to review.
Use failed when the review workflow itself failed and no reliable review conclusion can be produced.
No findings:
GITLAB_REVIEW_RESULT:
{
"stage": "closed",
"status": "ok",
"summary": "No concrete issues were found in the supplied diff.",
"findings": [],
"nextActions": []
}
Blocked:
GITLAB_REVIEW_RESULT:
{
"stage": "closed",
"status": "blocked",
"summary": "Review was blocked because the supplied GitLab diff was truncated or too large.",
"findings": [],
"nextActions": ["Split the MR or request a manual review for the omitted diff."]
}