Agent skill

Categorize Activity Types

by openshift-eng in openshift-eng/ai-helpers

Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

Apache-2.0Auto-check passed

Install Categorize Activity Types

skills CLI
$ npx skills add openshift-eng/ai-helpers --skill categorize-activity-types -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install openshift-eng/ai-helpers categorize-activity-types --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/jira/skills/categorize-activity-types .claude/skills/categorize-activity-types && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
categorize-activity-types
GitHub stars
120
Token cost
~2.4k tokens
SKILL.md length
990 words
Files
6 (incl. scripts)
Skills in repo
118
Repo updated
First seen
Licence
Apache-2.0

At a glance

Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

  • Works in 5 steps: Gather Issues → Categorize Issues → Validate and Report → …
  • The user wants to categorize
  • SKILL.md covers Valid Activity Types, Activity Type Field, Prerequisites Check and Working Directory, plus 4 more sections
  • Runs Shell and Python scripts from its folder; calls bash and python3; reaches redhat.atlassian.net; needs PARENT_KEY

What it does

Categorize Activity Types is an agent skill from openshift-eng/ai-helpers. Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools. Supports single-issue and batch modes. Use when the user wants to categorize or set activity types on Jira issues, or mentions activity types, work types, Sankey, or capacity allocation.

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `resources/activity-type-guidance.md`, `resources/report-template.md` and `scripts/cleanup.sh`).

It works with Jira and Model Context Protocol. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.

When your agent uses it

  • The user wants to categorize
  • Set activity types on Jira issues
  • Mentions activity types
  • Capacity allocation

Example prompts

  • “/categorize-activity-types”

Requirements

  • Python 3
  • A Bash shell
  • A credential in PARENT_KEY

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Gather Issues
  2. Categorize Issues
  3. Validate and Report
  4. Apply Updates
  5. Iterate (Batch Mode Only)

What it can do on your machine

Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Shell and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • redhat.atlassian.net

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • PARENT_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Categorize Activity Types loads about 2.4k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 990 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 990 words, ~2,386 tokens.

Download SKILL.mdSave it as .claude/skills/categorize-activity-types/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
categorize-activity-types
description
Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools. Supports single-issue and batch modes. Use when the user wants to categorize or set activity types on Jira issues, or mentions activity types, work types, Sankey, or capacity allocation.

Activity Type Classification

Categorize Jira issues into Red Hat's Sankey capacity allocation categories and update them via MCP Jira tools. This skill supports two modes of operation:

  • Single-issue mode: Categorize one issue by key (invoked by /jira:categorize-activity-type)
  • Batch mode: Categorize all unclassified issues in a project (invoked by /jira:batch-categorize-activity-types)

Both modes use identical classification logic, validation, and reporting.

Valid Activity Types

These are the only valid values. Use the exact strings:

Activity TypeShort Description
Associate Wellness & DevelopmentOnboarding, training, AI learning, conferences, team health
Incidents & SupportProduction incidents, customer escalations, on-call
Security & ComplianceCVEs, weaknesses, FedRAMP, compliance, security tooling
Quality / Stability / ReliabilityBugs, SLOs, chores, tech debt, toil reduction, PMR actions
Future SustainabilityProactive architecture, productivity improvements, upstream, enablement
Product / Portfolio WorkNew features, enhancements, strategic product/portfolio work

For detailed definitions, subcategories, and edge cases, see resources/activity-type-guidance.md.

Activity Type Field

The Activity Type custom field ID is customfield_10464. This is the same across all projects on redhat.atlassian.net.

Prerequisites Check

Before starting any work, verify MCP Jira tools are available:

  1. Attempt to call searchJiraIssuesUsingJql with a simple query (e.g., jql: "project = OCM", maxResults: 1)
  2. If the tool is not found or returns an MCP connection error, stop immediately and tell the user:
    • "The MCP Jira tools are not available. This workflow requires the Atlassian Rovo MCP server to be configured with access to redhat.atlassian.net."
  3. Do NOT proceed to any phase if this check fails

Working Directory

