df-adversary-gate

df-adversary-gate is a skill for Claude Code, Codex from OneDro1d/dark-factory. It costs 78 tokens per session (1,982 once invoked), scanned A, original, Apache-2.0.

An independent review that checks whether evidence really proves a software task is complete. It evaluates a builder’s claim without repeating the entire task or relying on the builder’s own statement that it passed.

In plain words
What is it for?
Use it before accepting a completed task, pull request, or hand-off. It helps decide whether requirements were actually met and whether the supplied proof is strong enough to trust.
Why use it?
A test or hand-off can say “done” even when its evidence is incomplete or controlled by the person who did the work. This gate looks for evidence produced independently by tests, systems, dashboards, or other authorities.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it before accepting a completed task, pull request, or hand-off. It helps decide whether requirements were actually met and whether the supplied proof is strong enough to trust.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onedro1d/dark-factory/df-adversary-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OneDro1d/dark-factory --skill df-adversary-gate
Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for df-adversary-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/onedro1d/dark-factory/df-adversary-gate/github.svg)](https://agentmods.dev/skills/onedro1d/dark-factory/df-adversary-gate)
Your own site
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/df-adversary-gate"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/df-adversary-gate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for df-adversary-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/onedro1d/dark-factory/df-adversary-gate"><img src="https://agentmods.dev/badge/skills/onedro1d/dark-factory/df-adversary-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00078 $0.01982
Opus 5.5 $0.00031 $0.00793
Sonnet 5.5 $0.00016 $0.00396
Haiku 4.5 $0.00008 $0.00198

Measured 2mo ago against content hash 5a40623cb08d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

df-adversary-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/df-adversary-gate/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dark Factory — Adversary / Verification Gate

Overview

Every stage handoff is a promise; every gate is an observer. The agent that did the work is the promiser; whether the promise was kept is decided by the observer, never the promiser. This skill is the reusable verification primitive used at every gate.

The verification primitive

An agent does the work, declares the promise kept, and presents evidence. The verifier validates only that the evidence proves the promise — it does not redo the work. That asymmetry is what lets one observer police many workers (verifying is cheap; doing is expensive).

Trust the evidence less than the promise. Evidence the promiser fully controls is weak evidence. Demand evidence that is independent and unforgeable — produced by the environment or another agent, never solely by the promiser (exit codes from asserting tests, dashboards rendering live data, reconciliation vs an external authority, immutable audit entries — not a self-printed "PASSED").

Blind synthesis (anti-Goodhart)

Independence of the verifier is necessary but not sufficient: the worker must not have seen the acceptance cases, or it games the test (if input == known_case: return known_answer). The acceptance/holdout set is withheld from the builder; verify against cases it never saw.

Two checks, never conflated

  1. evidence ⊢ promise P — was the declared promise kept? (the verifier's job)
  2. P = the needed promise — was it the right promise? (guaranteed upstream by correct specification, not derivable from the evidence — a perfectly-kept wrong promise still fails the mission).

⚠️ Gate the method too, not only the deliverable

Both checks above ask about the WORK. Neither asks whether the work was done the way the mission said to do it — and that omission has its own silent failure mode, because a directive that was never followed leaves the same trace as one that was: none.

When a mission record carries a "What actually ran" block (Skill(vinculum-map)), read it as evidence and challenge it like any other:

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +28 lines 5a40623cb08d
  2. 2mo ago Changed · +27 lines 7ba923c5575f
  3. 3mo ago First seen · 43 lines · 78 tokens per session scan A a6c37335bf9c

Subscribe to this mod's changes

df-adversary-gate is a skill published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 78 tokens to every session and 1,982 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

df-adversary-gate compared with skills from other repositories

df-adversary-gate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
df-adversary-gateOneDro1d/dark-factorySkill32d agoApache-2.0A78Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code