Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

report-findings

БесплатноЗапускает вложенные скриптыНе проверен

Generate triage reports and post findings to Jira and Slack

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

When to Use

Use this skill when Phase 3 of the node-cve:triage command needs to generate the triage report, post comments to Jira tracker issues, and send Slack notifications.

Prerequisites

  • bash, curl and jq
  • Environment variables: JIRA_API_TOKEN and JIRA_USER (or JIRA_EMAIL) with the Jira login, for --notify-jira, --notify-slack and --dry-run, since the gate looks up every tracker in Jira. Not needed in handoff mode, where validate uses the --trackers rows. Set it explicitly in containers, where the git config user.email fallback does not exist.
  • For --notify-slack: either SLACK_API_TOKEN (channel from SLACK_CHANNEL, default GK6BJJ1J5, #team-node; enables threading) or SLACK_WEBHOOK (single message, no threading). If both are set, the API token is used.
  • The node-team plugin (shared component list)

Helper script

All Jira and Slack calls go through scripts/node-cve-lib.sh, invoked as one command per step:

bash "${CLAUDE_PLUGIN_ROOT}/skills/report-findings/scripts/node-cve-lib.sh" help

It exists for four reasons:

  • One allowlistable command. Headless runs use a strict Bash allowlist, where every part of a compound command must be allowed. Do not write ad-hoc curl or jira commands, and do not chain commands with &&, ;, pipes or redirects. Each subcommand takes file paths as arguments and writes its own files. Use the Read and Write tools for the files.
  • Secrets stay off the command line. Credentials reach curl through a config on stdin (curl -K -). Never write curl -u user:token or -H "Authorization: Bearer ...", which expose the token in the process list. The webhook URL is handled the same way.
  • Shell state does not persist between Bash tool calls. Each subcommand is self-contained. State that must survive (validated trackers, the posting gate) lives in files in the triage directory.
  • Errors are not silent, and safeguards are enforced in code. The helper retries on HTTP 429 using Retry-After, checks Slack's ok field, exits non-zero on failure, refuses to comment on a tracker that did not pass validation in this run, and refuses all comments once the tracker threshold is exceeded. It never reads from a terminal, so it cannot hang headless.

Paths written as .work/node-cve/triage-YYYY-MM-DD/ stand for the run directory that init printed as TRIAGE_DIR=. Use that path as is, also after midnight; the helper keeps using it for the whole run.

Subcommand Purpose
validate [--max-trackers N] [--trackers ROWS] VERSION FILE Re-validate component and OCP version of every tracker key in FILE. Writes validated-trackers.txt, logs skips, opens or closes the posting gate. --trackers checks against the caller's rows instead of Jira (handoff mode only)
find-comment KEY Newest existing node-cve:triage comment as JSON (id, created, updated, author, own, own_id, body), or nothing. Exits non-zero when the lookup fails
post-comment [--dry-run] KEY BODYFILE [COMMENT_ID] Add a comment, or update the account's own existing one in place. Repeats the lookup itself and skips the tracker when it fails
slack [--dry-run] --header TEXT --summary FILE --details FILE Post to Slack (API with thread reply, or webhook)
jql-url JQL URL-encoded Jira search link
plan-comment KEY BODYFILE Handoff mode: add the comment to posting-plan.json instead of posting it. Same validation and gate checks as post-comment
plan-slack --header TEXT --summary FILE --details FILE Handoff mode: add the Slack texts to posting-plan.json
plan-show VERSION [--dry-run] Handoff mode: finish posting-plan.json and print it
audit LINE Append a timestamped line to posting-audit.log and posting-history.log
audit-summary VERSION SOURCE MODE Append the totals to posting-audit.log and print the whole log

Locating shared data

The link to the node-team components file below resolves in a repository checkout and on the docs site. When the plugins are installed it does not resolve, because every plugin lives in its own versioned cache directory. The helper's init subcommand resolves the real directory and extracts the component names into .work/node-cve/node-components.txt, which the validation below reads. If that file is missing, run init again instead of writing it by hand. If the list cannot be obtained, do not post anything. The helper fails closed in that case.

Node Team Component Safeguard (CRITICAL)

This skill may ONLY post comments to trackers whose component is a Node team component. Many CVEs (especially Go stdlib and vendored-dependency vulnerabilities) span 50-200+ tracker issues across dozens of OpenShift teams (HyperShift, Storage, Networking, Installer, Monitoring, Cloud providers, etc.). Node-specific reachability analysis is meaningless and confusing on another team's tracker

Полный SKILL.md на GitHub

Установить report-findings в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/node-cve-lib.sh

FAQ

Что делает скилл report-findings?

Generate triage reports and post findings to Jira and Slack

Как установить скилл report-findings?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл report-findings запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить report-findings с