Both modes write artifacts to .work/activity-type-classifier/. Create this directory before starting:

bash
mkdir -p .work/activity-type-classifier

Workflow

Copy this checklist and track progress:

text
Classification Progress:
- [ ] Prerequisites: MCP Jira tools available
- [ ] Phase 1: Gather issues
- [ ] Phase 2: Categorize each issue
- [ ] Phase 3: Validate & generate report
- [ ] Phase 4: Apply updates (with approval)
- [ ] Phase 5: Iterate (batch mode only)
Phase 1: Gather Issues
Single-Issue Mode

Fetch the issue by key using getJiraIssue:

  • Fields: summary,description,issuetype,labels,parent,components,priority,customfield_10464
  • If the issue already has an Activity Type set (customfield_10464 is not null), inform the user and stop
Batch Mode

Parse user input for:

  • Project key (required) — e.g., OCM, ARO
  • Issue type (optional, default: Epic)
  • Extra JQL filters (optional) — e.g., AND resolved >= "2025-01-01"

Always filter for issues without an Activity Type set. The "Activity Type" is EMPTY condition is mandatory in every query — do not ask the user whether to include it.

Construct the JQL query using this template:

sql
project = {PROJECT} AND issuetype = {TYPE} AND "Activity Type" is EMPTY

Common additions:

  • Date filter: AND resolved >= "2025-01-01"
  • Open issues only: AND status != Closed

Execute searchJiraIssuesUsingJql with maxResults: 50. If more results exist, make a second call with nextPageToken to get up to 100 total. Combine both result sets.

From each issue, extract: key, summary, description (truncate to 2000 chars), labels, issuetype, status, priority, comment, and parent. Save all extracted data to .work/activity-type-classifier/issues.json.

Report the count of issues found to the user before proceeding.

Phase 2: Categorize Issues

Pre-check — Parent inheritance: Before classifying each issue, check if it has a parent issue. If the parent has an Activity Type set (customfield_10464), inherit it directly — no further classification needed. Set confidence to "High" and reasoning to "Inherited from {PARENT_KEY}". To look up a parent's Activity Type, call getJiraIssue with the parent's key and check customfield_10464. Cache parent lookups to reduce API calls — multiple children may share the same parent.

For remaining issues (no parent or parent has no Activity Type), read summary, description, labels, comments, and status. Apply the classification rules below and the detailed guidance in resources/activity-type-guidance.md.

Save classifications to .work/activity-type-classifier/classifications.json as a JSON array:

json
[
  {
    "key": "OCM-12345",
    "summary": "Issue title",
    "activityType": "Product / Portfolio Work",
    "confidence": "High",
    "reasoning": "New customer-facing feature for cluster provisioning"
  }
]

In single-issue mode, this array contains exactly one entry. In batch mode, it contains all classified issues.

If total issues exceed 50 (batch mode), process in sub-batches of 20 to manage context.

Phase 3: Validate and Report

Run the validation and report generation scripts. These are located in scripts/ relative to this skill's directory.

  1. Run the validation script:
    bash
    bash plugins/jira/skills/categorize-activity-types/scripts/validate-classifications.sh .work/activity-type-classifier/classifications.json
  2. Fix any validation errors before proceeding
  3. Generate the report:
    bash
    python3 plugins/jira/skills/categorize-activity-types/scripts/generate-report.py .work/activity-type-classifier/classifications.json .work/activity-type-classifier/report.md
  4. Display the report summary to the user
Show full SKILL.md (377 more words)Show less
Phase 4: Apply Updates
Single-Issue Mode with --auto-apply
  • If --auto-apply flag is present AND confidence is High: automatically update the Activity Type field without prompting
  • Otherwise: present the classification and ask for confirmation before applying
Batch Mode
  1. Ask the user for explicit approval before modifying any Jira issues
  2. If --dry-run flag is present, skip this phase entirely
  3. Max 2 concurrent MCP update calls to avoid rate limiting
  4. Report progress every 10 issues
  5. On error: log the failure, continue with remaining issues
  6. After completion, summarize successes and failures
Update Format

