openshift-eng/ai-helpers/create

Claude Code and agent skill by openshift-eng/ai-helpers

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Create Jira issues — story, bug, epic, feature, initiative, task, risk, spike, or feature-request — with CNTRLPLANE, OCPBUGS, GCP, HyperShift, ARO, ROSA conventions and type-specific templates

Install

npx vskill@latest install openshift-eng/ai-helpers/create

SKILL.md

The same SKILL.md was published earlier as openshift-eng/ai-helpers/create.

Create Jira Issue

bash
/jira:create <type> [project-key] <summary> [--component <name>] [--version <version>] [--parent <key>]

Creates Jira issues following best practices and team-specific conventions. Supports stories, epics, features, initiatives, tasks, bugs, risks, spikes, and feature requests with intelligent defaults, interactive prompts, and validation.

Type-Specific Guidance

Load the reference file matching the issue type for templates, interactive workflows, and best practices:

TypeReferenceKey Content
storyStory guideUser story format, acceptance criteria, summary vs description
bugBug guideBug template, steps to reproduce, reproducibility
epicEpic guideEpic Name field, scope/timeline, parent Feature linking
featureFeature guideMarket problem, strategic value, success criteria
initiativeInitiative guideInternal capability, problem statement, internal impact
riskRisk guideQualifying criteria, probability/impact assessment, auto-calculated fields
spikeSpike guideResearch question, time box, investigation approach
taskTask guideTask vs story distinction, action-verb summaries
feature-requestFeature Request guideRFE project, 4-question workflow, business requirements

Also load Markdown for Jira for description formatting.

Arguments

  • type (required) — story | epic | feature | initiative | task | bug | risk | spike | feature-request
  • project-key (optional for bugs and feature-requests) — e.g., CNTRLPLANE, OCPBUGS, RFE. Default for bugs: OCPBUGS. Default for feature-requests: RFE.
  • summary (required) — Issue title. Use quotes for multi-word: "Enable automatic scaling"
  • --component (optional) — Component name. Auto-detected from summary for known projects.
  • --version (optional) — Target version. Normalized to openshift-X.Y per project conventions.
  • --parent (optional) — Parent issue key for linking (e.g., CNTRLPLANE-123).

Implementation Phases

Phase 1: Load Guidance
  1. Load the type-specific reference file from the table above
  2. Invoke the jira:jira-conventions skill when the project key, component, or summary keywords match a known project or team
Phase 2: Parse Arguments & Detect Context

Parse required and optional arguments. Analyze summary text for context clues (team, component, platform keywords).

Phase 3: Apply Smart Defaults

Universal requirements (ALL tickets):

"labels": ["ai-generated-jira"]
"security": {"name": "Red Hat Employee"}
contentFormat: "markdown"

Project and team defaults (version, component, labels) come from the jira-conventions skill.

Phase 4: Interactive Prompts

Follow the type-specific reference file's interactive workflow to collect missing information (story format, bug template sections, epic scope, etc.).

Phase 5: Summary Validation

Check for anti-patterns before creation:

  1. Summary starts with "As a" or contains "I want" / "so that" → belongs in description
  2. Summary exceeds 100 characters → likely too long

If detected:

plaintext
The summary looks like a full user story. Summaries should be concise titles.
Current: "As a cluster admin, I want to configure ImageTagMirrorSet in HostedCluster CRs so that I can enable tag-based image proxying"
Suggested: "Enable ImageTagMirrorSet configuration in HostedCluster CRs"
Use the suggested summary? (yes/no/edit)
Phase 6: Security Validation

Scan all content (summary, description) for sensitive data:

  • Credentials, API tokens, cloud keys (AWS, GCP, Azure)
  • Kubeconfigs, SSH keys, certificates, PEM files
  • URLs with embedded credentials

If detected: STOP creation, inform user of the type found (without echoing it), suggest placeholder values.

Phase 7: Create Issue via MCP

Use createJiraIssue with collected parameters. Include universal fields and any project/team-specific fields.

Phase 8: Return Result
plaintext
Created: PROJECT-1234
Title: <issue summary>
URL: <issue URL>
Applied defaults:
- <Field>: <Value>

Custom Fields (redhat.atlassian.net)

FieldIDTypeUsage
Epic Namecustomfield_10011StringRequired for Epics; must match summary
Target Versioncustomfield_10855ArrayFormat: [{"id": "VERSION_ID"}] — fetch via getJiraIssueTypeMetaWithFields. Some projects use string format; project conventions take precedence

Issue Hierarchy and Parent Linking

Jira issue types have a hierarchyLevel that determines valid parent-child relationships. The parent field only accepts an issue whose hierarchyLevel is exactly one level above the child. Not all projects have all levels — use getJiraProjectIssueTypesMetadata to discover available types and their levels for a given project.

