一键导入
find-5xx-times
Use when you need to scan a date range for elevated 5xx windows for a specific region, T2 project, and fleet using the packaged parser script.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need to scan a date range for elevated 5xx windows for a specific region, T2 project, and fleet using the packaged parser script.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Read, create, update, inspect, and reply to Bitbucket pull requests or commit diffs using Bitbucket URLs plus environment-backed auth. Use when Codex needs Bitbucket API operations for PR metadata, compare or commit evidence, PR discussion threads, PR creation/update, reviewer preservation, or prefixed replies. This skill does not perform full code-change review or own code remediation.
Review change-management tickets such as Jira CHANGE or CM requests for deployment readiness, scope drift, documentation quality, and runbook adherence. Use when Codex needs to assess implementation steps, validation evidence, rollback clarity, Shepherd release scope and plan diffs, regional outliers, manual data-fix or host-maintenance procedures, team-specific runbook alignment, and commit or artifact-version alignment, and optionally write findings back to the ticket.
Bootstrap a local Codex setup from this shared starter repo. Use when an engineer needs an interactive onboarding flow that asks for local paths, required MCP settings, and only the overrides that differ from the shared Enterprise ChatGPT defaults, then generates or repairs a real local Codex config and verifies that shared path placeholders were resolved.
Use when onboarding OCI users to available packs, registry entries, PromptLib spaces, ORA skills, Skills Hub / AI Skills Registry, Codex Enterprise apps/connectors, or non-pack content sources after installing OCI starter packs.
Inspect DevOps MFO or region-build flock dependency status for a specific region, project, flock, and phonebookId. Use when Codex needs to determine which region-build phases are satisfied, unsatisfied, or optional; identify whether a flock has published the required capabilities; recursively trace missing capability producers; discover related infrastructure or application flocks from the dependency graph; or explain which upstream project or flock is blocking publication.
Preflights local ossh and oci-ops access, reads a Jira ticket to identify a target hostname and region, validates OCI authentication, resolves the tenancy OCID, and returns the appropriate oci-ops SSH connection command. Use when a user asks to SSH to an OCI host from a Jira ticket, set up ossh or oci-ops access, resolve a host region or tenancy, or needs an oci-ops SSH command.
| name | find-5xx-times |
| description | Use when you need to scan a date range for elevated 5xx windows for a specific region, T2 project, and fleet using the packaged parser script. |
| metadata | {"owner":"ocm","last_updated":"2026-03-03","harnesses":["cline","claudecode","opencode","codex"]} |
Run parser.py to identify time windows with elevated external 5xx counts for a given T2 project/fleet in a region.
Use this when you need a quick, repeatable way to answer:
./scripts/parser.pyscripts/requirements.txtAll required scripts for this skill are located in the skill's scripts directory.
Python 3 available on PATH.
Python dependency requests available.
An OP token file at:
{env:HOME}/devops_token.env
The first line must be:
OP_TOKEN="<your_token>"
The parser expects a dedicated token file (TOKEN_FILE env var) whose first line is OP_TOKEN="<token>". The DOPE MCP server env file contains additional variables and is not directly compatible.
If the operator's DOPE env file is available, extract the token:
grep '^OP_TOKEN=' <dope-env-file> > /tmp/parser_token.env
TOKEN_FILE=/tmp/parser_token.env python3 ./scripts/parser.py ...
Ask the operator for their DOPE env file path if {env:HOME}/devops_token.env does not exist. Do not assume a fixed location — it varies by setup.
Required flags for parser.py:
--region (OCI region identifier used by Grafana T2 API path)--project (T2 project name)--fleet (T2 fleet name)--start (YYYY-MM-DD)--end (YYYY-MM-DD)Do not commit or paste tokens into repo files.
If dependencies are not installed locally:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r scripts/requirements.txt
Run the primary entrypoint script: ./scripts/parser.py.
TOKEN_FILE={env:HOME}/devops_token.env \
python3 ./scripts/parser.py \
--region us-ashburn-1 \
--project marketplace \
--fleet marketplace-consumer-service-prod \
--start 2026-03-01 \
--end 2026-03-03
Notes:
TOKEN_FILE={env:HOME}/devops_token.env python3 parser.py ...{env:HOME}/devops_token.env.[]), it means no windows exceeded the current hard-coded threshold for "elevated 5xx". Don't try to adjust the threshold on your own. Indicate to the caller that there were no elevated 5xx windows based on the current threshold.Pass criteria:
You see a line like:
determining incidents between <start> to <end>The script prints an array of time ranges at the end, e.g.:
time periods at which we are seeing elevated 5xx are [("2026-03-01 00:00:00", "2026-03-01 05:00:00"), ...]If the output is an empty list ([]), it means no windows exceeded the current hard-coded threshold.
If you see errors related to authentication/permissions (e.g. public key invalid, or HTTP 401/403 from Grafana/T2 API), stop execution immediately. Renew your operator token and then re-run.
Symptoms:
Error reading token file ...ERROR: Token not found or invalid file format.Fix:
TOKEN_FILE={env:HOME}/devops_token.env is set when{env:HOME}/devops_token.env exists.OP_TOKEN="...".Symptoms:
Fix:
Symptoms:
Errors such as
ModuleNotFoundError: No module named 'requests'Fix:
python3 -m pip install -r scripts/requirements.txt (see Procedure step 1).Symptoms:
ERROR: Make sure start and end dates are of the format YYYY-MM-DD