Create pr

From PrestaShop/PrestaShop · View interactive version

Create pr is an AI agent skill from the GitHub repository PrestaShop/PrestaShop. Creates a PrestaShop pull request with the required metadata table. Triggers when asked to create, open, submit, or push a PR, or when mentioning "pull request" in the context of contributing.

How to use this skill

Skill file

Create a PrestaShop Pull Request

Purpose

Guide a contributor through creating a pull request that complies with the PrestaShop contribution guidelines, including the mandatory metadata table.

Steps

1. Gather context

2. Check the conventions

Run the convention check against the target branch:

php .ai/bin/check-conventions.php upstream/develop   # or upstream/9.2.x for a bug fix

3. Auto-fill fields

From code analysis and git context, infer as much as possible:

| Field | How to infer |

|-------|-------------|

| Branch | Current git branch or merge target |

| Description | Summarize from commits and diff. Be specific (versions, browser/server config, module/theme). |

| Type | bug fix · improvement · new feature · refacto — infer from changes |

| Category | FO · BO · CO · IN · WS · TE · LO · ME · PM — infer from files changed. See category reference. ME (Merge) is reserved exclusively for PRs that only import one git branch into another (e.g. an upward 9.1.x → develop merge) — never use it for a normal feature/bugfix/refacto PR. For documentation/tooling PRs (e.g. .ai/ context files) use PM (Project Management). |

| BC breaks | Analyze public API changes → yes / no |

| Deprecations | Check for new @deprecated annotations → yes / no |

| How to test | Write step-by-step verification instructions from the PR context |

| Fixed issue | Extract from conversation, branch name (e.g. fix/12345), or commit messages. Format: Fixes #<number> |

4. Ask before guessing

For any required field (Branch, Description, Type, Category, BC breaks, Deprecations) that cannot be confidently determined, ask the user. Do not guess.

Optional fields (UI Tests, Related PRs, Sponsor company) — fill when known, leave the template placeholder otherwise.

5. Create the PR

Use GitHub MCP tools (mcp__github__create_pull_request) or gh pr create CLI to create the PR with the filled-in template as the body.

Output

The created PR URL, displayed to the user.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.