Agent skill · mia-cx

pr-file

Use when the user asks to file a pull request or put the current branch up for review.

What it needs

About 3k tokens when loaded.

What this skill does

File a pull request Rebase the finished branch, push it safely, and open a real PR. Run immediately when the user asks to file the PR; do not add an approval round-trip. Workflow 1. Read the branch and repository conventions Confirm the repository root, current branch, working tree, and remotes. Use the base branch supplied by the user or harness. Otherwise use the repo's default branch, usually main. Stop if the current branch is the base, has no commits to file, or the working tree is dirty. Do not stash, discard, or mix uncommitted work into the PR. Check for an existing open PR from the current branch. If one exists, report its URL instead of creating a duplicate. Find the issue this branch completes: the one the user named, the branch name, or the commit messages. Every PR links an issue, because milestones and projects track issues, and a PR without one is untracked work. When none exists, create it first with gh issue create, one or two sentences on the problem, and add it to the milestone or project the sibling issues use. Read relevant AGENTS.md, CONTRIBUTING.md, and pull-request templates before composing the PR. Repository conventions win where they are more specific. 2. Rebase onto the latest base Fetch the remote state, first making sure the current branch is not behind or diverged from its published upstream. Then rebase onto the latest remote base: Resolve straightforward conflicts according to the code's intent and run focused validation afterward. If a resolution is genuinely ambiguous, report the conflicting files and stop. Never skip the rebase merely to get the PR open. 3. Understand what the PR delivers Read the commits and full diff against the rebased base: Run the repository's focused required checks after the rebase when they are discoverable. Do not invent results or add ceremonial test runs. 4. Write the title and body Use a conventional title: Keep it under about 72 characters, with no trailing period or PR number. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills mia-cx/pr-file

View the source on GitHub

Browse the @skills marketplace