Use editJiraIssue to set customfield_10464 (Activity Type) to the classified value, e.g. {"value": "Product / Portfolio Work"}.

Success Confirmation
text
Updated OCM-12345: Activity Type set to "Product / Portfolio Work"
  View at: https://redhat.atlassian.net/browse/OCM-12345
Phase 5: Iterate (Batch Mode Only)

After applying updates, offer to re-run the workflow:

  • Classified issues will no longer match the JQL query (Activity Type is no longer empty)
  • A new batch of unclassified issues can be gathered and processed
  • Track cumulative stats across iterations

Classification Rules

When classifying an issue:

  1. Read carefully — consider summary, description, labels, comments, and linked issues
  2. Business intent over technical details — a Kubernetes refactoring driven by product requirements is "Product / Portfolio Work", not "Future Sustainability"
  3. Security always wins — if an issue involves CVEs, vulnerabilities, compliance, or security tooling, classify as "Security & Compliance" regardless of other aspects
  4. Primary purpose — when an issue spans multiple categories, choose the one that best matches the primary motivation
  5. Confidence levels:
    • High — clear match, unambiguous indicators
    • Medium — reasonable match but some ambiguity
    • Low — uncertain, multiple categories could apply
  6. Truncate descriptions — use the first 2000 characters of the description for classification

For the complete category definitions with subcategories and examples, see resources/activity-type-guidance.md.

Error Handling

  • Issue not found: Display error and suggest verifying issue key
  • Permission denied: Inform user they lack update permissions
  • Invalid field value: Verify Activity Type value matches allowed options
  • MCP connection error: Suggest checking MCP server configuration
  • Parent fetch failure: Continue without parent context, note in reasoning

Reference Files

FilePurposeWhen to Read
resources/activity-type-guidance.mdFull Sankey category definitions and subcategoriesPhase 2 (classifying)
resources/report-template.mdReport format referencePhase 3 (report generation)
scripts/validate-classifications.shValidate classifications JSONPhase 3 (validation)
scripts/generate-report.pyGenerate markdown report from JSONPhase 3 (report generation)
scripts/cleanup.shRemove data artifacts, preserve reportsPost-workflow cleanup

© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts) in plugins/jira/skills/categorize-activity-types of openshift-eng/ai-helpers.

  • SKILL.md
  • resources/activity-type-guidance.md
  • resources/report-template.md
  • scripts/cleanup.sh
  • scripts/generate-report.py
  • scripts/validate-classifications.sh

Open the folder on GitHubat commit a627176

Compare with similar skills

Categorize Activity Types next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Categorize Activity Types compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Categorize Activity Types this skillopenshift-eng/ai-helpers120—~2.4kAutomated safety check: PassApache-2.0
Link Ticket To SessionJayantDevkar/claude-code-karma329—~1.8kAutomated safety check: NotesApache-2.0
Jira Natural Language Interfacejjmartres/opencode1333 repos~1.7kAutomated safety check: PassMIT
Issue Triage Loopcobusgreyling/loop-engineering11k—~522Automated safety check: PassMIT
Create Epic RecapDataDog/datadog-agent3.8k—~5kAutomated safety check: NotesApache-2.0
Pilot Updatequay/quay2.8k—~3.5kAutomated safety check: PassApache-2.0

