Automated summary
Prepares and opens a draft GitHub pull request against `develop`, after checking the branch, running the repo-root Python quality gate (ruff, black, pytest) and drafting a suggested commit message.
Strengths
- Enforces the local quality gate (ruff, black --check, pytest) before any PR is opened and stops on failures.
- Never commits, pushes, or silently stages unrelated changes — it halts and asks the user to decide scope or push manually.
- Fills `.github/PULL_REQUEST_TEMPLATE.md` with short factual statements and writes `Not applicable` instead of fabricating a linked issue.
- Verifies `gh` availability and authentication and validates branch naming against the repository convention.
Limitations
- Tightly coupled to this repository: `develop` base branch, its PR template, the `type(scope): description` convention and Python commands run from the repo root.
- Does not create commits or push branches, so the flow aborts if the branch is not already on `origin`.
- Defaults to a draft PR and will not mark it ready for review unless explicitly asked.
Use it when implementation is finished on an already-pushed feature/fix branch and you want validation plus a repo-compliant pull request opened.
Don't use it to commit or push code, to target a base branch other than `develop`, or on a repo that doesn't use ruff/black/pytest.
Security analysis
CautionThe skill performs legitimate repo automation using git, gh, ruff, black, and pytest. It does not instruct destructive actions, exfiltration, or unsafe shell patterns, but it does use network-capable CLI tools and executes local test code, so caution is warranted.
- •Uses git and gh CLI commands, including network/API calls, without declaring allowed tools.
- •Executes the repository test suite (pytest), which may run arbitrary project code.
Examples
/to-prPrepare and open a draft PR for this branch against develop — run the quality gate first and suggest a commit message.My fix/123-login-timeout work is done and pushed. Check the scope, run ruff, black and pytest, then create the PR using our template.name: to-pr
description: Use when the user types /to-pr, asks to prepare or open a PR, or wants Claude to standardize branch checks, validation, a suggested commit message, and draft PR creation for this repo. Follows the repo PR template, develop base branch, and the repo-root Python quality gate (ruff, black, pytest).
version: "1.0.0"
To PR
Prepares and opens a GitHub pull request for this repository using the documented workflow, without creating commits or pushing branches.
When to use
- When the user types
/to-pr - When the user asks Claude to prepare, publish, or open a PR
- After the implementation is complete and ready for review handoff
Preconditions
- Run git and
ghcommands from the repo root. - Run validation from the repo root (Python project, no subfolder build step).
- Do not create commits in this skill.
- Do not push branches in this skill. If the branch is not already on
origin, stop and ask the user to push it manually. - A linked GitHub issue is not required — this is a solo, course-scale project (see
docs/INDEX.md). If an issue exists, link it; if not, proceed without one.
Workflow
- Inspect scope first with
git status -sbandgit diff --stat. If the worktree includes unrelated changes, do not stage everything; ask which files belong in scope. - Check the branch. Never open a PR from
developormain. Branch names should followfeature/...,fix/...,chore/...,docs/...,refactor/..., ortest/..., optionally with an issue number (seeCONTRIBUTING.md). - If a related issue exists and its context is unclear, fetch it with
gh issue view <number> --commentsbefore drafting the PR summary. - Verify GitHub CLI readiness with
gh --versionandgh auth status. If auth is missing, stop and ask the user to authenticate. - Run the required local quality gate from the repo root:
ruff check .
black --check .
pytest
- Generate a suggested commit message using this repo's convention (see
CONTRIBUTING.md): a single line,type(scope): description, no body unless the user asks for one, and never aCo-Authored-By: Claudetrailer. - Confirm the branch is already ready for review. If there are uncommitted changes or unpushed commits that should be part of the PR, stop and ask the user to handle commit/push manually before continuing.
- Open a draft PR targeting
developwithgh pr create --draft --base develop. - Use
.github/PULL_REQUEST_TEMPLATE.mdfor the PR body and fill every section that applies. If there's no linked issue, writeNot applicableunder Related Issue instead of leaving it blank or fabricating one. - Keep the PR text high-signal. Prefer short factual statements tied to the actual diff. Avoid filler, vague benefits, generic AI phrasing, and claims like "improves maintainability" unless the PR body explains exactly how.
- After creation, report the suggested commit message, branch name, validation status, and PR URL.
Safety rules
- Never stage unrelated user changes silently.
- Default to a draft PR unless the user explicitly asks for ready-for-review.
- Never create a commit or push a branch from this skill.
- If
ruff,black --check, orpytestfail, stop and fix or report the failures before opening the PR. - Never pad the PR description with low-information text just to make sections look fuller.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/prepare-and-open-pull-request-ms2s7bfn/download' --output '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md.part' && mv '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md.part' '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md' && test -s '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/to-pr' && cp -R '.skill-downloads/prepare-and-open-pull-request-ms2s7bfn' '.claude/skills/to-pr'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/prepare-and-open-pull-request-ms2s7bfn'openskills read 'prepare-and-open-pull-request-ms2s7bfn'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/prepare-and-open-pull-request-ms2s7bfn/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.