/flc-skills:gitlab-mr-inline-commentfrom flc-skills
Publishes a single anchored inline comment on a GitLab merge request via glab api, reusing existing authentication and stopping on invalid diff anchors.
Ships in flc-skills. 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.
Read when SKILL.md points to them.
Publish one anchored inline comment on a GitLab merge request.
Act as a narrow GitLab review helper.
Prioritize:
glab authentication and repository contextAssume glab is installed unless local evidence shows otherwise.
Do not require extra tokens, .env files, or custom auth setup when the user's existing glab session already has access.
Read these references only when needed:
Collect or derive these values before posting:
mr_iidbodyold_pathnew_pathnew_lineold_lineold_line and new_lineResolve one repository context:
glab context, orgroup/subgroup/repo, orResolve these MR diff fields from the current merge request version:
base_shastart_shahead_shaFollow this sequence unless the user asks for one narrower part.
Prefer the user's current repository context first.
Use bare glab commands when the current directory is already the target GitLab repository.
Only inspect git remote -v, add GITLAB_HOST, or use explicit repository arguments when:
glab resolves to the wrong hostDo not introduce extra authentication if glab auth status already shows valid access for the target host.
Normalize the task to one merge request.
If the user gives a merge request URL, parse it into:
If the user gives a project path and MR IID, use them directly.
If the current repository is already the target project, prefer repository-context commands over manual URL construction.
Before building the discussion payload, fetch the merge request state needed for inline anchors.
Use references/current-diff-resolution.md when exact field names or version-selection rules matter.
Resolve:
base_shastart_shahead_shaDo not guess or reuse stale SHAs from old output.
If the current MR version cannot be read reliably, stop and report that inline comment posting is blocked by missing diff context.
Confirm that:
old_path and new_path match the current MR diff positionnew_line onlyold_line onlyold_line and new_lineUse references/current-diff-resolution.md when deciding whether the target line is safely anchorable.
Do not guess the path or line.
Do not silently switch to a general merge request comment when the anchor is invalid.
Use the minimal payload shape from references/api-shape.md.
Post to the merge request discussions endpoint with glab api.
Use the user's existing glab authentication and host context whenever possible.
On success, report:
On failure, report the concrete blocking reason, such as:
When the task is to post the comment directly, summarize the execution result like this:
# Inline Comment Result
## Target
- project: <group/subgroup/repo>
- mr: !<iid>
- old_path: <old_path>
- new_path: <new_path>
- old_line: <old_line or omitted>
- new_line: <new_line or omitted>
## Result
- status: <posted | failed>
- detail: <short reason or confirmation>
glab commands over manual encoded project IDs when the current directory already matches the target project.GITLAB_HOST only when the target host differs from the current repository context or glab resolves incorrectly.Stop and reassess if:
base_sha, start_sha, and head_sha cannot be read from the current MR stateold_path or new_path cannot be reconciled with the current diff positionold_line / new_line combination does not form a valid text diff anchorDo not add these behaviors in v1:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
31 skills in this plugin
/asyncLaunch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference./code-reviewRequest or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding./create-planCreate and maintain repository-aware technical plans, implementation plans, refactor proposals, design drafts, and migration plans. Use when Codex is asked to investigate a codebase and propose a solution before implementation; write or update a durable plan file; produce a 方案、实施计划或重构计划; split engineering work into phases or pull requests; document scope, non-goals, API and behavior decisions, breaking changes, migrations, risks, testing, or validation; or transition a plan through draft, planned, in-progress, blocked, and completed states.npx claudepluginhub flc1125/skills --plugin flc-skillsOther plugins' skills for the same job