Similar skills

  • Link Ticket To Session

    JayantDevkar/claude-code-karma

    Link the current Claude Code session to a ticket (Linear, Jira, GitHub Issues, or GitHub Pull Requests) and cache its title/status in karma.

    329 GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check: notes
  • Lets an agent view, create, update and transition Jira issues in natural language, automatically choosing between the jira CLI and Atlassian MCP tools.

    133 GitHub starsUsed in 3 repos~1.7k tokens
    Product & Project ManagementAuto-check passed
  • Issue Triage Loop

    cobusgreyling/loop-engineering

    Scans open GitHub issues and discussions, flags duplicates, scores priority and proposes labels into issue-triage-state.md without ever labeling or closing.

    11k GitHub stars~522 tokensUpdated today
    DevelopmentAuto-check passed
  • Create Epic Recap

    DataDog/datadog-agent

    Official

    A skill your agent uses when an engineer or manager asks to recap, summarize, or post an update on a Jira Epic — a progress update for an in-progress Epic (how far along it is, what's shipped so…

    3.8k GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check: notes
  • Pilot Update

    quay/quay

    Post a biweekly Agentic SDLC pilot update comment to PROJQUAY-11352.

    2.8k GitHub stars~3.5k tokensUpdated today
    Testing & QAAuto-check passed
  • Akb Ingest

    dnotitia/akb

    Ingest whatever you point at into an AKB vault — a local file, a web URL, a GitHub PR/release/commit, a Confluence page, or a Jira issue.

    162 GitHub stars~2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from openshift-eng/ai-helpers

All 118 skills in this repo
  • Investigate CI Reliability

    openshift-eng/ai-helpers

    Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.

    120 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Address Review PR

    openshift-eng/ai-helpers

    Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.

    120 GitHub stars~2.9k tokensUpdated 3 days ago
    Auto-check passed
  • Has Review Work

    openshift-eng/ai-helpers

    Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.

    120 GitHub stars~1.9k tokensUpdated 3 days ago
    Auto-check passed
  • Must Gather Analyzer

    openshift-eng/ai-helpers

    Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.

    120 GitHub stars~2.3k tokensUpdated 3 days ago
    Auto-check passed
  • Payload Autodl JSON

    openshift-eng/ai-helpers

    Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file

    120 GitHub stars~2.6k tokensUpdated 3 days ago
    Auto-check passed
  • Payload Results YAML

    openshift-eng/ai-helpers

    State management for agentic payload triage actions — you must use this skill whenever reading or writing the payload results YAML file

    120 GitHub stars~3.7k tokensUpdated 3 days ago
    Auto-check passed

Questions about Categorize Activity Types

What does Categorize Activity Types do?

Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools. Categorize Activity Types is an agent skill from openshift-eng/ai-helpers. Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.

When should I use Categorize Activity Types?

Categorize Activity Types fits situations like: the user wants to categorize; set activity types on Jira issues; mentions activity types; capacity allocation.

How do I install Categorize Activity Types in Claude Code?

Run `npx skills add openshift-eng/ai-helpers --skill categorize-activity-types -a claude-code`. Or copy the skill folder (plugins/jira/skills/categorize-activity-types in openshift-eng/ai-helpers) into .claude/skills/categorize-activity-types in your project. Claude Code loads it when a task matches its description.

How do I install Categorize Activity Types in Codex?

Run `npx skills add openshift-eng/ai-helpers --skill categorize-activity-types -a codex`. Or copy the skill folder (plugins/jira/skills/categorize-activity-types in openshift-eng/ai-helpers) into .agents/skills/categorize-activity-types in your project. Codex loads it when a task matches its description.

Can I use Categorize Activity Types in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill categorize-activity-types -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/categorize-activity-types, .gemini/skills/categorize-activity-types, .github/skills/categorize-activity-types and .opencode/skills/categorize-activity-types in your project.

What does Categorize Activity Types need to run?

Going by SKILL.md and its folder, Categorize Activity Types needs a shell and Python for the scripts in its folder, the command-line tools its instructions call (bash and python3) and credentials named PARENT_KEY. Our summary lists: Python 3; A Bash shell; A credential in PARENT_KEY.

Does Categorize Activity Types access the network?

SKILL.md names 1 domain. In commands or code: redhat.atlassian.net; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Categorize Activity Types safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Categorize Activity Types use?

Categorize Activity Types is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Categorize Activity Types use?

About 2.4k tokens (SKILL.md is roughly 9.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Categorize Activity Types?

Skills that share tags, products or a category with Categorize Activity Types: Link Ticket To Session (JayantDevkar/claude-code-karma, 329 stars), Jira Natural Language Interface (jjmartres/opencode, 133 stars), Issue Triage Loop (cobusgreyling/loop-engineering, 11k stars) and Create Epic Recap (DataDog/datadog-agent, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Categorize Activity Types?

openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.

Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.