Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

create-release-note

БесплатноБез исполняемых скриптовНе проверен

Detailed implementation guide for generating bug fix release notes from Jira and GitHub PRs

openshift-engот openshift-eng★ 123 звезды на GitHub17 установок в других каталогах

Об этом скилле

Create Release Note

This skill provides detailed step-by-step implementation guidance for the /jira:create-release-note command, which automatically generates bug fix release notes by analyzing Jira bug tickets and their linked GitHub pull requests.

When to Use This Skill

This skill is automatically invoked by the /jira:create-release-note command and should not be called directly by users.

Prerequisites

  • MCP Jira server configured and accessible
  • GitHub CLI (gh) installed and authenticated
  • User has read access to the Jira bug
  • User has write access to Release Note fields in Jira
  • User has read access to linked GitHub repositories

Implementation Steps

Step 1: Fetch and Validate Jira Bug

Objective: Retrieve the bug ticket and validate it's appropriate for release note generation.

Actions:

  1. Fetch the bug by calling executeRead with name: "getJiraIssue", the issue key, responseContentFormat: "markdown", and view: "evidence". Fetch the bug's comments via listJiraIssueComments, paginating with startAt until isLast is true.

  2. Parse the response:

    • Extract issuetype.name - verify it's "Bug"
    • Extract description - full bug description text
    • Extract issuelinks - array of linked issues
    • Extract customfield_10785 - current Release Note Type (if already set)
    • Extract customfield_10783 - current Release Note Text (if already set)
    • Extract the comments returned by listJiraIssueComments
  3. Validate issue type:

    • If issuetype.name != "Bug", show warning:
      Warning: {issue-key} is not a Bug (it's a {issuetype.name}).
      Release notes are typically for bugs. Continue anyway? (yes/no)
      
    • If user says no, exit without making changes
  4. Check if release note already exists:

    • If customfield_10783 is not empty, show warning:
      This bug already has a release note:
      ---
      {existing release note}
      ---
      
      Do you want to regenerate it? (yes/no)
      
    • If user says no, exit without making changes

Step 2: Parse Bug Description for Cause and Consequence

Objective: Extract the required Cause and Consequence sections from the bug description.

Bug Description Format:

Jira bug descriptions often follow this structure:

Description of problem:
{code:none}
<problem description>
{code}

Cause:
{code:none}
<root cause>
{code}

Consequence:
{code:none}
<impact>
{code}

Version-Release number of selected component (if applicable):
...

How reproducible:
...

Steps to Reproduce:
...

Actual results:
...

Expected results:
...

Parsing Strategy:

  1. Look for "Cause:" section:

    • Search for the string "Cause:" (case-insensitive)
    • Extract text between "Cause:" and the next major section
    • Remove Jira markup: {code:none}, {code}, etc.
    • Trim whitespace
  2. Look for "Consequence:" section:

    • Search for the string "Consequence:" (case-insensitive)
    • Extract text between "Consequence:" and the next major section
    • Remove Jira markup
    • Trim whitespace
  3. Alternative patterns:

    • Some bugs may use "Root Cause:" instead of "Cause:"
    • Some bugs may use "Impact:" instead of "Consequence:"
    • Try variations if exact match not found
  4. Handle missing sections:

    • If Cause is missing:
      Bug description is missing the "Cause" section.
      
      Would you like to:
      1. Provide the Cause interactively
      2. Update the bug description in Jira first
      3. Cancel
      
    • If Consequence is missing:
      Bug description is missing the "Consequence" section.
      
      Would you like to:
      1. Provide the Consequence interactively
      2. Update the bug description in Jira first
      3. Cancel
      
  5. Interactive input (if user chooses option 1):

    • Prompt: "What is the root cause of this bug?"
    • Collect user input
    • Use as Cause value
    • Repeat for Consequence if needed

Example Parsing:

Input:

Description of problem:
{code:none}
The control plane operator crashes when CloudProviderConfig.Subnet is not specified
{code}

Cause:
{code:none}
hostedcontrolplane controller crashes when hcp.Spec.Platform.AWS.CloudProviderConfig.Subnet.ID is undefined
{code}

Consequence:
{code:none}
control-plane-operator enters a crash loop
{code}

Output:

Cause: "hostedcontrolplane controller crashes when hcp.Spec.Platform.AWS.CloudProviderConfig.Subnet.ID is undefined"
Consequence: "control-plane-operator enters a crash loop"

Step 3: Extract Linked GitHub PRs

Objective: Find all GitHub PR URLs associated with this bug.

Sources to check (in priority order):

  1. Remote Links (Primary source - web links in Jira):
    • Check the Jira issue response for web links
    • Field name varies: remotelinks, or issuelinks with outward GitHub PR links
    • Extract GitHub PR URLs matching pattern: https://github\.com/[\w-]+/[\w-]+/pull/\d+
    • **IMPORTA
Полный SKILL.md на GitHub

Установить create-release-note в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл create-release-note?

Detailed implementation guide for generating bug fix release notes from Jira and GitHub PRs

Как установить скилл create-release-note?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл create-release-note запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить create-release-note с