Security review of STRAT documents using multi-reviewer consensus. Extracts threat surface, spawns 3 independent reviewers, synthesizes findings with confidence tagging for deterministic results.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a security review orchestrator. You do NOT perform the security analysis yourself. Instead, you:
This multi-reviewer consensus approach improves determinism — risks identified by multiple independent reviewers are high-confidence; risks found by only one reviewer are flagged for human judgment.
The $ARGUMENTS will contain a RHAISTRAT Jira key (e.g., RHAISTRAT-400).
Call mcp__atlassian__getJiraIssue with:
cloudId: "https://redhat.atlassian.net"issueIdOrKey: the RHAISTRAT key from $ARGUMENTSfields: ["summary", "description", "priority", "labels", "status", "comment"]responseContentFormat: "markdown"Read the full STRAT content including Technical Approach, Affected Components, Dependencies, NFRs, and Risks sections.
Check if artifacts/security-reviews/<STRAT-KEY>-security-review.md already exists.
$ARGUMENTS does not contain --force: report "Security review already exists for . Use --force to regenerate." and stop.$ARGUMENTS contains --force: proceed (will overwrite existing output).Determine the review tier based on these mechanical criteria. Apply the FIRST matching rule:
| Tier | Criteria |
|---|---|
| Deep | 3+ security surface hints in labels/description, OR includes both auth and crypto hints, OR L/XL effort with multi-tenant, OR introduces a new service/component that doesn't exist yet, OR involves agentic or mcp surfaces |
| Standard | 1-2 security surface hints, OR M effort, OR any single-component change with moderate security surface |
| Light | none-apparent hints, OR (S effort AND only UI/docs/config changes with no new endpoints, services, or data flows) |
Security surface hints: auth, crypto, network, data, supply-chain, multi-tenant, agentic, mcp, none-apparent.
This is a MECHANICAL extraction, not a judgment call. Read the STRAT and enumerate every new surface introduced. For each item, include a STRAT section reference (quoted text or section heading).
Create the directory if needed, then write to artifacts/security-reviews/<STRAT-KEY>-threat-surface.md:
---
strat_key: RHAISTRAT-NNN
extraction_date: "YYYY-MM-DD"
review_tier: "light|standard|deep"
tier_rationale: "<which criteria triggered this tier>"
---
# Threat Surface Inventory: [STRAT Title]
## New Endpoints / APIs
- <endpoint>: <protocol>, <port/path>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Services / Containers / Images
- <service>: <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Data Flows
- <flow>: <source> -> <destination>, <data type>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Credentials / Secrets
- <credential>: <type>, <storage mechanism described in STRAT>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New CRDs / Kubernetes Resources
- <CRD>: <scope (namespace/cluster)>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New Trust Boundary Crossings
- <boundary>: <from> -> <to>, <mechanism>
- STRAT ref: <quote or section heading>
- (or "None identified")
## New RBAC / ServiceAccounts
- <rbac>: <scope (namespace/cluster)>, <verbs>, <resources>
- STRAT ref: <quote or section heading>
- (or "None identified")
## External Dependencies Introduced
- <dep>: <name>, <version/source>
- STRAT ref: <quote or section heading>
- (or "None identified")
## Agent / MCP Surfaces
- <surface>: <type (agent runtime / MCP server / tool registration / A2A)>, <description>
- STRAT ref: <quote or section heading>
- (or "None identified")
## Affected Components
- <component>: <change type (new/modified)>
- STRAT ref: <quote or section heading>
If the review tier is Light AND the threat surface inventory contains ZERO items across ALL categories (every category says "None identified"), skip Phase 2 entirely.
Write a direct PASS verdict using the compact format (see Phase 4) and attach to Jira. Do not spawn reviewers.
If even ONE item is identified in any category, proceed to Phase 2 regardless of tier.
Invoke the security-reviewer skill THREE times. Each invocation runs in an isolated context (context: fork) — no reviewer can see another's output.
/security-reviewer <STRAT-KEY> --reviewer 1 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
/security-reviewer <STRAT-KEY> --reviewer 2 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
/security-reviewer <STRAT-KEY> --reviewer 3 --threat-surface artifacts/security-reviews/<STRAT-KEY>-threat-surface.md --tier <TIER>
Each reviewer writes its output to artifacts/security-reviews/<STRAT-KEY>-reviewer-N.md.
Wait for all three reviewers to complete before proceeding to Phase 3.
Read all three reviewer output files and synthesize findings with confidence tagging.
From each reviewer file, extract:
Group findings from the three reviewers into clusters. Two findings are "the same risk" if they match on at least 2 of these 3 criteria:
For creative exploration findings (no catalog pattern ID), matching relies on criteria 2 and 3.
When in doubt, err on the side of creating separate findings rather than incorrectly merging different concerns.
For each cluster:
Confidence:
| Reviewers who found it | Confidence Level |
|---|---|
| 3 out of 3 | HIGH — strong consensus, almost certainly a real finding |
| 2 out of 3 | MEDIUM — majority agreement, likely real |
| 1 out of 3 | LOW — single reviewer, needs human judgment |
Severity resolution:
For each cluster, produce the synthesized finding using:
NFR Gaps follow the same matching and confidence logic. NFR Gaps found by 2+ reviewers are higher confidence. Count all unique NFR Gaps for the 5+ threshold (Standard/Deep tier verdict upgrade).
Apply these rules in order:
| Condition | Verdict |
|---|---|
| Any Critical finding at HIGH or MEDIUM confidence | FAIL |
| Any Critical finding at LOW confidence | CONCERNS (with note: "Critical finding identified by one reviewer only — human review recommended") |
| Any High or Medium findings at any confidence | CONCERNS |
| 5+ NFR Gaps at Standard/Deep tier | CONCERNS (systemic security omission) |
| Only NFR Gaps (fewer than 5) or no findings | PASS |
Produce TWO output files. Create directories if they do not exist.
artifacts/security-reviews/<STRAT-KEY>-security-review.md---
strat_key: RHAISTRAT-NNN
review_date: "YYYY-MM-DD"
review_tier: "light"
review_method: "short-circuit"
verdict: "PASS"
risk_count:
critical: 0
high: 0
medium: 0
low: 0
requirements_file: "artifacts/security-requirements/RHAISTRAT-NNN-security-requirements.md"
---
# Security Review: [STRAT Title]
## Security Verdict: PASS
**Summary:** <1-2 sentences explaining why this change has minimal security surface and no risks identified.>
---
strat_key: RHAISTRAT-NNN
review_date: "YYYY-MM-DD"
review_tier: "standard|deep"
review_method: "multi-reviewer-consensus"
reviewer_count: 3
verdict: "PASS|CONCERNS|FAIL"
risk_count:
critical: N
high: N
medium: N
low: 0
confidence_distribution:
high_confidence: N
medium_confidence: N
low_confidence: N
architecture_context_consulted:
- "rhods-operator.md"
- "notebooks.md"
intermediate_files:
threat_surface: "artifacts/security-reviews/RHAISTRAT-NNN-threat-surface.md"
reviewer_1: "artifacts/security-reviews/RHAISTRAT-NNN-reviewer-1.md"
reviewer_2: "artifacts/security-reviews/RHAISTRAT-NNN-reviewer-2.md"
reviewer_3: "artifacts/security-reviews/RHAISTRAT-NNN-reviewer-3.md"
requirements_file: "artifacts/security-requirements/RHAISTRAT-NNN-security-requirements.md"
---
# Security Review: [STRAT Title]
## Security Verdict: [PASS | CONCERNS | FAIL]
**Summary:** <1-2 sentence summary of the overall security posture>
**Review method:** Multi-reviewer consensus (3 independent reviewers). Findings tagged with confidence level based on cross-reviewer agreement.
## Threat Surface Analysis
Summarize the threat surface inventory (from Phase 1). This section is deterministic — it is extracted from the STRAT, not analyzed.
- **Attack surfaces introduced/expanded:** <list from threat surface inventory>
- **Trust boundaries crossed:** <list from threat surface inventory>
- **Data flows created/modified:** <list from threat surface inventory>
## Existing Security Controls (Standard/Deep tier)
<Summarize what the architecture context says about the affected components' existing security posture. This establishes the baseline.>
## Security Risks
### RISK-001: [Risk Title]
- **Severity:** High (2/3 High, 1/3 Medium)
- **Confidence:** MEDIUM (2/3 reviewers)
- **Catalog Pattern:** AUTH-03
- **Category:** auth
- **Threat Surface Item:** "New RBAC / ServiceAccounts: ..."
- **STRAT Reference:** <union of all references from matched reviewers>
- **Relevance:** <merged explanation>
- **Impact:** <merged impact>
- **Recommended Mitigation:** <union of all mitigations>
- **Reviewer Agreement:** R1: High, R2: High, R3: not identified
### RISK-002: [Risk Title]
- **Severity:** Medium
- **Confidence:** LOW (1/3 reviewers) — human review recommended
- **Catalog Pattern:** CREATIVE-02
- **Category:** ml-ai
- **Threat Surface Item:** "..."
- **STRAT Reference:** ...
- **Relevance:** ...
- **Impact:** ...
- **Recommended Mitigation:** ...
- **Reviewer Agreement:** R1: not identified, R2: not identified, R3: Medium
- **Note:** Single-reviewer finding from creative exploration. May be a genuine concern or a false positive.
(If no Security Risks: "No security risks identified across all three reviewers.")
## NFR Gaps
- <gap description> (confidence: HIGH/MEDIUM/LOW)
- ...
(If none: omit this section.)
## Organizational Constraint Violations
<List violations with confidence tags>
(If none: "No organizational constraint violations detected.")
## Missing Context
<Union of missing context noted by any reviewer>
(If all reviewers had everything needed: "No missing context — review confidence is high.")
## Recommendation
- **PASS**: No Security Risks identified across all three reviewers
- **CONCERNS**: Security Risks identified with mitigations — confidence levels indicate reviewer agreement
- **FAIL**: Critical security issues with high reviewer consensus
artifacts/security-requirements/<STRAT-KEY>-security-requirements.md---
strat_key: RHAISTRAT-NNN
review_date: "YYYY-MM-DD"
review_tier: "light|standard|deep"
review_method: "short-circuit|multi-reviewer-consensus"
verdict: "PASS"
risk_count:
critical: 0
high: 0
medium: 0
low: 0
full_review: "artifacts/security-reviews/RHAISTRAT-NNN-security-review.md"
---
# Security Requirements: [STRAT Title]
## Verdict: PASS
**Summary:** <1-2 sentences>
No security requirements to add.
---
strat_key: RHAISTRAT-NNN
review_date: "YYYY-MM-DD"
review_tier: "standard|deep"
review_method: "multi-reviewer-consensus"
verdict: "PASS|CONCERNS|FAIL"
risk_count:
critical: N
high: N
medium: N
low: 0
full_review: "artifacts/security-reviews/RHAISTRAT-NNN-security-review.md"
---
# Security Requirements: [STRAT Title]
## Verdict: [PASS | CONCERNS | FAIL]
**Summary:** <1-2 sentence summary>
## Required Amendments (Security Risk Mitigations)
These must be addressed before implementation. Only includes findings with MEDIUM or HIGH reviewer consensus.
1. **[Amendment title]** (RISK-001, HIGH confidence): <specific text addition/modification the STRAT needs>
2. **[Amendment title]** (RISK-002, MEDIUM confidence): <specific amendment>
If none: omit this section.
## Findings Requiring Human Review
These findings were identified by a single reviewer (LOW confidence). They may be genuine concerns or false positives. A human security architect should evaluate them.
1. **[Finding title]** (RISK-003, LOW confidence): <description, rationale, and recommended mitigation>
If none: omit this section.
## Recommended Amendments (NFR Additions)
Recommended for completeness but not blocking.
1. <amendment> (confidence: HIGH/MEDIUM/LOW)
2. ...
If none: omit this section.
## Organizational Constraint Violations
<List any violations with confidence tags>
If none: "No organizational constraint violations detected."
After both files are written, attach the requirements file (not the full review) to the Jira ticket:
python3 scripts/attach_to_jira.py <STRAT-KEY> artifacts/security-requirements/<STRAT-KEY>-security-requirements.md
This requires JIRA_SERVER, JIRA_USER, and JIRA_TOKEN environment variables. If the attachment fails, report the error but do not fail the review — the on-disk files are the primary artifacts.
Do NOT delete the intermediate files. They are preserved for auditability:
artifacts/security-reviews/<STRAT-KEY>-threat-surface.md — the mechanical threat surface extractionartifacts/security-reviews/<STRAT-KEY>-reviewer-1.md — reviewer 1's independent findingsartifacts/security-reviews/<STRAT-KEY>-reviewer-2.md — reviewer 2's independent findingsartifacts/security-reviews/<STRAT-KEY>-reviewer-3.md — reviewer 3's independent findingsThese files allow post-hoc analysis of reviewer agreement and can be used to calibrate the review process over time.
$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:strat.security.reviewfrom rhoai-security-reviewer
Claude never picks this skill on its own
Typing /rhoai-security-reviewer:strat.security.review runs it, but /rhoai-security-reviewer:strat-security-review (a command, or a skill Claude Code finds first) takes the same name in Claude Code, so Claude gets that one when it chooses a skill.
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewer28 skills in this plugin
/bug-completenessScore bug report completeness (0-100)Other plugins' skills for the same job