Command Palette

Search for a command to run...

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

generate-test-plan

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

Generate a comprehensive testing guide from a Jira issue, GitHub PR URLs, or both. Use when the user wants test steps, a test plan, or a testing guide for…

openshift-engот openshift-eng★ 123 звезды на GitHub

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

Name

openshift-developer:generate-test-plan

Synopsis

/openshift-developer:generate-test-plan <JIRA_KEY | PR_URL> [additional PR URLs...]

Description

Generates a structured testing guide by analyzing a Jira issue, one or more GitHub PRs, or both. Consolidates context from Jira acceptance criteria, PR diffs, commit messages, and changed files into actionable, ID-tagged test scenarios with CI tier placement, target file paths, and traceability.

When given a Jira key, it auto-discovers linked PRs. When given PR URLs directly, it works without Jira. Both can be combined.

Implementation

Step 1: Parse input and resolve sources

1a. Parse arguments

  • If $1 matches a Jira issue key pattern (e.g. CNTRLPLANE-205, OCPBUGS-12345): treat as Jira key.
  • If $1 is a GitHub URL: treat as PR URL (no Jira context).
  • Remaining arguments ($2, $3, ...): additional PR URLs.

1b. Discover the Jira MCP tool and acquire cloudId

Do not hardcode a single MCP tool name. The Jira MCP tool name varies across environments. For each candidate below, check whether it requires a cloudId parameter before attempting an issue fetch:

  1. For each candidate tool name:
    • mcp__user_jira__jira_get_issue
    • mcp__plugin_jira_atlassian__getJiraIssue
    • mcp__atlassian__jira_get_issue
  2. Check the tool's schema/parameters to see if cloudId is required.
  3. If cloudId is required, first call the tool's accessible-resources operation (e.g. jira_list_accessible_resources or equivalent) to obtain the cloudId. Extract it from the first accessible resource.
  4. Then attempt a test fetch with the resolved cloudId.
  5. Use the first candidate that responds successfully for all subsequent Jira calls.

If no MCP tool responds (not authenticated, no accessible sites, or none available), fall back to Bash-based Jira access via ci:fetch-jira-issue. Record which tool and cloudId were resolved for use in all later Jira calls.

Fallback field coverage: The ci:fetch-jira-issue fallback may not return all relationship fields (e.g. parent, issuelinks, subtasks). When using the fallback, make separate Jira REST calls (via curl or the fetch script's --fields option) to retrieve these fields if the initial response does not include them. Steps 1d–1e require issuelinks, parent, and subtasks for clone chain and link traversal — skip those steps only if the fields genuinely cannot be retrieved.

1c. Fetch Jira issue (when a Jira key is provided)

Fetch the issue with all of these fields — do not omit any:

  • summary, description, status, issuetype, project
  • acceptance criteria — may be stored in a custom field (e.g. customfield_12316743 or similar, varies by Jira instance) or embedded in the description. When using the MCP tool, include all custom fields in the request. When using the ci:fetch-jira-issue fallback, check whether acceptance criteria appear in the response; if not, make a separate REST call with ?fields=customfield_12316743 (resolve the field ID by searching Jira's field metadata for a field named "Acceptance Criteria").
  • parent — the parent issue (epic or initiative)
  • issuelinks — all linked issues (blocks, is blocked by, clones, is cloned by, relates to)
  • subtasks — child issues
  • components, labels, fixVersions

Remote links — fetch separately using the remote-links endpoint or parameter. Confirm the parameter name is correct for the discovered MCP tool (e.g. properties=remoteLinks, include="remote_links", or a separate jira_get_remote_links call). Verify the response actually contains remote link data; if empty, fall back to scanning the description and comments for GitHub PR URLs.

Atlassian v2 MCP specifics — when the resolved tool is the Atlassian v2 MCP server, fetch typed issue links via executeRead with name: "getJiraIssue" and view: "evidence" in inputs. Fetch comment bodies via listJiraIssueComments, paginating with startAt until isLast is true.

1d. Backport and clone chain traversal

If the issue has is cloned by or cloned from links (indicating backports or clones):

  1. Follow the chain to the root parent — the original issue that carries the full change description and test evidence.
  2. Use the root parent's description, acceptance criteria, and linked PRs as the primary context.
  3. Note the backport chain in the output for traceability.

1e. Parent, epic, and link traversal

Read parent, issuelinks, and subtasks fields:

  • If the issue has a parent epic/feature, fetch its summary and description for broader context.
  • For issuelinks of type relates to, blocks, is blocked by: fetch summaries to identify interoperability surfaces and dependencies.
  • For subtasks: understand the decomposition and which parts are in scope.

1f. Determine Jira content format

Jira returns content in different formats depending on API version and cal

Полный SKILL.md на GitHub

Установить generate-test-plan в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

references/ocpstrat-feature.md

FAQ

Что делает скилл generate-test-plan?

Generate a comprehensive testing guide from a Jira issue, GitHub PR URLs, or both. Use when the user wants test steps, a test plan, or a testing guide for code changes.

Как установить скилл generate-test-plan?

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

Скилл generate-test-plan запускает скрипты?

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

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

Сравнить generate-test-plan с