Logo van Feature Branch Pr Writing

Feature Branch Pr Writing

Organisatie
shopwareLabs
feature-branch-pr-writing

Use this skill when the user asks to write, draft, create, or improve a PR description for a Shopware core repository PR — AND that PR targets a non-trunk feature branch (not trunk itself). Trigger phrases like "write a PR description", "draft the PR", "what should I put in the PR body". The skill detects the target branch and only activates for non-trunk targets; for trunk-targeting PRs, use pr-description-writing instead. Do NOT activate mid-implementation — only when the user is ready to describe finished changes. Produces a conventional-commit title and a narrative-prose description with topical subsections, leveraging the diff against the target branch and any related PRs in the chain.

Overzicht

UitgevershopwareLabs
Repositoryai-coding-tools
Skillnaamfeature-branch-pr-writing
Sterren
45
Forks
7
Meegeleverde bestanden
3
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 3

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door shopwareLabs op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Feature Branch Pr Writing in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/feature-branch-pr-writing
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shopwareLabs/ai-coding-tools.git /tmp/ai-coding-tools
mkdir -p .claude/skills
cp -r /tmp/ai-coding-tools/plugins/contributor-writing/skills/feature-branch-pr-writing .claude/skills/feature-branch-pr-writing
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Feature Branch Pr Writing in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Feature Branch Pr Writing automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Feature Branch Pr Writing niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Feature-Branch PR Description Drafting

Draft a PR title (conventional commit format) and description (narrative prose with topical subsections) for PRs targeting non-trunk feature branches. Analyzes the diff against the target branch, detects related PRs in the chain, and asks targeted questions for missing context.

Output scope: Presents formatted title + description text. Does not create or update PRs on GitHub. Does not write to any files.

Phase 1 — Assess Branch State

