plugins/teams/skills/list-components/SKILL.md
List all OCPBUGS components, optionally filtered by team
npx skillsauth add openshift-eng/ai-helpers list-componentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides functionality to list all OCPBUGS component names from the team component mapping, with optional filtering by team.
Use this skill when you need to:
Python 3 Installation
which python3jq Installation
which jqbrew install jqsudo apt-get install jq or sudo yum install jqTeam Component Mapping File
team_component_map.json should be in the repositoryplugins/teams/team_component_map.jsonpython3 plugins/teams/generate_team_component_map.pyEnsure you are in the repository root directory:
# Verify you are in the repository root
pwd
# Expected output: /path/to/ai-helpers
List all OCPBUGS components:
python3 plugins/teams/skills/list-components/list_components.py
List OCPBUGS components for a specific team:
python3 plugins/teams/skills/list-components/list_components.py --team "API Server"
Note: Use the exact team name from the list-teams command output.
The script outputs JSON with the following structure:
All components:
{
"total_components": 87,
"components": [
"Auth",
"apiserver-auth",
"config-operator",
"..."
]
}
Components filtered by team:
{
"total_components": 8,
"components": [
"apiserver-auth",
"config-operator",
"kube-apiserver",
"kube-controller-manager",
"kube-storage-version-migrator",
"openshift-apiserver",
"openshift-controller-manager / controller-manager",
"service-ca"
],
"team": "API Server"
}
Field Descriptions:
total_components: Total number of OCPBUGS components foundcomponents: Alphabetically sorted list of OCPBUGS component namesteam: (Optional) The team name used for filteringThe script handles several error scenarios:
Mapping file missing:
Error: Team component mapping file not found at ...
This file should be in the repository. Please check your installation.
Solution: Verify repository checkout or regenerate with generate_team_component_map.py
Invalid JSON in mapping:
Error: Failed to parse mapping file. File may be corrupted.
Solution: Regenerate the mapping file
Team not found:
Error: Team 'Invalid Team' not found in mapping.
Use list-teams to see available teams.
Solution: Run list-teams to get correct team name, ensure exact match (case-sensitive)
No OCPBUGS components for team:
Warning: No OCPBUGS components found for team 'Team Name'.
The team may not have any OCPBUGS components assigned.
Note: This is a warning, not an error. Some teams may not have OCPBUGS components.
The script outputs JSON to stdout:
python3 plugins/teams/skills/list-components/list_components.py
Output:
{
"total_components": 87,
"components": [
"Auth",
"apiserver-auth",
"..."
]
}
python3 plugins/teams/skills/list-components/list_components.py --team "API Server"
Output:
{
"total_components": 8,
"components": [
"apiserver-auth",
"config-operator",
"kube-apiserver",
"..."
],
"team": "API Server"
}
python3 plugins/teams/skills/list-components/list_components.py | jq '.total_components'
Output:
87
python3 plugins/teams/skills/list-components/list_components.py | jq '.components[] | select(contains("apiserver"))'
Output:
"apiserver-auth"
"kube-apiserver"
"openshift-apiserver"
plugins/teams/team_component_map.jsonpython3 plugins/teams/generate_team_component_map.pyThe team and component mapping data originates from:
If data looks wrong or missing:
python3 plugins/teams/generate_team_component_map.py
team_component_map.json fileplugins/teams/skills/list-teams/SKILL.md/teams:list-componentsplugins/teams/team_component_map.jsonplugins/teams/generate_team_component_map.pytesting
Snapshot OpenShift payload data (release controller, PR diffs, comments, CI jobs, JUnit results, regression tracking) to a local directory for offline analysis
research
Shared engine for analyzing Jira issue activity and generating status summaries
tools
This skill should be used before any Snowflake command to verify MCP connectivity, guide users through access provisioning, and set the session context. Invoke this skill proactively whenever a command needs Snowflake data access.
development
Analyze a payload snapshot to identify root causes of blocking job failures, score candidate PRs, and produce an HTML report with revert recommendations