/konductor:sop-k-adversarial-pull-request-reviewfrom Konductor
Runs an adversarial review of code changes to catch information disclosure, data integrity failures, and schema/validation gaps missed by standard reviews.
Ships in Konductor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runs an adversarial review of code changes. Not a replacement for standard code review — runs after standard review to catch what style and quality reviewers miss: information disclosure, data integrity failures, and schema/validation gaps.
Structure: one coordinator (this SOP), three parallel pass subagents (security, integrity, schema), a validator (checker) phase the coordinator runs itself, and a historical-issues filter. Persona independence between generator and checker is what keeps false positives out of the CR.
pr_url note below): The changes to review. Accepts:
git diff or git diff HEAD~N)pr_url is unsupported on ASDLC — k-architect has no tool that resolves an arbitrary pull-request URL to its diff content (see Roles); diff_input MUST always be supplied directly, even when pr_url is also given. When pr_url is present, Step 0 still uses it to look up linked issues or design docs referenced in the pull request description via generic web_fetch.adversarial-review-report.md): Path to write the findings reportConstraints for parameter acquisition:
diff_input — if it is not provided, ask for it before proceeding, even when pr_url is present (diff auto-fetch from pr_url is unsupported on ASDLC — see the pr_url note above)output_file — use the default and proceeddiff_input is file paths, You MUST verify the files exist before proceedingpr_url is provided, You MAY use it in Step 0 to read the pull request's own description for linked issues/docs, but You MUST NOT attempt to derive diff_input from itk-developer invoked with one of adversarial-code-review-pass-security, -integrity, or -schema, or (in Step 3) as a fresh reuse-pass subagent. Native code-diff lens, produces candidate findings.k-architect, running adversarial-code-review in Validator Mode. k-architect is also this SOP's coordinator, and only k-architect registers this SOP (k-developer/konductor/konductor-mux-orchestrator/konductor-cmux-orchestrator do not invoke it directly), so there is no separate agent that could spawn a checker named k-architect as a subagent without a self-reference — an agent has no mechanism to launch a fresh instance of its own name via the subagent tool. Independence instead comes from persona: the coordinator never ran as a generator pass (that role is k-developer, spawned separately in Step 2/3), so the coordinator's own context is already untainted by having generated any of the findings it is about to filter. See Step 4.historical-issues-registry in load and filter phases. Currently unavailable on ASDLC: historical-issues-registry is an abstract skill — per its own Usage section, it is "Not run standalone... provide the concrete mapping for your platform in a delta layer that extends this skill." No such delta exists for ASDLC today. k-architect's own toolset is @builtin, subagent, and @aws-mcp only (see k-architect.agent-spec.json) — none of these expose an API for reading a pull request's prior review comment threads, and no other tooling capable of providing one is available to this agent in this package. This is why Steps 0.5 and 5 below are documented as no-ops rather than silently returning empty results. The same absence of a pull-request-reading tool also means k-architect cannot resolve an arbitrary pr_url to its diff content either — see the Parameters section's pr_url note and Step 0 for how that separate gap is handled.Independence rests on three properties held together: different persona per role (generator is k-developer, checker is k-architect — never the same agent grading its own findings), no context inherited from a generator pass, and the mechanical literal-diff-verification rule inside the checker skill.
Before reviewing the diff, autonomously gather the context needed to produce codebase-aware findings rather than generic ones.
Constraints:
pr_url is provided without diff_input, You MUST NOT attempt to fetch the pull request diff from it — diff auto-fetch from pr_url is unsupported on ASDLC (see Parameters). Ask for diff_input directly insteadExpected Output: Context summary — linked docs read, related patterns found
On ASDLC, this step is always skipped — it is a documented no-op, not a silent one. No concrete platform delta exists for ASDLC (see Roles above): historical-issues-registry is an abstract skill that cannot fetch prior review state without one, and k-architect's own toolset (@builtin, subagent, @aws-mcp) exposes no API for reading a pull request's prior review comment threads. Calling the skill's load phase without a concrete mapping would have no way to fetch real thread state — an unguarded call would silently return an empty list, indistinguishable from "no prior revisions," which misrepresents the reason nothing was loaded.
Constraints:
historical-issues-registry's load phase on ASDLC — skip it outrightExpected Output: Note recorded: "historical filtering unavailable for ASDLC — no concrete platform delta"
Resolve diff_input to reviewable content.
Constraints:
diff_input.js.map filesExpected Output: List of changed files with content, total file count, approximate lines changed
Spawn three subagents in parallel, one per pass. Send them in a single message with three tool uses so they run concurrently.
Constraints:
k-developer (generator role) three times, each loading exactly one pass skill:
adversarial-code-review-pass-securityadversarial-code-review-pass-integrityadversarial-code-review-pass-schemaExpected Output: Three findings lists — one per pass, each with severity, file:line, problem, and fix per entry
Merge the three findings lists, then check for missed reuse opportunities not surfaced within any single pass — as a fourth generator-persona pass, not as coordinator commentary.
Constraints:
k-developer (generator role) once more, as a fresh subagent, to look for cross-pass reuse — framed neutrally ("review through the lens of cross-pattern reuse: identify any existing utility, pattern, or helper that the diff reimplements or bypasses, or that would resolve two or more of the findings below")reuse and appended to the consolidated list. They are ordinary candidate findings like the other three passes' output — they get no exemption from Step 4's checker rulesadversarial-code-review-pass-security/-integrity/-schema most closely matches the concern it raisesExpected Output: Consolidated findings list (security, integrity, schema, and reuse pass origins)
You (the coordinator, k-architect) now switch roles and run adversarial-code-review in Validator Mode yourself, filtering the consolidated findings. No subagent spawn is needed or possible here — the checker persona is k-architect, which is your own name, and an agent has no mechanism to spawn a fresh instance of itself via the subagent tool. Independence holds because you never ran a generator pass (Step 2/3 spawned k-developer, not you) — your context is already free of having generated any of these findings.
Constraints:
adversarial-code-review in Validator Mode directly (no subagent spawn) — this is a different persona from the k-developer generators, not a self-check of your own outputKEEP or REJECT with a one-line reason for each REJECTREJECT finding from the list before proceedingExpected Output: Filtered findings list containing only KEEP entries; rejection log with reasons
On ASDLC, this step is always skipped — Step 0.5 never produces a fingerprint list to filter against (see Step 0.5). Pass the checker-approved findings straight through to Step 6 unchanged.
Constraints:
historical-issues-registry's filter phase on ASDLC — skip it outright and pass the checker-approved findings through to Step 6 unchangedExpected Output: Checker-approved findings list passed through unchanged; note recorded that historical filtering was unavailable
Consolidate the surviving findings and produce a verdict.
Constraints:
You MUST deduplicate findings that reference the same file:line and root cause, retaining only the highest severity
You MUST count findings by severity: CRITICAL, IMPORTANT, SUGGESTION
You MUST assign the verdict as follows:
You MUST write the full report to output_file structured as:
# Adversarial Pull Request Review Report
Date: {date}
Verdict: {APPROVE | APPROVE WITH COMMENTS | REQUEST CHANGES}
Findings: {N} CRITICAL, {N} IMPORTANT, {N} SUGGESTION
Filtered by checker: {N}
Historical filtering: unavailable for ASDLC (no concrete platform delta — see Step 0.5)
## Critical Findings
## Important Findings
## Suggestions
## Filter Log
Every surviving finding goes in exactly one severity section (## Critical Findings / ## Important Findings / ## Suggestions). Steps 0.5 and 5 are always-skipped no-ops on ASDLC today (see Step 0.5) — no finding is ever tagged "regressed since ..." or "carried over from ...", so there is no separate historical-section machinery for a finding to land in instead of its own severity section.
You MUST NOT print the full report in your response — reference the file path
You MUST display: verdict, finding counts by severity, checker rejection count, and a one-line description of each CRITICAL-severity finding
Expected Output: Report written to output_file, summary presented to user
CRITICAL findings block approval — the verdict MUST be REQUEST CHANGES if any CRITICAL finding survives Steps 4 and 5.
Independence invariants MUST hold:
k-developer) MUST differ from checker persona (k-architect) — the checker is the coordinator itself switching roles in Step 4, never a k-developer self-checkk-developer, spawned fresh, never the coordinatork-developer), never from the coordinator itself$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adversarial-review, security-review, code-review, pull-request
npx claudepluginhub aws-solutions/konductor --plugin konductor101 skills in this plugin
/about-konductorGets a new user from nothing to a working Konductor session — install the CLI, start the orchestrator, and describe real work in plain language. Covers the real `konductor` CLI command surface, example orchestrator prompts, and the agent/skill/SOP model. Use when a user asks "what is Konductor", "how do I install this", "what can I ask it", or "what's the difference between an agent, a skill, and a SOP"./adr-generatorProduces a complete inline ADR (Context, Decision, Status, Alternatives, Consequences). Use when a significant design decision is identified during design doc creation, when an engineer asks to document a decision as an ADR, or when an existing ADR is incomplete (missing alternatives, consequences, or status). Trigger phrases — "generate an ADR for this decision", "document this as an architecture decision record", "create an ADR for choosing X over Y"./adversarial-code-reviewOther plugins' skills for the same job