plaintext
Level 3: Outcome
Level 2: Feature / Initiative
Level 1: Epic
Level 0: Story / Task / Bug / Spike
Level -1: Sub-task
Parent Field

Use {"parent": {"key": "PARENT-KEY"}} in additional_fields for all parent-child relationships (Story→Epic, Task→Epic, Bug→Epic, Spike→Epic, Epic→Feature, Epic→Initiative, Feature→Outcome, Initiative→Outcome).

Pre-Validation (when --parent is provided)

Fetch the parent via getJiraIssue to verify it exists and its type matches the hierarchy:

CreatingParent Should BeIf Wrong Type
StoryEpicWarn user, ask to confirm or correct
TaskEpicWarn user, ask to confirm or correct
BugEpicWarn user, ask to confirm or correct
SpikeEpicWarn user, ask to confirm or correct
EpicFeature or InitiativeWarn user, ask to confirm or correct
FeatureOutcomeWarn user, ask to confirm or correct
InitiativeOutcomeWarn user, ask to confirm or correct

If parent not found, offer options: proceed without parent, specify different parent, or cancel.

Parent Linking Fallback

If creation fails with a parent-related error, create without the parent and link via editJiraIssue with {"parent": {"key": "PARENT-KEY"}}.

Changing Issue Type Across Hierarchy Levels

When changing an existing issue's type to a different hierarchy level, the current parent may become invalid. Jira validates the one-level-higher constraint on every edit, so you must change the parent and type in separate steps:

  1. Unset the parent: editJiraIssue with {"parent": null}
  2. Change the issue type: editJiraIssue with {"issuetype": {"name": "NewType"}}
  3. Set the new parent if needed: editJiraIssue with {"parent": {"key": "NEW-PARENT"}}

Error Handling

Invalid Issue Type
plaintext
Invalid issue type "stroy". Valid types: story, epic, feature, initiative, task, bug, risk, spike, feature-request
Did you mean "story"?
Missing Project Key
plaintext
Project key is required for stories/tasks/epics/features/initiatives/risks/spikes.
Usage: /jira:create story PROJECT-KEY "summary"
Field Format Errors
FieldWrongCorrect
Target Version"customfield_10855": "openshift-4.21""customfield_10855": [{"id": "12448830"}]
Component"components": "Name""components": [{"name": "Name"}]
MCP Tool Errors
  • "Field 'component' is required" → Prompt for component
  • "Version not found" → Fetch available versions, suggest closest match
  • "Permission denied" → User may lack permissions
  • "Issue type not available" → Project may not support this type

Usage Examples

bash
/jira:create story CNTRLPLANE "Add user dashboard"
/jira:create story CNTRLPLANE "Add search" --component "Frontend" --version "4.22"
/jira:create epic CNTRLPLANE "Mobile redesign" --parent CNTRLPLANE-100
/jira:create bug "API returns 500 error" --component "Backend"
/jira:create task CNTRLPLANE "Update API docs" --parent CNTRLPLANE-456
/jira:create feature CNTRLPLANE "Advanced search capabilities"
/jira:create initiative GCP "Establish performance testing infrastructure"
/jira:create risk GCP "Cincinnati API outage could block new cluster creation due to version resolution dependency"
/jira:create spike GCP "Evaluate Workload Identity Federation vs service account key rotation for HCP node auth"
/jira:create feature-request RFE "Support custom SSL certificates for ROSA HCP"

Configuration

Project and Team Conventions

The jira-conventions skill automatically detects and applies conventions:

  • CNTRLPLANE: version normalization, parent linking fields
  • OCPBUGS: bug-specific version fields
  • GCP: team templates, sizing guide, priority scheme
  • HyperShift: component selection (ARO/ROSA/HyperShift)

To add conventions for your project, create a reference file at plugins/jira/reference/your-project.md and add a routing entry to plugins/jira/skills/jira-conventions/SKILL.md.

Best Practices

  1. Use descriptive summaries with relevant keywords for auto-detection
  2. Provide --component and --version flags when known to skip prompts
  3. Use --parent to maintain issue hierarchy
  4. Sanitize content — remove credentials before including logs

Anti-Patterns

  • Wrong type: /jira:create story "Refactor database" → technical work, use task
  • Vague summary: /jira:create bug "Something is broken" → be specific
  • Credentials in content: Use placeholders like YOUR_API_KEY

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
114
Repository forks
307
7-day trend score
24

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/openshift-eng/ai-helpers/create/badge)](https://verified-skill.com/skills/openshift-eng/ai-helpers/create)

Something wrong with this skill or its page? Tell us.