Skip to content
Back to skills

Zcf Pr

ASecurity

Create a pull request for the current branch with a description based on the project PR template

  • 6,068 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added August 31, 2026
ai-agentsbashtestinggit

Works with

  • cli

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add UfoMiao/zcf --skill zcf-pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Zcf Pr?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Zcf Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ufomiao-zcf-pr/badge)](https://www.skillsdirectory.com/skills/ufomiao-zcf-pr)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: zcf-pr
description: Create a pull request for the current branch with a description based on the project PR template
disable-model-invocation: true
allowed-tools: Read, Write, Grep, Glob, Bash(git:*), Bash(gh:*), Bash(pnpm:*), Bash(rm:*)
---

# ZCF PR

Open a pull request for the current branch.

Usage: `/zcf-pr [--base <branch>] [--draft] [--title <title>]` (base defaults to `main`). Arguments: $ARGUMENTS

## Steps

1. **Preconditions.** Stop with a one-line explanation if the current branch is the base branch, or if there are no commits ahead of the base. If there are uncommitted changes, list them and ask whether to commit them (stage by name, never `git add .`) or leave them out.
2. **Understand the change.** Read `git log <base>..HEAD` and `git diff <base>...HEAD`. Classify it from the diff itself, not from keywords in commit messages.
3. **Verify proportionally.** Unless this session already ran them on the current HEAD, run the checks that `AGENTS.md` calls for on the changed paths: the "Check with" column of its trigger table, plus `pnpm typecheck` and `pnpm test:run` (about 60 s together) when source files changed. Docs-only branches need no tests. Report failures to the user instead of opening the PR.
4. **Title.** Use `--title` if given; otherwise a Conventional Commits title (at most 100 characters) that summarizes the whole branch, not just its first commit.
5. **Body.** Fill in `.github/PULL_REQUEST_TEMPLATE`:
   - Description: what changed and why, in a few sentences. Link related issues.
   - Type of Change: tick what the diff shows. Breaking change only if CLI flags, defaults or written config change incompatibly.
   - Testing and Checklist: tick only what actually happened in this session, such as tests you ran or added. Leave the rest unticked rather than guessing.
   - Mention anything not verified (for example Windows behavior).
6. **Push and create.** `git push -u origin <branch>`, then `gh pr create --base <base> --title ... --body-file <tmpfile>` (add `--draft` if requested). Delete the temp file afterwards and print the PR URL.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.