openshift-eng/ai-helpers/manage-labels
Claude Code and agent skill by openshift-eng/ai-helpers
- community
Checking that the SKILL.md file is still in the repository.
Create, update, or delete Sippy job run Labels (the human-readable tags applied by Symptoms) via the authenticated Sippy API
Install
npx vskill@latest install openshift-eng/ai-helpers/manage-labelsSKILL.md
The same SKILL.md was published earlier as openshift-eng/ai-helpers/manage-labels.
Manage Labels
Sippy Symptoms are known-failure signatures for OpenShift CI. A symptom is a rule made of a file pattern (a glob over a CI job run's artifact files, e.g. **/build-log.txt) and a matcher (string = substring, regex = regular expression, none = file merely exists, cel = a compound CEL expression over other label names). When a symptom matches a job run's artifacts, Sippy applies one or more Labels — human-readable tags like InfraFailure — to that run. Labels appear in the Sippy UI and Spyglass and help everyone quickly recognize known failure modes without re-debugging them. You do not need any prior Sippy knowledge to use this skill.
Labels must exist before a symptom can reference them, so create labels first when building a new symptom.
When to Use This Skill
Use this skill when you need to:
- Create a new label before creating a symptom that applies it (see
manage-symptoms) - Fix a label's title or explanation
- Associate one or more Jira issues with a label
- Hide a label from certain UI contexts (Spyglass, metrics, jaq-options)
- Remove an obsolete label
Prerequisites
- OpenShift CLI Authentication: Required for authenticating to the sippy-auth API
- Must be logged into the DPCR cluster via
oc login - Cluster API:
https://api.cr.j7t7.p1.openshiftapps.com:6443 - Use the
oc-authskill to obtain the Bearer token
- Python 3: Python 3.6 or later
- Check:
python3 --version - Uses only standard library (no external dependencies)
Implementation Steps
Step 1: Obtain Authentication Token
Use the oc-auth skill to obtain a Bearer token from the DPCR cluster:
Prefer exporting SIPPY_TOKEN as above rather than passing --token on the command line — command-line arguments are visible in process listings. --token still works and takes precedence over the environment variable.
Step 2: Create a Label
The label id is generated from the title by the server if you omit --id. Pass --id on create only if you need a specific identifier (max 80 characters).
Step 3: Update a Label
Only pass the flags you want to change — the script fetches the existing label and merges, because the API's PUT is a full replacement:
The update request always sends the complete label definition. Omitted fields are copied from the current definition. Pass --bugs "" to explicitly clear all associated Jira issues.
To hide a label from certain UI contexts:
Step 4: Delete a Label
Before deleting, you MUST show the label to the user (fetch it with the `list-symptoms` skill: `python3 plugins/ci/skills/list-symptoms/list_symptoms.py --labels --id <id> --format summary`) and get their explicit confirmation. Never run delete without the user confirming the specific label.
Arguments:
action:create,update, ordelete(positional, required)
Options:
--token <token>: Bearer token from the oc-auth skill (optional if theSIPPY_TOKENenvironment variable is set, which is preferred — argv is visible in process listings;--tokentakes precedence)--id <id>: Label ID (required for update/delete; optional for create)--title <text>: Human-readable label title (required for create)--explanation <text>: Markdown explanation of the label--bugs <list>: Comma-separated Jira issue keys; whitespace and duplicates are removed--hide-display-contexts <list>: Comma-separated subset ofspyglass,metrics,jaq-options--format json|summary: Output format (default: json)
API Details
Base URL (writes): https://sippy-auth.dptools.openshift.org/api/jobs/labels
- Create:
POST /api/jobs/labels - Update:
PUT /api/jobs/labels/{id}(full replacement — the script fetches the existing label and merges your changes, so only pass flags you want to change) - Delete:
DELETE /api/jobs/labels/{id}
Authentication: Authorization: Bearer <token> from the DPCR cluster.
Label fields:
| Field | Description | |
|---|---|---|
id | Immutable identifier, max 80 characters; generated from the title if omitted on create | |
label_title | Human-readable title; must be unique | |
explanation | Markdown explanation of what the label means | |
bugs | Jira issue keys associated with the label, such as OCPBUGS-12345 | |
hide_display_contexts | Optional subset of spyglass, metrics, jaq-options — UI contexts where the label is hidden |
Error Handling
- 401/403: Token missing or expired — refresh it via the
oc-authskill. - 501: You hit the read-only Sippy instance with a write; make sure the sippy-auth base URL is used (the script already does).
- 400: Server-side validation failure — the server's message is shown in the
detailfield of the output. - Client-side validation: Missing title, over-long ID, invalid Jira keys, or invalid
hide_display_contextsvalues are caught locally and reported before any request is sent (exit 1). Jira keys are checked syntactically without a Jira lookup. - Concurrent edits: The update flow is read-merge-replace with no server-side concurrency control, so near-simultaneous edits can overwrite each other — re-check the label after updating if others may be editing.
Exit Codes:
0: Success1: Validation error, API error, or network error
See Also
- Related Skill:
oc-auth(provides authentication tokens for sippy-auth) - Related Skill:
list-symptoms(list/inspect labels and symptoms, no auth needed) - Related Skill:
manage-symptoms(create/update/delete symptoms that apply labels)
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
- SKILL.md in the repositoryCheckingplugins/ci/skills/manage-labels/SKILL.md
Popularity
- Repository stars
- 121
- Repository forks
- 321
- 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
[](https://verified-skill.com/skills/openshift-eng/ai-helpers/manage-labels)