Logo : Feature Branch Pr Writing

Feature Branch Pr Writing

Organisation
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.

Présentation

ÉditeurshopwareLabs
Dépôtai-coding-tools
Nom de la compétencefeature-branch-pr-writing
Étoiles
45
Forks
7
Fichiers inclus
3
LicenceMIT
Liens
  • Instructions en Markdown

    Un fichier SKILL.md que le modèle charge à la demande : il ne consomme donc des tokens que lorsqu’une demande correspond réellement à la compétence.

  • Compatible avec tous les LLM

    Les compétences IA sont rédigées en Markdown et non sous forme de code propre à un fournisseur. Elles fonctionnent donc avec GPT, Claude, Gemini, Grok ou un modèle local.

  • Fichiers inclus : 3

    Des scripts, des gabarits et des références que le modèle peut consulter pendant son travail. Les fichiers sont en lecture seule et ne sont jamais exécutés.

  • Open source

    Publiée par shopwareLabs sur GitHub. Consultez les sources avant de l’installer.

Installation

Installez la compétence IA Feature Branch Pr Writing dans TypingMind pour l’utiliser avec n’importe quel LLM, ou ajoutez-la à un autre agent capable de lire SKILL.md.

1

Installer dans TypingMind

TypingMind installe une compétence directement depuis son dossier GitHub : l’application lit SKILL.md, regroupe les fichiers de ressources et enregistre le tout localement.

  1. Ouvrez l’application et accédez à Plugins → Compétences.
  2. Choisissez « Installer depuis GitHub ».
  3. Copiez l’URL ci-dessous, qui pointe vers le dossier de la compétence, puis collez-la et confirmez.
    https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/feature-branch-pr-writing
  4. Activez la compétence dans chaque discussion où vous souhaitez pouvoir l’utiliser.
Plugins → Compétences → Ajouter une compétence → Via une URL GitHub, puis collez l’URL du dossier et appuyez sur Continuer.
2

Installer dans un autre agent

Tout agent capable de lire le format Agent Skills peut utiliser cette compétence : copiez le dossier dans le répertoire des compétences de cet 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
Redémarrez Claude Code après la copie pour que la nouvelle compétence soit prise en compte.

Utilisez cette compétence dans TypingMind

Activez Feature Branch Pr Writing dans n’importe quelle discussion TypingMind et le modèle s’occupe du reste. Le nom et la description de la compétence figurent dans le prompt système. Dès qu’une demande correspond, le modèle charge lui-même l’intégralité des instructions : vous n’avez jamais à l’invoquer manuellement, et elle ne consomme aucun token tant qu’elle n’est pas utilisée.

Le modèle charge automatiquement Feature Branch Pr Writing dès qu’une demande correspond à cette compétence.

Compatible avec tous les modèles IA

Les compétences IA sont de simples instructions Markdown, et non du code propre à un fournisseur. Ainsi, la compétence Feature Branch Pr Writing n’est pas liée au modèle pour lequel elle a été conçue. Installez-la une seule fois dans TypingMind et utilisez-la avec GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou un modèle local que vous exécutez vous-même, le tout avec vos propres clés API.

  • Chargée uniquement en cas de besoin

    Le prompt système ne contient que le nom et la description. Les instructions sont récupérées à la première demande correspondante : une compétence inutilisée ne coûte donc rien.

  • Changez de modèle en cours de discussion

    La compétence étant constituée d’instructions et non de code, elle reste fonctionnelle lorsque vous changez de modèle : le nouveau modèle lit le même fichier SKILL.md.

Instructions de la compétence

Voici le contenu de SKILL.md que le modèle charge. Lisez-le avant l’installation : une compétence contient des instructions que votre modèle suivra.

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

Fichiers inclus

Le modèle lit ces fichiers à la demande lorsque la compétence est chargée. Ils sont accessibles en lecture et ne sont jamais exécutés.

Foire aux questions

À quoi sert la compétence IA 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...

Pourquoi utiliser Feature Branch Pr Writing sur TypingMind ?

Parce que vous l’installez une seule fois pour l’utiliser avec n’importe quel modèle. Feature Branch Pr Writing se compose de simples instructions en Markdown plutôt que de code propre à un fournisseur. La même compétence fonctionne donc avec GPT-5, Claude, Gemini, Grok ou un modèle local, et vous pouvez changer de modèle en cours de discussion sans perturber son fonctionnement. TypingMind utilise vos propres clés API : vous payez donc directement les fournisseurs plutôt qu’un abonnement par siège, et vos compétences et discussions restent dans votre propre espace de stockage.

Comment installer Feature Branch Pr Writing dans TypingMind ?

Dans TypingMind, ouvrez Plugins → Compétences → Installer depuis GitHub et collez https://github.com/shopwareLabs/ai-coding-tools/tree/main/plugins/contributor-writing/skills/feature-branch-pr-writing. TypingMind lit le fichier SKILL.md, regroupe les fichiers associés et installe le tout sous forme de compétence que vous pouvez activer pour chaque discussion.

Quels modèles d’IA peuvent utiliser Feature Branch Pr Writing ?

N’importe quel modèle que vous connectez dans TypingMind. Les compétences IA sont de simples instructions en Markdown, et non du code propre à un fournisseur. GPT, Claude, Gemini, Grok et les modèles locaux peuvent donc tous charger cette compétence lorsqu’une demande lui correspond.

Combien de modèles d’IA puis-je utiliser avec Feature Branch Pr Writing ?

Autant que vous le souhaitez. Vous pouvez utiliser Feature Branch Pr Writing avec tout modèle qui prend en charge les compétences : GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama et bien d’autres, le tout dans TypingMind avec vos propres clés API.

La compétence IA Feature Branch Pr Writing est-elle gratuite ?

Oui. Cette compétence est publiée sur GitHub par shopwareLabs sous licence MIT. Vous ne payez que votre propre fournisseur d’IA pour les tokens utilisés.

Que sont les compétences IA ?

Une compétence IA est un ensemble d’instructions réutilisables qui apprend à un modèle d’IA à accomplir une tâche précise. Elle suit le format ouvert Agent Skills : un fichier SKILL.md contenant un nom et une description, ainsi que les éventuels scripts, gabarits ou fichiers de référence dont le modèle peut avoir besoin. Le modèle ne lit les instructions que lorsque votre demande correspond à la compétence. Une compétence installée ne coûte donc rien tant qu’elle n’est pas utilisée.

En quoi les compétences IA diffèrent-elles des plugins ou des serveurs MCP ?

Un plugin ou un serveur MCP fournit au modèle de nouveaux outils à appeler : du code qui s’exécute quelque part et renvoie un résultat. Une compétence IA lui apporte plutôt des connaissances et une méthode : comment aborder une tâche, quelles étapes suivre et à quoi ressemble un bon résultat. Les compétences sont de simples instructions en Markdown. Elles ne nécessitent donc ni serveur, ni clé API, ni environnement d’exécution, et fonctionnent avec n’importe quel modèle.

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