cajias/claude-skills/gitlab-mr-inline-comments
Claude Code and agent skill by cajias/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when GitLab MR comments have position null, appear as DiscussionNote instead of DiffNote, or inline code review comments show as general MR comments. Also use when glab api nested object parameters are ignored.
Install
npx vskill@latest install cajias/claude-skills/gitlab-mr-inline-commentsSKILL.md
The same SKILL.md was published earlier as cajias/claude-skills/gitlab-mr-inline-comments.
GitLab MR Inline Comments
Overview
GitLab's API requires nested JSON objects for positioned comments. The glab api CLI tool's -f "position[key]=value" syntax sends flat keys instead of nested objects, causing GitLab to silently create DiscussionNote (general comment) instead of DiffNote (inline comment).
Quick Reference
| Symptom | Cause | |
|---|---|---|
type: DiscussionNote instead of DiffNote | Position data sent as flat keys | |
position: null in response | GitLab rejected position silently | |
| Comment appears in MR thread, not on code line | Same as above | |
| 201 Created but wrong note type | API accepts request, ignores invalid position |
The Fix
Use --input with JSON file and --header "Content-Type: application/json":
Position Field Rules
| Line Type | Required Fields | |
|---|---|---|
Added line (+) | new_line only | |
Removed line (-) | old_line only | |
| Context line (``) | Both old_line AND new_line |
Getting SHA Values
Why glab -f Fails
Verification
Success response has:
type: "DiffNote"(notDiscussionNoteornull)positionobject with your SHA values (notnull)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gitlab-mr-inline-comments/SKILL.md
Popularity
- 7-day trend score
- 5
Refreshed 21 Nov 2026, 8 days ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cajias/claude-skills/gitlab-mr-inline-comments)