validate-pr
9
总安装量
9
周安装量
#32358
全站排名
安装命令
npx skills add https://github.com/vkehfdl1/marshroom --skill validate-pr
Agent 安装分布
codex
9
opencode
8
gemini-cli
8
github-copilot
8
kimi-cli
8
amp
8
Skill 文档
Validate the current Pull Request against Marshroom conventions.
Steps:
- Read
${MARSHROOM_STATE:-~/.config/marshroom/state.json}and parse the JSON - Run
git branch --show-currentto get the current branch name - Find the cart entry whose
branchNamematches 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/#NorHotFix/#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
statusfield 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 runningmarsh pr) - If status is
"soon", warn that/start-issuemay 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