Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
Creates GitHub PRs with titles that pass n8n's check-pr-title CI validation
and short descriptions that tell the reviewer what the diff does not show.
<type>(<scope>): <summary>| Type | Description | Changelog |
|---|---|---|
feat | New feature | Yes |
fix | Bug fix | Yes |
perf | Performance improvement | Yes |
test | Adding/correcting tests | No |
docs | Documentation only | No |
refactor | Code change (no bug fix or feature) | No |
build | Build system or dependencies | No |
ci | CI configuration | No |
chore | Routine tasks, maintenance | No |
API - Public API changesai-builder - AI Workflow Builder and Instance AIbenchmark - Benchmark CLI changescore - Core/backend/private APIeditor - Editor UI changesengine - New workflow execution engine v2 (@n8n/engine package & engine-v2 module in cli)* Node - Specific node (e.g., Slack Node, GitHub Node)check-pr-title accepts only these scopes. Do not use a package or folder
name as the scope (for example instance-ai, cli, evals or docker).
If no scope fits, omit the scope. To give two scopes, separate them with a
comma and a space: fix(core, editor): ....
(no-changelog) as the last part to exclude the PR from the changelog,
unless the type already excludes itCheck current state:
git status
git diff --stat
git log origin/master..HEAD --onelineCheck for implementation plan: Look for a plan file in the repository plan directories (.claude/plans/ or .agents/plans/ when present)
that matches the current branch's ticket ID (e.g. if branch is
scdekov/PAY-1234-some-feature, check for PAY-1234.md).
If a plan file exists, ask the user whether they want to include it in the
PR description as a collapsible <details> section (see Plan Section below).
Only include the plan if the user explicitly approves.
If this is a security fix, audit every public-facing artifact before proceeding (see Security Fixes below).
Analyze changes to determine:
Identify feature flag test settings: Inspect the full PR diff for new PostHog flags. Record the keys and values needed to test the new behavior as described in Feature Flag Test Settings below.
Push branch if needed:
git push -u origin HEADCreate PR using gh CLI. Read .github/pull_request_template.md as the
body structure, then populate each section with actual content before
creating the PR:
https://linear.app/n8n/issue/[TICKET-ID]), any GitHub issue links, and the docs link if there is oneBefore you create the PR, proofread the Summary against the Summary Section rules. Delete each sentence that restates the diff, or that is not the what-and-where sentence, the why, or a surprise. Make sure that each sentence is true for the diff.
When a later commit changes a fact in the body, update the body.
gh pr create --draft --title "<type>(<scope>): <summary>" --body "$(cat <<'EOF'
<populated body based on pull_request_template.md>
EOF
)"origin/master using git diff origin/master...HEAD.
If the PR targets another branch, use origin/<target-branch> instead.
Inspect new experiment definitions in
packages/frontend/editor-ui/src/app/constants/experiments.ts, shared
flag constants in packages/@n8n/api-types, and new PostHog checks elsewhere
in the diff. Resolve constants to the exact PostHog key string.
Exclude removed flags, existing flags that the PR only references, and
flag names that appear only in tests or documentation.true to enable a boolean flag.
Read the flag's consumers and variant definitions for an A/B experiment.
Use the exact variant that shows the new behavior.
Do not assume that boolean true selects a named variant.
If the required variant is unclear, report it instead of guessing.
Preserve any value that the user explicitly requested for the same key.N8N_FEATURE_FLAG_OVERRIDES
in How to test. This environment variable accepts a JSON object that maps
PostHog keys to boolean values or named variants. Tell the tester to set it
before starting the test instance.
For example:
export N8N_FEATURE_FLAG_OVERRIDES='{"136_skill_sync":true}'false to disable a boolean flag, or a string for a named variant.
Combine multiple overrides in one JSON object.The Codespace preview runner does not read flag: labels. Do not create or
apply them. For supported preview settings, see the Preview toggles and Preview
environment from a webhook sections in .github/WORKFLOWS.md.
Based on .github/pull_request_template.md.
Keep the description short. The reviewer reads the diff for the details. The description gives only what the diff cannot show: why the change exists, and what could surprise the reviewer. Keep the length in proportion to the complexity of the change: a complex change usually has more surprises. A change with no surprises needs only the first two paragraphs of the Summary.
Write for an engineer. Use exact technical terms, and do not simplify them. Use ASD-STE100 Simplified Technical English: short sentences, active voice, plain technical verbs, no metaphors.
Write the Summary as up to three paragraphs:
<Verb> <what> in <area>.
<Why: the product value or the problem, and the rationale for the main choices.>
<Important details, only if there are surprises.>Leave out what the diff shows: file lists, renamed fields, call order, test
names, error cases, and descriptions of the code. Leave out framework behaviour
that reviewers know. Do not add background or a closing sentence. Define an
n8n-internal term only if an engineer from another team would not know it.
For UI changes, add screenshots or videos in a | Before | After | table.
N8N_ENABLED_MODULES), an
enterprise license, a feature flag, or similar, give the settingpnpm agent:test --filter <package> -- <test-file>. If there are no tests,
give the reason in one line. A bug fix needs a regression test. A feature
needs testshttps://linear.app/n8n/issue/[TICKET-ID]closes #123 / fixes #123 / resolves #123Backport bugs with urgent or high priority and regression fixes. Add the
labels that .github/backport_conventions.md gives.
feat(editor): Add workflow performance metrics displayfix(core): Resolve memory leak in execution enginefix(Slack Node): Handle rate limiting in message sendfeat(API)!: Remove deprecated v1 endpointsfeat(core): Experimental feature not enabled yet (no-changelog)chore: Update dependencies to latest versionsThe PR title must match this pattern:
^(feat|fix|perf|test|docs|refactor|build|ci|chore|revert)(\((API|core|editor|benchmark|ai-builder|engine|[A-Za-z0-9 .]+ Node)(, (API|core|editor|benchmark|ai-builder|engine|[A-Za-z0-9 .]+ Node))*\))?!?: [A-Z].+[^.]$Check the title against this pattern and the Title Summary Rules before you
run gh pr create. The two most frequent failures are a package name as the
scope and a lowercase first letter in the summary.
If a matching plan file was found in a repository plan directory and the user has approved
including it, add a collapsible section at the end of the PR body (after the
Related Links section, before EOF):
<details>
<summary>Implementation plan</summary>
<!-- paste plan file contents here -->
</details>This repo is public. Never expose the attack vector in any public artifact. Describe what the code does, not what threat it prevents.
| Artifact | BAD | GOOD |
|---|---|---|
| Branch | fix-sql-injection-in-webhook | fix-webhook-input-validation |
| PR title | fix(core): Prevent SSRF | fix(core): Validate outgoing URLs |
| Commit msg | fix: prevent denial of service | fix: add payload size validation |
| PR body | "attacker could trigger SSRF…" | "validates URL protocol and host" |
| Linear ref | URL with slug (leaks title) | URL without slug or ticket ID only |
| Test name | 'should prevent SQL injection' | 'should sanitize query parameters' |
Before pushing a security fix, verify: no branch name, commit, PR title, PR body, Linear URL, test name, or code comment hints at the vulnerability.
When in doubt, check the Linear issue for possible extra precautions
n8n-io/n8n
e405c26
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.