/pf-workshop:pf-duplicate-epicfrom pf-workshop
Clones a Jira epic from another project into the PatternFly Jira space with back-links and feature attachment. Handles non-epic issues by resolving parent epic automatically.
Ships in pf-workshop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Clones a Jira epic (e.g., from the COST project) into the PatternFly (PF) Jira space, ensures it carries an "is duplicated by" link referencing the original, and sets it as a child of the given feature.
| Tool | Purpose | Install |
|---|---|---|
curl | Jira REST API calls | pre-installed on macOS; brew install curl |
jq | JSON parsing and payload construction | brew install jq |
The script checks for both tools at startup and exits with a helpful message if either is missing.
The command takes exactly two positional arguments:
| Position | Name | Description |
|---|---|---|
$1 | issue | Any Jira issue key or full URL — Epic, Story, Bug, etc. |
$2 | feature | The PF feature key or full URL to assign the new epic to |
Both bare keys and full URLs are accepted:
| Input | Parsed key |
|---|---|
COST-7355 | COST-7355 |
https://redhat.atlassian.net/browse/COST-7355 | COST-7355 |
PF-3868 | PF-3868 |
https://redhat.atlassian.net/browse/PF-3868 | PF-3868 |
Pass $1 and $2 directly to the script — no further parsing required.
The script requires two environment variables:
| Variable | Description |
|---|---|
JIRA_USER_EMAIL | Atlassian account email |
JIRA_API_TOKEN | API token from id.atlassian.com/manage/api-tokens |
If either is missing, ask the user for their email and direct them to create an API token, then set the variables inline when running the script.
Run the script from the skill directory:
cd $CLAUDE_SKILL_DIR
bash scripts/duplicate_epic.sh <issue> <feature>
The first argument (issue) may be an Epic, Story, Bug, or any other issue type. If it is not an Epic, the script automatically resolves its parent epic before cloning.
Examples:
bash scripts/duplicate_epic.sh COST-7355 PF-3868
bash scripts/duplicate_epic.sh COST-7309 PF-3868 # story/bug — script walks up to parent epic automatically
With inline credentials:
JIRA_USER_EMAIL="[email protected]" JIRA_API_TOKEN="your-token" \
bash scripts/duplicate_epic.sh COST-7170 PF-3406
Epic (e.g., it is a Story or Bug), the script walks up to its parent epic using fields.parent (next-gen projects) or fields.customfield_10014 (classic epic link). Exits with an error if no parent epic can be found.Duplicate issue links for any PF- issue; skips creation if found.PF project copying the summary and labels. The description is sanitized before cloning: mediaSingle and media nodes (embedded attachments) are stripped, so embedded images and file attachments will not appear in the PF copy.Duplicate link so the new epic displays "is duplicated by {ORIGINAL EPIC}" in its linked work items; skips if already present.After a successful run, display these URLs to the user:
Feature: https://redhat.atlassian.net/browse/PF-3406
New Epic: https://redhat.atlassian.net/browse/PF-XXXX
Original Epic: https://redhat.atlassian.net/browse/COST-7170
Input Issue: https://redhat.atlassian.net/browse/COST-7309 ← only shown when input was not itself an epic
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub rh-uxd/ai-helpers --plugin pf-workshop18 skills in this plugin
/pf-analytics-repo-pruningFlag archived or inactive repos in PatternFly Analytics repos.json for removal. Use when auditing tracked codebases or pruning stale entries from analytics./pf-bug-triageTriage PatternFly bug reports — assess completeness, suggest fixes, identify affected components, and recommend assignees. Use when reviewing new bug issues or preparing them for assignment./pf-content-reviewReview content against PatternFly and Red Hat voice and tone standards. Use when contributing to patternfly.org, writing UI copy for Red Hat products, reviewing design guidelines, or editing externally sourced or AI-generated content./pf-create-issueCreate well-structured GitHub issues for PatternFly repositories with templates, follow-up tracking, and duplicate detection. Use when filing bugs, feature requests, or cross-repo follow-ups./pf-css-var-scanAnalyze --pf- CSS custom property usage and naming patterns in PatternFly SCSS. Use when auditing variable definitions, debugging missing tokens, or finding unused custom properties./pf-figma-diffDiff Figma designs to identify what changed and generate code update checklists. Use when syncing code with updated designs or reviewing what changed between iterations. Requires Figma MCP.Other plugins' skills for the same job