validate-pr

Validate the current Pull Request against Marshroom conventions.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "validate-pr" with this command: npx skills add vkehfdl1/marshroom/vkehfdl1-marshroom-validate-pr

Validate the current Pull Request against Marshroom conventions.

Steps:

  • Read ${MARSHROOM_STATE:-~/.config/marshroom/state.json} and parse the JSON

  • Run git branch --show-current to get the current branch name

  • Find the cart entry whose branchName matches the current git branch. If no match, tell the user they're not on a cart issue branch

  • Get the current PR info: gh pr view --json title,body,headRefName

  • Validate the following:

Branch Name Check:

  • The PR's head branch should match the matched cart entry's branchName

  • Expected format: Feature/#N or HotFix/#N

  • If mismatched, show: "Branch mismatch: expected '{branchName}', got '{actual}'"

PR Body Check:

  • The body MUST contain close #{issueNumber}

  • If missing, suggest: gh pr edit --body "$(gh pr view --json body -q '.body')\n\nclose #<issueNumber>"

Status Check:

  • Read the status field from the matched cart entry

  • After PR creation, status should be "pending"

  • If status is still "running" , warn that the status was not updated (suggest running marsh pr )

  • If status is "soon" , warn that /start-issue may not have been run

Summary:

  • Show pass/fail status for each check

  • If all checks pass, confirm the PR is valid

  • If any check fails, provide the fix commands

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

start-issue

No summary provided by upstream source.

Repository SourceNeeds Review
General

create-pr

No summary provided by upstream source.

Repository SourceNeeds Review
General

image-gen

Generate AI images from text prompts. Triggers on: "生成图片", "画一张", "AI图", "generate image", "配图", "create picture", "draw", "visualize", "generate an image".

Archived SourceRecently Updated