agentsclimarketplace

Create mr

Skill JiangWeixian/ohmyc-plugins/.agents/skills/create-mr

Use when creating a GitHub pull request or merge request from the current branch, especially when a project PR template may exist.From its SKILL.md

Install
npx -y skills add JiangWeixian/ohmyc-plugins --skill create-mr

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.8 KB, as published. Nobody here has run it

Create MR

Create a GitHub pull request from the current branch by reading the repository state, respecting any PR template, and verifying the created PR.

Workflow

1. Detect PR Template

Search for a PR template in this order:

  1. .github/PULL_REQUEST_TEMPLATE.md
  2. .github/PULL_REQUEST_TEMPLATE/*.md (pick the first match)
  3. PULL_REQUEST_TEMPLATE.md
  4. docs/PULL_REQUEST_TEMPLATE.md

If a template is found, read it and use it as the base structure for the PR body. Preserve all template sections and fill them from the actual changes.

If no template is found, use the default body format below.

2. Gather Context

Run these checks, parallelizing file reads and git commands where possible:

git status
git diff --staged
git diff
git log --oneline -20
git remote -v
git branch --show-current

3. Analyze Changes

From the gathered context:

  1. Summarize commits and diffs into a coherent narrative.
  2. Identify the change type: feature, bugfix, refactor, docs, chore, or test.
  3. Note verification evidence already present in the branch.

4. Check Changeset Requirement

Before pushing or creating the PR, check whether the repository uses Changesets:

test -d .changeset && test -f .changeset/config.json
rg -n '"@changesets/cli"|changeset' package.json pnpm-lock.yaml package-lock.json yarn.lock 2>/dev/null

If Changesets is not configured, skip this step.

If Changesets is configured, inspect the staged, unstaged, and unpushed branch diff that will be included in the PR. When the diff includes any meaningful content change to a versioned package or workspace — including source code, skills, documentation, or configuration — and no matching .changeset/*.md file is already included, use the changeset skill before pushing.

Do not duplicate package eligibility, package-name, or bump-selection logic here. Let the changeset skill derive package names, release impact, and validation commands from repository metadata and Changesets config.

Include any generated .changeset/*.md file in the branch before running git push and gh pr create.

5. Generate PR Title and Body

Title requirements:

  • 72 characters or fewer.
  • Imperative mood.
  • Conventional commit style: <type>(<scope>): <short description>.

Example:

feat(auth): add OAuth2 login flow

Default body when no template exists:

## Summary
- <1-3 bullets summarizing what this PR does>

## Changes
- <key change 1>
- <key change 2>

## Test Plan
- <how to verify these changes>

## Screenshots
<before/after for visual changes, or omit if not applicable>

Create the Pull Request

Use GitHub CLI:

gh pr create --title "<title>" --body "<body>"

If the body is large, write it to a temporary file and pass --body-file.

If the current branch has no remote tracking branch, push first:

git push -u origin HEAD

Then retry gh pr create.

Verify

After creation, run:

gh pr view <number>

For machine-readable verification, prefer:

gh pr view <number> --json number,title,url,state,headRefName,baseRefName

Report the PR URL to the user.

Common Mistakes

MistakeFix
Ignoring a PR templateSearch all supported template locations first.
Writing a title from memoryBase the title on the actual diff and commits.
Claiming tests passed without evidencePut only verified commands in the test plan.
Omitting a required changesetWhen Changesets is configured, any content change to a versioned package needs a .changeset/*.md. Skills and docs count too.
Forgetting to push the branchPush with git push -u origin HEAD, then create the PR.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.