agentleFS
jae-labsjae-labs/skills/skills/create-pr/SKILL.md

create-pr

Skill0 starsChanged 5 months agoMITView on GitHub

Inspects local git changes and generates a structured, high-quality PR description using the gh CLI. You MUST use this skill whenever the user asks to create a pull request, create a github pr, run '/create-pr', draft a PR description, summarize branch changes, review a diff before committing, or write a squash commit message. Even if the user only asks to "write a PR summary," invoke this skill to ensure proper branch hygiene and formatting.

  • Commits and pushes

196 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, act-on-feedback 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.
  • MicrosoftSkill

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 9 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • ModelEngine-GroupSkill

    create-release-note

    从 PR/commit 中自动生成结构化的 Release Notes,并可选创建 GitHub Draft Release。支持 x.y.0 版本合并前一 minor 系列的 release notes。当用户要求生成发布说明、创建 release notes 时触发。参数为版本号和可选的上一版本号。

    Also in 3 projects that use this

  • frostneySkill

    native-nostalgia-stack

    Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.

    Also in 3 projects that use this

  • frostneySkill

    software-engineering-excellence

    Applies the user's engineering standards during substantial technical work: preserve scope, use current evidence, delegate independent parts, and complete authorized outcomes. Use during substantial implementation, debugging, refactoring, or multi-part delivery work.

    Also in 3 projects that use this

  • parkchuSkill

    start-mission

    넥스트스텝(NextStep) 미션을 처음 시작할 때, 미션 저장소를 fork·clone하고 최초 작업 브랜치(step1 등)까지 만들어 준다. gh CLI로 fork하고 clone까지 이어서 처리하며, gh가 없거나 인증이 안 돼 있으면 브라우저 Fork 안내로 폴백한다. 이미 fork/clone돼 있으면 재사용하고 이어서 진행한다(재실행 안전). 사용자가 "미션 시작하려는데 저장소 세팅해줘", "새 미션 시작할래", "fork부터 해줘", "/nextstep:start-mission" 등으로 요청할 때 사용한다.

    Also in 3 projects that use this

  • +1 more from microsoft

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Inspection before creation: Always assess the quality, size, and focus of the changes before writing any summary.

    line 12
  2. Distinctive:

    Strict separation of concern: Ensure PRs are focused on a single logical change.

    line 15
  3. Distinctive:

    Check if you are currently on the default/main branch (e.g., main or master).

    line 21
  4. Very specific:

    If checked out on the default branch, you MUST switch to or create a new feature branch (e.g.

    line 22
  5. Distinctive:

    Run git status --porcelain to check for uncommitted modifications.

    line 23
  6. Distinctive:

    Before drafting the PR, verify whether README.md, AGENTS.md, or CLAUDE.md should change based on the final reviewed branch state.

    line 25
  7. Very specific:

    If yes, run md-docs first and complete those documentation updates before generating the PR summary.

    line 26
  8. Very specific:

    Check for GitHub CLI: Verify that the gh command-line tool is installed and authenticated.

    line 27
  9. Distinctive:

    Verify if the changes represent a single focused logical change.

    line 34
  10. Distinctive:

    If the PR contains unrelated concerns (e.g.

    line 35
  11. Distinctive:

    Ensure changes make the code easy to review without breaking runtime behavior.

    line 36
  12. Distinctive:

    Analyze for Breaking Changes: Look for API modifications, database schema changes, configuration updates, or dependency migrations.

    line 37
  13. Distinctive:

    Use only repository-relative paths when referencing files or folders.

    line 75
  14. Very specific:

    Use absolute filesystem paths (e.g., /Users/username/...).

    line 83
  15. Distinctive:

    Treat basic observability (like standard logging) as a feature.

    line 84

“Common” is measured: kept by at least 6 in 10 of the 179 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

Pull Request Creator & Description Generator

Analyzes git changes between the current branch and the default branch to verify branch hygiene, inspect code modifications, and generate a clear, focused pull request description. Finally, automates PR creation using the GitHub CLI (gh).

Core Principles

  • Inspection before creation: Always assess the quality, size, and focus of the changes before writing any summary.
  • Documentation before creation: Refresh README.md, AGENTS.md, and CLAUDE.md with md-docs before writing the PR if those files are stale or should reflect the final reviewed state of the branch.
  • Conciseness and clarity: Provide high-level context to human reviewers rather than listing every minor file change.
  • Strict separation of concern: Ensure PRs are focused on a single logical change. If unrelated modifications exist, alert the user.
  • Accurate signaling: Highlight architectural decisions, security/performance considerations, and explicitly document all API modifications or breaking changes.

Workflow

  1. Verify Branch State:
    • Check if you are currently on the default/main branch (e.g., main or master).
    • If checked out on the default branch, you MUST switch to or create a new feature branch (e.g. git checkout -b <feature-branch-name>) before proceeding. Do not build a PR directly off the default branch.
    • Run git status --porcelain to check for uncommitted modifications. If any exist, warn the user and recommend committing them before generating the PR.
  2. Refresh Documentation:
    • Before drafting the PR, verify whether README.md, AGENTS.md, or CLAUDE.md should change based on the final reviewed branch state.
    • If yes, run md-docs first and complete those documentation updates before generating the PR summary.
  3. Check for GitHub CLI: Verify that the gh command-line tool is installed and authenticated.
  4. Determine the Default Branch: Locate the target default branch (usually main or master) via remote configuration (git remote show origin) or branch listing.
  5. Inspect the Diff & Commits:
    • Get the list of commits and their messages from the current branch relative to the default branch (e.g., git log <default-branch>..HEAD).
    • Compare the current branch against the default branch: git diff <default-branch>...HEAD
    • Inspect the commit messages, paths affected, file changes, and overall size of the diff.
  6. Evaluate Branch Hygiene:
    • Verify if the changes represent a single focused logical change.
    • If the PR contains unrelated concerns (e.g. mixed features, multiple distinct bugfixes, major format changes), alert the user and recommend splitting the branch.
    • Ensure changes make the code easy to review without breaking runtime behavior.
  7. Analyze for Breaking Changes: Look for API modifications, database schema changes, configuration updates, or dependency migrations.
  8. Generate PR Title and Description: Construct the title and description using the structure defined below.
  9. Await User Confirmation: Present the proposed PR Title and PR Description Body. You MUST explicitly ask the user for approval. NEVER run gh pr create without the user's explicit confirmation.
  10. Create the Pull Request: Once approved, run the gh pr create CLI command using the approved title and body.

Output Structure

Provide two separate outputs when presenting the generated PR description to the user:

  1. The Title as plain text (not in a markdown block).
  2. The PR Description Body in a single markdown code block (do NOT nest markdown blocks).

Body Template

The body must follow this structure exactly:

[1-2 sentence overview paragraph explaining the purpose and motivation of the changes.]

## Description

- **What**: Clear explanation of the changes introduced.
- **Why**: Context on why these changes are necessary (include links to Linear tasks or issue trackers if applicable).
- **How**: Brief explanation of the technical approach taken.

## Changes

- **[Component/Area]**: High-level context of what changed, including why and how. Use repository-relative paths (e.g., `lib/auth/session.go`) to reference key files.
- **[Component/Area]**: High-level context of what changed.

## Key Decisions & Breaking Changes

[Deep-dive into key architectural decisions, trade-offs, and an explicit call-out of any API modifications or breaking modifications.]

Guidelines

Do:

  • Group file-level changes into cohesive logical areas/components.
  • Use only repository-relative paths when referencing files or folders.
  • Highlight important technical details (e.g., timeouts, capacity limits, network protocols).
  • Focus on big-picture impact to help human reviewers read quickly.
  • Explicitly call out database migrations, breaking changes, or major dependency updates.

Don't:

  • List trivial changes (e.g., package import changes, formatting, minor typo fixes, or basic logging additions) unless they are the primary focus of the PR.
  • Include the branch name in the PR title or description (redundant).
  • Use absolute filesystem paths (e.g., /Users/username/...).
  • Treat basic observability (like standard logging) as a feature.
  • Nest markdown blocks inside the body block.

Example

Title: Migrate API service to multi-stage Docker build on AWS ECS Fargate via Terraform

Body:

Migrates the core API service deployment from a single-stage Docker build to a multi-stage container running on AWS ECS Fargate, managed by Terraform.

## Description

- **What**: Optimized the container image size via multi-stage Docker builds and updated the deployment infrastructure on AWS.
- **Why**: The previous container image was 1.2GB, causing slow ECS task startups. We also need to move to Fargate to eliminate EC2 host management overhead. (Linear: DEVOPS-412)
- **How**: Created a multi-stage `Dockerfile` to produce a 45MB runtime image, and updated our Terraform modules to provision the Fargate task definition and service.

## Changes

- **Containerization**: Updated `docker/Dockerfile` to use a two-stage build (build on `golang:1.21-alpine`, run on `alpine:3.19`), dropping root privileges for the runtime process.
- **Infrastructure**: Modified `terraform/ecs_service.tf` to define the Fargate capacity provider, security groups, and updated environment variables.

## Key Decisions & Breaking Changes

- **Non-root container user**: The runtime container now runs as a non-root user (`appuser`). If any local file writing is needed in future tasks, it must write to `/tmp`.
- **Breaking Change**: The Terraform variable `ecs_instance_type` has been removed as Fargate manages resources using cpu/memory configuration at the task level.

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.