opendatahub-io/docs-skills/docs-workflow-create-merge-request

Claude Code and agent skill by opendatahub-io/docs-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Commit, push, and create a merge request (GitLab) or pull request (GitHub) for documentation changes. Creates a feature branch if the repo is on main/master. Replaces docs-workflow-prepare-branch, docs-workflow-commit, and docs-workflow-create-mr.

Install

npx vskill@latest install opendatahub-io/docs-skills/docs-workflow-create-merge-request

SKILL.md

Create Merge Request Step

Step skill for the docs-orchestrator pipeline. After writing and reviews are complete, this step creates a feature branch (if needed), commits the manifest-listed files, pushes to the remote, and creates an MR/PR via gh (GitHub) or glab (GitLab).

Skipped in draft mode (--draft flag). When --repo-path is set, the script operates in the target repo but expects the user to have already switched to a feature branch.

Arguments

  • $1 — JIRA ticket ID (required)
  • --base-path <path> — Base output path (e.g., .agent_workspace/proj-123)
  • --draft — If present, skip all git operations
  • --repo-path <path> — Target documentation repository (must already be on a feature branch)

Input

<base-path>/writing/step-result.json

Contains the files array of absolute paths to commit (written by the writing step).

Output

<base-path>/create-merge-request/step-result.json

Combined sidecar with commit, push, and MR/PR metadata.

Execution

Run the script, passing through all arguments:

bash
bash ${CLAUDE_SKILL_DIR}/scripts/create_merge_request.sh <ticket> --base-path <base-path> [--draft] [--repo-path <path>]

The script handles:

  1. Skip mode — writes a skip sidecar and exits if --draft is set
  2. Git context — resolves repo root, current branch, remote URL, and platform (GitHub/GitLab)
  3. Branch creation — if on main or master (and no --repo-path), creates <ticket-lowercase> branch from HEAD or switches to it if it already exists
  4. Safety — refuses to proceed if on main/master with --repo-path (externally managed repos must be on a feature branch)
  5. Manifest reading — reads file paths from writing/step-result.json and filters to files under the repo root
  6. Staging and commit — stages manifest files and commits with docs(<ticket>): add generated documentation
  7. Push — pushes with --force-with-lease to origin
  8. Title building — derives MR/PR title from requirements/step-result.json title field or first heading in requirements.md
  9. Existing check — searches for an open MR/PR from the feature branch before creating a new one
  10. MR/PR creation — creates via gh pr create (GitHub) or glab mr create (GitLab), with fork detection for GitLab via the upstream remote
  11. Sidecar — writes step-result.json with commit_sha, branch, pushed, url, action, platform, skipped, and skip_reason fields

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opendatahub-io/docs-skills/docs-workflow-create-merge-request/badge)](https://verified-skill.com/skills/opendatahub-io/docs-skills/docs-workflow-create-merge-request)

Something wrong with this skill or its page? Tell us.