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★ 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
$1matches a Jira issue key pattern (e.g.CNTRLPLANE-205,OCPBUGS-12345): treat as Jira key. - If
$1is 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:
- For each candidate tool name:
mcp__user_jira__jira_get_issuemcp__plugin_jira_atlassian__getJiraIssuemcp__atlassian__jira_get_issue
- Check the tool's schema/parameters to see if
cloudIdis required. - If
cloudIdis required, first call the tool's accessible-resources operation (e.g.jira_list_accessible_resourcesor equivalent) to obtain thecloudId. Extract it from the first accessible resource. - Then attempt a test fetch with the resolved
cloudId. - 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,projectacceptance criteria— may be stored in a custom field (e.g.customfield_12316743or similar, varies by Jira instance) or embedded in thedescription. When using the MCP tool, include all custom fields in the request. When using theci:fetch-jira-issuefallback, 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 issuescomponents,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):
- Follow the chain to the root parent — the original issue that carries the full change description and test evidence.
- Use the root parent's description, acceptance criteria, and linked PRs as the primary context.
- 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
issuelinksof typerelates 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
Установить generate-test-plan в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic