openshift-eng/ai-helpers/manage-symptoms
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 Symptoms — known CI failure signatures that automatically label job runs — via the authenticated Sippy API
Install
npx vskill@latest install openshift-eng/ai-helpers/manage-symptomsSKILL.md
The same SKILL.md was published earlier as openshift-eng/ai-helpers/manage-symptoms.
Manage Symptoms
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 that categorize the failure — 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.
Every symptom must always have at least one label. A symptom exists to label matching runs, so a symptom without a label serves no purpose. Even when the label reads the same string as another field (e.g. the summary), a label is still required — always supply --label-ids. Creating or updating a symptom with no labels is rejected by client-side validation.
InfraFailure label warning: If you specify the InfraFailure label, you will be prompted to confirm. This generic label can hide specific problems and make them harder to track as they become pervasive. Best practice is to use more specific labels (e.g., AWSAuthFailure, NetworkTimeout, DiskFull). Use --yes to skip the confirmation prompt if you're certain.
Creating or updating a symptom does NOT apply its label to job runs that already finished. Symptom detection only runs automatically as new artifacts arrive, so a brand-new or changed symptom leaves already-completed runs unlabeled until you retroactively reevaluate them. After every create or update you MUST apply the label to the affected runs with the reevaluate-job-runs skill (see Step 8) — otherwise the label you defined never shows up in the Sippy UI or Spyglass, which is the most common reason a symptom "has a label but nothing is labeled."
When to Use This Skill
Use this skill when you need to:
- Auto-label a recurring failure pattern you found in CI logs, so future runs are recognized without re-debugging
- Correct an existing symptom's matcher, file pattern, or match string
- Retire an obsolete symptom that no longer applies
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: Check for Duplicates
Before creating a symptom, search the existing catalog to avoid duplicates:
If an equivalent symptom already exists, prefer updating it instead of creating a new one.
Step 2: Verify the Target Labels Exist
Symptoms can only reference labels that already exist:
If a label is missing, create it first with the manage-labels skill. (The script also verifies label IDs against the labels API before submitting; use --skip-label-check only if the labels API is unreachable.)
Step 3: 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 4: Confirm the Payload with the User
Before any create or update, show the user the full payload that will be sent (summary, matcher type, file pattern, match string, label IDs) and get their confirmation. Before delete, you MUST show the symptom (`list-symptoms --id <id> --format summary`) and get explicit confirmation — never run delete without the user confirming the specific symptom.
A create or update is only complete once the label is applied to the affected runs (Step 8). Treat create/update + reevaluate as a single workflow, not two optional steps.
Step 5: Create a Symptom
The symptom id is generated by the server from the summary — do not pass --id on create. --label-ids is required: every symptom must apply at least one label. If no suitable label exists yet, create one first with the manage-labels skill.
Step 6: Update a Symptom
Only pass the flags you want to change — the script fetches the existing symptom and merges, because the API's PUT is a full replacement:
To change a symptom's labels on update, pass --label-ids with the new comma-separated list (omitting the flag preserves the existing labels). You cannot remove all labels — a symptom must always keep at least one label, so passing --label-ids "" (or any empty list) is rejected by validation. To retire a symptom entirely, delete it instead (Step 7).
Step 7: Delete a Symptom
Delete is a soft delete on the server side. Requires explicit user confirmation first (see Step 4):
Step 8: Apply the Label to Job Runs (Required after Create/Update)
Defining a symptom with a label is not enough — the label is only applied to a run when the symptom is evaluated against it. New/completed runs won't get the label until you retroactively reevaluate them with the reevaluate-job-runs skill. After every create or update, apply the label to the affected runs — do not stop at Step 7.
- Preview first with
--dry-runto confirm the symptom matches the runs you expect (writes nothing):
``bash python3 plugins/ci/skills/reevaluate-job-runs/reevaluate_job_runs.py \ https://prow.ci.openshift.org/view/gs/test-platform-results-public/logs/<job>/<build_id> --dry-run --format summary ``
- Rerun without
--dry-runto actually write the labels, and confirm each run's response shows the label underlabels_applied:
``bash python3 plugins/ci/skills/reevaluate-job-runs/reevaluate_job_runs.py <build_id> [<build_id> ...] --format summary ``
To label every run behind a triage or regression, collect the prowjob_run_ids (via the fetch-regression-details skill) and pass them all to reevaluate-job-runs — see that skill's "Bulk workflow" section. Reevaluation is idempotent, so it is safe to rerun.
Step 9: Verify
After create/update, verify the symptom itself:
Then confirm the label actually landed on a run — either from the labels_applied field in the Step 8 response, or with the diagnose-job-run-symptoms skill on a known-affected run. A symptom that lists a label but shows no labels_applied after reevaluation means the matcher/file-pattern is not matching — revisit Step 6.
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>: Symptom ID (required for update/delete; server-generated on create)--summary <text>: Short unique description (required for create, max 200 characters)--matcher-type string|regex|none|cel: How the match string is interpreted--file-pattern <glob>: Artifact glob, e.g.**/build-log.txt(required for non-CEL matchers)--match-string <text>: Substring, regex, or CEL expression--label-ids <list>: Comma-separated label IDs to apply on match (required — a symptom must always apply at least one label)--skip-label-check: Skip verifying label IDs against the labels API--yes: Skip confirmation prompts (automatically confirm InfraFailure warning if that label is used)--format json|summary: Output format (default: json)
API Details
Base URL (writes): https://sippy-auth.dptools.openshift.org/api/jobs/symptoms
- Create:
POST /api/jobs/symptoms - Update:
PUT /api/jobs/symptoms/{id}(full replacement — the script fetches the existing symptom and merges your changes, so only pass flags you want to change) - Delete:
DELETE /api/jobs/symptoms/{id}(soft delete)
Authentication: Authorization: Bearer <token> from the DPCR cluster.
Symptom fields:
| Field | Description | |
|---|---|---|
id | Immutable identifier, generated from the summary on create | |
summary | Required, unique, max 200 characters | |
matcher_type | One of string, regex, none, cel | |
file_pattern | Artifact glob; required for all matcher types except cel | |
match_string | Required for string/regex/cel; not used by none (file merely exists) | |
label_ids | Label IDs applied on match; required (at least one) and must reference existing labels | |
created_by, updated_by, timestamps | Metadata set by the server |
Matcher-type rules:
string/regex: require bothfile_patternandmatch_stringnone: requires onlyfile_pattern(matches when the file exists)cel: requires onlymatch_string(a CEL expression over other label names)
Error Handling
This is the start of the file. Read the full SKILL.md on GitHub.
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-symptoms/SKILL.md
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
[](https://verified-skill.com/skills/openshift-eng/ai-helpers/manage-symptoms)