agentleFS
JonDotsoyJonDotsoy/skills/pr-creator/SKILL.md

pr-creator

Skill0 starsChanged 10 months agoMITView on GitHub

Creates GitHub pull requests in draft mode following Conventional Commits format. Use when user requests "create PR", "make pull request", "open PR", or similar. Automatically pushes branch, analyzes changes, generates structured title/body with proper labels, and assigns to creator. Never modifies code or merges branches.

  • Commits and pushes

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-draft-release-notes, rstack-docs-writer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rstackjsSkill

    create-draft-release-notes

    Create or update draft GitHub release notes, or output organized Markdown when draft creation is unavailable. Use for release notes, draft releases, release PR checks, npm staged publishing checks, and optional highlights.

    Also in 5 projects that use this

  • rstackjsSkill

    rstack-docs-writer

    Write or revise Markdown and MDX documentation, including READMEs, guides, and Rspress-based docs.

    Also in 5 projects that use this

  • Muromi-RikkaSkill

    rspress-description-generator

    Generate and maintain description frontmatter for Rspress documentation files (.md/.mdx). Use when a user wants to add SEO descriptions, improve search engine snippets, generate llms.txt metadata, prepare docs for AI summarization, or batch-update frontmatter across an Rspress doc site. Also use when adding new documentation pages to an Rspress project — every new doc file needs a description.

    Also in 3 projects that use this

  • youzanSkill

    rstack-cli-docs

    Consult installed, version-matched Rstack docs only for user-facing `rs` command behavior, `rstack.config.*` semantics, or public `rstack` APIs. Do not use for purely internal implementation, tests, performance, or repository maintenance.

    Also in 3 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 3 projects that use this

  • chendongqiSkill

    frontend-code-review

    Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.

    Also in 5 projects that use this

  • +1 more from rstackjs

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting, verify these restrictions:

    line 18
  2. Very specific:

    Look for pattern: LETTERS-NUMBERS (e.g., ABC-123, ABCD-123, JIRA-4567)

    line 49
  3. Distinctive:

    If not found, ticket is optional in title

    line 51
  4. Distinctive:

    Follow Conventional Commits convention:

    line 85

“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR Creator

Overview

This skill automates the creation of GitHub pull requests in draft mode following Conventional Commits format. It pushes the current branch, analyzes changes, generates a structured PR with proper labels, and assigns it to the creator. The skill never modifies code or merges branches.

Important Restrictions

Before starting, verify these restrictions:

  • ❌ DO NOT change branches
  • ❌ DO NOT merge any branch
  • ❌ DO NOT close any pull request
  • ❌ DO NOT make changes to current code (if needed, mention this and stop the process)
  • ⚠️ STOP if current branch is main, develop, master, or HEAD (cannot create PR from these branches)
  • ✅ ALWAYS create pull request in draft mode
  • ✅ ALWAYS use English for title and body

Process

Step 0: Identify Ticket ID (if exists)

Extract the ticket ID from the current branch name using common patterns:

# Get current branch name
git rev-parse --abbrev-ref HEAD

Extraction patterns:

Branch FormatTicket ID
feat/ABC-123/foo-tar-bizABC-123
fix/ABCD-123/handle-null-timestampsABCD-123
ABC-456-update-user-profileABC-456
refactor/no-ticket-name(no ticket)

Extraction rule:

  • Look for pattern: LETTERS-NUMBERS (e.g., ABC-123, ABCD-123, JIRA-4567)
  • Usually after first / or at the beginning of branch
  • If not found, ticket is optional in title

Step 1: Push branch to remote

git push origin <branch-name>

Step 2: Review differences

git diff <base-branch>...<branch-name>

Typical base branches: main, develop, master, or HEAD

Step 3: Create Pull Request in draft mode

gh pr create --draft \
  --base <base-branch> \
  --head <branch-name> \
  --title "<pull-request-title>" \
  --body "<pull-request-description>" \
  --assignee @me \
  --label <label-by-type>

Important notes:

  • --assignee @me: Automatic assignment to creator
  • --label: Use appropriate label by change type (see Labels section)

Title Format

Follow Conventional Commits convention:

(TICKET-ID) type(scope): brief description

Title Components

ComponentRequiredDescriptionExample
TICKET-ID❌ OptionalTicket identifier (e.g., Jira)ABCD-123
type✅ RequiredChange typefix, feat, docs
scope❌ OptionalModified module or areaprofile, auth
description✅ RequiredBrief description of changehandle null enrollment timestamps

Change Types

  • fix: Bug fixes
  • feat: New feature
  • docs: Documentation changes
  • style: Format changes (do not affect logic)
  • refactor: Code refactoring
  • test: Test additions or corrections
  • chore: Maintenance tasks

Title Examples

# With ticket extracted from branch
(ABCD-123) fix(profile): handle null enrollment timestamps by converting to OffsetDateTime at mapper level

# With ticket extracted: feat/ABCD-123/add-profile-endpoint
(ABCD-123) feat(profile): add enrollment timestamp to profile response

# Without ticket in branch
feat(auth): implement JWT token refresh mechanism

# With ticket: refactor/JIRA-789/simplify-validation
(JIRA-789) refactor(validation): simplify token validation logic

Body Format (Description)

The PR body should follow this Markdown structure:

Template

## 🚀 Overview

[Brief description of the change made, explaining the purpose and impact on the project. Include details about added features, resolved issues, or implemented improvements.]

## ✨ Key Features

- [Important feature or change 1]
- [Important feature or change 2]
- [New functionality, performance improvement, bug fix, etc.]

## 🛠️ Changes Made

[Detailed description of code changes:]

- **Modified classes/modules:** [List of files or modules]
- **Added/modified methods:** [Brief description]
- **Business logic changes:** [If applicable]
- **Structural changes:** [If applicable]

## ✅ Validation & Testing

- [Test 1: Description and result]
- [Test 2: Description and result]
- **Command executed:** `[command to run tests]`

## 🔗 Related

- [Link to Jira ticket/Issue]
- [Link to related documentation]
- [Link to other related PRs]

Body Notes

  • Overview: General context and purpose of change
  • Key Features: Concise list of most relevant changes
  • Changes Made: Technical implementation details
  • Validation & Testing: Always include the command used to run tests
  • Related: Optional section for links to related resources

Labels and Assignment

ALWAYS include:

  • --assignee @me: Automatic assignment
  • --label <type>: Label corresponding to change type

Type to Label Mapping

TypeLabelDescription
fixbugBug fixes
featenhancement or featureNew feature
docsdocumentationDocumentation changes
refactorrefactorCode refactoring
testtestingTests
choremaintenance or choreMaintenance tasks

Complete Example

# 1. Push branch
git push origin fix/handle-null-timestamps

# 2. Review differences
git diff main...fix/handle-null-timestamps

# 3. Create PR in draft
gh pr create --draft \
  --base main \
  --head fix/handle-null-timestamps \
  --title "(ABCD-123) fix(profile): handle null enrollment timestamps" \
  --body "## 🚀 Overview

Fixed null pointer exception when enrollment timestamps are null...

## ✨ Key Features

- Added null checks for enrollment timestamps
- Converted timestamps to OffsetDateTime at mapper level

## 🛠️ Changes Made

- **Modified:** ProfileMapper.java
- **Added:** Null safety checks in timestamp conversion

## ✅ Validation & Testing

- Unit tests passing
- **Command executed:** \`mvn test\`

## 🔗 Related

- [ABCD-123](https://jira.example.com/ABCD-123)" \
  --assignee @me \
  --label bug

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.