Determine what we're working with: branch, target, PR status, diff, and chain.

  1. Load references/branch-and-pr-detection.md and execute Steps 1-4. Route as feature-branch-pr-writing.
  2. Get the diff:
    • If a PR exists: read its diff and changed files from GitHub (a GitHub MCP server, the gh CLI, or the API — whatever the session has)
    • If no PR: run git diff <target>...HEAD --stat and git log <target>..HEAD --oneline
  3. Chain detection: list PRs targeting the same feature branch (via the same GitHub access). Record titles, numbers, merge state, and any cross-references in bodies. Identify predecessor/successor relationships.
  4. Present a brief assessment to the user: branch name, target branch, PR status (exists / doesn't exist / has existing description), change magnitude (files touched, lines changed, areas affected), related PRs in the chain.

Phase 2 — Analyze Changes

Understand the full story of the branch relative to the target.

  1. Synthesize the full branch scope from the diff, commits, and file changes. Understand the totality: features, fixes, cleanups, refactors.
  2. Determine scope: map file paths to Shopware areas. This informs the conventional commit scope for the title.
File path patternScope
src/Core/Checkout/Cart/cart
src/Core/Checkout/Order/order
src/Core/Checkout/Promotion/promotion
src/Core/Content/Product/product
src/Core/Content/Media/media
src/Core/Content/Category/category
src/Core/Content/Cms/cms
src/Core/Content/Mail/mail
src/Core/Framework/DataAbstractionLayer/dal
src/Core/Framework/App/app-system
src/Core/System/SystemConfig/system-config
src/Core/System/NumberRange/number-range
src/Storefront/storefront
src/Administration/admin
src/Elasticsearch/elasticsearch

For changes spanning multiple areas, use the scope of the primary story. If no specific scope fits, omit the parenthetical scope entirely: fix: description.

  1. Identify narrative candidates. A branch often contains multiple threads. Present them to the user:

    "This branch contains: (a) ..., (b) .... What's the primary story?"

  2. The user confirms or reframes the story. This drives the title's type/scope and which aspects get depth vs. a brief mention.
  3. Assess description depth based on the confirmed story's complexity.
  4. Leverage session context: if the user has been debugging, implementing, or discussing in the current session, use that knowledge. Don't re-ask what's already known.

Phase 3 — Gather Context

Fill the gaps. Ask targeted questions only for information not in the diff, chain detection, or session context.

  1. Inventory what's known from the diff, chain, and session:
    • Why the change was made (motivation)
    • What changed (from diff)
    • Which prior PRs established the pattern
    • Related PRs (blocked by, follows, follow-up)
    • Design alternatives considered
    • Trade-offs or limitations
    • Tracking issue
  2. Ask only what's missing, one question at a time:
    • "What triggered this change?"
    • "Which prior PR established the pattern being followed?"
    • "Are there PRs blocked by this one?"
    • "Were there design alternatives you considered and rejected?"
    • "Should reviewers know about any deliberate trade-offs or limitations?"
    • "Is there a tracking issue for this feature?"
  3. Skip questions the session already answers. If the user has been working on this and the session contains motivation, design decisions, and chain context, go straight to drafting.
  4. Load references/writing-rules.md to internalize style constraints and anti-slop rules.

Phase 4 — Draft

Generate the conventional commit title and narrative description.

  1. Load references/description-examples.md for sizing calibration
  2. Generate the title: <type>(<scope>): <description>
TypeWhen to use
fixBug fix
featNew feature or capability
refactorCode restructuring with no behavioral change
perfPerformance improvement
choreMaintenance, dependency updates, tooling
docsDocumentation only
testTest additions or corrections
styleCode style (formatting, semicolons, etc.)

Title description rules: imperative mood, lowercase first letter, no period, under ~60 characters after type/scope. Describe the behavioral change, not the implementation.

  1. Draft the description:
    • Opening context paragraph: state the prior situation, what this PR does about it, and reference predecessor PRs in the chain when applicable.
    • Topical ### subsections: each covers one concern or aspect of the change. Choose headers based on what the PR actually does, not from a fixed list. Good: "Event-based type override", "DI decentralization". Bad: "Changes", "What changed", "Updates".
    • Tables for structured mappings (file moves, new classes with locations, config key changes, loader-to-route delegations).
    • ## References section at the end with cross-references: Ref #issue, Blocked by #PR, Follows #PR, Follow-up: #PR. Never use closes or fixes.
  2. Self-check each subsection: state in one sentence what contract it describes (what goes in, what comes out, why it exists). If you can't collapse the subsection to one contract-level sentence, it's restating the diff. Rewrite.
  3. Diagram reasoning (two steps):
    • Would the reviewer understand this better by seeing it than reading about it? If no, skip.
    • If yes: can it fit one focused diagram, or should it split by concern? A single diagram that tries to show everything is as hard to follow as the prose it replaced.
  4. Scale length to complexity:
    • Small (~2 paragraphs, 2 subsections): single-concern refactors, review feedback fixes.
    • Medium (~3 paragraphs, 3-4 subsections, tables): multi-file features following established patterns, structural moves.
    • Large (~6+ paragraphs, 6+ subsections, tables, potentially diagrams): new subsystems with multiple integration points.
    • Determine the tier from the story's complexity, not the diff size.
  5. Present the full draft to the user: title clearly labeled, then the description formatted as GitHub markdown

Phase 5 — Validate and Present

Verify the draft against anti-slop rules, then deliver.

  1. Anti-slop validation pass — load references/writing-rules.md, then check the draft literally (not from memory):
    • First: search the draft text for em dash (—) and en dash (–) characters. Remove every instance. This is the most common violation and must be checked first as a literal character search, not a mental scan.
    • Second: for each subsection, verify it states a contract, not implementation steps. If a paragraph walks through method internals a reviewer will see in the diff, compress to contract level.
    • Then re-read each sentence against: banned vocabulary, banned sentence patterns, banned formats, colon/semicolon overuse, sentence rhythm, tone
    • If any violations found, rewrite the affected sentences and re-check the rewritten sentences
  2. Output the title — clearly labeled, in conventional commit format
  3. Output the description — as GitHub-rendered markdown (no hard line wraps, let lines run to natural length)
  4. Flag any assumptions: inferred chain relationships, guessed issue numbers, trade-off decisions the user should verify
  5. If the user wants changes, revise and present again
  6. Do not create PRs, update PRs, or write to any files. The user takes the output and uses it as they see fit.

Boundaries

  • Never create or update PRs on GitHub
  • Never write to any files
  • Never auto-commit
  • Only present formatted text output for the user to use
  • Works on feature branches targeting non-trunk branches only

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Feature Branch Pr Writing?

Use this skill when the user asks to write, draft, create, or improve a PR description for a Shopware core repository PR — AND that PR targets a non-trunk feature branch (not trunk itself). Trigger phrases like "write a PR description", "draft the PR", "what should I put in the PR body". The skill detects the target branch and only activates for non-trunk targets; for trunk-targeting PRs, use pr-description-writing instead. Do NOT activate mid-implementation — only when the user is ready to describe finished changes. Produces a conventional-commit title and a narrative-prose description wit...

Waarom Feature Branch Pr Writing gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Feature Branch Pr Writing bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Feature Branch Pr Writing in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/feature-branch-pr-writing. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Feature Branch Pr Writing gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Feature Branch Pr Writing gebruiken?

Zoveel als je wilt. Je kunt Feature Branch Pr Writing gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Feature Branch Pr Writing gratis?

Ja. Deze skill is door shopwareLabs op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