report-to-jira
БесплатноБез исполняемых скриптовНе проверенUse when posting a completed CVE analysis report or PR follow-up as a Jira comment on the source ticket from `/compliance:analyze-cve`.
от openshift-eng★ 123 звезды на GitHubОб этом скилле
Report to Jira
Posts the completed CVE analysis report as a comment on the source Jira ticket — the same ticket the CVE details were read from (SOURCE_TICKET, set in Phase 0.5 from --jira=/--jql=). Always called as the last step of Phase 4, after the report has been generated. Also reused by create-fix-pr (Phase 6) for a short follow-up comment containing the PR URL.
If no Jira ticket was involved (direct <CVE-ID> mode), this skill is skipped entirely — there is nothing to post to.
Step 1: Confirm Report is Ready
Before posting, verify the following are available from the parent command:
- Final report content (full markdown from Phase 3)
- CVE ID (e.g.
CVE-2024-45338) SOURCE_TICKET— the Jira ticket key from--jira=/--jql=(e.g.OCPBUGS-12345). This is the only ticket this skill writes to.jira_context— label snapshot from Phase 0.5 (jira_context["labels"]); used as a hint only — Step 4.5 re-fetches current labels before writing- Risk level (
HIGH/MEDIUM/LOW/NEEDS_REVIEW) AUTO_APPROVE(yes/no, defaultno) — governs the Step 3b visibility-downgrade fallback prompt
If SOURCE_TICKET is not available (direct CVE mode): return status: skipped with reason "no_source_ticket".
If the report is incomplete or Phase 3 did not finish, return status: skipped with reason.
Step 2: Build the Comment Body
Read ${AI_HELPERS_WORKSPACE:-.}/.work/compliance/analyze-cve/${CVE_ID}/report.md from Phase 3 and post it in full. The Jira comment is the report — do not pre-emptively shorten it or write a separate jira-comment.md.
Write standard Markdown — Jira Cloud renders Markdown natively when posted with contentFormat: "markdown" (see markdown-for-jira reference if that plugin is installed; the syntax is standard CommonMark either way). No wiki-markup conversion is needed.
Default body = attribution header + entire report.md. If Phase 4 produced a remediation plan not already under ## Remediation in the report, append it as ## Remediation Plan (Phase 4).
Prepend the following attribution header before the report:
> ⚠️ **This analysis was performed automatically by `/compliance:analyze-cve`.**
> Results should be reviewed by a human before acting on remediation steps.
---
Size limit handling
Jira comment bodies are capped at 32,767 characters. Apply these steps in order — only move to the next step if the comment is still over 32,000 chars:
- Post in full (≤ 32,000 chars) — no changes.
- Trim raw tool dumps only (> 32,000 chars) — inside fenced code blocks, replace full
govulncheckscrollback, call-graph DOT, or megabyte grep output with a one-line pointer:
Keep executive summary, CVE context, evidence interpretations, call-graph results table, risk assessment, and remediation in full. Re-measure._(Full output truncated — see `${AI_HELPERS_WORKSPACE:-.}/.work/compliance/analyze-cve/<CVE_ID>/govulncheck-source.txt`)_ - Shortened summary (last resort only) — if still > 32,000 chars after step 2, replace the body with a condensed summary derived from
report.md. Retain: risk level, repository/branch/commit, dependency versions, govulncheck conclusion, four-algorithm call-graph table, manual verification findings, recommendation, and artifact paths. Omit repeated narrative and any remaining large code blocks. Note at the top:
Do not use a shortened summary unless steps 1–2 are insufficient._(Full report exceeded Jira comment limit — summary below. See `${AI_HELPERS_WORKSPACE:-.}/.work/compliance/analyze-cve/<CVE_ID>/report.md`.)_
Stripping rules (apply regardless of size)
- Remove internal email addresses — replace with the display name only.
- Do not include embargoed content — if somehow reached here with
embargo_status: True, abort immediately.
Step 3: Post the Comment
Credential rule: Never print, echo, or log any token, key, or password value. Reference credentials only via environment variable names. Never interpolate a credential value into a logged string.
CVE analysis reports contain security-sensitive findings. Prefer restricted (internal-only) visibility when the Jira instance supports it.
Write the Step 2 comment to a private temporary file once, before any posting path — every method below reads this file. Write the report with a file-writing tool, not a shell heredoc, so report text is never interpreted as shell source:
COMMENT_FILE=$(mktemp /tmp/cve-report-comment.XXXXXX)
chmod 600 "${COMMENT_FILE}"
Keep the file for the whole posting workflow and remove it in the cleanup step at the end of Step 3.
Step 3a: Direct REST API with restricted visibility (attempt first, if credentials are configured)
If a token is available in the environment, try the REST API directly — it remains the preferred restricte
Установить report-to-jira в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл report-to-jira?
Use when posting a completed CVE analysis report or PR follow-up as a Jira comment on the source ticket from `/compliance:analyze-cve`.
Как установить скилл report-to-jira?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл report-to-jira запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic