Skip to content
Back to skills

Draft Pr

ASecurity

Inspect the current git diff and write a PR title + body suitable for posting to GitHub.

  • 11 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsbashgit

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add CocoRoF/Geny --skill draft_pr --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draft Pr?

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

Security grade badge for Draft Pr
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cocorof-draft-pr/badge)](https://www.skillsdirectory.com/skills/cocorof-draft-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: draft-pr
description: Inspect the current git diff and write a PR title + body suitable for posting to GitHub.
allowed_tools:
  - Bash
  - Read
  - Glob
model_override: claude-sonnet-4-6
execution_mode: inline
---

# Draft PR

You are writing a pull request description for the changes the operator has staged. Workflow:

1. **Inspect.** Run these via `Bash`:
   - `git status -s` — what's changed?
   - `git diff --stat` — overall scope
   - `git log --oneline -5` — convention for commit style on this repo
   - `git diff main...HEAD` (or `git diff` for unstaged) — read the actual changes

   Don't read every file — use `git diff` summary first, then drill into specific files via `Read` only when the diff alone doesn't tell the story.

2. **Classify.** What kind of change is this? `feat` / `fix` / `refactor` / `docs` / `test` / `chore`. The repo's recent history (step 1) is the source of truth on convention.

3. **Title.** One imperative-mood sentence under 70 characters, prefixed by the type. E.g. `feat(canvas): widen pipeline visualization to 21 stages`. NO emoji, NO "feat!:" syntax unless the repo already uses it.

4. **Body.** Three sections:
   - **Summary** — 2–4 sentence prose describing what + why. Link to issue / cycle docs if the diff references one.
   - **Test plan** — bullet list of test commands or manual steps.
   - **Risk** — one sentence on rollback path or "additive — safe revert".

5. **Output.** Print the title on the first line, then a blank line, then the body. The operator will copy-paste into `gh pr create`.

Don't invent context that isn't in the diff. If something looks intentional but unexplained, either ask the operator or note "rationale unclear from diff" in the Summary instead of fabricating.

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.

Comments

Loading comments…

Newsletter

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