adversarial-gate
JP's signature red-team pass — "how would I break this?" Argue against your own approach before proceeding.
Skill by jpantsjoha
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jpantsjoha-adversarial-gate
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/adversarial-gate
What's inside
- Skill name
adversarial-gate- Description
- JP's signature red-team pass — "how would I break this?" Argue against your own approach before proceeding. Trigger on any high-stakes decision, architecture choice, or before marking work complete.
- License
- Apache-2.0
- Instructions
- 62 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Adversarial Gate > **Coined by Jaroslav Pantsjoha (#HarnessEngineering).** The Adversarial Gate is the practice of forcing an agent — or a human — to argue against their own design before proceeding. It pre-empts bad reasoning before bad output exists. The gate has one question: **"How would I break this?"** Answer it honestly. If you cannot name at least two plausible failure modes, you do not understand the system well enough to ship it. ## When to use - Before finalising any architecture or design decision - Before a deployment or release - When an agent is about to take an irreversible action - When a design looks clean and elegant (danger signal — simple-looking systems hide the hard failure modes) - When the team is under time pressure and "just shipping it" feels compelling ## Procedure 1. **State the proposal clearly** — in one or two sentences, what is the approach being validated? 2. **Run the adversarial pass** — argue against it. Ask: - What is the single most likely way this fails in production? - What happens under load / at scale / with bad input? - What is the blast radius if this fails? Is it recoverable? - What assumption does this design make that could be wrong? - What does the monitoring not cover that would let this fail silently? 3. **Name at least two concrete failure modes** — not "something could go wrong" but specific, nameable failures. 4. **Check each failure mode has a mitigation or an accepted risk owner** — unmitigated = not shippable. 5. **Document the outcome** — pass (risks named and owned) or fail (proceed to redesign). Attach to the ADR or PR. ## Outputs - Adversarial Gate verdict: PASS / FAIL - Named failure modes with mitigations or risk-owner sign-off - Optional: a short paragraph appended to the ADR or PR description summarising the gate result ## Guardrails - **One argument is not enough.** A single failure mode is the one you were already thinking about. The Adversarial Gate is looking for the one you were not. - **"We have tests" is not a mitigation.** Tests cover known paths. The gate is looking for unknown paths. - **Time pressure does not suspend the gate.** Pressure is when you need it most. - **The gate is not pessimism.** It is the fastest route to confidence — because you have already stress-tested the design yourself. ## Anti-rationalization table | Excuse the agent makes | Counter | |---|---| | "This is a low-risk change" | All production incidents started as low-risk changes. Name the failure mode or accept you cannot assess risk. | | "We can fix it after if something breaks" | Blast radius unknown = not low risk. Run the gate. | | "The tests cover this" | Tests cover happy paths. The gate looks for the paths tests miss. | | "We've done this before" | Prior success is not a guarantee. Conditions change. Run the gate. | | "The deadline is today" | A production incident will cost more time than the gate. Run the gate. | | "I'm confident in this design" | Confidence is the leading indicator of skipped gates. Run it anyway. | ## Reference This pattern converges with “doubt-driven development” in Addy Osmani's [`agent-skills`](https://github.com/addyosmani/agent-skills). The **Adversarial Gate** name and “how would I break this?” framing are JP's #HarnessEngineering contribution. The anti-rationalisation table format was adopted after reviewing that MIT-licensed project; this repository does not claim the table format originated here.
From jpantsjoha/ai-native-developer-experience, Apache-2.0.
More from jpantsjoha/ai-native-developer-experience
- 0.641score
using-the-harness
jpantsjoha
Session-start orientation for this team harness.
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
cloud-checkup
jpantsjoha
Read-only SRE checkup of any GCP project: deterministic probes of the edge, Cloud Run services, 7-day error logs, Cloud Scheduler, alert policies and uptime…
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
operating-model-bootstrap
jpantsjoha
Bootstrap or harden a project's operating model for mixed human and AI delivery teams.
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
pr-reviewer
jpantsjoha
Review gate for correctness, reuse, and simplification.
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
cloud-expert
jpantsjoha
Cloud guardrails for any vendor workload — Google Cloud (GCP, Vertex AI, GKE), AWS (IAM, EKS, Bedrock), Azure (Entra ID, Policy, AKS), Alibaba Cloud (RAM…
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
system-performance-guardrail
jpantsjoha
Measure, root-cause, fix, verify and record performance contention on a developer machine: cloud-sync daemons (iCloud Drive, OneDrive, Dropbox, Google Drive)…
SkillAFreshness: A★ 13Claude Code +9 - 0.638score
cost-guardrail
jpantsjoha
LLM and cloud cost awareness — model tiering, token budgets, right-sizing, and when a cheaper model suffices.
SkillAFreshness: A★ 13Claude Code +9 - 0.636score
get-it-done
jpantsjoha
Pursue an agreed goal to a working outcome without waiting: decompose it, re-prioritise as evidence arrives, branch, gate, get an independent review (a…
SkillAFreshness: A★ 13Claude Code +9 - 0.636score
github-manager
jpantsjoha
Use when configuring or optimising GitHub repositories for cost-effective, consistent operations — CI triggers, Actions billing, issue tracking, labelling…
SkillAFreshness: A★ 13Claude Code +9 - 0.636score
mcp-server-scaffold
jpantsjoha
Scaffold and govern an MCP server as a bounded tool seam.
SkillAFreshness: A★ 13Claude Code +9 - 0.636score
spec-first-delivery
jpantsjoha
Force plan, HLD, ADRs, and constraints to exist BEFORE any code is generated.
SkillAFreshness: A★ 13Claude Code +9 - 0.636score
sitrep
jpantsjoha
Synthesise a status, standup, or situation-report from current work state.
SkillAFreshness: A★ 13Claude Code +9
Signals
- Stars
- 13
- Forks
- 4
- Open issues
- 2
- Last commit (this folder)
- Aug 7, 2026 (2 months ago)
- Last release
- Oct 16, 2026 (12 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Website
- jpantsjoha.com
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jpantsjoha
- 0.641score
system-performance-guardrail
jpantsjoha
Measure, root-cause, fix, verify and record performance contention on a developer machine: cloud-sync daemons (iCloud Drive, OneDrive, Dropbox, Google Drive)…
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
pr-reviewer
jpantsjoha
Review gate for correctness, reuse, and simplification.
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
cloud-checkup
jpantsjoha
Read-only SRE checkup of any GCP project: deterministic probes of the edge, Cloud Run services, 7-day error logs, Cloud Scheduler, alert policies and uptime…
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
operating-model-bootstrap
jpantsjoha
Bootstrap or harden a project's operating model for mixed human and AI delivery teams.
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
cloud-expert
jpantsjoha
Cloud guardrails for any vendor workload — Google Cloud (GCP, Vertex AI, GKE), AWS (IAM, EKS, Bedrock), Azure (Entra ID, Policy, AKS), Alibaba Cloud (RAM…
SkillAFreshness: A★ 13Claude Code +9 - 0.641score
using-the-harness
jpantsjoha
Session-start orientation for this team harness.
SkillAFreshness: A★ 13Claude Code +9
Cite this page
adversarial-gate skill. Agent Mart. https://agentmart.dev/skills/jpantsjoha-adversarial-gate (last updated 2026-10-24)