Lists all OCPBUGS-tracked components from team_component_map.json or filters by team via Python CLI script. Useful for validating names, counting, or preparing bug queries.
From teamsnpx claudepluginhub openshift-eng/ai-helpers --plugin teamsThis skill uses the workspace's default tool permissions.
list_components.pyGuides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Migrates code, prompts, and API calls from Claude Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5, updating model strings on Anthropic, AWS, GCP, Azure platforms.
Details PluginEval's skill quality evaluation: 3 layers (static, LLM judge), 10 dimensions, rubrics, formulas, anti-patterns, badges. Use to interpret scores, improve triggering, calibrate thresholds.
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.py